Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit 761e90e

Browse files
committed
refactor(tsc): improve tsconfig configuration
1 parent c35cc4e commit 761e90e

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

tsconfig.build.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,21 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"sourceMap": false,
5-
"inlineSourceMap": true,
6-
"rootDir": "./src"
5+
"inlineSourceMap": true
76
},
87
"include": ["src/**/*"],
9-
"exclude": ["src/**/*.test.ts", "src/**/*.spec.ts", "test/**/*.test.ts", "test/**/*.spec.ts", "node_modules", "dist"]
8+
"exclude": [
9+
"src/**/*.unit.ts",
10+
"src/**/*.int.ts",
11+
"src/**/*.e2e.ts",
12+
"src/**/*.spec.ts",
13+
"src/**/*.test.ts",
14+
"test/**/*.unit.ts",
15+
"test/**/*.int.ts",
16+
"test/**/*.e2e.ts",
17+
"test/**/*.spec.ts",
18+
"test/**/*.test.ts",
19+
"node_modules",
20+
"dist"
21+
]
1022
}

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"module": "commonjs", // Sets the module system for the program. "CommonJS" for node projects.
88
"noEmit": false, // Do not emit compiler output files like JavaScript source code, source-maps or declarations.
99
"outDir": "./dist", // .js (as well as .d.ts, .js.map, etc.) files will be emitted into this directory
10-
"rootDir": "./", // The longest common path of all non-declaration input files
1110
"sourceMap": true, // Enables the generation of sourcemap files
1211
"target": "es2019", // Target environment
1312

0 commit comments

Comments
 (0)