@modern-js/packages-generator 2.4.14 → 2.4.16

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
@@ -145974,8 +145974,8 @@ var require_node10 = __commonJSMin((exports) => {
145974
145974
  registry: registry2,
145975
145975
  distTag
145976
145976
  } = options3;
145977
- const getLatetPluginVersion = async () => {
145978
- const version5 = await getPackageVersion(`${packageName}@${distTag || "latest"}`, registry2);
145977
+ const getLatetPluginVersion = async (pluginVersion) => {
145978
+ const version5 = await getPackageVersion(`${packageName}@${pluginVersion || "latest"}`, registry2);
145979
145979
  return version5;
145980
145980
  };
145981
145981
  if (!packageName.startsWith("@modern-js") || packageName.includes("electron") || packageName.includes("codesmith") || packageName.includes("easy-form") || packageName.startsWith("@modern-js-reduck")) {
@@ -145988,14 +145988,14 @@ var require_node10 = __commonJSMin((exports) => {
145988
145988
  const pkgInfo = _utils.fs.readJSONSync(pkgPath);
145989
145989
  const modernVersion = pkgInfo.version;
145990
145990
  if (typeof modernVersion !== "string") {
145991
- return getLatetPluginVersion();
145991
+ return getLatetPluginVersion(distTag);
145992
145992
  }
145993
145993
  if (_utils.semver.lt(modernVersion, "1.15.0")) {
145994
- return getLatetPluginVersion();
145994
+ return getLatetPluginVersion(distTag);
145995
145995
  }
145996
145996
  return (0, _package.getAvailableVersion)(packageName, modernVersion, registry2);
145997
145997
  }
145998
- return getLatetPluginVersion();
145998
+ return getLatetPluginVersion(distTag);
145999
145999
  }
146000
146000
  function getPackageManagerText(packageManager) {
146001
146001
  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.16",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -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.16",
31
+ "@modern-js/generator-utils": "2.4.16",
32
+ "@scripts/build": "1.22.5",
33
+ "@scripts/jest-config": "1.22.5"
34
34
  },
35
35
  "sideEffects": false,
36
36
  "modernConfig": {