소스 검색

fix: 配置 TypeScript 构建根目录

- 添加 rootDir 编译选项指向 ./src 目录
- 保持现有编译配置不变
- 排除测试文件和 node_modules 目录
Jin Mao 2 달 전
부모
커밋
7e8b9c2368
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      internal/node-utils/tsconfig.build.json

+ 1 - 0
internal/node-utils/tsconfig.build.json

@@ -2,6 +2,7 @@
   "$schema": "https://json.schemastore.org/tsconfig",
   "extends": "./tsconfig.json",
   "compilerOptions": {
+    "rootDir": "./src",
     "noEmit": false
   },
   "exclude": ["node_modules", "src/__tests__"]