- 根配置改为 solution 结构,应用代码与构建脚本各用一个子工程 - 构建脚本纳入类型检查,type-check 改用 vue-tsc -b - 声明 @types/node 依赖
30 lines
888 B
JSON
30 lines
888 B
JSON
{
|
|
"compilerOptions": {
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"target": "esnext",
|
|
"allowJs": true,
|
|
"noEmit": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"esModuleInterop": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"sourceMap": true,
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["./src/*"]
|
|
},
|
|
"lib": ["esnext", "dom"],
|
|
"types": ["@dcloudio/types", "@uni-helper/uni-types"]
|
|
},
|
|
"vueCompilerOptions": {
|
|
// uni-app 组件类型插件
|
|
"plugins": ["@uni-helper/uni-types/volar-plugin"],
|
|
// @wot-ui/ui 的 wd-button 与 uni-types 的 button open-type 类型冲突,模板检查只能整体关闭
|
|
"skipTemplateCodegen": true
|
|
},
|
|
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"],
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|