forked from ttqftech/FFBox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
42 lines (42 loc) · 988 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
33
34
35
36
37
38
39
40
41
42
// tsconfig.json
{
"include": [
"src/backend/**/*",
"src/common/**/*",
"src/main/**/*",
"src/preload/**/*",
"src/renderer/**/*"
],
"compilerOptions": {
"outDir": "./dist暂时无用/",
"noImplicitAny": true,
"sourceMap": true,
"module": "esnext",
"target": "esnext",
// 若使用 "react",ts 将检查 react 的相关依赖项,也将使用 react 的特定语法。而本项目使用的不是 react,故使用 "preserve"
// https://cn.vuejs.org/guide/extras/render-function.html#jsx-tsx
"jsx": "preserve",
"jsxImportSource": "vue",
"allowJs": true,
"moduleResolution": "node",
"esModuleInterop": true, // 对于 upath 包,不开启此选项的情况下需要 import * as fs from 'fs'
"baseUrl": ".",
"paths": {
"@common/*": [
"src/common/*"
],
"@backend/*": [
"src/backend/*"
],
"@renderer/*": [
"src/renderer/src/*"
],
"@preload/*": [
"src/preload/*"
],
"@main/*": [
"src/main/*"
]
}
}
}