diff --git a/packages/kit/src/template.ts b/packages/kit/src/template.ts index 851cdc48ce..8c0be5dd7d 100644 --- a/packages/kit/src/template.ts +++ b/packages/kit/src/template.ts @@ -145,6 +145,7 @@ export async function writeTypes (nuxt: Nuxt) { }, include: [ './nuxt.d.ts', + join(relativeWithDot(nuxt.options.buildDir, nuxt.options.rootDir), '.config/nuxt.config.*'), join(relativeWithDot(nuxt.options.buildDir, nuxt.options.rootDir), '**/*'), ...nuxt.options.srcDir !== nuxt.options.rootDir ? [join(relative(nuxt.options.buildDir, nuxt.options.srcDir), '**/*')] : [], ...nuxt.options._layers.map(layer => layer.config.srcDir ?? layer.cwd)