cherry-studio/tsconfig.web.json
MyPrototypeWhat c258035f6a chore: enhance type checking and update UI package configuration
- 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.
2025-10-14 14:43:49 +08:00

43 lines
1.7 KiB
JSON

{
"extends": "@electron-toolkit/tsconfig/tsconfig.web.json",
"include": [
"src/renderer/src/**/*",
"src/preload/*.d.ts",
"local/src/renderer/**/*",
"packages/shared/**/*",
"tests/__mocks__/**/*",
"packages/mcp-trace/**/*",
"packages/aiCore/src/**/*",
"src/main/integration/cherryai/index.js",
"packages/extension-table-plus/**/*"
],
"compilerOptions": {
"composite": true,
"incremental": true,
"tsBuildInfoFile": ".tsbuildinfo/tsconfig.web.tsbuildinfo",
"jsx": "react-jsx",
"moduleResolution": "bundler",
"paths": {
"@logger": ["./src/renderer/src/services/LoggerService"],
"@data/*": ["./src/renderer/src/data/*"],
"@renderer/*": ["./src/renderer/src/*"],
"@shared/*": ["./packages/shared/*"],
"@types": ["./src/renderer/src/types/index.ts"],
"@mcp-trace/*": ["./packages/mcp-trace/*"],
"@cherrystudio/ai-core/provider": ["./packages/aiCore/src/core/providers/index.ts"],
"@cherrystudio/ai-core/built-in/plugins": ["./packages/aiCore/src/core/plugins/built-in/index.ts"],
"@cherrystudio/ai-core/*": ["./packages/aiCore/src/*"],
"@cherrystudio/ai-core": ["./packages/aiCore/src/index.ts"],
"@cherrystudio/extension-table-plus": ["./packages/extension-table-plus/src/index.ts"],
"@cherrystudio/ui": ["./packages/ui/src/index.ts"],
"@/components/*": ["./packages/ui/src/components/*"],
"@/utils/*": ["./packages/ui/src/utils/*"],
"@/types": ["./packages/ui/src/types/index.ts"],
"@/hooks/*": ["./packages/ui/src/hooks/*"]
},
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"useDefineForClassFields": true
}
}