Skip to content

Commit

Permalink
Await fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benmerckx committed Oct 29, 2024
1 parent fb6f182 commit ed226a1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/cli/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,18 @@ prog
process.env.NODE_ENV = 'production'
if (args.fix) {
const {generate} = await import('./Generate.js')
return generate({
for await (const _ of generate({
...args,
cwd: args.dir,
base: args.base,
configFile: args.config,
onAfterGenerate() {
process.exit(0)
},
cmd: 'build'
})
})) {
}
return
}
const {serve} = await import('./Serve.js')
return serve({
Expand Down

0 comments on commit ed226a1

Please sign in to comment.