@modern-js/repo-generator 0.0.0-next-1691390018265 → 0.0.0-next-1691417290773

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 +175 -203
  2. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -22,9 +22,6 @@ 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
- };
28
25
  var __commonJS = (cb, mod) => function __require() {
29
26
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
30
27
  };
@@ -8990,13 +8987,13 @@ var require_chalk = __commonJS({
8990
8987
  c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
8991
8988
  }
8992
8989
  }
8993
- function translateLevel2(e3) {
8990
+ function translateLevel(e3) {
8994
8991
  if (e3 === 0) {
8995
8992
  return false;
8996
8993
  }
8997
8994
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
8998
8995
  }
8999
- function supportsColor2(e3, t3) {
8996
+ function supportsColor(e3, t3) {
9000
8997
  if (c === 0) {
9001
8998
  return 0;
9002
8999
  }
@@ -9053,10 +9050,10 @@ var require_chalk = __commonJS({
9053
9050
  return n3;
9054
9051
  }
9055
9052
  function getSupportLevel(e3) {
9056
- const t3 = supportsColor2(e3, e3 && e3.isTTY);
9057
- return translateLevel2(t3);
9053
+ const t3 = supportsColor(e3, e3 && e3.isTTY);
9054
+ return translateLevel(t3);
9058
9055
  }
9059
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
9056
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
9060
9057
  }, 37: (e2) => {
9061
9058
  "use strict";
9062
9059
  e2.exports = require("os");
@@ -18131,13 +18128,13 @@ var require_debug = __commonJS({
18131
18128
  c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
18132
18129
  }
18133
18130
  }
18134
- function translateLevel2(e3) {
18131
+ function translateLevel(e3) {
18135
18132
  if (e3 === 0) {
18136
18133
  return false;
18137
18134
  }
18138
18135
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
18139
18136
  }
18140
- function supportsColor2(e3, t3) {
18137
+ function supportsColor(e3, t3) {
18141
18138
  if (c === 0) {
18142
18139
  return 0;
18143
18140
  }
@@ -18194,10 +18191,10 @@ var require_debug = __commonJS({
18194
18191
  return r3;
18195
18192
  }
18196
18193
  function getSupportLevel(e3) {
18197
- const t3 = supportsColor2(e3, e3 && e3.isTTY);
18198
- return translateLevel2(t3);
18194
+ const t3 = supportsColor(e3, e3 && e3.isTTY);
18195
+ return translateLevel(t3);
18199
18196
  }
18200
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
18197
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, n.isatty(1))), stderr: translateLevel(supportsColor(true, n.isatty(2))) };
18201
18198
  }, 37: (e2) => {
18202
18199
  "use strict";
18203
18200
  e2.exports = require("os");
@@ -43487,10 +43484,10 @@ var require_ms = __commonJS({
43487
43484
  }
43488
43485
  });
43489
43486
 
43490
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js
43487
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/common.js
43491
43488
  var require_common2 = __commonJS({
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) {
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) {
43494
43491
  createDebug.debug = createDebug;
43495
43492
  createDebug.default = createDebug;
43496
43493
  createDebug.coerce = coerce;
@@ -43499,8 +43496,8 @@ var require_common2 = __commonJS({
43499
43496
  createDebug.enabled = enabled;
43500
43497
  createDebug.humanize = require_ms();
43501
43498
  createDebug.destroy = destroy2;
43502
- Object.keys(env2).forEach((key) => {
43503
- createDebug[key] = env2[key];
43499
+ Object.keys(env).forEach((key) => {
43500
+ createDebug[key] = env[key];
43504
43501
  });
43505
43502
  createDebug.names = [];
43506
43503
  createDebug.skips = [];
@@ -43650,9 +43647,9 @@ var require_common2 = __commonJS({
43650
43647
  }
43651
43648
  });
43652
43649
 
43653
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js
43650
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/browser.js
43654
43651
  var require_browser = __commonJS({
43655
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js"(exports, module2) {
43652
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module2) {
43656
43653
  exports.formatArgs = formatArgs;
43657
43654
  exports.save = save;
43658
43655
  exports.load = load;
@@ -43819,144 +43816,119 @@ var require_browser = __commonJS({
43819
43816
  }
43820
43817
  });
43821
43818
 
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
43827
- });
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;
43838
- }
43839
- if (env.FORCE_COLOR === "false") {
43840
- return 0;
43841
- }
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;
43868
- }
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;
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
+ };
43882
43830
  }
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;
43831
+ });
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;
43887
43845
  }
43888
- return 1;
43889
- }
43890
- if ("CI" in env) {
43891
- if ("GITHUB_ACTIONS" in env) {
43892
- return 3;
43846
+ if ("FORCE_COLOR" in env) {
43847
+ forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
43893
43848
  }
43894
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
43895
- return 1;
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
+ };
43896
43859
  }
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;
43860
+ function supportsColor(stream) {
43861
+ if (forceColor === false) {
43862
+ return 0;
43913
43863
  }
43914
- case "Apple_Terminal": {
43864
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
43865
+ return 3;
43866
+ }
43867
+ if (hasFlag("color=256")) {
43915
43868
  return 2;
43916
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
+ }
43901
+ }
43902
+ if (/-256(color)?$/i.test(env.TERM)) {
43903
+ return 2;
43904
+ }
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;
43917
43915
  }
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;
43916
+ function getSupportLevel(stream) {
43917
+ const level = supportsColor(stream);
43918
+ return translateLevel(level);
43947
43919
  }
43948
- supportsColor = {
43949
- stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
43950
- stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
43920
+ module2.exports = {
43921
+ supportsColor: getSupportLevel,
43922
+ stdout: getSupportLevel(process.stdout),
43923
+ stderr: getSupportLevel(process.stderr)
43951
43924
  };
43952
- supports_color_default = supportsColor;
43953
43925
  }
43954
43926
  });
43955
43927
 
43956
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js
43928
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/node.js
43957
43929
  var require_node = __commonJS({
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");
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");
43960
43932
  var util = require("util");
43961
43933
  exports.init = init;
43962
43934
  exports.log = log;
@@ -43971,8 +43943,8 @@ var require_node = __commonJS({
43971
43943
  );
43972
43944
  exports.colors = [6, 2, 3, 4, 5, 1];
43973
43945
  try {
43974
- const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
43975
- if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
43946
+ const supportsColor = require_supports_color();
43947
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
43976
43948
  exports.colors = [
43977
43949
  20,
43978
43950
  21,
@@ -44074,7 +44046,7 @@ var require_node = __commonJS({
44074
44046
  return obj;
44075
44047
  }, {});
44076
44048
  function useColors() {
44077
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
44049
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
44078
44050
  }
44079
44051
  function formatArgs(args) {
44080
44052
  const { namespace: name, useColors: useColors2 } = this;
@@ -44127,9 +44099,9 @@ var require_node = __commonJS({
44127
44099
  }
44128
44100
  });
44129
44101
 
44130
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js
44102
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/index.js
44131
44103
  var require_src3 = __commonJS({
44132
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js"(exports, module2) {
44104
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/index.js"(exports, module2) {
44133
44105
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
44134
44106
  module2.exports = require_browser();
44135
44107
  } else {
@@ -52475,15 +52447,15 @@ var require_runtime = __commonJS({
52475
52447
  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] + ").");
52476
52448
  }
52477
52449
  }
52478
- function template(templateSpec, env2) {
52479
- if (!env2) {
52450
+ function template(templateSpec, env) {
52451
+ if (!env) {
52480
52452
  throw new _exception2["default"]("No environment passed to template");
52481
52453
  }
52482
52454
  if (!templateSpec || !templateSpec.main) {
52483
52455
  throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
52484
52456
  }
52485
52457
  templateSpec.main.decorator = templateSpec.main_d;
52486
- env2.VM.checkRevision(templateSpec.compiler);
52458
+ env.VM.checkRevision(templateSpec.compiler);
52487
52459
  var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
52488
52460
  function invokePartialWrapper(partial, context, options) {
52489
52461
  if (options.hash) {
@@ -52492,14 +52464,14 @@ var require_runtime = __commonJS({
52492
52464
  options.ids[0] = true;
52493
52465
  }
52494
52466
  }
52495
- partial = env2.VM.resolvePartial.call(this, partial, context, options);
52467
+ partial = env.VM.resolvePartial.call(this, partial, context, options);
52496
52468
  var extendedOptions = Utils.extend({}, options, {
52497
52469
  hooks: this.hooks,
52498
52470
  protoAccessControl: this.protoAccessControl
52499
52471
  });
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);
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);
52503
52475
  result = options.partials[options.name](context, extendedOptions);
52504
52476
  }
52505
52477
  if (result != null) {
@@ -52584,7 +52556,7 @@ var require_runtime = __commonJS({
52584
52556
  },
52585
52557
  // An empty object to use as replacement for null-contexts
52586
52558
  nullContext: Object.seal({}),
52587
- noop: env2.VM.noop,
52559
+ noop: env.VM.noop,
52588
52560
  compilerInfo: templateSpec.compiler
52589
52561
  };
52590
52562
  function ret(context) {
@@ -52611,14 +52583,14 @@ var require_runtime = __commonJS({
52611
52583
  ret.isTop = true;
52612
52584
  ret._setup = function(options) {
52613
52585
  if (!options.partial) {
52614
- var mergedHelpers = Utils.extend({}, env2.helpers, options.helpers);
52586
+ var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);
52615
52587
  wrapHelpersToPassLookupProperty(mergedHelpers, container);
52616
52588
  container.helpers = mergedHelpers;
52617
52589
  if (templateSpec.usePartial) {
52618
- container.partials = container.mergeIfNeeded(options.partials, env2.partials);
52590
+ container.partials = container.mergeIfNeeded(options.partials, env.partials);
52619
52591
  }
52620
52592
  if (templateSpec.usePartial || templateSpec.useDecorators) {
52621
- container.decorators = Utils.extend({}, env2.decorators, options.decorators);
52593
+ container.decorators = Utils.extend({}, env.decorators, options.decorators);
52622
52594
  }
52623
52595
  container.hooks = {};
52624
52596
  container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
@@ -54420,7 +54392,7 @@ var require_compiler = __commonJS({
54420
54392
  }
54421
54393
  }
54422
54394
  };
54423
- function precompile(input, options, env2) {
54395
+ function precompile(input, options, env) {
54424
54396
  if (input == null || typeof input !== "string" && input.type !== "Program") {
54425
54397
  throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
54426
54398
  }
@@ -54431,10 +54403,10 @@ var require_compiler = __commonJS({
54431
54403
  if (options.compat) {
54432
54404
  options.useDepths = true;
54433
54405
  }
54434
- var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
54435
- return new env2.JavaScriptCompiler().compile(environment, options);
54406
+ var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options);
54407
+ return new env.JavaScriptCompiler().compile(environment, options);
54436
54408
  }
54437
- function compile3(input, options, env2) {
54409
+ function compile3(input, options, env) {
54438
54410
  if (options === void 0)
54439
54411
  options = {};
54440
54412
  if (input == null || typeof input !== "string" && input.type !== "Program") {
@@ -54449,8 +54421,8 @@ var require_compiler = __commonJS({
54449
54421
  }
54450
54422
  var compiled = void 0;
54451
54423
  function compileInput() {
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);
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);
54454
54426
  }
54455
54427
  function ret(context, execOptions) {
54456
54428
  if (!compiled) {
@@ -63061,7 +63033,7 @@ var require_innerFrom = __commonJS({
63061
63033
  exports.fromIterable = fromIterable;
63062
63034
  function fromAsyncIterable(asyncIterable) {
63063
63035
  return new Observable_1.Observable(function(subscriber) {
63064
- process3(asyncIterable, subscriber).catch(function(err) {
63036
+ process2(asyncIterable, subscriber).catch(function(err) {
63065
63037
  return subscriber.error(err);
63066
63038
  });
63067
63039
  });
@@ -63071,7 +63043,7 @@ var require_innerFrom = __commonJS({
63071
63043
  return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
63072
63044
  }
63073
63045
  exports.fromReadableStreamLike = fromReadableStreamLike;
63074
- function process3(asyncIterable, subscriber) {
63046
+ function process2(asyncIterable, subscriber) {
63075
63047
  var asyncIterable_1, asyncIterable_1_1;
63076
63048
  var e_2, _a2;
63077
63049
  return __awaiter6(this, void 0, void 0, function() {
@@ -70350,11 +70322,11 @@ var require_signals = __commonJS({
70350
70322
  // ../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
70351
70323
  var require_signal_exit = __commonJS({
70352
70324
  "../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
70353
- var process3 = global.process;
70354
- var processOk = function(process4) {
70355
- 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";
70325
+ var process2 = global.process;
70326
+ var processOk = function(process3) {
70327
+ 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";
70356
70328
  };
70357
- if (!processOk(process3)) {
70329
+ if (!processOk(process2)) {
70358
70330
  module2.exports = function() {
70359
70331
  return function() {
70360
70332
  };
@@ -70362,15 +70334,15 @@ var require_signal_exit = __commonJS({
70362
70334
  } else {
70363
70335
  assert = require("assert");
70364
70336
  signals = require_signals();
70365
- isWin = /^win/i.test(process3.platform);
70337
+ isWin = /^win/i.test(process2.platform);
70366
70338
  EE = require("events");
70367
70339
  if (typeof EE !== "function") {
70368
70340
  EE = EE.EventEmitter;
70369
70341
  }
70370
- if (process3.__signal_exit_emitter__) {
70371
- emitter = process3.__signal_exit_emitter__;
70342
+ if (process2.__signal_exit_emitter__) {
70343
+ emitter = process2.__signal_exit_emitter__;
70372
70344
  } else {
70373
- emitter = process3.__signal_exit_emitter__ = new EE();
70345
+ emitter = process2.__signal_exit_emitter__ = new EE();
70374
70346
  emitter.count = 0;
70375
70347
  emitter.emitted = {};
70376
70348
  }
@@ -70407,12 +70379,12 @@ var require_signal_exit = __commonJS({
70407
70379
  loaded = false;
70408
70380
  signals.forEach(function(sig) {
70409
70381
  try {
70410
- process3.removeListener(sig, sigListeners[sig]);
70382
+ process2.removeListener(sig, sigListeners[sig]);
70411
70383
  } catch (er) {
70412
70384
  }
70413
70385
  });
70414
- process3.emit = originalProcessEmit;
70415
- process3.reallyExit = originalProcessReallyExit;
70386
+ process2.emit = originalProcessEmit;
70387
+ process2.reallyExit = originalProcessReallyExit;
70416
70388
  emitter.count -= 1;
70417
70389
  };
70418
70390
  module2.exports.unload = unload;
@@ -70429,7 +70401,7 @@ var require_signal_exit = __commonJS({
70429
70401
  if (!processOk(global.process)) {
70430
70402
  return;
70431
70403
  }
70432
- var listeners = process3.listeners(sig);
70404
+ var listeners = process2.listeners(sig);
70433
70405
  if (listeners.length === emitter.count) {
70434
70406
  unload();
70435
70407
  emit("exit", null, sig);
@@ -70437,7 +70409,7 @@ var require_signal_exit = __commonJS({
70437
70409
  if (isWin && sig === "SIGHUP") {
70438
70410
  sig = "SIGINT";
70439
70411
  }
70440
- process3.kill(process3.pid, sig);
70412
+ process2.kill(process2.pid, sig);
70441
70413
  }
70442
70414
  };
70443
70415
  });
@@ -70453,36 +70425,36 @@ var require_signal_exit = __commonJS({
70453
70425
  emitter.count += 1;
70454
70426
  signals = signals.filter(function(sig) {
70455
70427
  try {
70456
- process3.on(sig, sigListeners[sig]);
70428
+ process2.on(sig, sigListeners[sig]);
70457
70429
  return true;
70458
70430
  } catch (er) {
70459
70431
  return false;
70460
70432
  }
70461
70433
  });
70462
- process3.emit = processEmit;
70463
- process3.reallyExit = processReallyExit;
70434
+ process2.emit = processEmit;
70435
+ process2.reallyExit = processReallyExit;
70464
70436
  };
70465
70437
  module2.exports.load = load;
70466
- originalProcessReallyExit = process3.reallyExit;
70438
+ originalProcessReallyExit = process2.reallyExit;
70467
70439
  processReallyExit = function processReallyExit2(code) {
70468
70440
  if (!processOk(global.process)) {
70469
70441
  return;
70470
70442
  }
70471
- process3.exitCode = code || /* istanbul ignore next */
70443
+ process2.exitCode = code || /* istanbul ignore next */
70472
70444
  0;
70473
- emit("exit", process3.exitCode, null);
70474
- emit("afterexit", process3.exitCode, null);
70475
- originalProcessReallyExit.call(process3, process3.exitCode);
70445
+ emit("exit", process2.exitCode, null);
70446
+ emit("afterexit", process2.exitCode, null);
70447
+ originalProcessReallyExit.call(process2, process2.exitCode);
70476
70448
  };
70477
- originalProcessEmit = process3.emit;
70449
+ originalProcessEmit = process2.emit;
70478
70450
  processEmit = function processEmit2(ev, arg) {
70479
70451
  if (ev === "exit" && processOk(global.process)) {
70480
70452
  if (arg !== void 0) {
70481
- process3.exitCode = arg;
70453
+ process2.exitCode = arg;
70482
70454
  }
70483
70455
  var ret = originalProcessEmit.apply(this, arguments);
70484
- emit("exit", process3.exitCode, null);
70485
- emit("afterexit", process3.exitCode, null);
70456
+ emit("exit", process2.exitCode, null);
70457
+ emit("afterexit", process2.exitCode, null);
70486
70458
  return ret;
70487
70459
  } else {
70488
70460
  return originalProcessEmit.apply(this, arguments);
@@ -96833,13 +96805,13 @@ var require_chalk2 = __commonJS({
96833
96805
  c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
96834
96806
  }
96835
96807
  }
96836
- function translateLevel2(e3) {
96808
+ function translateLevel(e3) {
96837
96809
  if (e3 === 0) {
96838
96810
  return false;
96839
96811
  }
96840
96812
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
96841
96813
  }
96842
- function supportsColor2(e3, t3) {
96814
+ function supportsColor(e3, t3) {
96843
96815
  if (c === 0) {
96844
96816
  return 0;
96845
96817
  }
@@ -96896,10 +96868,10 @@ var require_chalk2 = __commonJS({
96896
96868
  return n3;
96897
96869
  }
96898
96870
  function getSupportLevel(e3) {
96899
- const t3 = supportsColor2(e3, e3 && e3.isTTY);
96900
- return translateLevel2(t3);
96871
+ const t3 = supportsColor(e3, e3 && e3.isTTY);
96872
+ return translateLevel(t3);
96901
96873
  }
96902
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
96874
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
96903
96875
  }, 37: (e2) => {
96904
96876
  "use strict";
96905
96877
  e2.exports = require("os");
@@ -105974,13 +105946,13 @@ var require_debug3 = __commonJS({
105974
105946
  c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
105975
105947
  }
105976
105948
  }
105977
- function translateLevel2(e3) {
105949
+ function translateLevel(e3) {
105978
105950
  if (e3 === 0) {
105979
105951
  return false;
105980
105952
  }
105981
105953
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
105982
105954
  }
105983
- function supportsColor2(e3, t3) {
105955
+ function supportsColor(e3, t3) {
105984
105956
  if (c === 0) {
105985
105957
  return 0;
105986
105958
  }
@@ -106037,10 +106009,10 @@ var require_debug3 = __commonJS({
106037
106009
  return r3;
106038
106010
  }
106039
106011
  function getSupportLevel(e3) {
106040
- const t3 = supportsColor2(e3, e3 && e3.isTTY);
106041
- return translateLevel2(t3);
106012
+ const t3 = supportsColor(e3, e3 && e3.isTTY);
106013
+ return translateLevel(t3);
106042
106014
  }
106043
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
106015
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, n.isatty(1))), stderr: translateLevel(supportsColor(true, n.isatty(2))) };
106044
106016
  }, 37: (e2) => {
106045
106017
  "use strict";
106046
106018
  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-1691390018265",
18
+ "version": "0.0.0-next-1691417290773",
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/base-generator": "0.0.0-next-1691390018265",
33
- "@modern-js/generator-common": "0.0.0-next-1691390018265",
34
- "@modern-js/generator-plugin": "0.0.0-next-1691390018265",
35
- "@modern-js/generator-utils": "0.0.0-next-1691390018265",
36
- "@modern-js/module-generator": "0.0.0-next-1691390018265",
37
- "@modern-js/monorepo-generator": "0.0.0-next-1691390018265",
38
- "@modern-js/mwa-generator": "0.0.0-next-1691390018265",
39
- "@modern-js/doc-generator": "0.0.0-next-1691390018265",
40
- "@modern-js/utils": "0.0.0-next-1691390018265",
41
- "@scripts/build": "0.0.0-next-1691390018265",
42
- "@scripts/jest-config": "0.0.0-next-1691390018265"
32
+ "@modern-js/base-generator": "0.0.0-next-1691417290773",
33
+ "@modern-js/generator-plugin": "0.0.0-next-1691417290773",
34
+ "@modern-js/generator-utils": "0.0.0-next-1691417290773",
35
+ "@modern-js/generator-common": "0.0.0-next-1691417290773",
36
+ "@modern-js/module-generator": "0.0.0-next-1691417290773",
37
+ "@modern-js/monorepo-generator": "0.0.0-next-1691417290773",
38
+ "@modern-js/mwa-generator": "0.0.0-next-1691417290773",
39
+ "@modern-js/doc-generator": "0.0.0-next-1691417290773",
40
+ "@scripts/build": "0.0.0-next-1691417290773",
41
+ "@modern-js/utils": "0.0.0-next-1691417290773",
42
+ "@scripts/jest-config": "0.0.0-next-1691417290773"
43
43
  },
44
44
  "sideEffects": false,
45
45
  "publishConfig": {