diff --git a/src/module.ts b/src/module.ts index 46493e1..827ae5d 100644 --- a/src/module.ts +++ b/src/module.ts @@ -214,11 +214,13 @@ export default defineNuxtModule({ 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?.() || '' })