fix(kit): widen pattern to .config/nuxt.*

This commit is contained in:
Daniel Roe 2024-02-22 18:15:44 +00:00
parent 9037c34766
commit 7815aa534e
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -145,7 +145,7 @@ export async function writeTypes (nuxt: Nuxt) {
}, },
include: [ include: [
'./nuxt.d.ts', './nuxt.d.ts',
join(relativeWithDot(nuxt.options.buildDir, nuxt.options.rootDir), '.config/nuxt.config.*'), join(relativeWithDot(nuxt.options.buildDir, nuxt.options.rootDir), '.config/nuxt.*'),
join(relativeWithDot(nuxt.options.buildDir, nuxt.options.rootDir), '**/*'), join(relativeWithDot(nuxt.options.buildDir, nuxt.options.rootDir), '**/*'),
...nuxt.options.srcDir !== nuxt.options.rootDir ? [join(relative(nuxt.options.buildDir, nuxt.options.srcDir), '**/*')] : [], ...nuxt.options.srcDir !== nuxt.options.rootDir ? [join(relative(nuxt.options.buildDir, nuxt.options.srcDir), '**/*')] : [],
...nuxt.options._layers.map(layer => layer.config.srcDir ?? layer.cwd) ...nuxt.options._layers.map(layer => layer.config.srcDir ?? layer.cwd)