From 493787e9d1c6bab5c6e1ce00daa2a18d5764e7fb Mon Sep 17 00:00:00 2001 From: Jonathan Selander Date: Tue, 17 Jan 2023 17:38:59 +0100 Subject: [PATCH] Use the build:compiled for nuxt 2 compatibility, fixes #12 --- src/module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module.ts b/src/module.ts index 0d5e1d2f..5aa06c59 100644 --- a/src/module.ts +++ b/src/module.ts @@ -99,7 +99,7 @@ export default defineNuxtModule({ if (isNuxt3()) return // @ts-expect-error TODO: use @nuxt/bridge-schema - nuxt.hook('generate:done', async () => { + nuxt.hook('build:compiled', async () => { // @ts-expect-error TODO: use @nuxt/bridge-schema await copyLibFiles(join(nuxt.options.generate.dir, options.lib)) })