-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
47 lines (46 loc) · 1.14 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
{
"compileOnSave": false,
"compilerOptions": {
"strict": true,
"jsx": "react",
"target": "es5",// 转化成的目标语言
"module": "esnext",
"moduleResolution": "node",
"outDir": "./dist/",// 打包到的目录
"sourceMap": true,// 是否生成sourceMap(用于浏览器调试)
"declaration": true,// 是否生成声明文件
"declarationDir": "./dist/types/",// 声明文件打包的位置
"declarationMap": true,// 是否生成声明文件map文件(便于调试)
"baseUrl": "./",
"types": [
"node",
"jest"
],
"typeRoots": [
"./node_modules/@types"
],
"lib": [
"dom",
"es2015"
],
// compiler rule
"allowJs": true,
"esModuleInterop": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": false,
"noEmit": true,
"noImplicitAny":false,
"noUnusedLocals": false,
"noUnusedParameters": false
},
"include": [
"src/**/*.ts"
],// 要打包的文件
"exclude": [
"node_modules",
"*.test.ts"
]
}