JS: return exit code from the NodeJs kotlinc-js wrapper

This commit is contained in:
Anton Bannykh
2017-07-12 16:31:55 +03:00
parent da404de51e
commit 0935ed41d4
@@ -20,4 +20,6 @@ var spawn = require('child_process').spawn;
var execPath = __dirname + '/kotlinc-js';
var args = process.argv.slice(2);
spawn('"' + execPath + '"', args, { stdio: "inherit", shell: true });
spawn('"' + execPath + '"', args, { stdio: "inherit", shell: true }).on('exit', function(exitCode) {
process.exit(exitCode);
});