mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-26 21:23:53 -06:00
Use 'exec'.
This commit is contained in:
parent
230ccd6262
commit
50198247bb
26
Jakefile.js
26
Jakefile.js
@ -365,18 +365,7 @@ compileFile(/*outfile*/configureNightlyJs,
|
||||
/*callback*/ function () {
|
||||
var cmd = "node " + configureNightlyJs + " " + packageJson + " " + programTs;
|
||||
console.log(cmd);
|
||||
var ex = jake.createExec([cmd]);
|
||||
// Add listeners for output and error
|
||||
ex.addListener("stdout", function(output) {
|
||||
process.stdout.write(output);
|
||||
});
|
||||
ex.addListener("stderr", function(error) {
|
||||
process.stderr.write(error);
|
||||
});
|
||||
ex.addListener("cmdEnd", function() {
|
||||
complete();
|
||||
});
|
||||
ex.run();
|
||||
exec(cmd, completeHandler, errorHandler)
|
||||
});
|
||||
|
||||
task("setDebugModeTrue", function() {
|
||||
@ -387,18 +376,7 @@ desc("Configure, build, test, and publish the nightly release.");
|
||||
task("publish-nightly", [configureNightlyJs, "LKG", "clean", "setDebugModeTrue", "runtests"], function () {
|
||||
var cmd = "npm publish";
|
||||
console.log(cmd);
|
||||
var ex = jake.createExec([cmd]);
|
||||
// Add listeners for output and error
|
||||
ex.addListener("stdout", function(output) {
|
||||
process.stdout.write(output);
|
||||
});
|
||||
ex.addListener("stderr", function(error) {
|
||||
process.stderr.write(error);
|
||||
});
|
||||
ex.addListener("cmdEnd", function() {
|
||||
complete();
|
||||
});
|
||||
ex.run();
|
||||
exec(cmd, completeHandler, errorHandler)
|
||||
}, {async: true});
|
||||
|
||||
// Local target to build the compiler and services
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user