We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6986930 commit e44d202Copy full SHA for e44d202
packages/react-scripts/scripts/start.js
@@ -155,11 +155,14 @@ checkBrowsers(paths.appPath, isInteractive)
155
});
156
157
158
- process.stdin.on('end', function() {
159
- devServer.close();
160
- process.exit();
161
- });
162
- process.stdin.resume();
+ if (isInteractive) {
+ // Gracefully exit when stdin ends
+ process.stdin.on('end', function() {
+ devServer.close();
+ process.exit();
163
+ });
164
+ process.stdin.resume();
165
+ }
166
})
167
.catch(err => {
168
if (err && err.message) {
0 commit comments