-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtsconfig.json
More file actions
43 lines (42 loc) · 1.25 KB
/
Copy pathtsconfig.json
File metadata and controls
43 lines (42 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"compilerOptions": {
// 指定 ECMAScript 目标版本
"target": "ESNext",
// 指定模块化方案
"module": "ESNext",
// 指定模块解析策略
"moduleResolution": "bundler",
// 启用所有严格类型检查选项
"strict": true,
// 允许默认导入非ES模块
"esModuleInterop": true,
// 文件名大小写必须一致
"forceConsistentCasingInFileNames": true,
// 跳过库文件的类型检查
"skipLibCheck": true,
// 生成声明文件(.d.ts)
"declaration": true,
// 生成声明文件的 source map
"declarationMap": true,
// 生成 source map 文件
"sourceMap": true,
// 允许导入 JSON 模块
"resolveJsonModule": true,
// 允许合成默认导入
"allowSyntheticDefaultImports": true,
// 基础路径,配合 paths 使用
"baseUrl": ".",
// 路径别名配置,便于导入
"paths": {
"@visualizer/*": ["packages/visualizer/src/*"]
}
},
// 包含的文件夹(源码目录)
"include": ["packages/*/src"],
// 排除的文件夹和文件
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"],
// 项目引用,支持 monorepo 下的包依赖
"references": [
{ "path": "packages/visualizer" }
]
}