Skip to content

Commit

Permalink
chore(nuxt): ensure type template has const filename
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 17, 2024
1 parent 02d6838 commit 1cae15a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/nuxt/src/components/templates.ts
Expand Up @@ -98,8 +98,8 @@ export const componentsIslandsTemplate: NuxtTemplate = {
}
}

export const componentsTypeTemplate: NuxtTemplate = {
filename: 'components.d.ts',
export const componentsTypeTemplate = {
filename: 'components.d.ts' as const,
getContents: ({ app, nuxt }) => {
const buildDir = nuxt.options.buildDir
const componentTypes = app.components.filter(c => !c.island).map(c => [
Expand All @@ -123,7 +123,7 @@ ${componentTypes.map(([pascalName, type]) => `export const Lazy${pascalName}: ${
export const componentNames: string[]
`
}
}
} satisfies NuxtTemplate

export const componentsMetadataTemplate: NuxtTemplate = {
filename: 'components.json',
Expand Down

0 comments on commit 1cae15a

Please sign in to comment.