src/ 下全是管理后台代码,不需要再套一层 admin/。
将 admin/{pages,components,assets} 提升到 src/ 下:
- src/admin/pages/ → src/pages/
- src/admin/components/ → src/components/
- src/admin/assets/ → src/assets/
所有 @admin/ import 改为 @/,删除 @admin alias 和 tsconfig 路径映射。
29 lines
646 B
JSON
29 lines
646 B
JSON
{
|
|
"compilerOptions": {
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
"target": "ES2022",
|
|
"useDefineForClassFields": true,
|
|
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"types": ["vite/client"],
|
|
"skipLibCheck": true,
|
|
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"verbatimModuleSyntax": true,
|
|
"moduleDetection": "force",
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
"strict": false,
|
|
|
|
"paths": {
|
|
"@/*": [
|
|
"./src/*"
|
|
]
|
|
},
|
|
"allowSyntheticDefaultImports": true
|
|
},
|
|
"include": ["src"]
|
|
}
|