Skip to content

Commit 40b0ac9

Browse files
weisjohnvjeux
authored andcommitted
Return proper exit code in bin/react-scripts via spawnSync (#252) (#256)
1 parent 2e20fd1 commit 40b0ac9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/react-scripts.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ switch (script) {
77
case 'build':
88
case 'start':
99
case 'eject':
10-
spawn(
10+
var result = spawn.sync(
1111
'node',
1212
[require.resolve('../scripts/' + script)].concat(args),
1313
{stdio: 'inherit'}
1414
);
15+
process.exit(result.status);
1516
break;
1617
default:
1718
console.log('Unknown script "' + script + '".');

0 commit comments

Comments
 (0)