kopia lustrzana https://github.com/c9/core
fix c9 build failing silently
rodzic
db931d638f
commit
288a3be0d9
|
@ -293,7 +293,7 @@ define(function(require, exports, module) {
|
|||
if (err) return callback(err);
|
||||
|
||||
function installNPM(){
|
||||
spawn(join(process.env.HOME, ".c9/node/bin/npm"), {
|
||||
spawn(join(process.env.HOME, process.platform == "win32"? ".c9/npm.cmd" : ".c9/node/bin/npm"), {
|
||||
args: ["install"],
|
||||
cwd: packagePath
|
||||
}, function(err) {
|
||||
|
|
|
@ -159,7 +159,14 @@ define(function(require, exports, module) {
|
|||
}
|
||||
else {
|
||||
dryRun = true;
|
||||
publish({local: true}, function(){});
|
||||
publish({local: true}, function(err){
|
||||
if (err) {
|
||||
console.error(err);
|
||||
if (!verbose)
|
||||
console.error("\nTry running with --verbose flag for more information");
|
||||
process.exit(1);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -296,8 +303,8 @@ define(function(require, exports, module) {
|
|||
warned = true;
|
||||
}
|
||||
else if (!fs.existsSync(join(cwd, name.replace(/\.js$/, "_test.js")))) {
|
||||
console.warn("ERROR: Plugin '" + name + "' has no test associated with it. There must be a file called '" + name + "_test.js' containing tests.");
|
||||
failed = true;
|
||||
console.warn("ERROR: Plugin '" + name + "' has no test associated with it. There must be a file called '" + name.replace(/\.js$/, "") + "_test.js' containing tests.");
|
||||
warned = true;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue