Revert "Only listen for stdin close on TTYs (#8523)" (#9331)

* Revert "Only listen for stdin close on TTYs (#8523)"

This reverts commit 14f6574318.

* Update changelog
This commit is contained in:
Jordan Pittman 2022-09-14 16:06:34 -04:00 • committed by GitHub
parent 8fe6f4868e
commit 4e623343e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -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()