@modern-js/repo-generator 0.0.0-next-1690265928158 → 0.0.0-next-1690272707986

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 -175
  2. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -22,6 +22,9 @@ var __spreadValues = (a, b) => {
22
22
  return a;
23
23
  };
24
24
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __esm = (fn, res) => function __init() {
26
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
27
+ };
25
28
  var __commonJS = (cb, mod) => function __require() {
26
29
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
27
30
  };
@@ -8987,13 +8990,13 @@ var require_chalk = __commonJS({
8987
8990
  c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
8988
8991
  }
8989
8992
  }
8990
- function translateLevel(e3) {
8993
+ function translateLevel2(e3) {
8991
8994
  if (e3 === 0) {
8992
8995
  return false;
8993
8996
  }
8994
8997
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
8995
8998
  }
8996
- function supportsColor(e3, t3) {
8999
+ function supportsColor2(e3, t3) {
8997
9000
  if (c === 0) {
8998
9001
  return 0;
8999
9002
  }
@@ -9050,10 +9053,10 @@ var require_chalk = __commonJS({
9050
9053
  return n3;
9051
9054
  }
9052
9055
  function getSupportLevel(e3) {
9053
- const t3 = supportsColor(e3, e3 && e3.isTTY);
9054
- return translateLevel(t3);
9056
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
9057
+ return translateLevel2(t3);
9055
9058
  }
9056
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
9059
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
9057
9060
  }, 37: (e2) => {
9058
9061
  "use strict";
9059
9062
  e2.exports = require("os");
@@ -18128,13 +18131,13 @@ var require_debug = __commonJS({
18128
18131
  c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
18129
18132
  }
18130
18133
  }
18131
- function translateLevel(e3) {
18134
+ function translateLevel2(e3) {
18132
18135
  if (e3 === 0) {
18133
18136
  return false;
18134
18137
  }
18135
18138
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
18136
18139
  }
18137
- function supportsColor(e3, t3) {
18140
+ function supportsColor2(e3, t3) {
18138
18141
  if (c === 0) {
18139
18142
  return 0;
18140
18143
  }
@@ -18191,10 +18194,10 @@ var require_debug = __commonJS({
18191
18194
  return r3;
18192
18195
  }
18193
18196
  function getSupportLevel(e3) {
18194
- const t3 = supportsColor(e3, e3 && e3.isTTY);
18195
- return translateLevel(t3);
18197
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
18198
+ return translateLevel2(t3);
18196
18199
  }
18197
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, n.isatty(1))), stderr: translateLevel(supportsColor(true, n.isatty(2))) };
18200
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
18198
18201
  }, 37: (e2) => {
18199
18202
  "use strict";
18200
18203
  e2.exports = require("os");
@@ -43484,10 +43487,10 @@ var require_ms = __commonJS({
43484
43487
  }
43485
43488
  });
43486
43489
 
43487
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/common.js
43490
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js
43488
43491
  var require_common2 = __commonJS({
43489
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/common.js"(exports, module2) {
43490
- function setup(env) {
43492
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js"(exports, module2) {
43493
+ function setup(env2) {
43491
43494
  createDebug.debug = createDebug;
43492
43495
  createDebug.default = createDebug;
43493
43496
  createDebug.coerce = coerce;
@@ -43496,8 +43499,8 @@ var require_common2 = __commonJS({
43496
43499
  createDebug.enabled = enabled;
43497
43500
  createDebug.humanize = require_ms();
43498
43501
  createDebug.destroy = destroy2;
43499
- Object.keys(env).forEach((key) => {
43500
- createDebug[key] = env[key];
43502
+ Object.keys(env2).forEach((key) => {
43503
+ createDebug[key] = env2[key];
43501
43504
  });
43502
43505
  createDebug.names = [];
43503
43506
  createDebug.skips = [];
@@ -43647,9 +43650,9 @@ var require_common2 = __commonJS({
43647
43650
  }
43648
43651
  });
43649
43652
 
43650
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/browser.js
43653
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js
43651
43654
  var require_browser = __commonJS({
43652
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module2) {
43655
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js"(exports, module2) {
43653
43656
  exports.formatArgs = formatArgs;
43654
43657
  exports.save = save;
43655
43658
  exports.load = load;
@@ -43816,119 +43819,144 @@ var require_browser = __commonJS({
43816
43819
  }
43817
43820
  });
43818
43821
 
43819
- // ../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js
43820
- var require_has_flag = __commonJS({
43821
- "../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
43822
- "use strict";
43823
- module2.exports = (flag, argv) => {
43824
- argv = argv || process.argv;
43825
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
43826
- const pos = argv.indexOf(prefix + flag);
43827
- const terminatorPos = argv.indexOf("--");
43828
- return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
43829
- };
43830
- }
43822
+ // ../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js
43823
+ var supports_color_exports = {};
43824
+ __export(supports_color_exports, {
43825
+ createSupportsColor: () => createSupportsColor,
43826
+ default: () => supports_color_default
43831
43827
  });
43832
-
43833
- // ../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
43834
- var require_supports_color = __commonJS({
43835
- "../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
43836
- "use strict";
43837
- var os2 = require("os");
43838
- var hasFlag = require_has_flag();
43839
- var env = process.env;
43840
- var forceColor;
43841
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
43842
- forceColor = false;
43843
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
43844
- forceColor = true;
43828
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
43829
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
43830
+ const position = argv.indexOf(prefix + flag);
43831
+ const terminatorPosition = argv.indexOf("--");
43832
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
43833
+ }
43834
+ function envForceColor() {
43835
+ if ("FORCE_COLOR" in env) {
43836
+ if (env.FORCE_COLOR === "true") {
43837
+ return 1;
43845
43838
  }
43846
- if ("FORCE_COLOR" in env) {
43847
- forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
43839
+ if (env.FORCE_COLOR === "false") {
43840
+ return 0;
43848
43841
  }
43849
- function translateLevel(level) {
43850
- if (level === 0) {
43851
- return false;
43852
- }
43853
- return {
43854
- level,
43855
- hasBasic: true,
43856
- has256: level >= 2,
43857
- has16m: level >= 3
43858
- };
43842
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
43843
+ }
43844
+ }
43845
+ function translateLevel(level) {
43846
+ if (level === 0) {
43847
+ return false;
43848
+ }
43849
+ return {
43850
+ level,
43851
+ hasBasic: true,
43852
+ has256: level >= 2,
43853
+ has16m: level >= 3
43854
+ };
43855
+ }
43856
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
43857
+ const noFlagForceColor = envForceColor();
43858
+ if (noFlagForceColor !== void 0) {
43859
+ flagForceColor = noFlagForceColor;
43860
+ }
43861
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
43862
+ if (forceColor === 0) {
43863
+ return 0;
43864
+ }
43865
+ if (sniffFlags) {
43866
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
43867
+ return 3;
43859
43868
  }
43860
- function supportsColor(stream) {
43861
- if (forceColor === false) {
43862
- return 0;
43863
- }
43864
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
43865
- return 3;
43866
- }
43867
- if (hasFlag("color=256")) {
43868
- return 2;
43869
- }
43870
- if (stream && !stream.isTTY && forceColor !== true) {
43871
- return 0;
43872
- }
43873
- const min = forceColor ? 1 : 0;
43874
- if (process.platform === "win32") {
43875
- const osRelease = os2.release().split(".");
43876
- if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
43877
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
43878
- }
43879
- return 1;
43880
- }
43881
- if ("CI" in env) {
43882
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
43883
- return 1;
43884
- }
43885
- return min;
43886
- }
43887
- if ("TEAMCITY_VERSION" in env) {
43888
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
43889
- }
43890
- if (env.COLORTERM === "truecolor") {
43891
- return 3;
43892
- }
43893
- if ("TERM_PROGRAM" in env) {
43894
- const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
43895
- switch (env.TERM_PROGRAM) {
43896
- case "iTerm.app":
43897
- return version >= 3 ? 3 : 2;
43898
- case "Apple_Terminal":
43899
- return 2;
43900
- }
43869
+ if (hasFlag("color=256")) {
43870
+ return 2;
43871
+ }
43872
+ }
43873
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {
43874
+ return 1;
43875
+ }
43876
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
43877
+ return 0;
43878
+ }
43879
+ const min = forceColor || 0;
43880
+ if (env.TERM === "dumb") {
43881
+ return min;
43882
+ }
43883
+ if (import_node_process.default.platform === "win32") {
43884
+ const osRelease = import_node_os.default.release().split(".");
43885
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
43886
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
43887
+ }
43888
+ return 1;
43889
+ }
43890
+ if ("CI" in env) {
43891
+ if ("GITHUB_ACTIONS" in env) {
43892
+ return 3;
43893
+ }
43894
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
43895
+ return 1;
43896
+ }
43897
+ return min;
43898
+ }
43899
+ if ("TEAMCITY_VERSION" in env) {
43900
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
43901
+ }
43902
+ if (env.COLORTERM === "truecolor") {
43903
+ return 3;
43904
+ }
43905
+ if (env.TERM === "xterm-kitty") {
43906
+ return 3;
43907
+ }
43908
+ if ("TERM_PROGRAM" in env) {
43909
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
43910
+ switch (env.TERM_PROGRAM) {
43911
+ case "iTerm.app": {
43912
+ return version >= 3 ? 3 : 2;
43901
43913
  }
43902
- if (/-256(color)?$/i.test(env.TERM)) {
43914
+ case "Apple_Terminal": {
43903
43915
  return 2;
43904
43916
  }
43905
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
43906
- return 1;
43907
- }
43908
- if ("COLORTERM" in env) {
43909
- return 1;
43910
- }
43911
- if (env.TERM === "dumb") {
43912
- return min;
43913
- }
43914
- return min;
43915
43917
  }
43916
- function getSupportLevel(stream) {
43917
- const level = supportsColor(stream);
43918
- return translateLevel(level);
43918
+ }
43919
+ if (/-256(color)?$/i.test(env.TERM)) {
43920
+ return 2;
43921
+ }
43922
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
43923
+ return 1;
43924
+ }
43925
+ if ("COLORTERM" in env) {
43926
+ return 1;
43927
+ }
43928
+ return min;
43929
+ }
43930
+ function createSupportsColor(stream, options = {}) {
43931
+ const level = _supportsColor(stream, __spreadValues({
43932
+ streamIsTTY: stream && stream.isTTY
43933
+ }, options));
43934
+ return translateLevel(level);
43935
+ }
43936
+ var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
43937
+ var init_supports_color = __esm({
43938
+ "../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js"() {
43939
+ import_node_process = __toESM(require("process"));
43940
+ import_node_os = __toESM(require("os"));
43941
+ import_node_tty = __toESM(require("tty"));
43942
+ ({ env } = import_node_process.default);
43943
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
43944
+ flagForceColor = 0;
43945
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
43946
+ flagForceColor = 1;
43919
43947
  }
43920
- module2.exports = {
43921
- supportsColor: getSupportLevel,
43922
- stdout: getSupportLevel(process.stdout),
43923
- stderr: getSupportLevel(process.stderr)
43948
+ supportsColor = {
43949
+ stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
43950
+ stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
43924
43951
  };
43952
+ supports_color_default = supportsColor;
43925
43953
  }
43926
43954
  });
43927
43955
 
43928
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/node.js
43956
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js
43929
43957
  var require_node = __commonJS({
43930
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/node.js"(exports, module2) {
43931
- var tty = require("tty");
43958
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js"(exports, module2) {
43959
+ var tty2 = require("tty");
43932
43960
  var util = require("util");
43933
43961
  exports.init = init;
43934
43962
  exports.log = log;
@@ -43943,8 +43971,8 @@ var require_node = __commonJS({
43943
43971
  );
43944
43972
  exports.colors = [6, 2, 3, 4, 5, 1];
43945
43973
  try {
43946
- const supportsColor = require_supports_color();
43947
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
43974
+ const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
43975
+ if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
43948
43976
  exports.colors = [
43949
43977
  20,
43950
43978
  21,
@@ -44046,7 +44074,7 @@ var require_node = __commonJS({
44046
44074
  return obj;
44047
44075
  }, {});
44048
44076
  function useColors() {
44049
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
44077
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
44050
44078
  }
44051
44079
  function formatArgs(args) {
44052
44080
  const { namespace: name, useColors: useColors2 } = this;
@@ -44099,9 +44127,9 @@ var require_node = __commonJS({
44099
44127
  }
44100
44128
  });
44101
44129
 
44102
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/index.js
44130
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js
44103
44131
  var require_src3 = __commonJS({
44104
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/index.js"(exports, module2) {
44132
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js"(exports, module2) {
44105
44133
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
44106
44134
  module2.exports = require_browser();
44107
44135
  } else {
@@ -52447,15 +52475,15 @@ var require_runtime = __commonJS({
52447
52475
  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] + ").");
52448
52476
  }
52449
52477
  }
52450
- function template(templateSpec, env) {
52451
- if (!env) {
52478
+ function template(templateSpec, env2) {
52479
+ if (!env2) {
52452
52480
  throw new _exception2["default"]("No environment passed to template");
52453
52481
  }
52454
52482
  if (!templateSpec || !templateSpec.main) {
52455
52483
  throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
52456
52484
  }
52457
52485
  templateSpec.main.decorator = templateSpec.main_d;
52458
- env.VM.checkRevision(templateSpec.compiler);
52486
+ env2.VM.checkRevision(templateSpec.compiler);
52459
52487
  var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
52460
52488
  function invokePartialWrapper(partial, context, options) {
52461
52489
  if (options.hash) {
@@ -52464,14 +52492,14 @@ var require_runtime = __commonJS({
52464
52492
  options.ids[0] = true;
52465
52493
  }
52466
52494
  }
52467
- partial = env.VM.resolvePartial.call(this, partial, context, options);
52495
+ partial = env2.VM.resolvePartial.call(this, partial, context, options);
52468
52496
  var extendedOptions = Utils.extend({}, options, {
52469
52497
  hooks: this.hooks,
52470
52498
  protoAccessControl: this.protoAccessControl
52471
52499
  });
52472
- var result = env.VM.invokePartial.call(this, partial, context, extendedOptions);
52473
- if (result == null && env.compile) {
52474
- options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);
52500
+ var result = env2.VM.invokePartial.call(this, partial, context, extendedOptions);
52501
+ if (result == null && env2.compile) {
52502
+ options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
52475
52503
  result = options.partials[options.name](context, extendedOptions);
52476
52504
  }
52477
52505
  if (result != null) {
@@ -52556,7 +52584,7 @@ var require_runtime = __commonJS({
52556
52584
  },
52557
52585
  // An empty object to use as replacement for null-contexts
52558
52586
  nullContext: Object.seal({}),
52559
- noop: env.VM.noop,
52587
+ noop: env2.VM.noop,
52560
52588
  compilerInfo: templateSpec.compiler
52561
52589
  };
52562
52590
  function ret(context) {
@@ -52583,14 +52611,14 @@ var require_runtime = __commonJS({
52583
52611
  ret.isTop = true;
52584
52612
  ret._setup = function(options) {
52585
52613
  if (!options.partial) {
52586
- var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);
52614
+ var mergedHelpers = Utils.extend({}, env2.helpers, options.helpers);
52587
52615
  wrapHelpersToPassLookupProperty(mergedHelpers, container);
52588
52616
  container.helpers = mergedHelpers;
52589
52617
  if (templateSpec.usePartial) {
52590
- container.partials = container.mergeIfNeeded(options.partials, env.partials);
52618
+ container.partials = container.mergeIfNeeded(options.partials, env2.partials);
52591
52619
  }
52592
52620
  if (templateSpec.usePartial || templateSpec.useDecorators) {
52593
- container.decorators = Utils.extend({}, env.decorators, options.decorators);
52621
+ container.decorators = Utils.extend({}, env2.decorators, options.decorators);
52594
52622
  }
52595
52623
  container.hooks = {};
52596
52624
  container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
@@ -54392,7 +54420,7 @@ var require_compiler = __commonJS({
54392
54420
  }
54393
54421
  }
54394
54422
  };
54395
- function precompile(input, options, env) {
54423
+ function precompile(input, options, env2) {
54396
54424
  if (input == null || typeof input !== "string" && input.type !== "Program") {
54397
54425
  throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
54398
54426
  }
@@ -54403,10 +54431,10 @@ var require_compiler = __commonJS({
54403
54431
  if (options.compat) {
54404
54432
  options.useDepths = true;
54405
54433
  }
54406
- var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options);
54407
- return new env.JavaScriptCompiler().compile(environment, options);
54434
+ var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
54435
+ return new env2.JavaScriptCompiler().compile(environment, options);
54408
54436
  }
54409
- function compile3(input, options, env) {
54437
+ function compile3(input, options, env2) {
54410
54438
  if (options === void 0)
54411
54439
  options = {};
54412
54440
  if (input == null || typeof input !== "string" && input.type !== "Program") {
@@ -54421,8 +54449,8 @@ var require_compiler = __commonJS({
54421
54449
  }
54422
54450
  var compiled = void 0;
54423
54451
  function compileInput() {
54424
- var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options), templateSpec = new env.JavaScriptCompiler().compile(environment, options, void 0, true);
54425
- return env.template(templateSpec);
54452
+ var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
54453
+ return env2.template(templateSpec);
54426
54454
  }
54427
54455
  function ret(context, execOptions) {
54428
54456
  if (!compiled) {
@@ -63026,7 +63054,7 @@ var require_innerFrom = __commonJS({
63026
63054
  exports.fromIterable = fromIterable;
63027
63055
  function fromAsyncIterable(asyncIterable) {
63028
63056
  return new Observable_1.Observable(function(subscriber) {
63029
- process2(asyncIterable, subscriber).catch(function(err) {
63057
+ process3(asyncIterable, subscriber).catch(function(err) {
63030
63058
  return subscriber.error(err);
63031
63059
  });
63032
63060
  });
@@ -63036,7 +63064,7 @@ var require_innerFrom = __commonJS({
63036
63064
  return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
63037
63065
  }
63038
63066
  exports.fromReadableStreamLike = fromReadableStreamLike;
63039
- function process2(asyncIterable, subscriber) {
63067
+ function process3(asyncIterable, subscriber) {
63040
63068
  var asyncIterable_1, asyncIterable_1_1;
63041
63069
  var e_2, _a2;
63042
63070
  return __awaiter6(this, void 0, void 0, function() {
@@ -70315,11 +70343,11 @@ var require_signals = __commonJS({
70315
70343
  // ../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
70316
70344
  var require_signal_exit = __commonJS({
70317
70345
  "../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
70318
- var process2 = global.process;
70319
- var processOk = function(process3) {
70320
- 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";
70346
+ var process3 = global.process;
70347
+ var processOk = function(process4) {
70348
+ 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";
70321
70349
  };
70322
- if (!processOk(process2)) {
70350
+ if (!processOk(process3)) {
70323
70351
  module2.exports = function() {
70324
70352
  return function() {
70325
70353
  };
@@ -70327,15 +70355,15 @@ var require_signal_exit = __commonJS({
70327
70355
  } else {
70328
70356
  assert = require("assert");
70329
70357
  signals = require_signals();
70330
- isWin = /^win/i.test(process2.platform);
70358
+ isWin = /^win/i.test(process3.platform);
70331
70359
  EE = require("events");
70332
70360
  if (typeof EE !== "function") {
70333
70361
  EE = EE.EventEmitter;
70334
70362
  }
70335
- if (process2.__signal_exit_emitter__) {
70336
- emitter = process2.__signal_exit_emitter__;
70363
+ if (process3.__signal_exit_emitter__) {
70364
+ emitter = process3.__signal_exit_emitter__;
70337
70365
  } else {
70338
- emitter = process2.__signal_exit_emitter__ = new EE();
70366
+ emitter = process3.__signal_exit_emitter__ = new EE();
70339
70367
  emitter.count = 0;
70340
70368
  emitter.emitted = {};
70341
70369
  }
@@ -70372,12 +70400,12 @@ var require_signal_exit = __commonJS({
70372
70400
  loaded = false;
70373
70401
  signals.forEach(function(sig) {
70374
70402
  try {
70375
- process2.removeListener(sig, sigListeners[sig]);
70403
+ process3.removeListener(sig, sigListeners[sig]);
70376
70404
  } catch (er) {
70377
70405
  }
70378
70406
  });
70379
- process2.emit = originalProcessEmit;
70380
- process2.reallyExit = originalProcessReallyExit;
70407
+ process3.emit = originalProcessEmit;
70408
+ process3.reallyExit = originalProcessReallyExit;
70381
70409
  emitter.count -= 1;
70382
70410
  };
70383
70411
  module2.exports.unload = unload;
@@ -70394,7 +70422,7 @@ var require_signal_exit = __commonJS({
70394
70422
  if (!processOk(global.process)) {
70395
70423
  return;
70396
70424
  }
70397
- var listeners = process2.listeners(sig);
70425
+ var listeners = process3.listeners(sig);
70398
70426
  if (listeners.length === emitter.count) {
70399
70427
  unload();
70400
70428
  emit("exit", null, sig);
@@ -70402,7 +70430,7 @@ var require_signal_exit = __commonJS({
70402
70430
  if (isWin && sig === "SIGHUP") {
70403
70431
  sig = "SIGINT";
70404
70432
  }
70405
- process2.kill(process2.pid, sig);
70433
+ process3.kill(process3.pid, sig);
70406
70434
  }
70407
70435
  };
70408
70436
  });
@@ -70418,36 +70446,36 @@ var require_signal_exit = __commonJS({
70418
70446
  emitter.count += 1;
70419
70447
  signals = signals.filter(function(sig) {
70420
70448
  try {
70421
- process2.on(sig, sigListeners[sig]);
70449
+ process3.on(sig, sigListeners[sig]);
70422
70450
  return true;
70423
70451
  } catch (er) {
70424
70452
  return false;
70425
70453
  }
70426
70454
  });
70427
- process2.emit = processEmit;
70428
- process2.reallyExit = processReallyExit;
70455
+ process3.emit = processEmit;
70456
+ process3.reallyExit = processReallyExit;
70429
70457
  };
70430
70458
  module2.exports.load = load;
70431
- originalProcessReallyExit = process2.reallyExit;
70459
+ originalProcessReallyExit = process3.reallyExit;
70432
70460
  processReallyExit = function processReallyExit2(code) {
70433
70461
  if (!processOk(global.process)) {
70434
70462
  return;
70435
70463
  }
70436
- process2.exitCode = code || /* istanbul ignore next */
70464
+ process3.exitCode = code || /* istanbul ignore next */
70437
70465
  0;
70438
- emit("exit", process2.exitCode, null);
70439
- emit("afterexit", process2.exitCode, null);
70440
- originalProcessReallyExit.call(process2, process2.exitCode);
70466
+ emit("exit", process3.exitCode, null);
70467
+ emit("afterexit", process3.exitCode, null);
70468
+ originalProcessReallyExit.call(process3, process3.exitCode);
70441
70469
  };
70442
- originalProcessEmit = process2.emit;
70470
+ originalProcessEmit = process3.emit;
70443
70471
  processEmit = function processEmit2(ev, arg) {
70444
70472
  if (ev === "exit" && processOk(global.process)) {
70445
70473
  if (arg !== void 0) {
70446
- process2.exitCode = arg;
70474
+ process3.exitCode = arg;
70447
70475
  }
70448
70476
  var ret = originalProcessEmit.apply(this, arguments);
70449
- emit("exit", process2.exitCode, null);
70450
- emit("afterexit", process2.exitCode, null);
70477
+ emit("exit", process3.exitCode, null);
70478
+ emit("afterexit", process3.exitCode, null);
70451
70479
  return ret;
70452
70480
  } else {
70453
70481
  return originalProcessEmit.apply(this, arguments);
@@ -96798,13 +96826,13 @@ var require_chalk2 = __commonJS({
96798
96826
  c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
96799
96827
  }
96800
96828
  }
96801
- function translateLevel(e3) {
96829
+ function translateLevel2(e3) {
96802
96830
  if (e3 === 0) {
96803
96831
  return false;
96804
96832
  }
96805
96833
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
96806
96834
  }
96807
- function supportsColor(e3, t3) {
96835
+ function supportsColor2(e3, t3) {
96808
96836
  if (c === 0) {
96809
96837
  return 0;
96810
96838
  }
@@ -96861,10 +96889,10 @@ var require_chalk2 = __commonJS({
96861
96889
  return n3;
96862
96890
  }
96863
96891
  function getSupportLevel(e3) {
96864
- const t3 = supportsColor(e3, e3 && e3.isTTY);
96865
- return translateLevel(t3);
96892
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
96893
+ return translateLevel2(t3);
96866
96894
  }
96867
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
96895
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
96868
96896
  }, 37: (e2) => {
96869
96897
  "use strict";
96870
96898
  e2.exports = require("os");
@@ -105939,13 +105967,13 @@ var require_debug3 = __commonJS({
105939
105967
  c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
105940
105968
  }
105941
105969
  }
105942
- function translateLevel(e3) {
105970
+ function translateLevel2(e3) {
105943
105971
  if (e3 === 0) {
105944
105972
  return false;
105945
105973
  }
105946
105974
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
105947
105975
  }
105948
- function supportsColor(e3, t3) {
105976
+ function supportsColor2(e3, t3) {
105949
105977
  if (c === 0) {
105950
105978
  return 0;
105951
105979
  }
@@ -106002,10 +106030,10 @@ var require_debug3 = __commonJS({
106002
106030
  return r3;
106003
106031
  }
106004
106032
  function getSupportLevel(e3) {
106005
- const t3 = supportsColor(e3, e3 && e3.isTTY);
106006
- return translateLevel(t3);
106033
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
106034
+ return translateLevel2(t3);
106007
106035
  }
106008
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, n.isatty(1))), stderr: translateLevel(supportsColor(true, n.isatty(2))) };
106036
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
106009
106037
  }, 37: (e2) => {
106010
106038
  "use strict";
106011
106039
  e2.exports = require("os");
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-1690265928158",
18
+ "version": "0.0.0-next-1690272707986",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -29,17 +29,17 @@
29
29
  "@types/node": "^14",
30
30
  "jest": "^29",
31
31
  "typescript": "^5",
32
- "@modern-js/generator-common": "0.0.0-next-1690265928158",
33
- "@modern-js/module-generator": "0.0.0-next-1690265928158",
34
- "@modern-js/monorepo-generator": "0.0.0-next-1690265928158",
35
- "@modern-js/mwa-generator": "0.0.0-next-1690265928158",
36
- "@modern-js/doc-generator": "0.0.0-next-1690265928158",
37
- "@modern-js/utils": "0.0.0-next-1690265928158",
38
- "@modern-js/generator-plugin": "0.0.0-next-1690265928158",
39
- "@modern-js/generator-utils": "0.0.0-next-1690265928158",
40
- "@modern-js/base-generator": "0.0.0-next-1690265928158",
41
- "@scripts/jest-config": "0.0.0-next-1690265928158",
42
- "@scripts/build": "0.0.0-next-1690265928158"
32
+ "@modern-js/generator-utils": "0.0.0-next-1690272707986",
33
+ "@modern-js/module-generator": "0.0.0-next-1690272707986",
34
+ "@modern-js/monorepo-generator": "0.0.0-next-1690272707986",
35
+ "@modern-js/mwa-generator": "0.0.0-next-1690272707986",
36
+ "@modern-js/doc-generator": "0.0.0-next-1690272707986",
37
+ "@modern-js/utils": "0.0.0-next-1690272707986",
38
+ "@modern-js/generator-plugin": "0.0.0-next-1690272707986",
39
+ "@modern-js/generator-common": "0.0.0-next-1690272707986",
40
+ "@modern-js/base-generator": "0.0.0-next-1690272707986",
41
+ "@scripts/jest-config": "0.0.0-next-1690272707986",
42
+ "@scripts/build": "0.0.0-next-1690272707986"
43
43
  },
44
44
  "sideEffects": false,
45
45
  "publishConfig": {