Skip to content
Permalink
Browse files
CB-12921: fix invalid references after cordova-lib repo got split out.
  • Loading branch information
filmaj committed Jun 14, 2017
1 parent 80e78ed commit 6a183189c2035150db9176630f6578d5b71c30ce
Showing 1 changed file with 3 additions and 12 deletions.
@@ -347,10 +347,10 @@ if (argv.global) {
console.log([" ." + path.sep + "cordova-coho" + path.sep + "coho repo-clone"].concat(repos).join(" -r "));
if (!argv.globalplugins) {
console.log(" mkdir cordova-cli" + path.sep + "node_modules");
console.log(" (cd cordova-lib" + path.sep + "cordova-lib" + path.sep + " && npm install)");
console.log(" (cd cordova-lib && npm install)");
console.log(" (cd cordova-plugman" + path.sep + " && npm install)");
console.log(" mkdir cordova-cli" + path.sep + "node_modules");
console.log(" ln -s .." + path.sep + ".." + path.sep + "cordova-lib" + path.sep + "cordova-lib cordova-cli" + path.sep + "node_modules");
console.log(" ln -s .." + path.sep + ".." + path.sep + "cordova-lib cordova-cli" + path.sep + "node_modules");
console.log(" (cd cordova-cli && npm install)");
}
console.log("To update all repositories:");
@@ -369,17 +369,8 @@ if (argv.clearnpmcache) {
shelljs.rm("-rf", path.join(home_dir, ".plugman"));
}

function getPathFromModuleName(moduleName) {
if (moduleName == "cordova-lib") {
return(moduleName + path.sep + moduleName);
} else {
return(moduleName);
}
}

function cdInto(moduleName) {
var myPath = getPathFromModuleName(moduleName);
pushd(myPath);
pushd(moduleName);
}

function cdOutOf() {

0 comments on commit 6a18318

Please sign in to comment.