fix: 配置 TypeScript 构建根目录
- 添加 rootDir 编译选项指向 ./src 目录 - 保持现有编译配置不变 - 排除测试文件和 node_modules 目录
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
"$schema": "https://json.schemastore.org/tsconfig",
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"rootDir": "./src",
|
||||||
"noEmit": false
|
"noEmit": false
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", "src/__tests__"]
|
"exclude": ["node_modules", "src/__tests__"]
|
||||||
|
|||||||
Reference in New Issue
Block a user