-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
32 lines (32 loc) · 927 Bytes
/
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
{
"compilerOptions": {
"outDir": "dist",
"resolveJsonModule": true,
"importHelpers": false,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
/* 生成能力 */
"declaration": true,
"declarationMap": true,
"declarationDir": "typing",
/* 模块导入配置项 */
"moduleResolution": "Node",
"esModuleInterop": true,
/* 模块依赖 */
// 这些选项对 babel 编译 TypeScript 没有作用
// 但是可以让编辑器正确提示错误
"target": "ESNext",
"module": "ESNext",
"sourceMap": true,
"jsx": "react-jsx",
/* Alias 路径 */
"baseUrl": ".",
"paths": {
"@ims-view/foo": ["./packages/foo/src"],
"@ims-view/foo/*": ["./packages/foo/src/*"],
"@ims-view/bar": ["./packages/bar/src"],
"@ims-view/bar/*": ["./packages/bar/src/*"]
}
},
"exclude": ["node_modules", "dist", "server"]
}