From 36c14dd4e9dfa2ae38677c3592b5ce7d813c47fa Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 7 Apr 2023 16:46:02 +0800 Subject: [PATCH] chore(deps): update dependency tsbb to v4 #73 https://github.com/jaywcjlove/tsbb/issues/439 --- package.json | 8 ++++---- src/tsconfig.json | 1 - tsconfig.json | 8 +++----- website/tsconfig.json | 9 +++++++++ 4 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 website/tsconfig.json diff --git a/package.json b/package.json index 47525e00..44da4515 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "css:build": "compile-less -d src -o esm", "css:watch": "compile-less -d src -o esm --watch", "css:build:dist": "compile-less -d src --combine dist.css --rm-global", - "watch": "tsbb watch & npm run css:watch", - "build": "tsbb build && npm run css:build && npm run css:build:dist", + "watch": "tsbb watch src/*.tsx --use-babel & npm run css:watch", + "build": "tsbb build src/*.tsx --use-babel && npm run css:build && npm run css:build:dist", "map": "source-map-explorer build/static/js/*.js --html build/website-result.html" }, "repository": { @@ -51,8 +51,8 @@ "markdown-react-code-preview-loader": "^2.1.2", "react": "^18.2.0", "react-dom": "^18.2.0", - "source-map-explorer": "^2.5.2", - "tsbb": "^3.7.6" + "source-map-explorer": "^2.5.3", + "tsbb": "^4.1.4" }, "eslintConfig": { "extends": [ diff --git a/src/tsconfig.json b/src/tsconfig.json index 59fc6d66..8a55f0f5 100644 --- a/src/tsconfig.json +++ b/src/tsconfig.json @@ -3,7 +3,6 @@ "include": ["../src"], "compilerOptions": { "baseUrl": ".", - "outDir": "../cjs", "emitDeclarationOnly": true, "noEmit": false } diff --git a/tsconfig.json b/tsconfig.json index 599a9b5c..433db99b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,12 +19,10 @@ "declaration": true, "baseUrl": "website", "jsx": "react-jsx", - "noFallthroughCasesInSwitch": true, - "noEmit": true + "outDir": "./cjs", + "noFallthroughCasesInSwitch": true }, "include": [ - "website", - "src", - ".kktrc.ts" + "src" ] } diff --git a/website/tsconfig.json b/website/tsconfig.json new file mode 100644 index 00000000..ec175df6 --- /dev/null +++ b/website/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../tsconfig", + "include": ["../src", "./"], + "compilerOptions": { + "baseUrl": ".", + "emitDeclarationOnly": true, + "noEmit": false + } +}