From b13bad2f4cff24ef652a7d842c456128f5482652 Mon Sep 17 00:00:00 2001 From: Mist Date: Fri, 16 Aug 2024 23:41:39 +0800 Subject: [PATCH 1/2] [Feat] remove logs and apply toString method of object to invalid node --- packages/wu/src/initialize.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/wu/src/initialize.ts b/packages/wu/src/initialize.ts index c168931..f5bbe5c 100644 --- a/packages/wu/src/initialize.ts +++ b/packages/wu/src/initialize.ts @@ -39,10 +39,9 @@ export const transformNode = ( } if (isInvalidWuNode(node)) { - console.info(node); return withDefaultWuNode({ type: WuNodeType.TEXT, - value: "Invalid Node", + value: Object.prototype.toString.call(node), }) as ParsedWuNode; } From ee02aad10f780469a738c2f01d73a4ec30f8a2e4 Mon Sep 17 00:00:00 2001 From: Mist Date: Fri, 16 Aug 2024 23:45:39 +0800 Subject: [PATCH 2/2] [Feat] wrap ts config as package --- packages/config/package.json | 9 +++++++++ packages/config/tsconfig.json | 14 ++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 packages/config/package.json create mode 100644 packages/config/tsconfig.json diff --git a/packages/config/package.json b/packages/config/package.json new file mode 100644 index 0000000..d3df376 --- /dev/null +++ b/packages/config/package.json @@ -0,0 +1,9 @@ +{ + "name": "@thewu/config", + "version": "0.0.6", + "description": "", + "main": "./tsconfig.json", + "keywords": [], + "author": "", + "license": "ISC" +} diff --git a/packages/config/tsconfig.json b/packages/config/tsconfig.json new file mode 100644 index 0000000..04e4af2 --- /dev/null +++ b/packages/config/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "es2016", + "jsx": "react-jsx", + "experimentalDecorators": true, + "jsxImportSource": "@thewu/jsx", + "module": "commonjs", + "moduleResolution": "nodenext", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "noImplicitAny": false, + "skipLibCheck": true, + }, +}