JS: return exit code from the NodeJs kotlinc-js wrapper
This commit is contained in:
@@ -20,4 +20,6 @@ var spawn = require('child_process').spawn;
|
|||||||
var execPath = __dirname + '/kotlinc-js';
|
var execPath = __dirname + '/kotlinc-js';
|
||||||
var args = process.argv.slice(2);
|
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);
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user