@modern-js/base-generator 2.4.14 → 2.4.15

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -145031,8 +145031,8 @@ var require_node9 = __commonJSMin((exports) => {
145031
145031
  registry: registry2,
145032
145032
  distTag
145033
145033
  } = options3;
145034
- const getLatetPluginVersion = async () => {
145035
- const version5 = await getPackageVersion(`${packageName}@${distTag || "latest"}`, registry2);
145034
+ const getLatetPluginVersion = async (pluginVersion) => {
145035
+ const version5 = await getPackageVersion(`${packageName}@${pluginVersion || "latest"}`, registry2);
145036
145036
  return version5;
145037
145037
  };
145038
145038
  if (!packageName.startsWith("@modern-js") || packageName.includes("electron") || packageName.includes("codesmith") || packageName.includes("easy-form") || packageName.startsWith("@modern-js-reduck")) {
@@ -145045,14 +145045,14 @@ var require_node9 = __commonJSMin((exports) => {
145045
145045
  const pkgInfo = _utils.fs.readJSONSync(pkgPath);
145046
145046
  const modernVersion = pkgInfo.version;
145047
145047
  if (typeof modernVersion !== "string") {
145048
- return getLatetPluginVersion();
145048
+ return getLatetPluginVersion(distTag);
145049
145049
  }
145050
145050
  if (_utils.semver.lt(modernVersion, "1.15.0")) {
145051
- return getLatetPluginVersion();
145051
+ return getLatetPluginVersion(distTag);
145052
145052
  }
145053
145053
  return (0, _package.getAvailableVersion)(packageName, modernVersion, registry2);
145054
145054
  }
145055
- return getLatetPluginVersion();
145055
+ return getLatetPluginVersion(distTag);
145056
145056
  }
145057
145057
  function getPackageManagerText(packageManager) {
145058
145058
  return packageManager === "yarn" ? "yarn" : `${packageManager} run`;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.4.14",
14
+ "version": "2.4.15",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./src/index.ts",
17
17
  "main": "./dist/index.js",
@@ -27,10 +27,10 @@
27
27
  "@types/node": "^14",
28
28
  "jest": "^27",
29
29
  "typescript": "^4",
30
- "@modern-js/generator-common": "2.4.14",
31
- "@modern-js/generator-utils": "2.4.14",
32
- "@scripts/build": "1.22.3",
33
- "@scripts/jest-config": "1.22.3"
30
+ "@modern-js/generator-common": "2.4.15",
31
+ "@modern-js/generator-utils": "2.4.15",
32
+ "@scripts/build": "1.22.4",
33
+ "@scripts/jest-config": "1.22.4"
34
34
  },
35
35
  "sideEffects": false,
36
36
  "modernConfig": {