Internal: actually fail/exit when flow fails

This commit is contained in:
Henry Zhu 2016-02-04 18:47:00 -05:00
parent 526151c580
commit fff27b458f

View File

@ -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);
});
}
});