From 40b0ac9bd4aeeff74a05d0c242e849c0e6726960 Mon Sep 17 00:00:00 2001 From: John Weis <weis.john@gmail.com> Date: Thu, 28 Jul 2016 10:56:00 -0400 Subject: [PATCH] Return proper exit code in bin/react-scripts via spawnSync (#252) (#256) --- bin/react-scripts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/react-scripts.js b/bin/react-scripts.js index 355d49f16..abfe06dd1 100644 --- a/bin/react-scripts.js +++ b/bin/react-scripts.js @@ -7,11 +7,12 @@ switch (script) { case 'build': case 'start': case 'eject': - spawn( + var result = spawn.sync( 'node', [require.resolve('../scripts/' + script)].concat(args), {stdio: 'inherit'} ); + process.exit(result.status); break; default: console.log('Unknown script "' + script + '".'); -- GitLab