Skip to content

Commit

Permalink
Don't listen for stdin end in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ianschmitz committed Nov 3, 2019
1 parent 6986930 commit e44d202
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/react-scripts/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,14 @@ checkBrowsers(paths.appPath, isInteractive)
});
});

process.stdin.on('end', function() {
devServer.close();
process.exit();
});
process.stdin.resume();
if (isInteractive) {
// Gracefully exit when stdin ends
process.stdin.on('end', function() {
devServer.close();
process.exit();
});
process.stdin.resume();
}
})
.catch(err => {
if (err && err.message) {
Expand Down

0 comments on commit e44d202

Please sign in to comment.