We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 436b543 commit 14f6574Copy full SHA for 14f6574
src/cli.js
@@ -875,8 +875,10 @@ async function build() {
875
876
if (shouldWatch) {
877
/* Abort the watcher if stdin is closed to avoid zombie processes */
878
- process.stdin.on('end', () => process.exit(0))
879
- process.stdin.resume()
+ if (process.stdin.isTTY) {
+ process.stdin.on('end', () => process.exit(0))
880
+ process.stdin.resume()
881
+ }
882
startWatcher()
883
} else {
884
buildOnce()
0 commit comments