Skip to content

Commit

Permalink
fix: hand stdin back to nodemon in node11
Browse files Browse the repository at this point in the history
Fixes #1490
  • Loading branch information
remy committed Dec 14, 2018
1 parent e14d001 commit 5a0589c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions lib/monitor/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ function run(options) {
});

child.on('exit', function (code, signal) {
process.stdin.unpipe(child.stdin);

if (code === 127) {
utils.log.error('failed to start process, "' + cmd.executable +
'" exec not found');
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"debug": "^3.1.0",
"ignore-by-default": "^1.0.1",
"minimatch": "^3.0.4",
"pstree.remy": "^1.1.3",
"pstree.remy": "^1.1.4",
"semver": "^5.5.0",
"supports-color": "^5.2.0",
"touch": "^3.1.0",
Expand Down

0 comments on commit 5a0589c

Please sign in to comment.