Skip to content

Commit

Permalink
Revert "Only listen for stdin close on TTYs (#8523)"
Browse files Browse the repository at this point in the history
This reverts commit 14f6574.
  • Loading branch information
thecrypticace committed Sep 14, 2022
1 parent 8fe6f48 commit 35504a9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -1016,10 +1016,8 @@ async function build() {

if (shouldWatch) {
/* Abort the watcher if stdin is closed to avoid zombie processes */
if (process.stdin.isTTY) {
process.stdin.on('end', () => process.exit(0))
process.stdin.resume()
}
process.stdin.on('end', () => process.exit(0))
process.stdin.resume()
startWatcher()
} else {
buildOnce()
Expand Down

0 comments on commit 35504a9

Please sign in to comment.