From c32c1d06232e6686cc59fe366d99c19149acaa7a Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 10 Nov 2022 09:45:17 +0100 Subject: [PATCH] fix(nuxi): exclude `dist` from type checking (#8848) --- packages/nuxi/src/utils/prepare.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/nuxi/src/utils/prepare.ts b/packages/nuxi/src/utils/prepare.ts index 7edd8b9222..a7ce89fa95 100644 --- a/packages/nuxi/src/utils/prepare.ts +++ b/packages/nuxi/src/utils/prepare.ts @@ -29,6 +29,10 @@ export const writeTypes = async (nuxt: Nuxt) => { join(relative(nuxt.options.buildDir, nuxt.options.rootDir), '**/*'), ...nuxt.options.srcDir !== nuxt.options.rootDir ? [join(relative(nuxt.options.buildDir, nuxt.options.srcDir), '**/*')] : [], ...nuxt.options.typescript.includeWorkspace && nuxt.options.workspaceDir !== nuxt.options.rootDir ? [join(relative(nuxt.options.buildDir, nuxt.options.workspaceDir), '**/*')] : [] + ], + exclude: [ + // nitro generate output: https://github.com/nuxt/framework/blob/main/packages/nuxt/src/core/nitro.ts#L186 + relative(nuxt.options.buildDir, resolve(nuxt.options.rootDir, 'dist')) ] })