-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
53 lines (53 loc) · 1.38 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
{
"compilerOptions": {
"outDir": "lib", // 打包到的目录
"sourceMap": false, // 是否生成sourceMap(用于浏览器调试)
"declaration": true, // 是否生成声明文件
"declarationMap": false, // 是否生成声明文件map文件(便于调试)
"target": "es5",
"experimentalDecorators": true,
"baseUrl": "./",
"paths": {
"@@/*": ["./*"],
"@/*": ["src/*"],
"@services/*": ["src/services/*"],
"@enum/*": ["src/enum/*"],
"@components/*": ["src/components/*"],
"@hooks/*": ["src/hooks/*"],
"@utils/*": ["src/utils/*"],
"@store/*": ["src/store/*"],
"@constants/*": ["src/constants/*"],
"@assets/*": ["src/assets/*"],
},
"plugins": [
{ "transform": "typescript-transform-paths" },
],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"noImplicitAny": false,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "CommonJS",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx"
},
"files": ["src/index.ts"],
"include": [
"src/**/*",
"typings/**/*"
],
"exclude": [
"node_modules",
"build"
]
}