@modern-js/upgrade-generator 3.2.11 → 3.3.0

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 +21 -28
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -63437,6 +63437,15 @@ var JsonAPI = class {
63437
63437
  var import_path5 = __toESM(require("path"));
63438
63438
  var import_utils17 = require("@modern-js/utils");
63439
63439
 
63440
+ // ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_define_property.js
63441
+ function _define_property2(obj, key, value) {
63442
+ if (key in obj) {
63443
+ Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
63444
+ } else
63445
+ obj[key] = value;
63446
+ return obj;
63447
+ }
63448
+
63440
63449
  // ../../../cli/plugin-i18n/dist/esm-node/index.js
63441
63450
  var import_lodash7 = require("@modern-js/utils/lodash");
63442
63451
 
@@ -63495,8 +63504,8 @@ var I18n2 = class {
63495
63504
  };
63496
63505
  }
63497
63506
  constructor() {
63498
- _define_property(this, "language", "en");
63499
- _define_property(this, "languageMap", {});
63507
+ _define_property2(this, "language", "en");
63508
+ _define_property2(this, "languageMap", {});
63500
63509
  }
63501
63510
  };
63502
63511
 
@@ -63537,7 +63546,8 @@ var ZH_LOCALE2 = {
63537
63546
  polyfill: "启用「基于 UA 的 Polyfill」功能",
63538
63547
  proxy: "启用「全局代理」",
63539
63548
  swc: "启用「SWC 编译」",
63540
- rspack: "启用「Rspack 构建」(实验性)"
63549
+ rspack: "启用「Rspack 构建」(实验性)",
63550
+ module_doc: "启动「模块文档」功能"
63541
63551
  },
63542
63552
  element: {
63543
63553
  self: "创建工程元素",
@@ -63635,7 +63645,8 @@ var EN_LOCALE2 = {
63635
63645
  polyfill: "Enable UA-based Polyfill Feature",
63636
63646
  proxy: "Enable Global Proxy",
63637
63647
  swc: "Enable SWC Compile",
63638
- rspack: "Enable Rspack Build (experimental)"
63648
+ rspack: "Enable Rspack Build (experimental)",
63649
+ module_doc: "Enable Module Doc"
63639
63650
  },
63640
63651
  element: {
63641
63652
  self: "Create Element",
@@ -63715,27 +63726,14 @@ var SubSolution;
63715
63726
  SubSolution2["Module"] = "module";
63716
63727
  })(SubSolution || (SubSolution = {}));
63717
63728
  var SolutionText = {
63718
- [Solution.MWA]: () => i18n2.t(localeKeys2.solution.mwa),
63719
- [Solution.Module]: () => i18n2.t(localeKeys2.solution.module),
63720
- [Solution.Monorepo]: () => i18n2.t(localeKeys2.solution.monorepo)
63721
- };
63722
- var SubSolutionText = {
63723
- [SubSolution.MWA]: () => i18n2.t(localeKeys2.sub_solution.mwa),
63724
- [SubSolution.Module]: () => i18n2.t(localeKeys2.sub_solution.module)
63729
+ ["mwa"]: () => i18n2.t(localeKeys2.solution.mwa),
63730
+ ["module"]: () => i18n2.t(localeKeys2.solution.module),
63731
+ ["monorepo"]: () => i18n2.t(localeKeys2.solution.monorepo)
63725
63732
  };
63726
63733
  var SolutionToolsMap = {
63727
- [Solution.MWA]: "@modern-js/app-tools",
63728
- [Solution.Module]: "@modern-js/module-tools",
63729
- [Solution.Monorepo]: "@modern-js/monorepo-tools"
63730
- };
63731
- var SolutionGenerator = {
63732
- [Solution.MWA]: "@modern-js/mwa-generator",
63733
- [Solution.Module]: "@modern-js/module-generator",
63734
- [Solution.Monorepo]: "@modern-js/monorepo-generator"
63735
- };
63736
- var SubSolutionGenerator = {
63737
- [SubSolution.MWA]: "@modern-js/mwa-generator",
63738
- [SubSolution.Module]: "@modern-js/module-generator"
63734
+ ["mwa"]: "@modern-js/app-tools",
63735
+ ["module"]: "@modern-js/module-tools",
63736
+ ["monorepo"]: "@modern-js/monorepo-tools"
63739
63737
  };
63740
63738
 
63741
63739
  // ../../generator-common/dist/esm-node/common/packageManager.js
@@ -63745,11 +63743,6 @@ var PackageManager;
63745
63743
  PackageManager2["Yarn"] = "yarn";
63746
63744
  PackageManager2["Npm"] = "npm";
63747
63745
  })(PackageManager || (PackageManager = {}));
63748
- var PackageManagerName = {
63749
- [PackageManager.Pnpm]: "pnpm",
63750
- [PackageManager.Yarn]: "Yarn",
63751
- [PackageManager.Npm]: "npm"
63752
- };
63753
63746
 
63754
63747
  // ../../generator-utils/dist/esm/utils/stripAnsi.js
63755
63748
  function ansiRegex2({ onlyFirst = false } = {}) {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.2.11",
18
+ "version": "3.3.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -23,7 +23,7 @@
23
23
  "/dist/index.js"
24
24
  ],
25
25
  "dependencies": {
26
- "@modern-js/utils": "2.40.0"
26
+ "@modern-js/utils": "2.41.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@modern-js/codesmith": "2.3.0",
@@ -33,11 +33,11 @@
33
33
  "@types/node": "^14",
34
34
  "jest": "^29",
35
35
  "typescript": "^5",
36
- "@modern-js/generator-common": "3.2.11",
37
- "@modern-js/generator-utils": "3.2.11",
38
- "@modern-js/plugin-i18n": "2.40.0",
39
- "@scripts/build": "2.40.0",
40
- "@scripts/jest-config": "2.40.0"
36
+ "@modern-js/generator-utils": "3.3.0",
37
+ "@modern-js/generator-common": "3.3.0",
38
+ "@scripts/build": "2.41.0",
39
+ "@scripts/jest-config": "2.41.0",
40
+ "@modern-js/plugin-i18n": "2.41.0"
41
41
  },
42
42
  "sideEffects": false,
43
43
  "publishConfig": {