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
  • Loading branch information
brc-dd committed Nov 3, 2022
1 parent 41ee469 commit 01719fa
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/node/cli.ts
Expand Up @@ -28,14 +28,10 @@ if (!command || command === 'dev') {
process.exit(1)
})
} else if (command === 'build') {
build(root, argv)
.then(() => {
process.exit()
})
.catch((err) => {
console.error(c.red(`build error:\n`), err)
process.exit(1)
})
build(root, argv).catch((err) => {
console.error(c.red(`build error:\n`), err)
process.exit(1)
})
} else if (command === 'serve') {
serve(argv).catch((err) => {
console.error(c.red(`failed to start server. error:\n`), err)
Expand Down

0 comments on commit 01719fa

Please sign in to comment.