Skip to content

Commit

Permalink
fix(kit): apply nuxt types to .config/nuxt.config
Browse files Browse the repository at this point in the history
resolves #25918
  • Loading branch information
danielroe committed Feb 22, 2024
1 parent aaad992 commit 5440ece
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/kit/src/template.ts
Expand Up @@ -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)
Expand Down

1 comment on commit 5440ece

@pi0
Copy link
Member

@pi0 pi0 commented on 5440ece Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks ❤️ BTW we could include .config/nuxt.* pattern as well.

Please sign in to comment.