Update tsconfig to include typeRoots and format paths

Added 'typeRoots' to specify custom type definitions directory and reformatted the 'paths' property for better readability. This improves TypeScript type resolution and project maintainability.
This commit is contained in:
手瓜一十雪 2025-11-15 14:40:06 +08:00
parent c0b9817ff5
commit 8645ed4d9d

View File

@ -6,6 +6,9 @@
"lib": [
"ES2021"
],
"typeRoots": [
"./node_modules/@types"
],
"esModuleInterop": true,
"outDir": "dist",
"noEmit": false,
@ -32,7 +35,9 @@
"resolveJsonModule": true,
"baseUrl": ".",
"paths": {
"@/*": ["packages/*"]
"@/*": [
"packages/*"
]
},
"skipLibCheck": true,
"skipDefaultLibCheck": true