Skip to content

Commit

Permalink
Fix: addTemplate missing write key.
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenvanhunsel authored Oct 6, 2023
1 parent 89ae212 commit d2c3f4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,13 @@ export default defineNuxtModule<GqlConfig>({
nuxt.options.alias['#gql/*'] = resolver.resolve(nuxt.options.buildDir, 'gql', '*')

addTemplate({
write: 'true',
filename: 'gql.mjs',
getContents: () => ctx.generateImports?.() || ''
})

addTemplate({
write: 'true',
filename: 'gql/index.d.ts',
getContents: () => ctx.generateDeclarations?.() || ''
})
Expand Down

0 comments on commit d2c3f4c

Please sign in to comment.