@modern-js/monorepo-generator 3.1.39 → 3.2.0

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
@@ -100508,7 +100508,7 @@ var require_js_yaml2 = __commonJS({
100508
100508
  var require_debug2 = __commonJS({
100509
100509
  "../../../toolkit/utils/dist/compiled/debug/index.js"(exports, module2) {
100510
100510
  (() => {
100511
- var e = { 20: (e2, t2, r2) => {
100511
+ var e = { 434: (e2, t2, r2) => {
100512
100512
  t2.formatArgs = formatArgs;
100513
100513
  t2.save = save;
100514
100514
  t2.load = load;
@@ -100582,7 +100582,7 @@ var require_debug2 = __commonJS({
100582
100582
  } catch (e3) {
100583
100583
  }
100584
100584
  }
100585
- e2.exports = r2(530)(t2);
100585
+ e2.exports = r2(290)(t2);
100586
100586
  const { formatters: s } = e2.exports;
100587
100587
  s.j = function(e3) {
100588
100588
  try {
@@ -100591,7 +100591,7 @@ var require_debug2 = __commonJS({
100591
100591
  return "[UnexpectedJSONParseError]: " + e4.message;
100592
100592
  }
100593
100593
  };
100594
- }, 530: (e2, t2, r2) => {
100594
+ }, 290: (e2, t2, r2) => {
100595
100595
  function setup(e3) {
100596
100596
  createDebug.debug = createDebug;
100597
100597
  createDebug.default = createDebug;
@@ -100741,13 +100741,13 @@ var require_debug2 = __commonJS({
100741
100741
  return createDebug;
100742
100742
  }
100743
100743
  e2.exports = setup;
100744
- }, 731: (e2, t2, r2) => {
100744
+ }, 372: (e2, t2, r2) => {
100745
100745
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
100746
- e2.exports = r2(20);
100746
+ e2.exports = r2(434);
100747
100747
  } else {
100748
- e2.exports = r2(689);
100748
+ e2.exports = r2(970);
100749
100749
  }
100750
- }, 689: (e2, t2, r2) => {
100750
+ }, 970: (e2, t2, r2) => {
100751
100751
  const s = r2(224);
100752
100752
  const n = r2(837);
100753
100753
  t2.init = init;
@@ -100760,7 +100760,7 @@ var require_debug2 = __commonJS({
100760
100760
  }, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
100761
100761
  t2.colors = [6, 2, 3, 4, 5, 1];
100762
100762
  try {
100763
- const e3 = r2(242);
100763
+ const e3 = r2(332);
100764
100764
  if (e3 && (e3.stderr || e3).level >= 2) {
100765
100765
  t2.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221];
100766
100766
  }
@@ -100822,7 +100822,7 @@ var require_debug2 = __commonJS({
100822
100822
  e3.inspectOpts[r3[s2]] = t2.inspectOpts[r3[s2]];
100823
100823
  }
100824
100824
  }
100825
- e2.exports = r2(530)(t2);
100825
+ e2.exports = r2(290)(t2);
100826
100826
  const { formatters: o } = e2.exports;
100827
100827
  o.o = function(e3) {
100828
100828
  this.inspectOpts.colors = this.useColors;
@@ -100832,13 +100832,14 @@ var require_debug2 = __commonJS({
100832
100832
  this.inspectOpts.colors = this.useColors;
100833
100833
  return n.inspect(e3, this.inspectOpts);
100834
100834
  };
100835
- }, 975: (e2) => {
100835
+ }, 419: (e2) => {
100836
100836
  "use strict";
100837
- e2.exports = (e3, t2 = process.argv) => {
100837
+ e2.exports = (e3, t2) => {
100838
+ t2 = t2 || process.argv;
100838
100839
  const r2 = e3.startsWith("-") ? "" : e3.length === 1 ? "-" : "--";
100839
100840
  const s = t2.indexOf(r2 + e3);
100840
100841
  const n = t2.indexOf("--");
100841
- return s !== -1 && (n === -1 || s < n);
100842
+ return s !== -1 && (n === -1 ? true : s < n);
100842
100843
  };
100843
100844
  }, 367: (e2) => {
100844
100845
  var t2 = 1e3;
@@ -100947,26 +100948,19 @@ var require_debug2 = __commonJS({
100947
100948
  var n2 = t3 >= r3 * 1.5;
100948
100949
  return Math.round(e3 / r3) + " " + s2 + (n2 ? "s" : "");
100949
100950
  }
100950
- }, 242: (e2, t2, r2) => {
100951
+ }, 332: (e2, t2, r2) => {
100951
100952
  "use strict";
100952
100953
  const s = r2(37);
100953
- const n = r2(224);
100954
- const o = r2(975);
100955
- const { env: a } = process;
100956
- let c;
100957
- if (o("no-color") || o("no-colors") || o("color=false") || o("color=never")) {
100958
- c = 0;
100959
- } else if (o("color") || o("colors") || o("color=true") || o("color=always")) {
100960
- c = 1;
100954
+ const n = r2(419);
100955
+ const o = process.env;
100956
+ let a;
100957
+ if (n("no-color") || n("no-colors") || n("color=false")) {
100958
+ a = false;
100959
+ } else if (n("color") || n("colors") || n("color=true") || n("color=always")) {
100960
+ a = true;
100961
100961
  }
100962
- if ("FORCE_COLOR" in a) {
100963
- if (a.FORCE_COLOR === "true") {
100964
- c = 1;
100965
- } else if (a.FORCE_COLOR === "false") {
100966
- c = 0;
100967
- } else {
100968
- c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
100969
- }
100962
+ if ("FORCE_COLOR" in o) {
100963
+ a = o.FORCE_COLOR.length === 0 || parseInt(o.FORCE_COLOR, 10) !== 0;
100970
100964
  }
100971
100965
  function translateLevel(e3) {
100972
100966
  if (e3 === 0) {
@@ -100974,67 +100968,67 @@ var require_debug2 = __commonJS({
100974
100968
  }
100975
100969
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
100976
100970
  }
100977
- function supportsColor(e3, t3) {
100978
- if (c === 0) {
100971
+ function supportsColor(e3) {
100972
+ if (a === false) {
100979
100973
  return 0;
100980
100974
  }
100981
- if (o("color=16m") || o("color=full") || o("color=truecolor")) {
100975
+ if (n("color=16m") || n("color=full") || n("color=truecolor")) {
100982
100976
  return 3;
100983
100977
  }
100984
- if (o("color=256")) {
100978
+ if (n("color=256")) {
100985
100979
  return 2;
100986
100980
  }
100987
- if (e3 && !t3 && c === void 0) {
100981
+ if (e3 && !e3.isTTY && a !== true) {
100988
100982
  return 0;
100989
100983
  }
100990
- const r3 = c || 0;
100991
- if (a.TERM === "dumb") {
100992
- return r3;
100993
- }
100984
+ const t3 = a ? 1 : 0;
100994
100985
  if (process.platform === "win32") {
100995
100986
  const e4 = s.release().split(".");
100996
- if (Number(e4[0]) >= 10 && Number(e4[2]) >= 10586) {
100987
+ if (Number(process.versions.node.split(".")[0]) >= 8 && Number(e4[0]) >= 10 && Number(e4[2]) >= 10586) {
100997
100988
  return Number(e4[2]) >= 14931 ? 3 : 2;
100998
100989
  }
100999
100990
  return 1;
101000
100991
  }
101001
- if ("CI" in a) {
101002
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((e4) => e4 in a) || a.CI_NAME === "codeship") {
100992
+ if ("CI" in o) {
100993
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((e4) => e4 in o) || o.CI_NAME === "codeship") {
101003
100994
  return 1;
101004
100995
  }
101005
- return r3;
100996
+ return t3;
101006
100997
  }
101007
- if ("TEAMCITY_VERSION" in a) {
101008
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION) ? 1 : 0;
100998
+ if ("TEAMCITY_VERSION" in o) {
100999
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION) ? 1 : 0;
101009
101000
  }
101010
- if (a.COLORTERM === "truecolor") {
101001
+ if (o.COLORTERM === "truecolor") {
101011
101002
  return 3;
101012
101003
  }
101013
- if ("TERM_PROGRAM" in a) {
101014
- const e4 = parseInt((a.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
101015
- switch (a.TERM_PROGRAM) {
101004
+ if ("TERM_PROGRAM" in o) {
101005
+ const e4 = parseInt((o.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
101006
+ switch (o.TERM_PROGRAM) {
101016
101007
  case "iTerm.app":
101017
101008
  return e4 >= 3 ? 3 : 2;
101018
101009
  case "Apple_Terminal":
101019
101010
  return 2;
101020
101011
  }
101021
101012
  }
101022
- if (/-256(color)?$/i.test(a.TERM)) {
101013
+ if (/-256(color)?$/i.test(o.TERM)) {
101023
101014
  return 2;
101024
101015
  }
101025
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)) {
101016
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)) {
101026
101017
  return 1;
101027
101018
  }
101028
- if ("COLORTERM" in a) {
101019
+ if ("COLORTERM" in o) {
101029
101020
  return 1;
101030
101021
  }
101031
- return r3;
101022
+ if (o.TERM === "dumb") {
101023
+ return t3;
101024
+ }
101025
+ return t3;
101032
101026
  }
101033
101027
  function getSupportLevel(e3) {
101034
- const t3 = supportsColor(e3, e3 && e3.isTTY);
101028
+ const t3 = supportsColor(e3);
101035
101029
  return translateLevel(t3);
101036
101030
  }
101037
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, n.isatty(1))), stderr: translateLevel(supportsColor(true, n.isatty(2))) };
101031
+ e2.exports = { supportsColor: getSupportLevel, stdout: getSupportLevel(process.stdout), stderr: getSupportLevel(process.stderr) };
101038
101032
  }, 37: (e2) => {
101039
101033
  "use strict";
101040
101034
  e2.exports = require("os");
@@ -101064,7 +101058,7 @@ var require_debug2 = __commonJS({
101064
101058
  }
101065
101059
  if (typeof __nccwpck_require__ !== "undefined")
101066
101060
  __nccwpck_require__.ab = __dirname + "/";
101067
- var r = __nccwpck_require__(731);
101061
+ var r = __nccwpck_require__(372);
101068
101062
  module2.exports = r;
101069
101063
  })();
101070
101064
  }
@@ -118902,6 +118896,27 @@ var require_watch2 = __commonJS({
118902
118896
  }
118903
118897
  });
118904
118898
 
118899
+ // ../../../toolkit/utils/dist/cjs/cli/config.js
118900
+ var require_config6 = __commonJS({
118901
+ "../../../toolkit/utils/dist/cjs/cli/config.js"(exports) {
118902
+ "use strict";
118903
+ Object.defineProperty(exports, "__esModule", {
118904
+ value: true
118905
+ });
118906
+ Object.defineProperty(exports, "isOverriddenConfigKey", {
118907
+ enumerable: true,
118908
+ get: function() {
118909
+ return isOverriddenConfigKey;
118910
+ }
118911
+ });
118912
+ var isOverriddenConfigKey = (key) => [
118913
+ "removeConsole",
118914
+ "enableInlineScripts",
118915
+ "enableInlineStyles"
118916
+ ].includes(key);
118917
+ }
118918
+ });
118919
+
118905
118920
  // ../../../toolkit/utils/dist/cjs/cli/index.js
118906
118921
  var require_cli2 = __commonJS({
118907
118922
  "../../../toolkit/utils/dist/cjs/cli/index.js"(exports) {
@@ -118929,6 +118944,7 @@ var require_cli2 = __commonJS({
118929
118944
  _export_star._(require_require2(), exports);
118930
118945
  _export_star._(require_runtimeExports2(), exports);
118931
118946
  _export_star._(require_watch2(), exports);
118947
+ _export_star._(require_config6(), exports);
118932
118948
  }
118933
118949
  });
118934
118950
 
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.1.39",
18
+ "version": "3.2.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -30,14 +30,14 @@
30
30
  "@types/node": "^14",
31
31
  "jest": "^29",
32
32
  "typescript": "^5",
33
- "@modern-js/base-generator": "3.1.39",
34
- "@modern-js/plugin-i18n": "2.33.1",
35
- "@modern-js/packages-generator": "3.1.39",
36
- "@modern-js/changeset-generator": "3.1.39",
37
- "@modern-js/generator-utils": "3.1.39",
38
- "@modern-js/generator-common": "3.1.39",
39
- "@scripts/build": "2.33.1",
40
- "@scripts/jest-config": "2.33.1"
33
+ "@modern-js/base-generator": "3.2.0",
34
+ "@modern-js/plugin-i18n": "2.34.0",
35
+ "@modern-js/packages-generator": "3.2.0",
36
+ "@modern-js/generator-utils": "3.2.0",
37
+ "@modern-js/generator-common": "3.2.0",
38
+ "@modern-js/changeset-generator": "3.2.0",
39
+ "@scripts/build": "2.34.0",
40
+ "@scripts/jest-config": "2.34.0"
41
41
  },
42
42
  "sideEffects": false,
43
43
  "publishConfig": {
@@ -19,10 +19,7 @@
19
19
  "node": ">=16.18.1"
20
20
  },
21
21
  "lint-staged": {
22
- "*.{ts,tsx}": [
23
- "node --max_old_space_size=8192 ./node_modules/eslint/bin/eslint.js --fix --color --cache --quiet"
24
- ],
25
- "*.{js,jsx,mjs,mjsx,cjs,cjsx}": [
22
+ "*.{js,jsx,ts,tsx,mjs,cjs}": [
26
23
  "node --max_old_space_size=8192 ./node_modules/eslint/bin/eslint.js --fix --color --cache --quiet"
27
24
  ]
28
25
  },