89 lines
1.8 KiB
JSON
89 lines
1.8 KiB
JSON
{
|
||
"compileOnSave": false,
|
||
"compilerOptions": {
|
||
//允许使用js
|
||
"allowJs": true,
|
||
//允许导入json模块
|
||
"resolveJsonModule": true,
|
||
//移除注释
|
||
"removeComments": true,
|
||
"outDir": "dist/electron/main",
|
||
"sourceMap": true,
|
||
"declaration": true,
|
||
"declarationDir": "./fixTypes",
|
||
"module": "esnext",
|
||
"moduleResolution": "node",
|
||
"allowSyntheticDefaultImports": true,
|
||
"emitDecoratorMetadata": true,
|
||
//允许univerjs插件的Inject装修器函数,需要打开
|
||
"experimentalDecorators": true,
|
||
"importHelpers": true,
|
||
"isolatedModules": true,
|
||
"target": "esnext",
|
||
//指定ts运行环境所支持的js版本 es2017
|
||
"baseUrl": "./",
|
||
//相对于此目录的路径
|
||
"paths": {
|
||
"@/*": [
|
||
"src/renderer/*"
|
||
],
|
||
"@api/*": [
|
||
"src/renderer/api/*"
|
||
],
|
||
"@config/*": [
|
||
"config/*"
|
||
],
|
||
"@main/*": [
|
||
"src/main/*"
|
||
],
|
||
"@mock/*": [
|
||
"src/renderer/mock/*"
|
||
],
|
||
"@renderer/*": [
|
||
"src/renderer/*"
|
||
],
|
||
"@src/*": [
|
||
"src/*"
|
||
],
|
||
"@store/*": [
|
||
"src/renderer/store/modules/*"
|
||
],
|
||
"@theme/*": [
|
||
"src/renderer/themes/geeker/*"
|
||
],
|
||
"@themeDefault/*": [
|
||
"src/renderer/themes/default/*"
|
||
],
|
||
"@themeGeeker/*": [
|
||
"src/renderer/themes/geeker/*"
|
||
]
|
||
},
|
||
"typeRoots": [
|
||
"node_modules/@types",
|
||
"node_modules"
|
||
],
|
||
"types": [
|
||
"vite/client",
|
||
"unplugin-icons/types/vue",
|
||
"element-plus/global",
|
||
"node"
|
||
],
|
||
"lib": [
|
||
"esnext",
|
||
"dom"
|
||
]
|
||
//代码运行时包含的库 es2018
|
||
},
|
||
"include": [
|
||
"src/**/*.ts",
|
||
"src/**/*.vue",
|
||
".electron-vite/vite.config.mts"
|
||
// "node_modules/@types/node/globals.d.ts" //这个是IDE自动添加的
|
||
],
|
||
//include设置不正确的直接表现就是在IDE中不能有效识别别名路径、不能正确识别vue组件等
|
||
"exclude": [
|
||
"node_modules",
|
||
"dist"
|
||
]
|
||
}
|