From fff27b458fa1d2d72c0a9b1853d66ab1970bd7fe Mon Sep 17 00:00:00 2001 From: Henry Zhu Date: Thu, 4 Feb 2016 18:47:00 -0500 Subject: [PATCH] Internal: actually fail/exit when flow fails --- scripts/run-flow-check.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run-flow-check.js b/scripts/run-flow-check.js index af0db68043..b8c04e6820 100644 --- a/scripts/run-flow-check.js +++ b/scripts/run-flow-check.js @@ -9,7 +9,7 @@ binVersionCheck("npm", ">=3.3.0", function (err) { console.log("Running ./node_modules/.bin/flow check"); var cmd = child.spawn("./node_modules/.bin/flow", ["check"], { stdio: "inherit" }); cmd.on("exit", function(code) { - console.log(code); + process.exit(code); }); } });