Only read stdin if option says so

This commit is contained in:
Remy Sharp
2014-12-02 12:59:09 +00:00
parent 68c8b17a27
commit dd550f161d

View File

@@ -94,7 +94,7 @@ function nodemon(settings) {
bus.emit('restart');
}
});
} else {
} else if (config.options.stdin) {
// if 'restartable' is disabled (via a nodemon.json)
// then it's possible we're being used with a REPL
// so let's make sure we don't eat the key presses