From fbe62b33968a531a1a7b0d813d608a1b712b53bb Mon Sep 17 00:00:00 2001 From: Eric King Date: Sun, 1 Dec 2024 10:34:22 -0600 Subject: [PATCH] build: updated TS configs --- tsconfig.base.json | 6 +++--- tsconfig.cjs.json | 1 - tsconfig.configs.json | 1 - tsconfig.mjs.json | 1 - tsconfig.test.json | 2 +- 5 files changed, 4 insertions(+), 7 deletions(-) diff --git a/tsconfig.base.json b/tsconfig.base.json index 7f7d1ac..207ddb4 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -7,7 +7,7 @@ "composite": true, "declaration": true, "declarationDir": "./dist/types", - "declarationMap": true, + "declarationMap": false, "downlevelIteration": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, @@ -21,7 +21,7 @@ "noErrorTruncation": true, "noImplicitOverride": false, "noPropertyAccessFromIndexSignature": true, - "noUncheckedIndexedAccess": false, + "noUncheckedIndexedAccess": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "./dist", @@ -29,7 +29,7 @@ "resolveJsonModule": true, "rootDir": "./", "skipLibCheck": true, - "sourceMap": true, + "sourceMap": false, "strict": true, "target": "ES2022" }, diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json index 85c8e92..79ec483 100644 --- a/tsconfig.cjs.json +++ b/tsconfig.cjs.json @@ -3,7 +3,6 @@ "compilerOptions": { "noEmit": false, "rootDir": "./src", - "sourceRoot": "./src", "outDir": "./dist/cjs", "module": "CommonJS", "moduleResolution": "Node", diff --git a/tsconfig.configs.json b/tsconfig.configs.json index 083a742..74617e2 100644 --- a/tsconfig.configs.json +++ b/tsconfig.configs.json @@ -5,7 +5,6 @@ "checkJs": true, "noEmit": true, "rootDir": "./", - "sourceRoot": "./", "tsBuildInfoFile": "./cache/configs.tsbuildinfo" }, "include": ["./*.ts", "./*.mts", "./*.cts", "./*.js", "./*.mjs", "./*.cjs"] diff --git a/tsconfig.mjs.json b/tsconfig.mjs.json index 7f2fc41..83b1ca2 100644 --- a/tsconfig.mjs.json +++ b/tsconfig.mjs.json @@ -5,7 +5,6 @@ "module": "Node16", "moduleResolution": "Node16", "rootDir": "./src", - "sourceRoot": "./src", "outDir": "./dist/mjs", "verbatimModuleSyntax": true, "tsBuildInfoFile": "./cache/mjs.tsbuildinfo" diff --git a/tsconfig.test.json b/tsconfig.test.json index f8cf741..6c8e1fd 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -5,5 +5,5 @@ "verbatimModuleSyntax": true, "tsBuildInfoFile": "./cache/test.tsbuildinfo" }, - "include": ["src/**/*", "test/**/*"] + "include": ["src/**/*", "test/**/*", "bench/**/*"] }