chore(web): update TypeScript configuration and Vite aliases for UI components
Build, Test, and Push CFDM Docker Image / test (push) Successful in 3m55s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Successful in 2m49s
Build, Test, and Push CFDM Docker Image / update-wiki (push) Successful in 7s
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped
Build, Test, and Push CFDM Docker Image / test (push) Successful in 3m55s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Successful in 2m49s
Build, Test, and Push CFDM Docker Image / update-wiki (push) Successful in 7s
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped
- Added new path aliases for '@cfdm/ui/components', '@cfdm/ui/hooks', and '@cfdm/ui/lib' in tsconfig.app.json and vite.config.ts to streamline imports. - Set baseUrl in tsconfig.app.json for improved module resolution. - Included ignoreDeprecations setting in tsconfig.app.json to manage TypeScript deprecations. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -18,6 +18,10 @@
|
|||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"],
|
"@/*": ["./src/*"],
|
||||||
|
"@cfdm/ui/components/*": ["../../packages/ui/src/components/*"],
|
||||||
|
"@cfdm/ui/hooks/*": ["../../packages/ui/src/hooks/*"],
|
||||||
|
"@cfdm/ui/lib/*": ["../../packages/ui/src/lib/*"],
|
||||||
|
"@cfdm/ui/globals.css": ["../../packages/ui/src/styles/globals.css"],
|
||||||
"@cfdm/shared": ["../../packages/shared/src/index.ts"]
|
"@cfdm/shared": ["../../packages/shared/src/index.ts"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ export default defineConfig({
|
|||||||
alias: {
|
alias: {
|
||||||
'@': path.resolve(__dirname, './src'),
|
'@': path.resolve(__dirname, './src'),
|
||||||
'@cfdm/shared': path.resolve(__dirname, '../../packages/shared/src/index.ts'),
|
'@cfdm/shared': path.resolve(__dirname, '../../packages/shared/src/index.ts'),
|
||||||
|
'@cfdm/ui/components': path.resolve(__dirname, '../../packages/ui/src/components'),
|
||||||
|
'@cfdm/ui/hooks': path.resolve(__dirname, '../../packages/ui/src/hooks'),
|
||||||
|
'@cfdm/ui/lib': path.resolve(__dirname, '../../packages/ui/src/lib'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
|
|||||||
Reference in New Issue
Block a user