-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
94 lines (72 loc) · 1.75 KB
/
tsconfig.json
File metadata and controls
94 lines (72 loc) · 1.75 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"compilerOptions": {
"target": "es5",
"module": "AMD",
"useDefineForClassFields": true,
"lib": [
"es5",
"es6"
// es6shim
// "dom", // console
],
"skipLibCheck": false,
"types": [
"node"
],
/* Linting */
"strict": true,
// "noUnusedLocals": true,
// "noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
// 防止packages报错
"noUnusedLocals": false,
"noUnusedParameters": false,
/* Module Resolution */
// @anjsfl/validation
"moduleResolution": "node",
"isolatedModules": false,
// 装饰器
// "experimentalDecorators": true,
// "emitDecoratorMetadata": true,
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"preserveConstEnums": true,
// "skipLibCheck": true, // 启用跳过类型定义文件的检查
"importHelpers": true,
// 增量编译,只重新编译那些被修改的文件及其依赖项
// "incremental": true,
// // es import
// "esModuleInterop": true,
// "allowSyntheticDefaultImports": true,
/* 生成相同的目录结构 */
// "rootDir": "./src",
"outDir": "./dist",
// ← 输出目录
/* 路径映射 */
"baseUrl": ".",
// 设置 baseUrl 为项目根目录
"paths":
// region REQUIRE MODULES PATHS
{
"Hello2": ["src/lib/core/Hello2"]
}
// endregion REQUIRE MODULES PATHS
},
"include": [
"src",
// "types",
// 全局的 类型定义文件
"./types/jsfl/types/**/*.d.ts",
"./types/myShim/*.d.ts"
],
"exclude": [
"packages/**",
"src/business_packages/**"
],
"typeRoots": [
"./node_modules/@types",
"./types"
]
}