-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
54 lines (53 loc) · 1.28 KB
/
tsconfig.json
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
{
"compilerOptions": {
// types option has been previously configured
"types": [
// add node as an option
"node"
],
"module": "commonjs",
//指定生成哪个模块系统代码
"target": "ES2019",
"skipLibCheck": true,
"lib": [
"ES5",
"ES6",
// "ES2015",
"ES2016",
"ES2017",
"ES2018",
"ES2015.Promise",
"ES2019",
"es2020"
],
"noImplicitAny": false,
//在表达式和声明上有隐含的'any'类型时报错。
"noImplicitThis": false,
//"sourceMap": true,
"inlineSourceMap": true,
"noUnusedLocals": false,
// 检查只声明、未使用的局部变量(只提示不报错)
"noUnusedParameters": false,
// 检查未使用的函数参数(只提示不报错)
//用于debug
"rootDirs": [
"."
],
//仅用来控制输出的目录结构--outDir。
"outDir": "./dist",
//重定向输出目录。
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"moduleResolution": "node",
"watch": false
//在监视模式下运行编译器。会监视输出文件,在它们改变时重新编译。
},
"include": [
"**/*"
],
"exclude": [
"./dist/**/*.*",
"./node_modules/**/*.*",
"./logs/**/*.*"
]
}