From 0bbd06b508773b50a806244fff32b1d597545dca Mon Sep 17 00:00:00 2001 From: Horu <73709188+HigherOrderLogic@users.noreply.github.com> Date: Mon, 22 Jul 2024 02:04:35 +0700 Subject: [PATCH] fix(kit): include module `dist/runtime/` in tsconfig includes (#28237) --- packages/kit/src/template.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/kit/src/template.ts b/packages/kit/src/template.ts index da4a05349d..2bbefedca9 100644 --- a/packages/kit/src/template.ts +++ b/packages/kit/src/template.ts @@ -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