Skip to content

Commit e44d202

Browse files
committed
Don't listen for stdin end in CI
1 parent 6986930 commit e44d202

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

packages/react-scripts/scripts/start.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,14 @@ checkBrowsers(paths.appPath, isInteractive)
155155
});
156156
});
157157

158-
process.stdin.on('end', function() {
159-
devServer.close();
160-
process.exit();
161-
});
162-
process.stdin.resume();
158+
if (isInteractive) {
159+
// Gracefully exit when stdin ends
160+
process.stdin.on('end', function() {
161+
devServer.close();
162+
process.exit();
163+
});
164+
process.stdin.resume();
165+
}
163166
})
164167
.catch(err => {
165168
if (err && err.message) {

0 commit comments

Comments
 (0)