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

Commit 27296d2

Browse files
committed
keep supporting builder:prepared
1 parent 8559526 commit 27296d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/nuxi/src/utils/prepare.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ export const writeTypes = async (nuxt: Nuxt) => {
100100

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

106106
await writeFile()
107107
}

0 commit comments

Comments
 (0)