From 8dd648f85d6973a4b56efe13c2fc1570c7e58403 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Wed, 6 Nov 2024 02:15:30 +0800 Subject: [PATCH] chore: --- packages/core/acme-client/tsconfig.json | 4 ++-- packages/core/basic/src/index.ts | 1 + packages/core/basic/tsconfig.json | 6 ++--- packages/core/pipeline/tsconfig.json | 3 ++- packages/libs/lib-huawei/tsconfig.json | 5 ++-- packages/libs/lib-iframe/tsconfig.json | 3 ++- packages/libs/lib-k8s/tsconfig.json | 3 ++- packages/libs/lib-server/tsconfig.json | 2 +- packages/libs/midway-flyway-js/tsconfig.json | 2 +- packages/plugins/plugin-cert/tsconfig.json | 2 +- packages/ui/certd-client/tsconfig.json | 2 +- tsconfig.json | 25 +++----------------- 12 files changed, 22 insertions(+), 36 deletions(-) diff --git a/packages/core/acme-client/tsconfig.json b/packages/core/acme-client/tsconfig.json index 4b084b3c..566b446c 100644 --- a/packages/core/acme-client/tsconfig.json +++ b/packages/core/acme-client/tsconfig.json @@ -1,5 +1,5 @@ { - "compileOnSave": false, + "compileOnSave": true, "compilerOptions": { "module": "commonjs", "lib": ["es6"], @@ -7,7 +7,7 @@ "noEmit": false, "esModuleInterop": true, "baseUrl": ".", - "composite": true, + "composite": false, "paths": { "acme-client": ["."] } } } diff --git a/packages/core/basic/src/index.ts b/packages/core/basic/src/index.ts index 3ac870a7..25cc7a63 100644 --- a/packages/core/basic/src/index.ts +++ b/packages/core/basic/src/index.ts @@ -1 +1,2 @@ export * from './utils/index.js'; +export * from './utils/util.id.js'; diff --git a/packages/core/basic/tsconfig.json b/packages/core/basic/tsconfig.json index b071f23a..b85a9997 100644 --- a/packages/core/basic/tsconfig.json +++ b/packages/core/basic/tsconfig.json @@ -7,21 +7,21 @@ "esModuleInterop": true, "experimentalDecorators": true, "emitDecoratorMetadata": true, - "inlineSourceMap":true, "noImplicitThis": true, "noUnusedLocals": true, "stripInternal": true, + "importHelpers": true, "skipLibCheck": true, "pretty": true, "declaration": true, "forceConsistentCasingInFileNames": true, "outDir": "dist", "rootDir": "src", - "composite": true, + "composite": false, "useDefineForClassFields": true, "strict": true, "typeRoots": [ "./typings", "./node_modules/@types"], -// "sourceMap": true, + "inlineSourceMap": true, "resolveJsonModule": true, "isolatedModules": false, "lib": ["ESNext", "DOM"], diff --git a/packages/core/pipeline/tsconfig.json b/packages/core/pipeline/tsconfig.json index f046bda7..09eb3466 100644 --- a/packages/core/pipeline/tsconfig.json +++ b/packages/core/pipeline/tsconfig.json @@ -10,6 +10,7 @@ "inlineSourceMap":true, "noImplicitThis": true, "noUnusedLocals": true, + "importHelpers": true, "stripInternal": true, "skipLibCheck": true, "pretty": true, @@ -17,7 +18,7 @@ "forceConsistentCasingInFileNames": true, "outDir": "dist", "rootDir": "src", - "composite": true, + "composite": false, "useDefineForClassFields": true, "strict": true, // "sourceMap": true, diff --git a/packages/libs/lib-huawei/tsconfig.json b/packages/libs/lib-huawei/tsconfig.json index 07f551a9..d72a2eea 100644 --- a/packages/libs/lib-huawei/tsconfig.json +++ b/packages/libs/lib-huawei/tsconfig.json @@ -1,5 +1,5 @@ { - "compileOnSave": false, + "compileOnSave": true, "compilerOptions": { "target": "ESNext", "module": "ESNext", @@ -10,6 +10,7 @@ "noImplicitThis": true, "noUnusedLocals": true, "stripInternal": true, + "importHelpers": true, "skipLibCheck": true, "pretty": true, "declaration": true, @@ -17,7 +18,7 @@ "typeRoots": [ "./typings", "./node_modules/@types"], "outDir": "dist", "rootDir": "src", - "composite": true, + "composite": false, "useDefineForClassFields": true, "strict": false, "sourceMap": true, diff --git a/packages/libs/lib-iframe/tsconfig.json b/packages/libs/lib-iframe/tsconfig.json index d97da42d..5f466c53 100644 --- a/packages/libs/lib-iframe/tsconfig.json +++ b/packages/libs/lib-iframe/tsconfig.json @@ -12,13 +12,14 @@ "noUnusedLocals": true, "stripInternal": true, "skipLibCheck": true, + "importHelpers": true, "pretty": true, "declaration": true, "forceConsistentCasingInFileNames": true, "typeRoots": [ "./typings", "./node_modules/@types"], "outDir": "dist", "rootDir": "src", - "composite": true, + "composite": false, "useDefineForClassFields": true, "strict": false, // "sourceMap": true, diff --git a/packages/libs/lib-k8s/tsconfig.json b/packages/libs/lib-k8s/tsconfig.json index d97da42d..5f466c53 100644 --- a/packages/libs/lib-k8s/tsconfig.json +++ b/packages/libs/lib-k8s/tsconfig.json @@ -12,13 +12,14 @@ "noUnusedLocals": true, "stripInternal": true, "skipLibCheck": true, + "importHelpers": true, "pretty": true, "declaration": true, "forceConsistentCasingInFileNames": true, "typeRoots": [ "./typings", "./node_modules/@types"], "outDir": "dist", "rootDir": "src", - "composite": true, + "composite": false, "useDefineForClassFields": true, "strict": false, // "sourceMap": true, diff --git a/packages/libs/lib-server/tsconfig.json b/packages/libs/lib-server/tsconfig.json index 8fe94f76..c98002c7 100644 --- a/packages/libs/lib-server/tsconfig.json +++ b/packages/libs/lib-server/tsconfig.json @@ -19,7 +19,7 @@ "typeRoots": [ "./typings", "./node_modules/@types"], "outDir": "dist", "rootDir": "src", - "composite": true, + "composite": false, "useDefineForClassFields": true, "strict": false, "resolveJsonModule": true, diff --git a/packages/libs/midway-flyway-js/tsconfig.json b/packages/libs/midway-flyway-js/tsconfig.json index 4a95cdd5..5b2bd8bb 100644 --- a/packages/libs/midway-flyway-js/tsconfig.json +++ b/packages/libs/midway-flyway-js/tsconfig.json @@ -18,7 +18,7 @@ "typeRoots": [ "./typings", "./node_modules/@types"], "outDir": "dist", "rootDir": "src", - "composite": true, + "composite": false, "useDefineForClassFields": true, "strict": false, // "sourceMap": true, diff --git a/packages/plugins/plugin-cert/tsconfig.json b/packages/plugins/plugin-cert/tsconfig.json index 7f7ef857..07d6817d 100644 --- a/packages/plugins/plugin-cert/tsconfig.json +++ b/packages/plugins/plugin-cert/tsconfig.json @@ -18,7 +18,7 @@ "typeRoots": [ "./typings", "./node_modules/@types"], "outDir": "dist", "rootDir": "src", - "composite": true, + "composite": false, "useDefineForClassFields": true, "strict": false, // "sourceMap": true, diff --git a/packages/ui/certd-client/tsconfig.json b/packages/ui/certd-client/tsconfig.json index 36bc2aff..6adc1e97 100644 --- a/packages/ui/certd-client/tsconfig.json +++ b/packages/ui/certd-client/tsconfig.json @@ -1,5 +1,5 @@ { - "compileOnSave": false, + "compileOnSave": true, "compilerOptions": { // 这样就可以对 `this` 上的数据属性进行更严格的推断` "noImplicitAny": true, diff --git a/tsconfig.json b/tsconfig.json index 36bc2aff..e1039d73 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "compileOnSave": false, + "compileOnSave": true, "compilerOptions": { // 这样就可以对 `this` 上的数据属性进行更严格的推断` "noImplicitAny": true, @@ -7,7 +7,6 @@ "target": "esnext", "module": "esnext", "strict": true, - "jsx": "preserve", "importHelpers": true, "moduleResolution": "node", "experimentalDecorators": true, @@ -15,27 +14,9 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "strictNullChecks" :false, - "sourceMap": true, + "inlineSourceMap": true, "baseUrl": ".", - "outDir": "./dist/ts", - "types": [ - "vite/client", - "mocha", - "chai", - "node", - "unplugin-vue-define-options/macros-global" - ], - "paths": { - "/@/*": ["src/*"], - "/src/*": ["src/*"], - "/#/*": ["types/*"] - }, - "lib": [ - "esnext", - "dom", - "dom.iterable", - "scripthost" - ] + "outDir": "dist", }, "include": [ "src/**/*.ts",