fix(kit): include module dist/runtime/ in tsconfig includes (#28237)

This commit is contained in:
Horu 2024-07-22 02:04:35 +07:00 committed by Daniel Roe
parent c5d524adb0
commit 0bbd06b508
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -159,6 +159,8 @@ export async function _generateTypes (nuxt: Nuxt) {
const relative = relativeWithDot(nuxt.options.buildDir, path)
include.add(join(relative, 'runtime'))
exclude.add(join(relative, 'runtime/server'))
include.add(join(relative, 'dist/runtime'))
exclude.add(join(relative, 'dist/runtime/server'))
}
const isV4 = nuxt.options.future?.compatibilityVersion === 4