@modern-js/repo-generator 0.0.0-next-20240228095700 → 0.0.0-next-20240228182212

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
@@ -84467,9 +84467,13 @@ async function getAvailableVersion(packageName, currentVersion, registry2) {
84467
84467
 
84468
84468
  // ../../generator-utils/dist/esm/utils/getGeneratorPath.js
84469
84469
  var import_path11 = __toESM(require("path"));
84470
- var getGeneratorPath = (generator, distTag) => {
84470
+ var getGeneratorPath = (generator, distTag, paths) => {
84471
84471
  if (process.env.CODESMITH_ENV === "development") {
84472
- return import_path11.default.dirname(require.resolve(generator));
84472
+ return import_path11.default.dirname(require.resolve(generator, {
84473
+ paths: paths !== null && paths !== void 0 ? paths : [
84474
+ process.cwd()
84475
+ ]
84476
+ }));
84473
84477
  } else if (distTag) {
84474
84478
  return `${generator}@${distTag}`;
84475
84479
  }
@@ -87057,7 +87061,7 @@ var handleTemplateFile = async (context, generator, appApi, generatorPlugin) =>
87057
87061
  generator.logger.error("solution is not valid ");
87058
87062
  }
87059
87063
  await appApi.runSubGenerator(
87060
- getGeneratorPath(solutionGenerator, context.config.distTag),
87064
+ getGeneratorPath(solutionGenerator, context.config.distTag, [__dirname]),
87061
87065
  void 0,
87062
87066
  {
87063
87067
  ...isMonorepo ? MonorepoNewActionConfig[solution] || {} : {},
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-20240228095700",
18
+ "version": "0.0.0-next-20240228182212",
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": "0.0.0-next-20240228095700"
26
+ "@modern-js/utils": "0.0.0-next-20240228182212"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@modern-js/codesmith": "2.3.5",
@@ -32,15 +32,15 @@
32
32
  "@types/node": "^14",
33
33
  "jest": "^29",
34
34
  "typescript": "^5",
35
- "@modern-js/base-generator": "0.0.0-next-20240228095700",
36
- "@modern-js/generator-common": "0.0.0-next-20240228095700",
37
- "@modern-js/generator-plugin": "0.0.0-next-20240228095700",
38
- "@modern-js/generator-utils": "0.0.0-next-20240228095700",
39
- "@modern-js/module-generator": "0.0.0-next-20240228095700",
40
- "@modern-js/monorepo-generator": "0.0.0-next-20240228095700",
41
- "@modern-js/mwa-generator": "0.0.0-next-20240228095700",
42
- "@scripts/build": "0.0.0-next-20240228095700",
43
- "@scripts/jest-config": "0.0.0-next-20240228095700"
35
+ "@modern-js/base-generator": "0.0.0-next-20240228182212",
36
+ "@modern-js/generator-common": "0.0.0-next-20240228182212",
37
+ "@modern-js/generator-plugin": "0.0.0-next-20240228182212",
38
+ "@modern-js/generator-utils": "0.0.0-next-20240228182212",
39
+ "@modern-js/module-generator": "0.0.0-next-20240228182212",
40
+ "@modern-js/monorepo-generator": "0.0.0-next-20240228182212",
41
+ "@modern-js/mwa-generator": "0.0.0-next-20240228182212",
42
+ "@scripts/build": "0.0.0-next-20240228182212",
43
+ "@scripts/jest-config": "0.0.0-next-20240228182212"
44
44
  },
45
45
  "sideEffects": false,
46
46
  "publishConfig": {
package/src/index.ts CHANGED
@@ -75,7 +75,7 @@ const handleTemplateFile = async (
75
75
  }
76
76
 
77
77
  await appApi.runSubGenerator(
78
- getGeneratorPath(solutionGenerator, context.config.distTag),
78
+ getGeneratorPath(solutionGenerator, context.config.distTag, [__dirname]),
79
79
  undefined,
80
80
  {
81
81
  ...(isMonorepo