@modern-js/upgrade-generator 2.3.5 → 2.4.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 +2 -2
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -131758,7 +131758,7 @@ var init_solution = __esmMin(() => {
131758
131758
  mutualExclusion: true,
131759
131759
  items: function items(_data, extra) {
131760
131760
  var _extra$customPlugin, _extra$customPlugin$c;
131761
- var items5 = Object.values(Solution).filter(function(solution) {
131761
+ var items5 = ((extra === null || extra === void 0 ? void 0 : extra.solutions) || Object.values(Solution)).filter(function(solution) {
131762
131762
  return !(extra !== null && extra !== void 0 && extra.isSubProject && solution === Solution.Monorepo);
131763
131763
  }).map(function(solution) {
131764
131764
  return {
@@ -133160,7 +133160,7 @@ var handleTemplateFile = async (context, generator, appApi) => {
133160
133160
  });
133161
133161
  spinner.stop();
133162
133162
  const huskyVersion = deps.husky;
133163
- if (import_generator_utils.semver.lt(huskyVersion, "8.0.0")) {
133163
+ if (huskyVersion && import_generator_utils.semver.lt(huskyVersion, "8.0.0")) {
133164
133164
  generator.logger.info(`${i18n2.t(localeKeys2.updateHusky)}`);
133165
133165
  await jsonAPI.update(context.materials.default.get(import_path.default.join(appDir, "package.json")), {
133166
133166
  query: {},
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.3.5",
14
+ "version": "2.4.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -23,11 +23,11 @@
23
23
  "@modern-js/codesmith": "^1.5.0",
24
24
  "@modern-js/codesmith-api-app": "^1.5.0",
25
25
  "@modern-js/codesmith-api-json": "^1.5.0",
26
- "@modern-js/generator-common": "2.3.4",
27
- "@modern-js/generator-utils": "2.3.4",
28
- "@modern-js/plugin-i18n": "1.18.1",
29
- "@scripts/build": "1.18.1",
30
- "@scripts/jest-config": "1.18.1",
26
+ "@modern-js/generator-common": "2.4.0",
27
+ "@modern-js/generator-utils": "2.4.0",
28
+ "@modern-js/plugin-i18n": "1.19.0",
29
+ "@scripts/build": "1.19.0",
30
+ "@scripts/jest-config": "1.19.0",
31
31
  "@types/jest": "^27",
32
32
  "@types/node": "^14",
33
33
  "jest": "^27",