Commit 40b0ac9b authored by John Weis's avatar John Weis Committed by Christopher Chedeau
Browse files

Return proper exit code in bin/react-scripts via spawnSync (#252) (#256)

parent 2e20fd13
Showing with 2 additions and 1 deletion
+2 -1
...@@ -7,11 +7,12 @@ switch (script) { ...@@ -7,11 +7,12 @@ switch (script) {
case 'build': case 'build':
case 'start': case 'start':
case 'eject': case 'eject':
spawn( var result = spawn.sync(
'node', 'node',
[require.resolve('../scripts/' + script)].concat(args), [require.resolve('../scripts/' + script)].concat(args),
{stdio: 'inherit'} {stdio: 'inherit'}
); );
process.exit(result.status);
break; break;
default: default:
console.log('Unknown script "' + script + '".'); console.log('Unknown script "' + script + '".');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment