Skip to content

Commit

Permalink
revert(#1530): explicitly exit process after build to prevent hangup
Browse files Browse the repository at this point in the history
This is exiting the process before streams can finish (#520 (comment)).
  • Loading branch information
brc-dd authored Nov 3, 2022
1 parent 41ee469 commit 2ca4b15
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ if (!command || command === 'dev') {
process.exit(1)
})
} else if (command === 'build') {
build(root, argv)
.then(() => {
process.exit()
})
.catch((err) => {
build(root, argv).catch((err) => {
console.error(c.red(`build error:\n`), err)
process.exit(1)
})
Expand Down

0 comments on commit 2ca4b15

Please sign in to comment.