@modern-js/repo-generator 0.0.0-next-20230109182747 → 0.0.0-next-20230111171349

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 +47 -16
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -137788,6 +137788,36 @@ var require_getCoreJsVersion = __commonJS({
137788
137788
  }
137789
137789
  });
137790
137790
 
137791
+ // ../../../toolkit/utils/dist/react.js
137792
+ var require_react = __commonJS({
137793
+ "../../../toolkit/utils/dist/react.js"(exports) {
137794
+ "use strict";
137795
+ var __importDefault = exports && exports.__importDefault || function(mod) {
137796
+ return mod && mod.__esModule ? mod : { "default": mod };
137797
+ };
137798
+ Object.defineProperty(exports, "__esModule", { value: true });
137799
+ exports.isBeyondReact17 = void 0;
137800
+ var path_1 = __importDefault(require("path"));
137801
+ var _1 = require_dist2();
137802
+ var isBeyondReact17 = (cwd) => {
137803
+ const pkgPath = path_1.default.join(cwd, "package.json");
137804
+ if (!_1.fs.existsSync(pkgPath)) {
137805
+ return false;
137806
+ }
137807
+ const pkgInfo = JSON.parse(_1.fs.readFileSync(pkgPath, "utf8"));
137808
+ const deps = {
137809
+ ...pkgInfo.devDependencies,
137810
+ ...pkgInfo.dependencies
137811
+ };
137812
+ if (typeof deps.react !== "string") {
137813
+ return false;
137814
+ }
137815
+ return _1.semver.satisfies(_1.semver.minVersion(deps.react), ">=17.0.0");
137816
+ };
137817
+ exports.isBeyondReact17 = isBeyondReact17;
137818
+ }
137819
+ });
137820
+
137791
137821
  // ../../../toolkit/utils/dist/index.js
137792
137822
  var require_dist2 = __commonJS({
137793
137823
  "../../../toolkit/utils/dist/index.js"(exports) {
@@ -137855,6 +137885,7 @@ var require_dist2 = __commonJS({
137855
137885
  __exportStar(require_routes(), exports);
137856
137886
  __exportStar(require_test_utils(), exports);
137857
137887
  __exportStar(require_getCoreJsVersion(), exports);
137888
+ __exportStar(require_react(), exports);
137858
137889
  }
137859
137890
  });
137860
137891
 
@@ -139612,21 +139643,21 @@ var MWANewActionGenerators = {
139612
139643
  };
139613
139644
  var MWANewActionPluginName = {
139614
139645
  [ActionType.Element]: {
139615
- [ActionElement.Server]: "ServerPlugin"
139646
+ [ActionElement.Server]: "serverPlugin"
139616
139647
  },
139617
139648
  [ActionType.Function]: {
139618
- [ActionFunction.TailwindCSS]: "TailwindCSSPlugin",
139619
- [ActionFunction.BFF]: "BFFPlugin",
139620
- [ActionFunction.MicroFrontend]: "GarfishPlugin",
139621
- [ActionFunction.Test]: "TestPlugin",
139622
- [ActionFunction.Storybook]: "StorybookPlugin",
139623
- [ActionFunction.SSG]: "SSGPlugin",
139624
- [ActionFunction.Polyfill]: "PolyfillPlugin",
139625
- [ActionFunction.Proxy]: "ProxyPlugin",
139626
- [ActionFunction.SWC]: "SWCPlugin"
139649
+ [ActionFunction.TailwindCSS]: "tailwindCSSPlugin",
139650
+ [ActionFunction.BFF]: "bffPlugin",
139651
+ [ActionFunction.MicroFrontend]: "garfishPlugin",
139652
+ [ActionFunction.Test]: "testPlugin",
139653
+ [ActionFunction.Storybook]: "storybookPlugin",
139654
+ [ActionFunction.SSG]: "ssgPlugin",
139655
+ [ActionFunction.Polyfill]: "polyfillPlugin",
139656
+ [ActionFunction.Proxy]: "proxyPlugin",
139657
+ [ActionFunction.SWC]: "swcPlugin"
139627
139658
  },
139628
139659
  [ActionType.Refactor]: {
139629
- [ActionRefactor.ReactRouter5]: "ReactRouter5Plugin"
139660
+ [ActionRefactor.ReactRouter5]: "reactRouter5Plugin"
139630
139661
  }
139631
139662
  };
139632
139663
  var MWANewActionPluginDependence = {
@@ -139649,8 +139680,8 @@ var MWANewActionPluginDependence = {
139649
139680
  }
139650
139681
  };
139651
139682
  var BFFPluginName = {
139652
- [Framework.Express]: "ExpressBFFPlugin",
139653
- [Framework.Koa]: "KoaBFFPlugin"
139683
+ [Framework.Express]: "expressPlugin",
139684
+ [Framework.Koa]: "koaPlugin"
139654
139685
  };
139655
139686
  var BFFPluginDependence = {
139656
139687
  [Framework.Express]: "@modern-js/plugin-express",
@@ -139728,9 +139759,9 @@ var ModuleNewActionGenerators = {
139728
139759
  };
139729
139760
  var ModuleNewActionPluginName = {
139730
139761
  [ActionType.Function]: {
139731
- [ActionFunction.TailwindCSS]: "TailwindCSSPlugin",
139732
- [ActionFunction.Storybook]: "StoryBookPlugin",
139733
- [ActionFunction.Test]: "TestPlugin"
139762
+ [ActionFunction.TailwindCSS]: "tailwindCSSPlugin",
139763
+ [ActionFunction.Storybook]: "storybookPlugin",
139764
+ [ActionFunction.Test]: "testPlugin"
139734
139765
  }
139735
139766
  };
139736
139767
  var ModuleNewActionPluginDependence = {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-next-20230109182747",
14
+ "version": "0.0.0-next-20230111171349",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -26,16 +26,16 @@
26
26
  "@types/node": "^14",
27
27
  "jest": "^27",
28
28
  "typescript": "^4",
29
- "@modern-js/base-generator": "0.0.0-next-20230109182747",
30
- "@modern-js/generator-common": "0.0.0-next-20230109182747",
31
- "@modern-js/generator-plugin": "0.0.0-next-20230109182747",
32
- "@modern-js/generator-utils": "0.0.0-next-20230109182747",
33
- "@modern-js/module-generator": "0.0.0-next-20230109182747",
34
- "@modern-js/monorepo-generator": "0.0.0-next-20230109182747",
35
- "@modern-js/mwa-generator": "0.0.0-next-20230109182747",
36
- "@modern-js/utils": "0.0.0-next-20230109182747",
37
- "@scripts/build": "0.0.0-next-20230109182747",
38
- "@scripts/jest-config": "0.0.0-next-20230109182747"
29
+ "@modern-js/base-generator": "0.0.0-next-20230111171349",
30
+ "@modern-js/generator-common": "0.0.0-next-20230111171349",
31
+ "@modern-js/generator-plugin": "0.0.0-next-20230111171349",
32
+ "@modern-js/generator-utils": "0.0.0-next-20230111171349",
33
+ "@modern-js/module-generator": "0.0.0-next-20230111171349",
34
+ "@modern-js/monorepo-generator": "0.0.0-next-20230111171349",
35
+ "@modern-js/mwa-generator": "0.0.0-next-20230111171349",
36
+ "@modern-js/utils": "0.0.0-next-20230111171349",
37
+ "@scripts/build": "0.0.0-next-20230111171349",
38
+ "@scripts/jest-config": "0.0.0-next-20230111171349"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {