♻️ 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)
This commit is contained in:
1 parent
b649013d1c
commit
7de4604ab4
2 files changed
+7
-10
No files matched your search
@@ -2,8 +2,14 @@
|
|||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"noEmit": false,
|
"noEmit": false,
|
||||||
|
"target": "es2024",
|
||||||
|
"declaration": true,
|
||||||
|
"declarationMap": true,
|
||||||
|
"sourceMap": true,
|
||||||
|
"outDir": "dist",
|
||||||
"rewriteRelativeImportExtensions": true,
|
"rewriteRelativeImportExtensions": true,
|
||||||
"rootDir": "src"
|
"rootDir": "src"
|
||||||
},
|
},
|
||||||
|
"include": ["src"],
|
||||||
"exclude": ["src/**/*.test.ts", "src/**/__tests__/**"]
|
"exclude": ["src/**/*.test.ts", "src/**/__tests__/**"]
|
||||||
}
|
}
|
||||||
+1
-10
@@ -5,17 +5,8 @@
|
|||||||
],
|
],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"target": "es2024",
|
|
||||||
"lib": ["es2024"],
|
|
||||||
"verbatimModuleSyntax": true,
|
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": true,
|
||||||
"declaration": true,
|
"verbatimModuleSyntax": true
|
||||||
"declarationMap": true,
|
|
||||||
"sourceMap": true,
|
|
||||||
"outDir": "dist",
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
"composite": false
|
|
||||||
},
|
},
|
||||||
"include": ["src"]
|
"include": ["src"]
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user