Skip to content

Commit

Permalink
fix: generated types
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Dec 19, 2022
1 parent 6925e90 commit db45bc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default defineNuxtModule<ModuleOptions>({

// paths.d.ts
addTemplate({
filename: 'sitemap.d.ts',
filename: 'nuxt-simple-sitemap.d.ts',
getContents: () => {
return `// Generated by nuxt-simple-sitemap
declare module 'nitropack' {
Expand All @@ -69,7 +69,7 @@ declare module 'nitropack' {
})

nuxt.hooks.hook('prepare:types', ({ references }) => {
references.push({ path: resolve(nuxt.options.buildDir, 'nuxt-seo-kit.d.ts') })
references.push({ path: resolve(nuxt.options.buildDir, 'nuxt-simple-sitemap.d.ts') })
})

if (nuxt.options.dev) {
Expand Down

0 comments on commit db45bc9

Please sign in to comment.