2024-06-08 20:52:49 +08:00
|
|
|
{
|
2024-06-08 21:07:07 +08:00
|
|
|
"compilerOptions": {
|
|
|
|
"target": "ESNext",
|
|
|
|
"module": "ESNext",
|
|
|
|
"noImplicitAny": false,
|
|
|
|
"esModuleInterop": true,
|
2024-06-10 09:34:28 +08:00
|
|
|
"moduleResolution": "bundler",
|
2024-06-08 21:07:07 +08:00
|
|
|
"removeComments": true,
|
|
|
|
"preserveConstEnums": true,
|
|
|
|
"ignoreDeprecations": "5.0",
|
|
|
|
"jsx": "react",
|
2024-06-10 09:34:28 +08:00
|
|
|
"noEmit": true,
|
|
|
|
"allowImportingTsExtensions": true,
|
2024-06-08 21:07:07 +08:00
|
|
|
"allowJs": false,
|
|
|
|
"suppressImplicitAnyIndexErrors": true,
|
2024-06-10 00:14:21 +08:00
|
|
|
"typeRoots": ["node_modules/@types"],
|
2024-06-10 09:34:28 +08:00
|
|
|
|
|
|
|
"useDefineForClassFields": true,
|
|
|
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
|
|
"skipLibCheck": true,
|
|
|
|
|
|
|
|
/* Bundler mode */
|
|
|
|
"resolveJsonModule": true,
|
|
|
|
"isolatedModules": true,
|
|
|
|
|
|
|
|
/* Linting */
|
|
|
|
// "strict": true, 严格模式
|
|
|
|
"noUnusedLocals": true,
|
|
|
|
"noUnusedParameters": true,
|
|
|
|
"noFallthroughCasesInSwitch": true,
|
|
|
|
|
2024-06-10 19:35:37 +08:00
|
|
|
"forceConsistentCasingInFileNames": true,
|
|
|
|
|
|
|
|
//
|
2024-06-10 00:14:21 +08:00
|
|
|
"paths": {
|
2024-06-10 19:35:37 +08:00
|
|
|
// 内部核心模块导出
|
2024-06-11 22:14:33 +08:00
|
|
|
"yunzai/config": ["./src/config/index.js"],
|
|
|
|
"yunzai/db": ["./src/db/index.js"],
|
|
|
|
"yunzai/mys": ["./src/mys/index.js"],
|
|
|
|
"yunzai/utils": ["./src/utils/index.js"],
|
2024-06-17 13:19:18 +08:00
|
|
|
"yunzai/init": ["./src/init/index.js"],
|
2024-06-11 22:14:33 +08:00
|
|
|
"yunzai/core": ["./src/core/index.js"],
|
2024-06-17 13:19:18 +08:00
|
|
|
// 图片开发
|
|
|
|
"yunzai/image/types": ["./src/image/types.js"],
|
|
|
|
"yunzai/image": ["./src/image/index.js"],
|
2024-06-10 19:35:37 +08:00
|
|
|
// 外部模块 待移除
|
2024-06-10 00:14:21 +08:00
|
|
|
"#miao": ["./plugins/miao-plugin/components/index.js"],
|
|
|
|
"#miao.models": ["./plugins/miao-plugin/models/index.js"]
|
|
|
|
}
|
2024-06-08 21:07:07 +08:00
|
|
|
},
|
|
|
|
"ts-node": {
|
|
|
|
"esm": true,
|
|
|
|
"transpileOnly": true,
|
|
|
|
"experimentalSpecifierResolution": "node"
|
|
|
|
},
|
2024-06-17 13:19:18 +08:00
|
|
|
"include": ["src", "plugins", "lib", "renderers"]
|
2024-06-08 21:07:07 +08:00
|
|
|
}
|