@modern-js/repo-generator 0.0.0-canary-20220817033113 → 0.0.0-canary-20220818071127

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 +1 -34
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -131722,6 +131722,7 @@ var require_chainId2 = __commonJSMin((exports) => {
131722
131722
  LOADERS: "loaders",
131723
131723
  FONT: "font",
131724
131724
  IMAGE: "image",
131725
+ MEDIA: "media",
131725
131726
  JS: "js",
131726
131727
  TS: "ts",
131727
131728
  CSS: "css",
@@ -131797,32 +131798,6 @@ var require_chainId2 = __commonJSMin((exports) => {
131797
131798
  }
131798
131799
  };
131799
131800
  });
131800
- var require_reactVersion = __commonJSMin((exports) => {
131801
- "use strict";
131802
- var __importDefault = exports && exports.__importDefault || function(mod) {
131803
- return mod && mod.__esModule ? mod : { "default": mod };
131804
- };
131805
- Object.defineProperty(exports, "__esModule", { value: true });
131806
- exports.isBeyondReact18 = void 0;
131807
- var path_1 = __importDefault(__require("path"));
131808
- var compiled_1 = require_compiled2();
131809
- var isBeyondReact18 = (cwd) => {
131810
- const pkgPath = path_1.default.join(cwd, "package.json");
131811
- if (!compiled_1.fs.existsSync(pkgPath)) {
131812
- return false;
131813
- }
131814
- const pkgInfo = JSON.parse(compiled_1.fs.readFileSync(pkgPath, "utf8"));
131815
- const deps = {
131816
- ...pkgInfo.devDependencies,
131817
- ...pkgInfo.dependencies
131818
- };
131819
- if (typeof deps.react !== "string") {
131820
- return false;
131821
- }
131822
- return compiled_1.semver.satisfies(compiled_1.semver.minVersion(deps.react), ">=18.0.0");
131823
- };
131824
- exports.isBeyondReact18 = isBeyondReact18;
131825
- });
131826
131801
  var require_dist2 = __commonJSMin((exports) => {
131827
131802
  "use strict";
131828
131803
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -131882,7 +131857,6 @@ var require_dist2 = __commonJSMin((exports) => {
131882
131857
  __exportStar(require_tryResolve2(), exports);
131883
131858
  __exportStar(require_analyzeProject2(), exports);
131884
131859
  __exportStar(require_chainId2(), exports);
131885
- __exportStar(require_reactVersion(), exports);
131886
131860
  });
131887
131861
  var require_strip_ansi4 = __commonJSMin((exports) => {
131888
131862
  "use strict";
@@ -131993,7 +131967,6 @@ var require_node8 = __commonJSMin((exports) => {
131993
131967
  canUseNpm: true,
131994
131968
  canUsePnpm: true,
131995
131969
  canUseYarn: true,
131996
- isBeyondReact18: true,
131997
131970
  i18n: true
131998
131971
  };
131999
131972
  Object.defineProperty(exports, "canUseNpm", {
@@ -132044,12 +132017,6 @@ var require_node8 = __commonJSMin((exports) => {
132044
132017
  return _locale.i18n;
132045
132018
  }
132046
132019
  });
132047
- Object.defineProperty(exports, "isBeyondReact18", {
132048
- enumerable: true,
132049
- get: function() {
132050
- return _utils.isBeyondReact18;
132051
- }
132052
- });
132053
132020
  exports.isTsProject = isTsProject;
132054
132021
  Object.defineProperty(exports, "readTsConfigByFile", {
132055
132022
  enumerable: true,
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-canary-20220817033113",
14
+ "version": "0.0.0-canary-20220818071127",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -25,20 +25,20 @@
25
25
  "@babel/runtime": "^7.18.0",
26
26
  "@modern-js/codesmith": "^1.4.0",
27
27
  "@modern-js/codesmith-api-app": "^1.3.0",
28
- "@modern-js/generator-common": "0.0.0-canary-20220817033113",
29
- "@modern-js/generator-utils": "0.0.0-canary-20220817033113",
30
- "@modern-js/module-generator": "0.0.0-canary-20220817033113",
31
- "@modern-js/monorepo-generator": "0.0.0-canary-20220817033113",
32
- "@modern-js/mwa-generator": "0.0.0-canary-20220817033113",
33
- "@modern-js/base-generator": "0.0.0-canary-20220817033113",
34
- "@modern-js/generator-plugin": "0.0.0-canary-20220817033113",
35
- "@modern-js/utils": "0.0.0-canary-20220817033113",
28
+ "@modern-js/generator-common": "0.0.0-canary-20220818071127",
29
+ "@modern-js/generator-utils": "0.0.0-canary-20220818071127",
30
+ "@modern-js/module-generator": "0.0.0-canary-20220818071127",
31
+ "@modern-js/monorepo-generator": "0.0.0-canary-20220818071127",
32
+ "@modern-js/mwa-generator": "0.0.0-canary-20220818071127",
33
+ "@modern-js/base-generator": "0.0.0-canary-20220818071127",
34
+ "@modern-js/generator-plugin": "0.0.0-canary-20220818071127",
35
+ "@modern-js/utils": "0.0.0-canary-20220818071127",
36
36
  "@types/jest": "^27",
37
37
  "@types/node": "^14",
38
38
  "typescript": "^4",
39
- "@scripts/build": "0.0.0-canary-20220817033113",
39
+ "@scripts/build": "0.0.0-canary-20220818071127",
40
40
  "jest": "^27",
41
- "@scripts/jest-config": "0.0.0-canary-20220817033113"
41
+ "@scripts/jest-config": "0.0.0-canary-20220818071127"
42
42
  },
43
43
  "sideEffects": false,
44
44
  "modernConfig": {