Skip to content

Commit 69aa40e

Browse files
authored
fix: prevent race condition of running checker module before eslint config is written (#653)
1 parent 8961807 commit 69aa40e

File tree

1 file changed

+2
-2
lines changed
  • packages/module/src/modules/config

1 file changed

+2
-2
lines changed

packages/module/src/modules/config/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ export async function setupConfigGen(options: ModuleOptions, nuxt: Nuxt) {
4040
setupDevToolsIntegration(options, nuxt)
4141

4242
await writeConfigFile()
43-
nuxt.hook('builder:generateApp', () => {
44-
writeConfigFile()
43+
nuxt.hook('builder:generateApp', async () => {
44+
await writeConfigFile()
4545
})
4646

4747
if (autoInit) {

0 commit comments

Comments
 (0)