Skip to content

Commit

Permalink
Let process.stdin actually trigger it’s end event
Browse files Browse the repository at this point in the history
  • Loading branch information
LostKobrakai committed Dec 3, 2017
1 parent bcfa1bb commit 6e6fcc2
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 6e6fcc2

Please sign in to comment.