From d2c3f4c592639bd3b2d55909e2da1611eea0b191 Mon Sep 17 00:00:00 2001 From: Maarten van Hunsel <7252657+maartenvanhunsel@users.noreply.github.com> Date: Fri, 6 Oct 2023 12:09:15 +0200 Subject: [PATCH] Fix: addTemplate missing write key. --- src/module.ts | 2 ++ 1 file changed, 2 insertions(+) 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?.() || '' })