mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
fix c9 build failing silently
This commit is contained in:
parent
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;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user