@modern-js/upgrade-generator 3.7.0 → 3.7.1-alpha.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.
package/dist/index.js CHANGED
@@ -601,7 +601,7 @@
601
601
  throw Error(i18n2.t(localeKeys2.tooltip.more_solution));
602
602
  }
603
603
  generator.logger.info(`[${i18n2.t(localeKeys2.projectType)}]: ${SolutionText[solutions[0]]()}`);
604
- const modernVersion = yield getModernVersion(solutions[0], context.config.registry, context.config.distTag);
604
+ const modernVersion = yield getModernVersion(solutions[0], context.config.registry, context.config.distTag || "latest");
605
605
  generator.logger.info(`[${i18n2.t(localeKeys2.modernVersion)}]: ${modernVersion}`);
606
606
  if (Object.keys(deps).filter((dep)=>dep.startsWith("@modern-js") || dep.startsWith("@modern-js-app")).filter((dep)=>!dep.includes("electron")).filter((dep)=>!dep.includes("codesmith") && !dep.includes("easy-form")).filter((dep)=>!dep.startsWith("@modern-js-reduck")).filter((dep)=>!dep.includes("eslint-config")).every((dep)=>deps[dep] === modernVersion)) {
607
607
  generator.logger.info(`[${i18n2.t(localeKeys2.alreadyLatest)}]: ${modernVersion}`);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.7.0",
18
+ "version": "3.7.1-alpha.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -31,17 +31,16 @@
31
31
  "@types/node": "^14",
32
32
  "jest": "^29",
33
33
  "typescript": "^5",
34
- "@modern-js/generator-utils": "3.7.0",
35
34
  "@modern-js/generator-common": "3.7.0",
35
+ "@scripts/build": "2.60.4",
36
36
  "@modern-js/plugin-i18n": "2.60.4",
37
- "@scripts/jest-config": "2.60.4",
38
- "@scripts/build": "2.60.4"
37
+ "@modern-js/generator-utils": "3.7.0",
38
+ "@scripts/jest-config": "2.60.4"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {
42
42
  "registry": "https://registry.npmjs.org/",
43
- "access": "public",
44
- "provenance": true
43
+ "access": "public"
45
44
  },
46
45
  "types": "./src/index.ts",
47
46
  "scripts": {
package/src/index.ts CHANGED
@@ -77,7 +77,7 @@ export const handleTemplateFile = async (
77
77
  const modernVersion = await getModernVersion(
78
78
  solutions[0] as Solution,
79
79
  context.config.registry,
80
- context.config.distTag,
80
+ context.config.distTag || 'latest',
81
81
  );
82
82
 
83
83
  generator.logger.info(