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 a97b9b4e2f
commit 13523cad26

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