@modern-js/upgrade-generator 2.4.12 → 2.4.13

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 +20 -28
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -12958,7 +12958,7 @@ var require_execa = __commonJSMin((exports, module2) => {
12958
12958
  }
12959
12959
  return t3;
12960
12960
  };
12961
- const execa2 = (e3, t3, n3) => {
12961
+ const execa = (e3, t3, n3) => {
12962
12962
  const r2 = handleArguments(e3, t3, n3);
12963
12963
  const s2 = w(e3, t3);
12964
12964
  const i2 = I(e3, t3);
@@ -12996,7 +12996,7 @@ var require_execa = __commonJSMin((exports, module2) => {
12996
12996
  a2.all = y(a2, r2.options);
12997
12997
  return S(a2, C);
12998
12998
  };
12999
- e2.exports = execa2;
12999
+ e2.exports = execa;
13000
13000
  e2.exports.sync = (e3, t3, n3) => {
13001
13001
  const r2 = handleArguments(e3, t3, n3);
13002
13002
  const s2 = w(e3, t3);
@@ -13021,11 +13021,11 @@ var require_execa = __commonJSMin((exports, module2) => {
13021
13021
  };
13022
13022
  e2.exports.command = (e3, t3) => {
13023
13023
  const [n3, ...r2] = E(e3);
13024
- return execa2(n3, r2, t3);
13024
+ return execa(n3, r2, t3);
13025
13025
  };
13026
13026
  e2.exports.commandSync = (e3, t3) => {
13027
13027
  const [n3, ...r2] = E(e3);
13028
- return execa2.sync(n3, r2, t3);
13028
+ return execa.sync(n3, r2, t3);
13029
13029
  };
13030
13030
  e2.exports.node = (e3, t3, n3 = {}) => {
13031
13031
  if (t3 && !Array.isArray(t3) && typeof t3 === "object") {
@@ -13035,7 +13035,7 @@ var require_execa = __commonJSMin((exports, module2) => {
13035
13035
  const r2 = u.node(n3);
13036
13036
  const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
13037
13037
  const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
13038
- return execa2(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
13038
+ return execa(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
13039
13039
  };
13040
13040
  }, 192: (e2) => {
13041
13041
  "use strict";
@@ -126444,7 +126444,7 @@ var require_execa2 = __commonJSMin((exports, module2) => {
126444
126444
  }
126445
126445
  return t3;
126446
126446
  };
126447
- const execa2 = (e3, t3, n3) => {
126447
+ const execa = (e3, t3, n3) => {
126448
126448
  const r2 = handleArguments(e3, t3, n3);
126449
126449
  const s2 = w(e3, t3);
126450
126450
  const i2 = I(e3, t3);
@@ -126482,7 +126482,7 @@ var require_execa2 = __commonJSMin((exports, module2) => {
126482
126482
  a2.all = y(a2, r2.options);
126483
126483
  return S(a2, C);
126484
126484
  };
126485
- e2.exports = execa2;
126485
+ e2.exports = execa;
126486
126486
  e2.exports.sync = (e3, t3, n3) => {
126487
126487
  const r2 = handleArguments(e3, t3, n3);
126488
126488
  const s2 = w(e3, t3);
@@ -126507,11 +126507,11 @@ var require_execa2 = __commonJSMin((exports, module2) => {
126507
126507
  };
126508
126508
  e2.exports.command = (e3, t3) => {
126509
126509
  const [n3, ...r2] = E(e3);
126510
- return execa2(n3, r2, t3);
126510
+ return execa(n3, r2, t3);
126511
126511
  };
126512
126512
  e2.exports.commandSync = (e3, t3) => {
126513
126513
  const [n3, ...r2] = E(e3);
126514
- return execa2.sync(n3, r2, t3);
126514
+ return execa.sync(n3, r2, t3);
126515
126515
  };
126516
126516
  e2.exports.node = (e3, t3, n3 = {}) => {
126517
126517
  if (t3 && !Array.isArray(t3) && typeof t3 === "object") {
@@ -126521,7 +126521,7 @@ var require_execa2 = __commonJSMin((exports, module2) => {
126521
126521
  const r2 = u.node(n3);
126522
126522
  const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
126523
126523
  const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
126524
- return execa2(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
126524
+ return execa(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
126525
126525
  };
126526
126526
  }, 192: (e2) => {
126527
126527
  "use strict";
@@ -144710,10 +144710,10 @@ var init_solution = __esmMin(() => {
144710
144710
  init_toConsumableArray();
144711
144711
  init_defineProperty();
144712
144712
  init_locale2();
144713
- (function(Solution2) {
144714
- Solution2["MWA"] = "mwa";
144715
- Solution2["Module"] = "module";
144716
- Solution2["Monorepo"] = "monorepo";
144713
+ (function(Solution3) {
144714
+ Solution3["MWA"] = "mwa";
144715
+ Solution3["Module"] = "module";
144716
+ Solution3["Monorepo"] = "monorepo";
144717
144717
  })(Solution || (Solution = {}));
144718
144718
  (function(SubSolution2) {
144719
144719
  SubSolution2["MWA"] = "mwa";
@@ -145962,13 +145962,13 @@ var require_node10 = __commonJSMin((exports) => {
145962
145962
  spinner.stop();
145963
145963
  throw new Error("not found npm, please install npm before");
145964
145964
  }
145965
- async function getModernVersion2(solution, registry2, distTag = "latest") {
145965
+ async function getModernVersion2(solution, registry2, distTag = "modern-1") {
145966
145966
  const dep = _generatorCommon.SolutionToolsMap[solution];
145967
145967
  const modernVersion = await getPackageVersion(`${dep}@${distTag}`, registry2);
145968
145968
  return modernVersion;
145969
145969
  }
145970
145970
  async function getModernPluginVersion(solution, packageName, options3 = {
145971
- distTag: "latest"
145971
+ distTag: "modern-1"
145972
145972
  }) {
145973
145973
  const {
145974
145974
  cwd = process.cwd(),
@@ -146077,7 +146077,7 @@ init_treeshaking4();
146077
146077
  var ZH_LOCALE2 = {
146078
146078
  projectType: "\u9879\u76EE\u7C7B\u578B",
146079
146079
  modernVersion: "Modern.js \u6700\u65B0\u7248\u672C",
146080
- alreadyLatest: "\u5F53\u524D\u9879\u76EE Modern.js \u4F9D\u8D56\u5DF2\u7ECF\u4E3A\u6700\u65B0\u7248\u672C",
146080
+ alreadyLatest: "\u5F53\u524D\u9879\u76EE Modern.js \u4F9D\u8D56\u5DF2\u7ECF\u4E3A v1 \u6700\u65B0\u7248\u672C",
146081
146081
  tooltip: {
146082
146082
  no_solution: `\u5F53\u524D\u9879\u76EE\u4E0D\u5305\u542B Modern.js \u5DE5\u7A0B\u65B9\u6848\u4F9D\u8D56\uFF0C\u8BF7\u5148\u5B89\u88C5\u76F8\u5173\u5DE5\u7A0B\u65B9\u6848\u4F9D\u8D56\u3002
146083
146083
  - \u5E94\u7528\u9879\u76EE(@modern-js/app-tools)
@@ -146085,13 +146085,13 @@ var ZH_LOCALE2 = {
146085
146085
  - Monorepo (@modern-js/monorepo-tools)`,
146086
146086
  more_solution: "\u9879\u76EE\u4E2D\u4E0D\u5141\u8BB8\u540C\u65F6\u5305\u542B\u591A\u79CD\u5DE5\u7A0B\u65B9\u6848\u76F8\u5173\u4F9D\u8D56\uFF0C\u8BF7\u5148\u79FB\u9664\u4E0D\u76F8\u5173\u7684\u5DE5\u7A0B\u65B9\u6848\u4F9D\u8D56\u3002"
146087
146087
  },
146088
- success: "\u5DF2\u66F4\u65B0 Modern.js \u4F9D\u8D56\u81F3\u6700\u65B0\u7248\u672C",
146088
+ success: "\u5DF2\u66F4\u65B0 Modern.js \u4F9D\u8D56\u81F3 v1 \u6700\u65B0\u7248\u672C",
146089
146089
  updateHusky: "\u5347\u7EA7 Husky \u81F3 v8"
146090
146090
  };
146091
146091
  var EN_LOCALE2 = {
146092
146092
  projectType: "Project Type",
146093
- modernVersion: "Modern.js Latest Version",
146094
- alreadyLatest: `The current version of Modern.js is the latest`,
146093
+ modernVersion: "Modern.js v1 Latest Version",
146094
+ alreadyLatest: `The current version of Modern.js v1 is the latest`,
146095
146095
  tooltip: {
146096
146096
  no_solution: "You should install Modern.js solution tools first",
146097
146097
  more_solution: "The project is not allowed to contain more than one solution tool"
@@ -146137,14 +146137,6 @@ var handleTemplateFile = async (context, generator, appApi) => {
146137
146137
  import_generator_utils.fs.writeFileSync(npmrcPath, "strict-peer-dependencies=false");
146138
146138
  }
146139
146139
  }
146140
- if (solutions[0] === Solution.Monorepo && packageManager === PackageManager.Pnpm) {
146141
- await (0, import_generator_utils.execa)("pnpm", ["update", "@modern-js/*", "@modern-js-app/*", "--recursive", "--latest"], {
146142
- stdin: "inherit",
146143
- stdout: "inherit",
146144
- stderr: "inherit"
146145
- });
146146
- return;
146147
- }
146148
146140
  const modernDeps = Object.keys(pkgInfo.dependencies || {}).filter((dep) => dep.startsWith("@modern-js") || dep.startsWith("@modern-js-app"));
146149
146141
  const modernDevDeps = Object.keys(pkgInfo.devDependencies || {}).filter((dep) => dep.startsWith("@modern-js") || dep.startsWith("@modern-js-app"));
146150
146142
  const updateInfo = {};
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.4.12",
14
+ "version": "2.4.13",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -27,11 +27,11 @@
27
27
  "@types/node": "^14",
28
28
  "jest": "^27",
29
29
  "typescript": "^4",
30
- "@modern-js/generator-common": "2.4.12",
31
- "@modern-js/generator-utils": "2.4.12",
32
- "@modern-js/plugin-i18n": "1.22.1",
33
- "@scripts/build": "1.22.1",
34
- "@scripts/jest-config": "1.22.1"
30
+ "@modern-js/generator-common": "2.4.13",
31
+ "@modern-js/generator-utils": "2.4.13",
32
+ "@modern-js/plugin-i18n": "1.22.2",
33
+ "@scripts/build": "1.22.2",
34
+ "@scripts/jest-config": "1.22.2"
35
35
  },
36
36
  "sideEffects": false,
37
37
  "publishConfig": {