mushroom-cli 1.1.0-alpha.3 → 1.1.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gen/gen-js-driver-tarball.js +1 -1
- package/mr.js +4 -2
- package/package.json +1 -1
|
@@ -47,7 +47,7 @@ async function genJavascriptDriverTarball(args, projectName, project, alias, sou
|
|
|
47
47
|
"main": "${tarballName}.js",
|
|
48
48
|
"types": "${tarballName}.d.ts",
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"mushroomjs": "^1.1.0-alpha.
|
|
50
|
+
"mushroomjs": "^1.1.0-alpha.7"${Array.isArray(aliasProject.features) && aliasProject.features.includes("auth") ? ',\n "mushroomjs-auth": "^1.1.0-alpha.4"' : ""}${Array.isArray(aliasProject.features) && aliasProject.features.includes("file") ? ',\n "mushroomjs-file": "^1.1.0-alpha.1"' : ""}
|
|
51
51
|
}
|
|
52
52
|
}`;
|
|
53
53
|
|
package/mr.js
CHANGED
|
@@ -8,7 +8,9 @@ const help = require("./help.js");
|
|
|
8
8
|
const package = require("./package.json");
|
|
9
9
|
const checkUpdate = require("./check-update");
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const versionGroup = package.version.match(/([^-]+)(-(\w+).*)?/);
|
|
12
|
+
const currentDistTag = versionGroup[3] ? versionGroup[3] : "latest";
|
|
13
|
+
console.log("Mushroom CLI version " + package.version);
|
|
12
14
|
|
|
13
15
|
async function run(args) {
|
|
14
16
|
let debugMode = false;
|
|
@@ -60,7 +62,7 @@ async function run(args) {
|
|
|
60
62
|
|
|
61
63
|
if (checkUpdateTask !== null)
|
|
62
64
|
try {
|
|
63
|
-
var data = await checkUpdateTask;
|
|
65
|
+
var data = await checkUpdateTask;
|
|
64
66
|
if (data["dist-tags"] && data["dist-tags"][currentDistTag] && data["dist-tags"][currentDistTag] !== package.version) {
|
|
65
67
|
console.warn(`YOUR mushroom-cli VERSION IS NOT LATEST (dist-tags: ${currentDistTag}). PLEASE RUN: npm i mushroom-cli@${data["dist-tags"][currentDistTag]}`);
|
|
66
68
|
}
|