* Revert "Only listen for stdin close on TTYs (#8523)"
This reverts commit 14f6574318.
* Update changelog
This commit is contained in:
parent
8fe6f4868e
commit
4e623343e4
2 changed files with 3 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue