From 7de4604ab4606faf0f5322d12b9247a76c8d92a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Fri, 4 Sep 2026 17:46:03 +0200 Subject: [PATCH] :recycle: Move emit-only options from tsconfig.json to tsconfig.build.json - Build-only options (target, declaration*, sourceMap, outDir) live in the build config where they belong - Drop redundant options (composite: false is the default; allowSyntheticDefaultImports is implied by esModuleInterop; resolveJsonModule is unused) - Drop lib override to inherit es2025+ libs from @tsconfig/node26 - Add explicit include to tsconfig.build.json (include is not inherited via extends, only exclude was carrying the file selection by accident) --- tsconfig.build.json | 6 ++++++ tsconfig.json | 11 +---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/tsconfig.build.json b/tsconfig.build.json index 89e46ee..a159ae5 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -2,8 +2,14 @@ "extends": "./tsconfig.json", "compilerOptions": { "noEmit": false, + "target": "es2024", + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "outDir": "dist", "rewriteRelativeImportExtensions": true, "rootDir": "src" }, + "include": ["src"], "exclude": ["src/**/*.test.ts", "src/**/__tests__/**"] } diff --git a/tsconfig.json b/tsconfig.json index a96614a..cc01332 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,17 +5,8 @@ ], "compilerOptions": { "noEmit": true, - "target": "es2024", - "lib": ["es2024"], - "verbatimModuleSyntax": true, "allowImportingTsExtensions": true, - "declaration": true, - "declarationMap": true, - "sourceMap": true, - "outDir": "dist", - "allowSyntheticDefaultImports": true, - "resolveJsonModule": true, - "composite": false + "verbatimModuleSyntax": true }, "include": ["src"] }