Browse Source

📦 build(mini-shared-ui-components): 更新 TypeScript 配置

- 将 rootDir 从 './src' 改为 '.' 以支持更灵活的目录结构
- 在 include 中添加 tests 目录,确保测试文件被包含在编译范围内
- 从 exclude 中移除 tests 目录,避免测试文件被排除在编译之外
yourname 4 weeks ago
parent
commit
c16040c8ba
1 changed files with 3 additions and 3 deletions
  1. 3 3
      mini-ui-packages/mini-shared-ui-components/tsconfig.json

+ 3 - 3
mini-ui-packages/mini-shared-ui-components/tsconfig.json

@@ -12,7 +12,7 @@
     "declarationMap": true,
     "sourceMap": true,
     "outDir": "./dist",
-    "rootDir": "./src",
+    "rootDir": ".",
     "jsx": "react-jsx",
     "resolveJsonModule": true,
     "allowSyntheticDefaultImports": true,
@@ -20,6 +20,6 @@
     "emitDecoratorMetadata": true,
     "types": ["react"]
   },
-  "include": ["src/**/*"],
-  "exclude": ["node_modules", "dist", "tests"]
+  "include": ["src/**/*", "tests"],
+  "exclude": ["node_modules", "dist"]
 }