@modern-js/repo-generator 0.0.0-next-1684832076898 → 0.0.0-next-1684842808938

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 +9 -2
  2. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -145425,11 +145425,18 @@ function getModernPluginVersion(_0, _1) {
145425
145425
  if (!packageName.startsWith("@modern-js") || packageName.includes("electron") || packageName.includes("codesmith") || packageName.includes("easy-form") || packageName.startsWith("@modern-js-reduck")) {
145426
145426
  return getLatetPluginVersion("latest");
145427
145427
  }
145428
- const pkgPath = import_path11.default.join(require.resolve(SolutionToolsMap[solution], {
145428
+ let pkgPath = import_path11.default.join(require.resolve(SolutionToolsMap[solution], {
145429
145429
  paths: [
145430
145430
  cwd
145431
145431
  ]
145432
- }), "../../../../", "package.json");
145432
+ }), "../../..", "package.json");
145433
+ if (solution === Solution.Module) {
145434
+ pkgPath = import_path11.default.join(require.resolve(SolutionToolsMap[solution], {
145435
+ paths: [
145436
+ cwd
145437
+ ]
145438
+ }), "../..", "package.json");
145439
+ }
145433
145440
  if (import_utils26.fs.existsSync(pkgPath)) {
145434
145441
  const pkgInfo = import_utils26.fs.readJSONSync(pkgPath);
145435
145442
  const modernVersion = pkgInfo.version;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-1684832076898",
18
+ "version": "0.0.0-next-1684842808938",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -29,17 +29,17 @@
29
29
  "@types/node": "^14",
30
30
  "jest": "^29",
31
31
  "typescript": "^5",
32
- "@modern-js/base-generator": "0.0.0-next-1684832076898",
33
- "@modern-js/generator-common": "0.0.0-next-1684832076898",
34
- "@modern-js/generator-plugin": "0.0.0-next-1684832076898",
35
- "@modern-js/generator-utils": "0.0.0-next-1684832076898",
36
- "@modern-js/module-generator": "0.0.0-next-1684832076898",
37
- "@modern-js/monorepo-generator": "0.0.0-next-1684832076898",
38
- "@modern-js/mwa-generator": "0.0.0-next-1684832076898",
39
- "@modern-js/doc-generator": "0.0.0-next-1684832076898",
40
- "@modern-js/utils": "0.0.0-next-1684832076898",
41
- "@scripts/build": "0.0.0-next-1684832076898",
42
- "@scripts/jest-config": "0.0.0-next-1684832076898"
32
+ "@modern-js/base-generator": "0.0.0-next-1684842808938",
33
+ "@modern-js/generator-common": "0.0.0-next-1684842808938",
34
+ "@modern-js/generator-plugin": "0.0.0-next-1684842808938",
35
+ "@modern-js/generator-utils": "0.0.0-next-1684842808938",
36
+ "@modern-js/module-generator": "0.0.0-next-1684842808938",
37
+ "@modern-js/monorepo-generator": "0.0.0-next-1684842808938",
38
+ "@modern-js/mwa-generator": "0.0.0-next-1684842808938",
39
+ "@modern-js/doc-generator": "0.0.0-next-1684842808938",
40
+ "@modern-js/utils": "0.0.0-next-1684842808938",
41
+ "@scripts/build": "0.0.0-next-1684842808938",
42
+ "@scripts/jest-config": "0.0.0-next-1684842808938"
43
43
  },
44
44
  "sideEffects": false,
45
45
  "publishConfig": {