@modern-js/repo-generator 0.0.0-canary-20220816055613 → 0.0.0-canary-20220817015832

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 +3 -39
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -100842,7 +100842,7 @@ var init_mwa2 = __esmMin(() => {
100842
100842
  })
100843
100843
  }]
100844
100844
  };
100845
- MWAActionFunctionsDevDependencies = (_MWAActionFunctionsDe = {}, _defineProperty(_MWAActionFunctionsDe, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.SSG, "@modern-js/plugin-ssg"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Test, "@modern-js/plugin-testing"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.E2ETest, "@modern-js/plugin-e2e"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Doc, "@modern-js/plugin-docsite"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Electron, "@modern-js/plugin-electron"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Proxy, "@modern-js/plugin-proxy"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.TailwindCSS, "tailwindcss"), _MWAActionFunctionsDe);
100845
+ MWAActionFunctionsDevDependencies = (_MWAActionFunctionsDe = {}, _defineProperty(_MWAActionFunctionsDe, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.SSG, "@modern-js/plugin-ssg"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Test, "@modern-js/plugin-testing"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.E2ETest, "@modern-js/plugin-e2e"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Electron, "@modern-js/plugin-electron"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Proxy, "@modern-js/plugin-proxy"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.TailwindCSS, "tailwindcss"), _MWAActionFunctionsDe);
100846
100846
  MWAActionFunctionsDependencies = (_MWAActionFunctionsDe2 = {}, _defineProperty(_MWAActionFunctionsDe2, ActionFunction.BFF, "@modern-js/plugin-bff"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.MicroFrontend, "@modern-js/plugin-garfish"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.Polyfill, "@modern-js/plugin-polyfill"), _MWAActionFunctionsDe2);
100847
100847
  MWAActionFunctionsAppendTypeContent = _defineProperty({}, ActionFunction.MicroFrontend, "/// <reference types='@modern-js/plugin-garfish/types' />");
100848
100848
  MWANewActionGenerators = (_MWANewActionGenerato = {}, _defineProperty(_MWANewActionGenerato, ActionType.Element, (_ActionType$Element = {}, _defineProperty(_ActionType$Element, ActionElement.Entry, "@modern-js/entry-generator"), _defineProperty(_ActionType$Element, ActionElement.Server, "@modern-js/server-generator"), _ActionType$Element)), _defineProperty(_MWANewActionGenerato, ActionType.Function, (_ActionType$Function = {}, _defineProperty(_ActionType$Function, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function, ActionFunction.Less, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Sass, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.BFF, "@modern-js/bff-generator"), _defineProperty(_ActionType$Function, ActionFunction.MicroFrontend, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Electron, "@modern-js/electron-generator"), _defineProperty(_ActionType$Function, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Test, "@modern-js/test-generator"), _defineProperty(_ActionType$Function, ActionFunction.E2ETest, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Storybook, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.SSG, "@modern-js/ssg-generator"), _defineProperty(_ActionType$Function, ActionFunction.Polyfill, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Deploy, "@modern-js/cloud-deploy-generator"), _defineProperty(_ActionType$Function, ActionFunction.Proxy, "@modern-js/dependence-generator"), _ActionType$Function)), _defineProperty(_MWANewActionGenerato, ActionType.Refactor, _defineProperty({}, ActionRefactor.BFFToApp, "@modern-js/bff-refactor-generator")), _MWANewActionGenerato);
@@ -100888,7 +100888,7 @@ var init_module2 = __esmMin(() => {
100888
100888
  })
100889
100889
  }]
100890
100890
  };
100891
- ModuleActionFunctionsDevDependencies = (_ModuleActionFunction = {}, _defineProperty(_ModuleActionFunction, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty(_ModuleActionFunction, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty(_ModuleActionFunction, ActionFunction.Doc, "@modern-js/plugin-docsite"), _defineProperty(_ModuleActionFunction, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_ModuleActionFunction, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction);
100891
+ ModuleActionFunctionsDevDependencies = (_ModuleActionFunction = {}, _defineProperty(_ModuleActionFunction, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty(_ModuleActionFunction, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty(_ModuleActionFunction, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_ModuleActionFunction, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction);
100892
100892
  ModuleActionFunctionsPeerDependencies = (_ModuleActionFunction2 = {}, _defineProperty(_ModuleActionFunction2, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction2, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction2);
100893
100893
  ModuleActionFunctionsDependencies = (_ModuleActionFunction3 = {}, _defineProperty(_ModuleActionFunction3, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_ModuleActionFunction3, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _ModuleActionFunction3);
100894
100894
  ModuleNewActionGenerators = _defineProperty({}, ActionType.Function, (_ActionType$Function2 = {}, _defineProperty(_ActionType$Function2, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Less, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Sass, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Test, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Storybook, "@modern-js/storybook-generator"), _defineProperty(_ActionType$Function2, ActionFunction.RuntimeApi, "@modern-js/dependence-generator"), _ActionType$Function2));
@@ -130095,7 +130095,6 @@ var require_format2 = __commonJSMin((exports) => {
130095
130095
  return message.includes(friendlySyntaxErrorLabel);
130096
130096
  }
130097
130097
  function formatMessage(stats) {
130098
- var _a;
130099
130098
  let lines = [];
130100
130099
  let message;
130101
130100
  if (typeof stats === "object") {
@@ -130128,7 +130127,7 @@ ${stats.stack}` : "";
130128
130127
  lines.splice(1, 1);
130129
130128
  }
130130
130129
  lines[0] = lines[0].replace(/^(.*) \d+:\d+-\d+$/, "$1");
130131
- if (((_a = lines[1]) === null || _a === void 0 ? void 0 : _a.indexOf("Module not found:")) !== -1) {
130130
+ if (lines[1] && lines[1].indexOf("Module not found:") !== -1) {
130132
130131
  lines[1] = lines[1].replace("Error: ", "");
130133
130132
  }
130134
130133
  message = lines.join("\n");
@@ -130678,7 +130677,6 @@ var require_constants6 = __commonJSMin((exports) => {
130678
130677
  "@modern-js/plugin-electron": { cli: "@modern-js/plugin-electron/cli" },
130679
130678
  "@modern-js/plugin-testing": { cli: "@modern-js/plugin-testing/cli" },
130680
130679
  "@modern-js/plugin-storybook": { cli: "@modern-js/plugin-storybook/cli" },
130681
- "@modern-js/plugin-docsite": { cli: "@modern-js/plugin-docsite/cli" },
130682
130680
  "@modern-js/plugin-express": {
130683
130681
  cli: "@modern-js/plugin-express/cli",
130684
130682
  server: "@modern-js/plugin-express"
@@ -131799,32 +131797,6 @@ var require_chainId2 = __commonJSMin((exports) => {
131799
131797
  }
131800
131798
  };
131801
131799
  });
131802
- var require_reactVersion = __commonJSMin((exports) => {
131803
- "use strict";
131804
- var __importDefault = exports && exports.__importDefault || function(mod) {
131805
- return mod && mod.__esModule ? mod : { "default": mod };
131806
- };
131807
- Object.defineProperty(exports, "__esModule", { value: true });
131808
- exports.isBeyondReact18 = void 0;
131809
- var path_1 = __importDefault(__require("path"));
131810
- var compiled_1 = require_compiled2();
131811
- var isBeyondReact18 = (cwd) => {
131812
- const pkgPath = path_1.default.join(cwd, "package.json");
131813
- if (!compiled_1.fs.existsSync(pkgPath)) {
131814
- return false;
131815
- }
131816
- const pkgInfo = JSON.parse(compiled_1.fs.readFileSync(pkgPath, "utf8"));
131817
- const deps = {
131818
- ...pkgInfo.devDependencies,
131819
- ...pkgInfo.dependencies
131820
- };
131821
- if (typeof deps.react !== "string") {
131822
- return false;
131823
- }
131824
- return compiled_1.semver.satisfies(compiled_1.semver.minVersion(deps.react), ">=18.0.0");
131825
- };
131826
- exports.isBeyondReact18 = isBeyondReact18;
131827
- });
131828
131800
  var require_dist2 = __commonJSMin((exports) => {
131829
131801
  "use strict";
131830
131802
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -131884,7 +131856,6 @@ var require_dist2 = __commonJSMin((exports) => {
131884
131856
  __exportStar(require_tryResolve2(), exports);
131885
131857
  __exportStar(require_analyzeProject2(), exports);
131886
131858
  __exportStar(require_chainId2(), exports);
131887
- __exportStar(require_reactVersion(), exports);
131888
131859
  });
131889
131860
  var require_strip_ansi4 = __commonJSMin((exports) => {
131890
131861
  "use strict";
@@ -131995,7 +131966,6 @@ var require_node8 = __commonJSMin((exports) => {
131995
131966
  canUseNpm: true,
131996
131967
  canUsePnpm: true,
131997
131968
  canUseYarn: true,
131998
- isBeyondReact18: true,
131999
131969
  i18n: true
132000
131970
  };
132001
131971
  Object.defineProperty(exports, "canUseNpm", {
@@ -132046,12 +132016,6 @@ var require_node8 = __commonJSMin((exports) => {
132046
132016
  return _locale.i18n;
132047
132017
  }
132048
132018
  });
132049
- Object.defineProperty(exports, "isBeyondReact18", {
132050
- enumerable: true,
132051
- get: function() {
132052
- return _utils.isBeyondReact18;
132053
- }
132054
- });
132055
132019
  exports.isTsProject = isTsProject;
132056
132020
  Object.defineProperty(exports, "readTsConfigByFile", {
132057
132021
  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-20220816055613",
14
+ "version": "0.0.0-canary-20220817015832",
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-20220816055613",
29
- "@modern-js/generator-utils": "0.0.0-canary-20220816055613",
30
- "@modern-js/module-generator": "0.0.0-canary-20220816055613",
31
- "@modern-js/monorepo-generator": "0.0.0-canary-20220816055613",
32
- "@modern-js/mwa-generator": "0.0.0-canary-20220816055613",
33
- "@modern-js/base-generator": "0.0.0-canary-20220816055613",
34
- "@modern-js/generator-plugin": "0.0.0-canary-20220816055613",
35
- "@modern-js/utils": "0.0.0-canary-20220816055613",
28
+ "@modern-js/generator-common": "0.0.0-canary-20220817015832",
29
+ "@modern-js/generator-utils": "0.0.0-canary-20220817015832",
30
+ "@modern-js/module-generator": "0.0.0-canary-20220817015832",
31
+ "@modern-js/monorepo-generator": "0.0.0-canary-20220817015832",
32
+ "@modern-js/mwa-generator": "0.0.0-canary-20220817015832",
33
+ "@modern-js/base-generator": "0.0.0-canary-20220817015832",
34
+ "@modern-js/generator-plugin": "0.0.0-canary-20220817015832",
35
+ "@modern-js/utils": "0.0.0-canary-20220817015832",
36
36
  "@types/jest": "^27",
37
37
  "@types/node": "^14",
38
38
  "typescript": "^4",
39
- "@scripts/build": "0.0.0-canary-20220816055613",
39
+ "@scripts/build": "0.0.0-canary-20220817015832",
40
40
  "jest": "^27",
41
- "@scripts/jest-config": "0.0.0-canary-20220816055613"
41
+ "@scripts/jest-config": "0.0.0-canary-20220817015832"
42
42
  },
43
43
  "sideEffects": false,
44
44
  "modernConfig": {