@modern-js/server-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
@@ -38016,8 +38016,8 @@ var require_node = __commonJSMin((exports) => {
38016
38016
  registry: registry2,
38017
38017
  distTag
38018
38018
  } = options3;
38019
- const getLatetPluginVersion = async () => {
38020
- const version5 = await getPackageVersion2(`${packageName}@${distTag || "latest"}`, registry2);
38019
+ const getLatetPluginVersion = async (pluginVersion) => {
38020
+ const version5 = await getPackageVersion2(`${packageName}@${pluginVersion || "latest"}`, registry2);
38021
38021
  return version5;
38022
38022
  };
38023
38023
  if (!packageName.startsWith("@modern-js") || packageName.includes("electron") || packageName.includes("codesmith") || packageName.includes("easy-form") || packageName.startsWith("@modern-js-reduck")) {
@@ -38030,14 +38030,14 @@ var require_node = __commonJSMin((exports) => {
38030
38030
  const pkgInfo = _utils.fs.readJSONSync(pkgPath);
38031
38031
  const modernVersion = pkgInfo.version;
38032
38032
  if (typeof modernVersion !== "string") {
38033
- return getLatetPluginVersion();
38033
+ return getLatetPluginVersion(distTag);
38034
38034
  }
38035
38035
  if (_utils.semver.lt(modernVersion, "1.15.0")) {
38036
- return getLatetPluginVersion();
38036
+ return getLatetPluginVersion(distTag);
38037
38037
  }
38038
38038
  return (0, _package.getAvailableVersion)(packageName, modernVersion, registry2);
38039
38039
  }
38040
- return getLatetPluginVersion();
38040
+ return getLatetPluginVersion(distTag);
38041
38041
  }
38042
38042
  function getPackageManagerText(packageManager) {
38043
38043
  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
  "types": "./src/index.ts",
17
17
  "main": "./dist/index.js",
@@ -28,10 +28,10 @@
28
28
  "@types/node": "^14",
29
29
  "jest": "^27",
30
30
  "typescript": "^4",
31
- "@modern-js/generator-utils": "2.4.14",
32
- "@scripts/build": "1.22.3",
33
- "@scripts/jest-config": "1.22.3",
34
- "@modern-js/generator-common": "2.4.14"
31
+ "@modern-js/generator-common": "2.4.16",
32
+ "@modern-js/generator-utils": "2.4.16",
33
+ "@scripts/build": "1.22.5",
34
+ "@scripts/jest-config": "1.22.5"
35
35
  },
36
36
  "sideEffects": false,
37
37
  "modernConfig": {