@modern-js/repo-generator 0.0.0-next-1687334871558 → 0.0.0-next-1687370848744

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 +23 -2
  2. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -147159,6 +147159,15 @@ function getGeneratorPath(generator, distTag) {
147159
147159
  }
147160
147160
  return generator;
147161
147161
  }
147162
+ function usePluginNameExport(solution, options) {
147163
+ return __async(this, null, function* () {
147164
+ const solutionVersion = yield getModernPluginVersion(solution, SolutionToolsMap[Solution.MWA], options);
147165
+ if (import_utils30.semver.valid(solutionVersion) && import_utils30.semver.gte(solutionVersion, "2.0.0")) {
147166
+ return import_utils30.semver.gt(solutionVersion, "2.24.0");
147167
+ }
147168
+ return true;
147169
+ });
147170
+ }
147162
147171
 
147163
147172
  // ../../new-action/dist/esm/mwa.js
147164
147173
  var import_lodash11 = __toESM(require_lodash2());
@@ -147215,6 +147224,11 @@ var MWANewAction = (options) => __async(void 0, null, function* () {
147215
147224
  };
147216
147225
  const devDependency = MWAActionFunctionsDevDependencies[action2];
147217
147226
  const dependency = MWAActionFunctionsDependencies[action2] || MWAActionRefactorDependencies[action2];
147227
+ const shouldUsePluginNameExport = yield usePluginNameExport(Solution.MWA, {
147228
+ registry: registry2,
147229
+ distTag,
147230
+ cwd
147231
+ });
147218
147232
  const finalConfig = (0, import_lodash11.merge)(UserConfig, ans, {
147219
147233
  locale: UserConfig.locale || locale,
147220
147234
  packageManager: UserConfig.packageManager || (yield (0, import_utils27.getPackageManager)(cwd)),
@@ -147228,7 +147242,8 @@ var MWANewAction = (options) => __async(void 0, null, function* () {
147228
147242
  } : {},
147229
147243
  appendTypeContent: MWAActionFunctionsAppendTypeContent[action2] || MWAActionReactorAppendTypeContent[action2],
147230
147244
  pluginName: MWANewActionPluginName[actionType][action2],
147231
- pluginDependence: MWANewActionPluginDependence[actionType][action2]
147245
+ pluginDependence: MWANewActionPluginDependence[actionType][action2],
147246
+ shouldUsePluginNameExport
147232
147247
  });
147233
147248
  const task = [
147234
147249
  {
@@ -147303,6 +147318,11 @@ var ModuleNewAction = (options) => __async(void 0, null, function* () {
147303
147318
  cwd
147304
147319
  });
147305
147320
  };
147321
+ const shouldUsePluginNameExport = yield usePluginNameExport(Solution.Module, {
147322
+ registry: registry2,
147323
+ distTag,
147324
+ cwd
147325
+ });
147306
147326
  const finalConfig = (0, import_lodash12.merge)(UserConfig, ans, {
147307
147327
  locale: UserConfig.locale || locale,
147308
147328
  packageManager: UserConfig.packageManager || (yield (0, import_utils27.getPackageManager)(cwd)),
@@ -147318,7 +147338,8 @@ var ModuleNewAction = (options) => __async(void 0, null, function* () {
147318
147338
  [peerDependency]: `${yield getModulePluginVersion(peerDependency)}`
147319
147339
  } : {},
147320
147340
  pluginName: ModuleNewActionPluginName[actionType][action2],
147321
- pluginDependence: ModuleNewActionPluginDependence[actionType][action2]
147341
+ pluginDependence: ModuleNewActionPluginDependence[actionType][action2],
147342
+ shouldUsePluginNameExport
147322
147343
  });
147323
147344
  const task = [
147324
147345
  {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-1687334871558",
18
+ "version": "0.0.0-next-1687370848744",
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-1687334871558",
33
- "@modern-js/generator-utils": "0.0.0-next-1687334871558",
34
- "@modern-js/module-generator": "0.0.0-next-1687334871558",
35
- "@modern-js/monorepo-generator": "0.0.0-next-1687334871558",
36
- "@modern-js/mwa-generator": "0.0.0-next-1687334871558",
37
- "@modern-js/doc-generator": "0.0.0-next-1687334871558",
38
- "@modern-js/utils": "0.0.0-next-1687334871558",
39
- "@modern-js/generator-common": "0.0.0-next-1687334871558",
40
- "@modern-js/generator-plugin": "0.0.0-next-1687334871558",
41
- "@scripts/jest-config": "0.0.0-next-1687334871558",
42
- "@scripts/build": "0.0.0-next-1687334871558"
32
+ "@modern-js/base-generator": "0.0.0-next-1687370848744",
33
+ "@modern-js/generator-common": "0.0.0-next-1687370848744",
34
+ "@modern-js/generator-plugin": "0.0.0-next-1687370848744",
35
+ "@modern-js/generator-utils": "0.0.0-next-1687370848744",
36
+ "@modern-js/module-generator": "0.0.0-next-1687370848744",
37
+ "@modern-js/monorepo-generator": "0.0.0-next-1687370848744",
38
+ "@modern-js/mwa-generator": "0.0.0-next-1687370848744",
39
+ "@modern-js/doc-generator": "0.0.0-next-1687370848744",
40
+ "@modern-js/utils": "0.0.0-next-1687370848744",
41
+ "@scripts/build": "0.0.0-next-1687370848744",
42
+ "@scripts/jest-config": "0.0.0-next-1687370848744"
43
43
  },
44
44
  "sideEffects": false,
45
45
  "publishConfig": {