Skip to content

Commit bded0ac

Browse files
committed
fix(stdin): don't watch for 'rs' when --no-stdin is provided
1 parent 6ccb298 commit bded0ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/nodemon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function nodemon(settings) {
8989
});
9090

9191
// echo out notices about running state
92-
if (config.options.restartable) {
92+
if (config.options.stdin && config.options.restartable) {
9393
// allow nodemon to restart when the use types 'rs\n'
9494
process.stdin.resume();
9595
process.stdin.setEncoding('utf8');

0 commit comments

Comments
 (0)