Skip to content

Commit

Permalink
Use the build:compiled for nuxt 2 compatibility, fixes nuxt-modules#12
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanselander committed Jan 17, 2023
1 parent 9b00ee7 commit 493787e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default defineNuxtModule<ModuleOptions>({
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))
})
Expand Down

0 comments on commit 493787e

Please sign in to comment.