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

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) {
@@ -63054,7 +63026,7 @@ var require_innerFrom = __commonJS({
63054
63026
  exports.fromIterable = fromIterable;
63055
63027
  function fromAsyncIterable(asyncIterable) {
63056
63028
  return new Observable_1.Observable(function(subscriber) {
63057
- process3(asyncIterable, subscriber).catch(function(err) {
63029
+ process2(asyncIterable, subscriber).catch(function(err) {
63058
63030
  return subscriber.error(err);
63059
63031
  });
63060
63032
  });
@@ -63064,7 +63036,7 @@ var require_innerFrom = __commonJS({
63064
63036
  return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
63065
63037
  }
63066
63038
  exports.fromReadableStreamLike = fromReadableStreamLike;
63067
- function process3(asyncIterable, subscriber) {
63039
+ function process2(asyncIterable, subscriber) {
63068
63040
  var asyncIterable_1, asyncIterable_1_1;
63069
63041
  var e_2, _a2;
63070
63042
  return __awaiter6(this, void 0, void 0, function() {
@@ -70343,11 +70315,11 @@ var require_signals = __commonJS({
70343
70315
  // ../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
70344
70316
  var require_signal_exit = __commonJS({
70345
70317
  "../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
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";
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";
70349
70321
  };
70350
- if (!processOk(process3)) {
70322
+ if (!processOk(process2)) {
70351
70323
  module2.exports = function() {
70352
70324
  return function() {
70353
70325
  };
@@ -70355,15 +70327,15 @@ var require_signal_exit = __commonJS({
70355
70327
  } else {
70356
70328
  assert = require("assert");
70357
70329
  signals = require_signals();
70358
- isWin = /^win/i.test(process3.platform);
70330
+ isWin = /^win/i.test(process2.platform);
70359
70331
  EE = require("events");
70360
70332
  if (typeof EE !== "function") {
70361
70333
  EE = EE.EventEmitter;
70362
70334
  }
70363
- if (process3.__signal_exit_emitter__) {
70364
- emitter = process3.__signal_exit_emitter__;
70335
+ if (process2.__signal_exit_emitter__) {
70336
+ emitter = process2.__signal_exit_emitter__;
70365
70337
  } else {
70366
- emitter = process3.__signal_exit_emitter__ = new EE();
70338
+ emitter = process2.__signal_exit_emitter__ = new EE();
70367
70339
  emitter.count = 0;
70368
70340
  emitter.emitted = {};
70369
70341
  }
@@ -70400,12 +70372,12 @@ var require_signal_exit = __commonJS({
70400
70372
  loaded = false;
70401
70373
  signals.forEach(function(sig) {
70402
70374
  try {
70403
- process3.removeListener(sig, sigListeners[sig]);
70375
+ process2.removeListener(sig, sigListeners[sig]);
70404
70376
  } catch (er) {
70405
70377
  }
70406
70378
  });
70407
- process3.emit = originalProcessEmit;
70408
- process3.reallyExit = originalProcessReallyExit;
70379
+ process2.emit = originalProcessEmit;
70380
+ process2.reallyExit = originalProcessReallyExit;
70409
70381
  emitter.count -= 1;
70410
70382
  };
70411
70383
  module2.exports.unload = unload;
@@ -70422,7 +70394,7 @@ var require_signal_exit = __commonJS({
70422
70394
  if (!processOk(global.process)) {
70423
70395
  return;
70424
70396
  }
70425
- var listeners = process3.listeners(sig);
70397
+ var listeners = process2.listeners(sig);
70426
70398
  if (listeners.length === emitter.count) {
70427
70399
  unload();
70428
70400
  emit("exit", null, sig);
@@ -70430,7 +70402,7 @@ var require_signal_exit = __commonJS({
70430
70402
  if (isWin && sig === "SIGHUP") {
70431
70403
  sig = "SIGINT";
70432
70404
  }
70433
- process3.kill(process3.pid, sig);
70405
+ process2.kill(process2.pid, sig);
70434
70406
  }
70435
70407
  };
70436
70408
  });
@@ -70446,36 +70418,36 @@ var require_signal_exit = __commonJS({
70446
70418
  emitter.count += 1;
70447
70419
  signals = signals.filter(function(sig) {
70448
70420
  try {
70449
- process3.on(sig, sigListeners[sig]);
70421
+ process2.on(sig, sigListeners[sig]);
70450
70422
  return true;
70451
70423
  } catch (er) {
70452
70424
  return false;
70453
70425
  }
70454
70426
  });
70455
- process3.emit = processEmit;
70456
- process3.reallyExit = processReallyExit;
70427
+ process2.emit = processEmit;
70428
+ process2.reallyExit = processReallyExit;
70457
70429
  };
70458
70430
  module2.exports.load = load;
70459
- originalProcessReallyExit = process3.reallyExit;
70431
+ originalProcessReallyExit = process2.reallyExit;
70460
70432
  processReallyExit = function processReallyExit2(code) {
70461
70433
  if (!processOk(global.process)) {
70462
70434
  return;
70463
70435
  }
70464
- process3.exitCode = code || /* istanbul ignore next */
70436
+ process2.exitCode = code || /* istanbul ignore next */
70465
70437
  0;
70466
- emit("exit", process3.exitCode, null);
70467
- emit("afterexit", process3.exitCode, null);
70468
- originalProcessReallyExit.call(process3, process3.exitCode);
70438
+ emit("exit", process2.exitCode, null);
70439
+ emit("afterexit", process2.exitCode, null);
70440
+ originalProcessReallyExit.call(process2, process2.exitCode);
70469
70441
  };
70470
- originalProcessEmit = process3.emit;
70442
+ originalProcessEmit = process2.emit;
70471
70443
  processEmit = function processEmit2(ev, arg) {
70472
70444
  if (ev === "exit" && processOk(global.process)) {
70473
70445
  if (arg !== void 0) {
70474
- process3.exitCode = arg;
70446
+ process2.exitCode = arg;
70475
70447
  }
70476
70448
  var ret = originalProcessEmit.apply(this, arguments);
70477
- emit("exit", process3.exitCode, null);
70478
- emit("afterexit", process3.exitCode, null);
70449
+ emit("exit", process2.exitCode, null);
70450
+ emit("afterexit", process2.exitCode, null);
70479
70451
  return ret;
70480
70452
  } else {
70481
70453
  return originalProcessEmit.apply(this, arguments);
@@ -96826,13 +96798,13 @@ var require_chalk2 = __commonJS({
96826
96798
  c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
96827
96799
  }
96828
96800
  }
96829
- function translateLevel2(e3) {
96801
+ function translateLevel(e3) {
96830
96802
  if (e3 === 0) {
96831
96803
  return false;
96832
96804
  }
96833
96805
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
96834
96806
  }
96835
- function supportsColor2(e3, t3) {
96807
+ function supportsColor(e3, t3) {
96836
96808
  if (c === 0) {
96837
96809
  return 0;
96838
96810
  }
@@ -96889,10 +96861,10 @@ var require_chalk2 = __commonJS({
96889
96861
  return n3;
96890
96862
  }
96891
96863
  function getSupportLevel(e3) {
96892
- const t3 = supportsColor2(e3, e3 && e3.isTTY);
96893
- return translateLevel2(t3);
96864
+ const t3 = supportsColor(e3, e3 && e3.isTTY);
96865
+ return translateLevel(t3);
96894
96866
  }
96895
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
96867
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
96896
96868
  }, 37: (e2) => {
96897
96869
  "use strict";
96898
96870
  e2.exports = require("os");
@@ -105967,13 +105939,13 @@ var require_debug3 = __commonJS({
105967
105939
  c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
105968
105940
  }
105969
105941
  }
105970
- function translateLevel2(e3) {
105942
+ function translateLevel(e3) {
105971
105943
  if (e3 === 0) {
105972
105944
  return false;
105973
105945
  }
105974
105946
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
105975
105947
  }
105976
- function supportsColor2(e3, t3) {
105948
+ function supportsColor(e3, t3) {
105977
105949
  if (c === 0) {
105978
105950
  return 0;
105979
105951
  }
@@ -106030,10 +106002,10 @@ var require_debug3 = __commonJS({
106030
106002
  return r3;
106031
106003
  }
106032
106004
  function getSupportLevel(e3) {
106033
- const t3 = supportsColor2(e3, e3 && e3.isTTY);
106034
- return translateLevel2(t3);
106005
+ const t3 = supportsColor(e3, e3 && e3.isTTY);
106006
+ return translateLevel(t3);
106035
106007
  }
106036
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
106008
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, n.isatty(1))), stderr: translateLevel(supportsColor(true, n.isatty(2))) };
106037
106009
  }, 37: (e2) => {
106038
106010
  "use strict";
106039
106011
  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-1690222079234",
18
+ "version": "0.0.0-next-1690265928158",
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-1690222079234",
33
- "@modern-js/generator-common": "0.0.0-next-1690222079234",
34
- "@modern-js/generator-utils": "0.0.0-next-1690222079234",
35
- "@modern-js/generator-plugin": "0.0.0-next-1690222079234",
36
- "@modern-js/module-generator": "0.0.0-next-1690222079234",
37
- "@modern-js/monorepo-generator": "0.0.0-next-1690222079234",
38
- "@modern-js/mwa-generator": "0.0.0-next-1690222079234",
39
- "@modern-js/doc-generator": "0.0.0-next-1690222079234",
40
- "@modern-js/utils": "0.0.0-next-1690222079234",
41
- "@scripts/build": "0.0.0-next-1690222079234",
42
- "@scripts/jest-config": "0.0.0-next-1690222079234"
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"
43
43
  },
44
44
  "sideEffects": false,
45
45
  "publishConfig": {