mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 11:44:28 +08:00
- Added a new typecheck command for the UI package in package.json to ensure type safety. - Updated tsconfig.web.json to include UI paths for better module resolution. - Modified the type-check command in the UI package to specify the tsconfig.json file. - Adjusted the include paths in the UI tsconfig.json to focus on specific component directories.
29 lines
767 B
JSON
29 lines
767 B
JSON
{
|
|
"compilerOptions": {
|
|
"allowSyntheticDefaultImports": true,
|
|
"baseUrl": ".",
|
|
"declaration": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"incremental": true,
|
|
"isolatedModules": true,
|
|
"jsx": "react-jsx",
|
|
"lib": ["DOM", "DOM.Iterable", "ES2021"],
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"noFallthroughCasesInSwitch": true,
|
|
"outDir": "./dist",
|
|
"paths": {
|
|
"@/*": ["src/*"],
|
|
"@/types": ["src/types"],
|
|
"@/utils": ["src/utils"]
|
|
},
|
|
"resolveJsonModule": true,
|
|
"rootDir": ".",
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"target": "ES2020"
|
|
},
|
|
"exclude": ["node_modules", "dist", "**/*.test.*", "**/__tests__/**"],
|
|
"include": ["src/**/*", "stories/components/**/*"]
|
|
}
|