fix(kit): initialize tsconfig paths in addTemplate if undefined (#30348)

This commit is contained in:
Mehmet 2024-12-23 21:08:41 +03:00 committed by GitHub
parent 01b2a780a2
commit d6d90abb1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -230,6 +230,7 @@ export async function _generateTypes (nuxt: Nuxt) {
: nuxt.options.buildDir
tsConfig.compilerOptions = tsConfig.compilerOptions || {}
tsConfig.compilerOptions.paths = tsConfig.compilerOptions.paths || {}
tsConfig.include = tsConfig.include || []
for (const alias in aliases) {