@modern-js/monorepo-generator 3.1.26 → 3.1.27

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 +203 -236
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -34,6 +34,9 @@ var __objRest = (source, exclude) => {
34
34
  }
35
35
  return target;
36
36
  };
37
+ var __esm = (fn, res) => function __init() {
38
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
39
+ };
37
40
  var __commonJS = (cb, mod) => function __require() {
38
41
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
39
42
  };
@@ -3512,13 +3515,13 @@ var require_chalk = __commonJS({
3512
3515
  c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
3513
3516
  }
3514
3517
  }
3515
- function translateLevel(e3) {
3518
+ function translateLevel2(e3) {
3516
3519
  if (e3 === 0) {
3517
3520
  return false;
3518
3521
  }
3519
3522
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
3520
3523
  }
3521
- function supportsColor(e3, t3) {
3524
+ function supportsColor2(e3, t3) {
3522
3525
  if (c === 0) {
3523
3526
  return 0;
3524
3527
  }
@@ -3575,10 +3578,10 @@ var require_chalk = __commonJS({
3575
3578
  return n3;
3576
3579
  }
3577
3580
  function getSupportLevel(e3) {
3578
- const t3 = supportsColor(e3, e3 && e3.isTTY);
3579
- return translateLevel(t3);
3581
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
3582
+ return translateLevel2(t3);
3580
3583
  }
3581
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
3584
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
3582
3585
  }, 37: (e2) => {
3583
3586
  "use strict";
3584
3587
  e2.exports = require("os");
@@ -12653,13 +12656,13 @@ var require_debug = __commonJS({
12653
12656
  c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
12654
12657
  }
12655
12658
  }
12656
- function translateLevel(e3) {
12659
+ function translateLevel2(e3) {
12657
12660
  if (e3 === 0) {
12658
12661
  return false;
12659
12662
  }
12660
12663
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
12661
12664
  }
12662
- function supportsColor(e3, t3) {
12665
+ function supportsColor2(e3, t3) {
12663
12666
  if (c === 0) {
12664
12667
  return 0;
12665
12668
  }
@@ -12716,10 +12719,10 @@ var require_debug = __commonJS({
12716
12719
  return r3;
12717
12720
  }
12718
12721
  function getSupportLevel(e3) {
12719
- const t3 = supportsColor(e3, e3 && e3.isTTY);
12720
- return translateLevel(t3);
12722
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
12723
+ return translateLevel2(t3);
12721
12724
  }
12722
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, n.isatty(1))), stderr: translateLevel(supportsColor(true, n.isatty(2))) };
12725
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
12723
12726
  }, 37: (e2) => {
12724
12727
  "use strict";
12725
12728
  e2.exports = require("os");
@@ -43540,15 +43543,15 @@ var require_runtime = __commonJS({
43540
43543
  throw new _exception2["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + compilerInfo[1] + ").");
43541
43544
  }
43542
43545
  }
43543
- function template(templateSpec, env) {
43544
- if (!env) {
43546
+ function template(templateSpec, env2) {
43547
+ if (!env2) {
43545
43548
  throw new _exception2["default"]("No environment passed to template");
43546
43549
  }
43547
43550
  if (!templateSpec || !templateSpec.main) {
43548
43551
  throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
43549
43552
  }
43550
43553
  templateSpec.main.decorator = templateSpec.main_d;
43551
- env.VM.checkRevision(templateSpec.compiler);
43554
+ env2.VM.checkRevision(templateSpec.compiler);
43552
43555
  var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
43553
43556
  function invokePartialWrapper(partial, context, options) {
43554
43557
  if (options.hash) {
@@ -43557,14 +43560,14 @@ var require_runtime = __commonJS({
43557
43560
  options.ids[0] = true;
43558
43561
  }
43559
43562
  }
43560
- partial = env.VM.resolvePartial.call(this, partial, context, options);
43563
+ partial = env2.VM.resolvePartial.call(this, partial, context, options);
43561
43564
  var extendedOptions = Utils.extend({}, options, {
43562
43565
  hooks: this.hooks,
43563
43566
  protoAccessControl: this.protoAccessControl
43564
43567
  });
43565
- var result = env.VM.invokePartial.call(this, partial, context, extendedOptions);
43566
- if (result == null && env.compile) {
43567
- options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);
43568
+ var result = env2.VM.invokePartial.call(this, partial, context, extendedOptions);
43569
+ if (result == null && env2.compile) {
43570
+ options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
43568
43571
  result = options.partials[options.name](context, extendedOptions);
43569
43572
  }
43570
43573
  if (result != null) {
@@ -43649,7 +43652,7 @@ var require_runtime = __commonJS({
43649
43652
  },
43650
43653
  // An empty object to use as replacement for null-contexts
43651
43654
  nullContext: Object.seal({}),
43652
- noop: env.VM.noop,
43655
+ noop: env2.VM.noop,
43653
43656
  compilerInfo: templateSpec.compiler
43654
43657
  };
43655
43658
  function ret(context) {
@@ -43676,14 +43679,14 @@ var require_runtime = __commonJS({
43676
43679
  ret.isTop = true;
43677
43680
  ret._setup = function(options) {
43678
43681
  if (!options.partial) {
43679
- var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);
43682
+ var mergedHelpers = Utils.extend({}, env2.helpers, options.helpers);
43680
43683
  wrapHelpersToPassLookupProperty(mergedHelpers, container);
43681
43684
  container.helpers = mergedHelpers;
43682
43685
  if (templateSpec.usePartial) {
43683
- container.partials = container.mergeIfNeeded(options.partials, env.partials);
43686
+ container.partials = container.mergeIfNeeded(options.partials, env2.partials);
43684
43687
  }
43685
43688
  if (templateSpec.usePartial || templateSpec.useDecorators) {
43686
- container.decorators = Utils.extend({}, env.decorators, options.decorators);
43689
+ container.decorators = Utils.extend({}, env2.decorators, options.decorators);
43687
43690
  }
43688
43691
  container.hooks = {};
43689
43692
  container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
@@ -45485,7 +45488,7 @@ var require_compiler = __commonJS({
45485
45488
  }
45486
45489
  }
45487
45490
  };
45488
- function precompile(input, options, env) {
45491
+ function precompile(input, options, env2) {
45489
45492
  if (input == null || typeof input !== "string" && input.type !== "Program") {
45490
45493
  throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
45491
45494
  }
@@ -45496,10 +45499,10 @@ var require_compiler = __commonJS({
45496
45499
  if (options.compat) {
45497
45500
  options.useDepths = true;
45498
45501
  }
45499
- var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options);
45500
- return new env.JavaScriptCompiler().compile(environment, options);
45502
+ var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
45503
+ return new env2.JavaScriptCompiler().compile(environment, options);
45501
45504
  }
45502
- function compile2(input, options, env) {
45505
+ function compile2(input, options, env2) {
45503
45506
  if (options === void 0)
45504
45507
  options = {};
45505
45508
  if (input == null || typeof input !== "string" && input.type !== "Program") {
@@ -45514,8 +45517,8 @@ var require_compiler = __commonJS({
45514
45517
  }
45515
45518
  var compiled = void 0;
45516
45519
  function compileInput() {
45517
- var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options), templateSpec = new env.JavaScriptCompiler().compile(environment, options, void 0, true);
45518
- return env.template(templateSpec);
45520
+ var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
45521
+ return env2.template(templateSpec);
45519
45522
  }
45520
45523
  function ret(context, execOptions) {
45521
45524
  if (!compiled) {
@@ -54119,7 +54122,7 @@ var require_innerFrom = __commonJS({
54119
54122
  exports.fromIterable = fromIterable;
54120
54123
  function fromAsyncIterable(asyncIterable) {
54121
54124
  return new Observable_1.Observable(function(subscriber) {
54122
- process2(asyncIterable, subscriber).catch(function(err) {
54125
+ process3(asyncIterable, subscriber).catch(function(err) {
54123
54126
  return subscriber.error(err);
54124
54127
  });
54125
54128
  });
@@ -54129,7 +54132,7 @@ var require_innerFrom = __commonJS({
54129
54132
  return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
54130
54133
  }
54131
54134
  exports.fromReadableStreamLike = fromReadableStreamLike;
54132
- function process2(asyncIterable, subscriber) {
54135
+ function process3(asyncIterable, subscriber) {
54133
54136
  var asyncIterable_1, asyncIterable_1_1;
54134
54137
  var e_2, _a2;
54135
54138
  return __awaiter6(this, void 0, void 0, function() {
@@ -61408,11 +61411,11 @@ var require_signals = __commonJS({
61408
61411
  // ../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
61409
61412
  var require_signal_exit = __commonJS({
61410
61413
  "../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
61411
- var process2 = global.process;
61412
- var processOk = function(process3) {
61413
- return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
61414
+ var process3 = global.process;
61415
+ var processOk = function(process4) {
61416
+ return process4 && typeof process4 === "object" && typeof process4.removeListener === "function" && typeof process4.emit === "function" && typeof process4.reallyExit === "function" && typeof process4.listeners === "function" && typeof process4.kill === "function" && typeof process4.pid === "number" && typeof process4.on === "function";
61414
61417
  };
61415
- if (!processOk(process2)) {
61418
+ if (!processOk(process3)) {
61416
61419
  module2.exports = function() {
61417
61420
  return function() {
61418
61421
  };
@@ -61420,15 +61423,15 @@ var require_signal_exit = __commonJS({
61420
61423
  } else {
61421
61424
  assert = require("assert");
61422
61425
  signals = require_signals();
61423
- isWin = /^win/i.test(process2.platform);
61426
+ isWin = /^win/i.test(process3.platform);
61424
61427
  EE = require("events");
61425
61428
  if (typeof EE !== "function") {
61426
61429
  EE = EE.EventEmitter;
61427
61430
  }
61428
- if (process2.__signal_exit_emitter__) {
61429
- emitter = process2.__signal_exit_emitter__;
61431
+ if (process3.__signal_exit_emitter__) {
61432
+ emitter = process3.__signal_exit_emitter__;
61430
61433
  } else {
61431
- emitter = process2.__signal_exit_emitter__ = new EE();
61434
+ emitter = process3.__signal_exit_emitter__ = new EE();
61432
61435
  emitter.count = 0;
61433
61436
  emitter.emitted = {};
61434
61437
  }
@@ -61465,12 +61468,12 @@ var require_signal_exit = __commonJS({
61465
61468
  loaded = false;
61466
61469
  signals.forEach(function(sig) {
61467
61470
  try {
61468
- process2.removeListener(sig, sigListeners[sig]);
61471
+ process3.removeListener(sig, sigListeners[sig]);
61469
61472
  } catch (er) {
61470
61473
  }
61471
61474
  });
61472
- process2.emit = originalProcessEmit;
61473
- process2.reallyExit = originalProcessReallyExit;
61475
+ process3.emit = originalProcessEmit;
61476
+ process3.reallyExit = originalProcessReallyExit;
61474
61477
  emitter.count -= 1;
61475
61478
  };
61476
61479
  module2.exports.unload = unload;
@@ -61487,7 +61490,7 @@ var require_signal_exit = __commonJS({
61487
61490
  if (!processOk(global.process)) {
61488
61491
  return;
61489
61492
  }
61490
- var listeners = process2.listeners(sig);
61493
+ var listeners = process3.listeners(sig);
61491
61494
  if (listeners.length === emitter.count) {
61492
61495
  unload();
61493
61496
  emit("exit", null, sig);
@@ -61495,7 +61498,7 @@ var require_signal_exit = __commonJS({
61495
61498
  if (isWin && sig === "SIGHUP") {
61496
61499
  sig = "SIGINT";
61497
61500
  }
61498
- process2.kill(process2.pid, sig);
61501
+ process3.kill(process3.pid, sig);
61499
61502
  }
61500
61503
  };
61501
61504
  });
@@ -61511,36 +61514,36 @@ var require_signal_exit = __commonJS({
61511
61514
  emitter.count += 1;
61512
61515
  signals = signals.filter(function(sig) {
61513
61516
  try {
61514
- process2.on(sig, sigListeners[sig]);
61517
+ process3.on(sig, sigListeners[sig]);
61515
61518
  return true;
61516
61519
  } catch (er) {
61517
61520
  return false;
61518
61521
  }
61519
61522
  });
61520
- process2.emit = processEmit;
61521
- process2.reallyExit = processReallyExit;
61523
+ process3.emit = processEmit;
61524
+ process3.reallyExit = processReallyExit;
61522
61525
  };
61523
61526
  module2.exports.load = load;
61524
- originalProcessReallyExit = process2.reallyExit;
61527
+ originalProcessReallyExit = process3.reallyExit;
61525
61528
  processReallyExit = function processReallyExit2(code) {
61526
61529
  if (!processOk(global.process)) {
61527
61530
  return;
61528
61531
  }
61529
- process2.exitCode = code || /* istanbul ignore next */
61532
+ process3.exitCode = code || /* istanbul ignore next */
61530
61533
  0;
61531
- emit("exit", process2.exitCode, null);
61532
- emit("afterexit", process2.exitCode, null);
61533
- originalProcessReallyExit.call(process2, process2.exitCode);
61534
+ emit("exit", process3.exitCode, null);
61535
+ emit("afterexit", process3.exitCode, null);
61536
+ originalProcessReallyExit.call(process3, process3.exitCode);
61534
61537
  };
61535
- originalProcessEmit = process2.emit;
61538
+ originalProcessEmit = process3.emit;
61536
61539
  processEmit = function processEmit2(ev, arg) {
61537
61540
  if (ev === "exit" && processOk(global.process)) {
61538
61541
  if (arg !== void 0) {
61539
- process2.exitCode = arg;
61542
+ process3.exitCode = arg;
61540
61543
  }
61541
61544
  var ret = originalProcessEmit.apply(this, arguments);
61542
- emit("exit", process2.exitCode, null);
61543
- emit("afterexit", process2.exitCode, null);
61545
+ emit("exit", process3.exitCode, null);
61546
+ emit("afterexit", process3.exitCode, null);
61544
61547
  return ret;
61545
61548
  } else {
61546
61549
  return originalProcessEmit.apply(this, arguments);
@@ -84469,10 +84472,10 @@ var require_ms = __commonJS({
84469
84472
  }
84470
84473
  });
84471
84474
 
84472
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/common.js
84475
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js
84473
84476
  var require_common2 = __commonJS({
84474
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/common.js"(exports, module2) {
84475
- function setup(env) {
84477
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js"(exports, module2) {
84478
+ function setup(env2) {
84476
84479
  createDebug.debug = createDebug;
84477
84480
  createDebug.default = createDebug;
84478
84481
  createDebug.coerce = coerce;
@@ -84481,8 +84484,8 @@ var require_common2 = __commonJS({
84481
84484
  createDebug.enabled = enabled;
84482
84485
  createDebug.humanize = require_ms();
84483
84486
  createDebug.destroy = destroy2;
84484
- Object.keys(env).forEach((key) => {
84485
- createDebug[key] = env[key];
84487
+ Object.keys(env2).forEach((key) => {
84488
+ createDebug[key] = env2[key];
84486
84489
  });
84487
84490
  createDebug.names = [];
84488
84491
  createDebug.skips = [];
@@ -84632,9 +84635,9 @@ var require_common2 = __commonJS({
84632
84635
  }
84633
84636
  });
84634
84637
 
84635
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/browser.js
84638
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js
84636
84639
  var require_browser = __commonJS({
84637
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/browser.js"(exports, module2) {
84640
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js"(exports, module2) {
84638
84641
  exports.formatArgs = formatArgs;
84639
84642
  exports.save = save;
84640
84643
  exports.load = load;
@@ -84801,136 +84804,144 @@ var require_browser = __commonJS({
84801
84804
  }
84802
84805
  });
84803
84806
 
84804
- // ../../../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
84805
- var require_has_flag = __commonJS({
84806
- "../../../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module2) {
84807
- "use strict";
84808
- module2.exports = (flag, argv = process.argv) => {
84809
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
84810
- const position = argv.indexOf(prefix + flag);
84811
- const terminatorPosition = argv.indexOf("--");
84812
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
84813
- };
84814
- }
84807
+ // ../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js
84808
+ var supports_color_exports = {};
84809
+ __export(supports_color_exports, {
84810
+ createSupportsColor: () => createSupportsColor,
84811
+ default: () => supports_color_default
84815
84812
  });
84816
-
84817
- // ../../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js
84818
- var require_supports_color = __commonJS({
84819
- "../../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports, module2) {
84820
- "use strict";
84821
- var os = require("os");
84822
- var tty = require("tty");
84823
- var hasFlag = require_has_flag();
84824
- var { env } = process;
84825
- var flagForceColor;
84826
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
84827
- flagForceColor = 0;
84828
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
84829
- flagForceColor = 1;
84813
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
84814
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
84815
+ const position = argv.indexOf(prefix + flag);
84816
+ const terminatorPosition = argv.indexOf("--");
84817
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
84818
+ }
84819
+ function envForceColor() {
84820
+ if ("FORCE_COLOR" in env) {
84821
+ if (env.FORCE_COLOR === "true") {
84822
+ return 1;
84830
84823
  }
84831
- function envForceColor() {
84832
- if ("FORCE_COLOR" in env) {
84833
- if (env.FORCE_COLOR === "true") {
84834
- return 1;
84835
- }
84836
- if (env.FORCE_COLOR === "false") {
84837
- return 0;
84838
- }
84839
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
84840
- }
84824
+ if (env.FORCE_COLOR === "false") {
84825
+ return 0;
84841
84826
  }
84842
- function translateLevel(level) {
84843
- if (level === 0) {
84844
- return false;
84845
- }
84846
- return {
84847
- level,
84848
- hasBasic: true,
84849
- has256: level >= 2,
84850
- has16m: level >= 3
84851
- };
84827
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
84828
+ }
84829
+ }
84830
+ function translateLevel(level) {
84831
+ if (level === 0) {
84832
+ return false;
84833
+ }
84834
+ return {
84835
+ level,
84836
+ hasBasic: true,
84837
+ has256: level >= 2,
84838
+ has16m: level >= 3
84839
+ };
84840
+ }
84841
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
84842
+ const noFlagForceColor = envForceColor();
84843
+ if (noFlagForceColor !== void 0) {
84844
+ flagForceColor = noFlagForceColor;
84845
+ }
84846
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
84847
+ if (forceColor === 0) {
84848
+ return 0;
84849
+ }
84850
+ if (sniffFlags) {
84851
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
84852
+ return 3;
84852
84853
  }
84853
- function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
84854
- const noFlagForceColor = envForceColor();
84855
- if (noFlagForceColor !== void 0) {
84856
- flagForceColor = noFlagForceColor;
84857
- }
84858
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
84859
- if (forceColor === 0) {
84860
- return 0;
84861
- }
84862
- if (sniffFlags) {
84863
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
84864
- return 3;
84865
- }
84866
- if (hasFlag("color=256")) {
84867
- return 2;
84868
- }
84869
- }
84870
- if (haveStream && !streamIsTTY && forceColor === void 0) {
84871
- return 0;
84872
- }
84873
- const min = forceColor || 0;
84874
- if (env.TERM === "dumb") {
84875
- return min;
84876
- }
84877
- if (process.platform === "win32") {
84878
- const osRelease = os.release().split(".");
84879
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
84880
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
84881
- }
84882
- return 1;
84883
- }
84884
- if ("CI" in env) {
84885
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
84886
- return 1;
84887
- }
84888
- return min;
84889
- }
84890
- if ("TEAMCITY_VERSION" in env) {
84891
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
84892
- }
84893
- if (env.COLORTERM === "truecolor") {
84894
- return 3;
84895
- }
84896
- if ("TERM_PROGRAM" in env) {
84897
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
84898
- switch (env.TERM_PROGRAM) {
84899
- case "iTerm.app":
84900
- return version >= 3 ? 3 : 2;
84901
- case "Apple_Terminal":
84902
- return 2;
84903
- }
84854
+ if (hasFlag("color=256")) {
84855
+ return 2;
84856
+ }
84857
+ }
84858
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {
84859
+ return 1;
84860
+ }
84861
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
84862
+ return 0;
84863
+ }
84864
+ const min = forceColor || 0;
84865
+ if (env.TERM === "dumb") {
84866
+ return min;
84867
+ }
84868
+ if (import_node_process.default.platform === "win32") {
84869
+ const osRelease = import_node_os.default.release().split(".");
84870
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
84871
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
84872
+ }
84873
+ return 1;
84874
+ }
84875
+ if ("CI" in env) {
84876
+ if ("GITHUB_ACTIONS" in env) {
84877
+ return 3;
84878
+ }
84879
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
84880
+ return 1;
84881
+ }
84882
+ return min;
84883
+ }
84884
+ if ("TEAMCITY_VERSION" in env) {
84885
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
84886
+ }
84887
+ if (env.COLORTERM === "truecolor") {
84888
+ return 3;
84889
+ }
84890
+ if (env.TERM === "xterm-kitty") {
84891
+ return 3;
84892
+ }
84893
+ if ("TERM_PROGRAM" in env) {
84894
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
84895
+ switch (env.TERM_PROGRAM) {
84896
+ case "iTerm.app": {
84897
+ return version >= 3 ? 3 : 2;
84904
84898
  }
84905
- if (/-256(color)?$/i.test(env.TERM)) {
84899
+ case "Apple_Terminal": {
84906
84900
  return 2;
84907
84901
  }
84908
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
84909
- return 1;
84910
- }
84911
- if ("COLORTERM" in env) {
84912
- return 1;
84913
- }
84914
- return min;
84915
84902
  }
84916
- function getSupportLevel(stream, options = {}) {
84917
- const level = supportsColor(stream, __spreadValues({
84918
- streamIsTTY: stream && stream.isTTY
84919
- }, options));
84920
- return translateLevel(level);
84903
+ }
84904
+ if (/-256(color)?$/i.test(env.TERM)) {
84905
+ return 2;
84906
+ }
84907
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
84908
+ return 1;
84909
+ }
84910
+ if ("COLORTERM" in env) {
84911
+ return 1;
84912
+ }
84913
+ return min;
84914
+ }
84915
+ function createSupportsColor(stream, options = {}) {
84916
+ const level = _supportsColor(stream, __spreadValues({
84917
+ streamIsTTY: stream && stream.isTTY
84918
+ }, options));
84919
+ return translateLevel(level);
84920
+ }
84921
+ var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
84922
+ var init_supports_color = __esm({
84923
+ "../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js"() {
84924
+ import_node_process = __toESM(require("process"));
84925
+ import_node_os = __toESM(require("os"));
84926
+ import_node_tty = __toESM(require("tty"));
84927
+ ({ env } = import_node_process.default);
84928
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
84929
+ flagForceColor = 0;
84930
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
84931
+ flagForceColor = 1;
84921
84932
  }
84922
- module2.exports = {
84923
- supportsColor: getSupportLevel,
84924
- stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
84925
- stderr: getSupportLevel({ isTTY: tty.isatty(2) })
84933
+ supportsColor = {
84934
+ stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
84935
+ stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
84926
84936
  };
84937
+ supports_color_default = supportsColor;
84927
84938
  }
84928
84939
  });
84929
84940
 
84930
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/node.js
84941
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js
84931
84942
  var require_node2 = __commonJS({
84932
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module2) {
84933
- var tty = require("tty");
84943
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js"(exports, module2) {
84944
+ var tty2 = require("tty");
84934
84945
  var util = require("util");
84935
84946
  exports.init = init;
84936
84947
  exports.log = log;
@@ -84945,8 +84956,8 @@ var require_node2 = __commonJS({
84945
84956
  );
84946
84957
  exports.colors = [6, 2, 3, 4, 5, 1];
84947
84958
  try {
84948
- const supportsColor = require_supports_color();
84949
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
84959
+ const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
84960
+ if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
84950
84961
  exports.colors = [
84951
84962
  20,
84952
84963
  21,
@@ -85048,7 +85059,7 @@ var require_node2 = __commonJS({
85048
85059
  return obj;
85049
85060
  }, {});
85050
85061
  function useColors() {
85051
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
85062
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
85052
85063
  }
85053
85064
  function formatArgs(args) {
85054
85065
  const { namespace: name, useColors: useColors2 } = this;
@@ -85101,9 +85112,9 @@ var require_node2 = __commonJS({
85101
85112
  }
85102
85113
  });
85103
85114
 
85104
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/index.js
85115
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js
85105
85116
  var require_src3 = __commonJS({
85106
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/index.js"(exports, module2) {
85117
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js"(exports, module2) {
85107
85118
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
85108
85119
  module2.exports = require_browser();
85109
85120
  } else {
@@ -89512,13 +89523,13 @@ var require_chalk2 = __commonJS({
89512
89523
  c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
89513
89524
  }
89514
89525
  }
89515
- function translateLevel(e3) {
89526
+ function translateLevel2(e3) {
89516
89527
  if (e3 === 0) {
89517
89528
  return false;
89518
89529
  }
89519
89530
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
89520
89531
  }
89521
- function supportsColor(e3, t3) {
89532
+ function supportsColor2(e3, t3) {
89522
89533
  if (c === 0) {
89523
89534
  return 0;
89524
89535
  }
@@ -89575,10 +89586,10 @@ var require_chalk2 = __commonJS({
89575
89586
  return n3;
89576
89587
  }
89577
89588
  function getSupportLevel(e3) {
89578
- const t3 = supportsColor(e3, e3 && e3.isTTY);
89579
- return translateLevel(t3);
89589
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
89590
+ return translateLevel2(t3);
89580
89591
  }
89581
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
89592
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
89582
89593
  }, 37: (e2) => {
89583
89594
  "use strict";
89584
89595
  e2.exports = require("os");
@@ -98653,13 +98664,13 @@ var require_debug2 = __commonJS({
98653
98664
  c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
98654
98665
  }
98655
98666
  }
98656
- function translateLevel(e3) {
98667
+ function translateLevel2(e3) {
98657
98668
  if (e3 === 0) {
98658
98669
  return false;
98659
98670
  }
98660
98671
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
98661
98672
  }
98662
- function supportsColor(e3, t3) {
98673
+ function supportsColor2(e3, t3) {
98663
98674
  if (c === 0) {
98664
98675
  return 0;
98665
98676
  }
@@ -98716,10 +98727,10 @@ var require_debug2 = __commonJS({
98716
98727
  return r3;
98717
98728
  }
98718
98729
  function getSupportLevel(e3) {
98719
- const t3 = supportsColor(e3, e3 && e3.isTTY);
98720
- return translateLevel(t3);
98730
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
98731
+ return translateLevel2(t3);
98721
98732
  }
98722
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, n.isatty(1))), stderr: translateLevel(supportsColor(true, n.isatty(2))) };
98733
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
98723
98734
  }, 37: (e2) => {
98724
98735
  "use strict";
98725
98736
  e2.exports = require("os");
@@ -117326,49 +117337,6 @@ var require_prettyInstructions = __commonJS({
117326
117337
  }
117327
117338
  });
117328
117339
 
117329
- // ../../../toolkit/utils/dist/cjs/cli/print.js
117330
- var require_print = __commonJS({
117331
- "../../../toolkit/utils/dist/cjs/cli/print.js"(exports) {
117332
- "use strict";
117333
- Object.defineProperty(exports, "__esModule", {
117334
- value: true
117335
- });
117336
- Object.defineProperty(exports, "printBuildError", {
117337
- enumerable: true,
117338
- get: function() {
117339
- return printBuildError;
117340
- }
117341
- });
117342
- var _compiled = require_compiled();
117343
- var _logger = require_logger2();
117344
- function printBuildError(err) {
117345
- const message = err != null && err.message;
117346
- const stack = err != null && err.stack;
117347
- if (stack && typeof message === "string" && message.indexOf("from Terser") !== -1) {
117348
- try {
117349
- const matched = /(.+)\[(.+):(.+),(.+)\]\[.+\]/.exec(stack);
117350
- if (!matched) {
117351
- throw new Error("Using errors for control flow is bad.");
117352
- }
117353
- const problemPath = matched[2];
117354
- const line = matched[3];
117355
- const column = matched[4];
117356
- _logger.logger.error(`Failed to minify the code from this file:
117357
-
117358
- ${_compiled.chalk.yellow(` ${problemPath}:${line}${column !== "0" ? ":" + column : ""}`)}
117359
- `);
117360
- } catch (ignored) {
117361
- _logger.logger.error(`Failed to minify the bundle. ${err}
117362
- `);
117363
- }
117364
- } else {
117365
- _logger.logger.error((message || err) + "\n");
117366
- }
117367
- _logger.logger.log();
117368
- }
117369
- }
117370
- });
117371
-
117372
117340
  // ../../../toolkit/utils/dist/cjs/cli/require.js
117373
117341
  var require_require = __commonJS({
117374
117342
  "../../../toolkit/utils/dist/cjs/cli/require.js"(exports, module2) {
@@ -117601,7 +117569,6 @@ var require_cli = __commonJS({
117601
117569
  _export_star._(require_pathSerializer(), exports);
117602
117570
  _export_star._(require_port(), exports);
117603
117571
  _export_star._(require_prettyInstructions(), exports);
117604
- _export_star._(require_print(), exports);
117605
117572
  _export_star._(require_require(), exports);
117606
117573
  _export_star._(require_runtimeExports(), exports);
117607
117574
  _export_star._(require_watch(), exports);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.1.26",
18
+ "version": "3.1.27",
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.26",
34
- "@modern-js/plugin-i18n": "2.25.1",
35
- "@modern-js/packages-generator": "3.1.26",
36
- "@modern-js/generator-utils": "3.1.26",
37
- "@modern-js/generator-common": "3.1.26",
38
- "@modern-js/changeset-generator": "3.1.26",
39
- "@scripts/build": "2.25.1",
40
- "@scripts/jest-config": "2.25.1"
33
+ "@modern-js/base-generator": "3.1.27",
34
+ "@modern-js/plugin-i18n": "2.25.2",
35
+ "@modern-js/packages-generator": "3.1.27",
36
+ "@modern-js/generator-utils": "3.1.27",
37
+ "@modern-js/generator-common": "3.1.27",
38
+ "@modern-js/changeset-generator": "3.1.27",
39
+ "@scripts/build": "2.25.2",
40
+ "@scripts/jest-config": "2.25.2"
41
41
  },
42
42
  "sideEffects": false,
43
43
  "publishConfig": {