Skip to content

Commit

Permalink
Merge pull request #1774 from LostKobrakai/master
Browse files Browse the repository at this point in the history
Let process.stdin actually trigger it’s end event
  • Loading branch information
lukastaegert committed Dec 5, 2017
2 parents eadf109 + 6e6fcc2 commit a44f75b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/src/run/watch.js
Expand Up @@ -96,6 +96,7 @@ export default function watch(configFile, configs, command, silent) {
// only listen to stdin if it is a pipe
if (!process.stdin.isTTY) {
process.stdin.on('end', close); // in case we ever support stdin!
process.stdin.resume()
}

function close() {
Expand Down

0 comments on commit a44f75b

Please sign in to comment.