updated versions

This commit is contained in:
Philipp Kunz 2016-06-29 23:18:51 +02:00
parent 5438b7792f
commit d0547a78dd
2 changed files with 13 additions and 8 deletions

11
dist/npmci.install.js vendored
View File

@ -6,11 +6,14 @@ exports.install = function (versionArg) {
var done = plugins.q.defer();
plugins.beautylog.log("now installing " + "node ".green + ("version " + versionArg).yellow);
var version;
if (versionArg == "lts") {
version = "4";
if (versionArg == "stable") {
version = "6.6.2";
}
else if (versionArg == "lts") {
version = "4.4.7";
}
else if (versionArg == "legacy") {
version = "0";
version = "4.4.7";
}
else {
version = versionArg;
@ -25,4 +28,4 @@ exports.install = function (versionArg) {
return done.promise;
};
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLmluc3RhbGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUN4QixJQUFZLE9BQU8sV0FBTSxpQkFBaUIsQ0FBQyxDQUFBO0FBQzNDLDJCQUFtQixjQUFjLENBQUMsQ0FBQTtBQUV2QixlQUFPLEdBQUcsVUFBQyxVQUFVO0lBQzVCLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDN0IsT0FBTyxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsaUJBQWlCLEdBQUcsT0FBTyxDQUFDLEtBQUssR0FBRyxDQUFDLFVBQVUsR0FBRyxVQUFVLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUM1RixJQUFJLE9BQWMsQ0FBQztJQUNuQixFQUFFLENBQUEsQ0FBQyxVQUFVLElBQUksS0FBSyxDQUFDLENBQUEsQ0FBQztRQUNwQixPQUFPLEdBQUcsR0FBRyxDQUFDO0lBQ2xCLENBQUM7SUFBQyxJQUFJLENBQUMsRUFBRSxDQUFBLENBQUMsVUFBVSxJQUFJLFFBQVEs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g) => {
let done = plugins.q.defer();
plugins.beautylog.log("now installing " + "node ".green + ("version " + versionArg).yellow);
let version:string;
if(versionArg == "lts"){
version = "4";
if(versionArg == "stable"){
version = "6.6.2";
} else if(versionArg == "lts"){
version = "4.4.7";
} else if(versionArg == "legacy"){
version = "0"
} else {
version = "4.4.7"
} else {
version = versionArg;
};
bash(