mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
- Updated tsconfig files to standardize module resolution paths for the UI package. - Modified component import paths in components.json to align with the new structure. - Refactored import statements in various UI components to use the updated paths from '@cherrystudio/ui'. - Added new exports for UI components in the index file to enhance accessibility.
27 lines
720 B
JSON
27 lines
720 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": {
|
|
"@cherrystudio/ui/*": ["./src/*"]
|
|
},
|
|
"resolveJsonModule": true,
|
|
"rootDir": ".",
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"target": "ES2020"
|
|
},
|
|
"exclude": ["node_modules", "dist", "**/*.test.*", "**/__tests__/**"],
|
|
"include": ["src/**/*", "stories/components/**/*"]
|
|
}
|