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 Daniel Roe
parent 6e682b1ff6
commit 9e20d8da06
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

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) {