Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
keep supporting builder:prepared
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 27, 2022
1 parent 8559526 commit 27296d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nuxi/src/utils/prepare.ts
Expand Up @@ -100,8 +100,8 @@ export const writeTypes = async (nuxt: Nuxt) => {

// This is needed for Nuxt 2 which clears the build directory again before building
// https://github.com/nuxt/nuxt.js/blob/dev/packages/builder/src/builder.js#L144
// TODO
// nuxt.hook('builder:prepared', writeFile)
// @ts-expect-error
nuxt.hook('builder:prepared', writeFile)

await writeFile()
}
Expand Down

0 comments on commit 27296d2

Please sign in to comment.