@modern-js/repo-generator 0.0.0-next-20240816011843 → 0.0.0-next-20240821032833

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 (3) hide show
  1. package/dist/index.js +251 -220
  2. package/package.json +12 -12
  3. package/src/index.ts +2 -2
package/dist/index.js CHANGED
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __esm = (fn, res) => function __init() {
9
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
+ };
8
11
  var __commonJS = (cb, mod) => function __require() {
9
12
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
13
  };
@@ -9653,11 +9656,11 @@ var require_ms = __commonJS({
9653
9656
  }
9654
9657
  });
9655
9658
 
9656
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/common.js
9659
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js
9657
9660
  var require_common = __commonJS({
9658
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/common.js"(exports, module2) {
9661
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js"(exports, module2) {
9659
9662
  "use strict";
9660
- function setup(env) {
9663
+ function setup(env2) {
9661
9664
  createDebug.debug = createDebug;
9662
9665
  createDebug.default = createDebug;
9663
9666
  createDebug.coerce = coerce;
@@ -9666,8 +9669,8 @@ var require_common = __commonJS({
9666
9669
  createDebug.enabled = enabled;
9667
9670
  createDebug.humanize = require_ms();
9668
9671
  createDebug.destroy = destroy2;
9669
- Object.keys(env).forEach((key) => {
9670
- createDebug[key] = env[key];
9672
+ Object.keys(env2).forEach((key) => {
9673
+ createDebug[key] = env2[key];
9671
9674
  });
9672
9675
  createDebug.names = [];
9673
9676
  createDebug.skips = [];
@@ -9817,9 +9820,9 @@ var require_common = __commonJS({
9817
9820
  }
9818
9821
  });
9819
9822
 
9820
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/browser.js
9823
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js
9821
9824
  var require_browser = __commonJS({
9822
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module2) {
9825
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js"(exports, module2) {
9823
9826
  "use strict";
9824
9827
  exports.formatArgs = formatArgs;
9825
9828
  exports.save = save;
@@ -9987,120 +9990,147 @@ var require_browser = __commonJS({
9987
9990
  }
9988
9991
  });
9989
9992
 
9990
- // ../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js
9991
- var require_has_flag = __commonJS({
9992
- "../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
9993
- "use strict";
9994
- module2.exports = (flag, argv) => {
9995
- argv = argv || process.argv;
9996
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
9997
- const pos = argv.indexOf(prefix + flag);
9998
- const terminatorPos = argv.indexOf("--");
9999
- return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
10000
- };
10001
- }
9993
+ // ../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js
9994
+ var supports_color_exports = {};
9995
+ __export(supports_color_exports, {
9996
+ createSupportsColor: () => createSupportsColor,
9997
+ default: () => supports_color_default
10002
9998
  });
10003
-
10004
- // ../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
10005
- var require_supports_color = __commonJS({
10006
- "../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
10007
- "use strict";
10008
- var os2 = require("os");
10009
- var hasFlag = require_has_flag();
10010
- var env = process.env;
10011
- var forceColor;
10012
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
10013
- forceColor = false;
10014
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
10015
- forceColor = true;
9999
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
10000
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
10001
+ const position = argv.indexOf(prefix + flag);
10002
+ const terminatorPosition = argv.indexOf("--");
10003
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
10004
+ }
10005
+ function envForceColor() {
10006
+ if ("FORCE_COLOR" in env) {
10007
+ if (env.FORCE_COLOR === "true") {
10008
+ return 1;
10016
10009
  }
10017
- if ("FORCE_COLOR" in env) {
10018
- forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
10010
+ if (env.FORCE_COLOR === "false") {
10011
+ return 0;
10019
10012
  }
10020
- function translateLevel(level) {
10021
- if (level === 0) {
10022
- return false;
10023
- }
10024
- return {
10025
- level,
10026
- hasBasic: true,
10027
- has256: level >= 2,
10028
- has16m: level >= 3
10029
- };
10013
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
10014
+ }
10015
+ }
10016
+ function translateLevel(level) {
10017
+ if (level === 0) {
10018
+ return false;
10019
+ }
10020
+ return {
10021
+ level,
10022
+ hasBasic: true,
10023
+ has256: level >= 2,
10024
+ has16m: level >= 3
10025
+ };
10026
+ }
10027
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
10028
+ const noFlagForceColor = envForceColor();
10029
+ if (noFlagForceColor !== void 0) {
10030
+ flagForceColor = noFlagForceColor;
10031
+ }
10032
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
10033
+ if (forceColor === 0) {
10034
+ return 0;
10035
+ }
10036
+ if (sniffFlags) {
10037
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
10038
+ return 3;
10030
10039
  }
10031
- function supportsColor(stream4) {
10032
- if (forceColor === false) {
10033
- return 0;
10034
- }
10035
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
10036
- return 3;
10037
- }
10038
- if (hasFlag("color=256")) {
10039
- return 2;
10040
- }
10041
- if (stream4 && !stream4.isTTY && forceColor !== true) {
10042
- return 0;
10043
- }
10044
- const min = forceColor ? 1 : 0;
10045
- if (process.platform === "win32") {
10046
- const osRelease = os2.release().split(".");
10047
- if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
10048
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
10049
- }
10050
- return 1;
10051
- }
10052
- if ("CI" in env) {
10053
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
10054
- return 1;
10055
- }
10056
- return min;
10057
- }
10058
- if ("TEAMCITY_VERSION" in env) {
10059
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
10060
- }
10061
- if (env.COLORTERM === "truecolor") {
10062
- return 3;
10063
- }
10064
- if ("TERM_PROGRAM" in env) {
10065
- const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
10066
- switch (env.TERM_PROGRAM) {
10067
- case "iTerm.app":
10068
- return version >= 3 ? 3 : 2;
10069
- case "Apple_Terminal":
10070
- return 2;
10071
- }
10040
+ if (hasFlag("color=256")) {
10041
+ return 2;
10042
+ }
10043
+ }
10044
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {
10045
+ return 1;
10046
+ }
10047
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
10048
+ return 0;
10049
+ }
10050
+ const min = forceColor || 0;
10051
+ if (env.TERM === "dumb") {
10052
+ return min;
10053
+ }
10054
+ if (import_node_process.default.platform === "win32") {
10055
+ const osRelease = import_node_os.default.release().split(".");
10056
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
10057
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
10058
+ }
10059
+ return 1;
10060
+ }
10061
+ if ("CI" in env) {
10062
+ if ("GITHUB_ACTIONS" in env) {
10063
+ return 3;
10064
+ }
10065
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
10066
+ return 1;
10067
+ }
10068
+ return min;
10069
+ }
10070
+ if ("TEAMCITY_VERSION" in env) {
10071
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
10072
+ }
10073
+ if (env.COLORTERM === "truecolor") {
10074
+ return 3;
10075
+ }
10076
+ if (env.TERM === "xterm-kitty") {
10077
+ return 3;
10078
+ }
10079
+ if ("TERM_PROGRAM" in env) {
10080
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
10081
+ switch (env.TERM_PROGRAM) {
10082
+ case "iTerm.app": {
10083
+ return version >= 3 ? 3 : 2;
10072
10084
  }
10073
- if (/-256(color)?$/i.test(env.TERM)) {
10085
+ case "Apple_Terminal": {
10074
10086
  return 2;
10075
10087
  }
10076
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
10077
- return 1;
10078
- }
10079
- if ("COLORTERM" in env) {
10080
- return 1;
10081
- }
10082
- if (env.TERM === "dumb") {
10083
- return min;
10084
- }
10085
- return min;
10086
10088
  }
10087
- function getSupportLevel(stream4) {
10088
- const level = supportsColor(stream4);
10089
- return translateLevel(level);
10089
+ }
10090
+ if (/-256(color)?$/i.test(env.TERM)) {
10091
+ return 2;
10092
+ }
10093
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
10094
+ return 1;
10095
+ }
10096
+ if ("COLORTERM" in env) {
10097
+ return 1;
10098
+ }
10099
+ return min;
10100
+ }
10101
+ function createSupportsColor(stream4, options = {}) {
10102
+ const level = _supportsColor(stream4, {
10103
+ streamIsTTY: stream4 && stream4.isTTY,
10104
+ ...options
10105
+ });
10106
+ return translateLevel(level);
10107
+ }
10108
+ var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
10109
+ var init_supports_color = __esm({
10110
+ "../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js"() {
10111
+ "use strict";
10112
+ import_node_process = __toESM(require("process"));
10113
+ import_node_os = __toESM(require("os"));
10114
+ import_node_tty = __toESM(require("tty"));
10115
+ ({ env } = import_node_process.default);
10116
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
10117
+ flagForceColor = 0;
10118
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
10119
+ flagForceColor = 1;
10090
10120
  }
10091
- module2.exports = {
10092
- supportsColor: getSupportLevel,
10093
- stdout: getSupportLevel(process.stdout),
10094
- stderr: getSupportLevel(process.stderr)
10121
+ supportsColor = {
10122
+ stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
10123
+ stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
10095
10124
  };
10125
+ supports_color_default = supportsColor;
10096
10126
  }
10097
10127
  });
10098
10128
 
10099
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/node.js
10129
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js
10100
10130
  var require_node = __commonJS({
10101
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/node.js"(exports, module2) {
10131
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js"(exports, module2) {
10102
10132
  "use strict";
10103
- var tty = require("tty");
10133
+ var tty2 = require("tty");
10104
10134
  var util2 = require("util");
10105
10135
  exports.init = init;
10106
10136
  exports.log = log;
@@ -10115,8 +10145,8 @@ var require_node = __commonJS({
10115
10145
  );
10116
10146
  exports.colors = [6, 2, 3, 4, 5, 1];
10117
10147
  try {
10118
- const supportsColor = require_supports_color();
10119
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
10148
+ const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
10149
+ if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
10120
10150
  exports.colors = [
10121
10151
  20,
10122
10152
  21,
@@ -10218,7 +10248,7 @@ var require_node = __commonJS({
10218
10248
  return obj;
10219
10249
  }, {});
10220
10250
  function useColors() {
10221
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
10251
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
10222
10252
  }
10223
10253
  function formatArgs(args) {
10224
10254
  const { namespace: name, useColors: useColors2 } = this;
@@ -10271,9 +10301,9 @@ var require_node = __commonJS({
10271
10301
  }
10272
10302
  });
10273
10303
 
10274
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/index.js
10304
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js
10275
10305
  var require_src = __commonJS({
10276
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/index.js"(exports, module2) {
10306
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js"(exports, module2) {
10277
10307
  "use strict";
10278
10308
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
10279
10309
  module2.exports = require_browser();
@@ -18504,15 +18534,15 @@ var require_runtime = __commonJS({
18504
18534
  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] + ").");
18505
18535
  }
18506
18536
  }
18507
- function template(templateSpec, env) {
18508
- if (!env) {
18537
+ function template(templateSpec, env2) {
18538
+ if (!env2) {
18509
18539
  throw new _exception2["default"]("No environment passed to template");
18510
18540
  }
18511
18541
  if (!templateSpec || !templateSpec.main) {
18512
18542
  throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
18513
18543
  }
18514
18544
  templateSpec.main.decorator = templateSpec.main_d;
18515
- env.VM.checkRevision(templateSpec.compiler);
18545
+ env2.VM.checkRevision(templateSpec.compiler);
18516
18546
  var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
18517
18547
  function invokePartialWrapper(partial, context, options) {
18518
18548
  if (options.hash) {
@@ -18521,14 +18551,14 @@ var require_runtime = __commonJS({
18521
18551
  options.ids[0] = true;
18522
18552
  }
18523
18553
  }
18524
- partial = env.VM.resolvePartial.call(this, partial, context, options);
18554
+ partial = env2.VM.resolvePartial.call(this, partial, context, options);
18525
18555
  var extendedOptions = Utils.extend({}, options, {
18526
18556
  hooks: this.hooks,
18527
18557
  protoAccessControl: this.protoAccessControl
18528
18558
  });
18529
- var result = env.VM.invokePartial.call(this, partial, context, extendedOptions);
18530
- if (result == null && env.compile) {
18531
- options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);
18559
+ var result = env2.VM.invokePartial.call(this, partial, context, extendedOptions);
18560
+ if (result == null && env2.compile) {
18561
+ options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
18532
18562
  result = options.partials[options.name](context, extendedOptions);
18533
18563
  }
18534
18564
  if (result != null) {
@@ -18613,7 +18643,7 @@ var require_runtime = __commonJS({
18613
18643
  },
18614
18644
  // An empty object to use as replacement for null-contexts
18615
18645
  nullContext: Object.seal({}),
18616
- noop: env.VM.noop,
18646
+ noop: env2.VM.noop,
18617
18647
  compilerInfo: templateSpec.compiler
18618
18648
  };
18619
18649
  function ret(context) {
@@ -18640,14 +18670,14 @@ var require_runtime = __commonJS({
18640
18670
  ret.isTop = true;
18641
18671
  ret._setup = function(options) {
18642
18672
  if (!options.partial) {
18643
- var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);
18673
+ var mergedHelpers = Utils.extend({}, env2.helpers, options.helpers);
18644
18674
  wrapHelpersToPassLookupProperty(mergedHelpers, container);
18645
18675
  container.helpers = mergedHelpers;
18646
18676
  if (templateSpec.usePartial) {
18647
- container.partials = container.mergeIfNeeded(options.partials, env.partials);
18677
+ container.partials = container.mergeIfNeeded(options.partials, env2.partials);
18648
18678
  }
18649
18679
  if (templateSpec.usePartial || templateSpec.useDecorators) {
18650
- container.decorators = Utils.extend({}, env.decorators, options.decorators);
18680
+ container.decorators = Utils.extend({}, env2.decorators, options.decorators);
18651
18681
  }
18652
18682
  container.hooks = {};
18653
18683
  container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
@@ -20449,7 +20479,7 @@ var require_compiler = __commonJS({
20449
20479
  }
20450
20480
  }
20451
20481
  };
20452
- function precompile(input, options, env) {
20482
+ function precompile(input, options, env2) {
20453
20483
  if (input == null || typeof input !== "string" && input.type !== "Program") {
20454
20484
  throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
20455
20485
  }
@@ -20460,10 +20490,10 @@ var require_compiler = __commonJS({
20460
20490
  if (options.compat) {
20461
20491
  options.useDepths = true;
20462
20492
  }
20463
- var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options);
20464
- return new env.JavaScriptCompiler().compile(environment, options);
20493
+ var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
20494
+ return new env2.JavaScriptCompiler().compile(environment, options);
20465
20495
  }
20466
- function compile3(input, options, env) {
20496
+ function compile3(input, options, env2) {
20467
20497
  if (options === void 0)
20468
20498
  options = {};
20469
20499
  if (input == null || typeof input !== "string" && input.type !== "Program") {
@@ -20478,8 +20508,8 @@ var require_compiler = __commonJS({
20478
20508
  }
20479
20509
  var compiled = void 0;
20480
20510
  function compileInput() {
20481
- var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options), templateSpec = new env.JavaScriptCompiler().compile(environment, options, void 0, true);
20482
- return env.template(templateSpec);
20511
+ var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
20512
+ return env2.template(templateSpec);
20483
20513
  }
20484
20514
  function ret(context, execOptions) {
20485
20515
  if (!compiled) {
@@ -23555,9 +23585,9 @@ var require_lib = __commonJS({
23555
23585
  }
23556
23586
  });
23557
23587
 
23558
- // ../../../../node_modules/.pnpm/@modern-js+utils@2.58.0/node_modules/@modern-js/utils/dist/compiled/chalk/index.js
23588
+ // ../../../../node_modules/.pnpm/@modern-js+utils@2.58.1/node_modules/@modern-js/utils/dist/compiled/chalk/index.js
23559
23589
  var require_chalk = __commonJS({
23560
- "../../../../node_modules/.pnpm/@modern-js+utils@2.58.0/node_modules/@modern-js/utils/dist/compiled/chalk/index.js"(exports, module2) {
23590
+ "../../../../node_modules/.pnpm/@modern-js+utils@2.58.1/node_modules/@modern-js/utils/dist/compiled/chalk/index.js"(exports, module2) {
23561
23591
  "use strict";
23562
23592
  (() => {
23563
23593
  var e = { 44: (e2, t2, n2) => {
@@ -24686,13 +24716,13 @@ var require_chalk = __commonJS({
24686
24716
  c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
24687
24717
  }
24688
24718
  }
24689
- function translateLevel(e3) {
24719
+ function translateLevel2(e3) {
24690
24720
  if (e3 === 0) {
24691
24721
  return false;
24692
24722
  }
24693
24723
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
24694
24724
  }
24695
- function supportsColor(e3, t3) {
24725
+ function supportsColor2(e3, t3) {
24696
24726
  if (c === 0) {
24697
24727
  return 0;
24698
24728
  }
@@ -24749,10 +24779,10 @@ var require_chalk = __commonJS({
24749
24779
  return n3;
24750
24780
  }
24751
24781
  function getSupportLevel(e3) {
24752
- const t3 = supportsColor(e3, e3 && e3.isTTY);
24753
- return translateLevel(t3);
24782
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
24783
+ return translateLevel2(t3);
24754
24784
  }
24755
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
24785
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
24756
24786
  }, 37: (e2) => {
24757
24787
  "use strict";
24758
24788
  e2.exports = require("os");
@@ -29678,7 +29708,7 @@ var require_innerFrom = __commonJS({
29678
29708
  exports.fromIterable = fromIterable;
29679
29709
  function fromAsyncIterable(asyncIterable) {
29680
29710
  return new Observable_1.Observable(function(subscriber) {
29681
- process2(asyncIterable, subscriber).catch(function(err) {
29711
+ process3(asyncIterable, subscriber).catch(function(err) {
29682
29712
  return subscriber.error(err);
29683
29713
  });
29684
29714
  });
@@ -29688,7 +29718,7 @@ var require_innerFrom = __commonJS({
29688
29718
  return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
29689
29719
  }
29690
29720
  exports.fromReadableStreamLike = fromReadableStreamLike;
29691
- function process2(asyncIterable, subscriber) {
29721
+ function process3(asyncIterable, subscriber) {
29692
29722
  var asyncIterable_1, asyncIterable_1_1;
29693
29723
  var e_2, _a2;
29694
29724
  return __awaiter6(this, void 0, void 0, function() {
@@ -36969,11 +36999,11 @@ var require_signals = __commonJS({
36969
36999
  var require_signal_exit = __commonJS({
36970
37000
  "../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
36971
37001
  "use strict";
36972
- var process2 = global.process;
36973
- var processOk = function(process3) {
36974
- 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";
37002
+ var process3 = global.process;
37003
+ var processOk = function(process4) {
37004
+ 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";
36975
37005
  };
36976
- if (!processOk(process2)) {
37006
+ if (!processOk(process3)) {
36977
37007
  module2.exports = function() {
36978
37008
  return function() {
36979
37009
  };
@@ -36981,15 +37011,15 @@ var require_signal_exit = __commonJS({
36981
37011
  } else {
36982
37012
  assert = require("assert");
36983
37013
  signals = require_signals();
36984
- isWin = /^win/i.test(process2.platform);
37014
+ isWin = /^win/i.test(process3.platform);
36985
37015
  EE = require("events");
36986
37016
  if (typeof EE !== "function") {
36987
37017
  EE = EE.EventEmitter;
36988
37018
  }
36989
- if (process2.__signal_exit_emitter__) {
36990
- emitter = process2.__signal_exit_emitter__;
37019
+ if (process3.__signal_exit_emitter__) {
37020
+ emitter = process3.__signal_exit_emitter__;
36991
37021
  } else {
36992
- emitter = process2.__signal_exit_emitter__ = new EE();
37022
+ emitter = process3.__signal_exit_emitter__ = new EE();
36993
37023
  emitter.count = 0;
36994
37024
  emitter.emitted = {};
36995
37025
  }
@@ -37026,12 +37056,12 @@ var require_signal_exit = __commonJS({
37026
37056
  loaded = false;
37027
37057
  signals.forEach(function(sig) {
37028
37058
  try {
37029
- process2.removeListener(sig, sigListeners[sig]);
37059
+ process3.removeListener(sig, sigListeners[sig]);
37030
37060
  } catch (er) {
37031
37061
  }
37032
37062
  });
37033
- process2.emit = originalProcessEmit;
37034
- process2.reallyExit = originalProcessReallyExit;
37063
+ process3.emit = originalProcessEmit;
37064
+ process3.reallyExit = originalProcessReallyExit;
37035
37065
  emitter.count -= 1;
37036
37066
  };
37037
37067
  module2.exports.unload = unload;
@@ -37048,7 +37078,7 @@ var require_signal_exit = __commonJS({
37048
37078
  if (!processOk(global.process)) {
37049
37079
  return;
37050
37080
  }
37051
- var listeners = process2.listeners(sig);
37081
+ var listeners = process3.listeners(sig);
37052
37082
  if (listeners.length === emitter.count) {
37053
37083
  unload();
37054
37084
  emit("exit", null, sig);
@@ -37056,7 +37086,7 @@ var require_signal_exit = __commonJS({
37056
37086
  if (isWin && sig === "SIGHUP") {
37057
37087
  sig = "SIGINT";
37058
37088
  }
37059
- process2.kill(process2.pid, sig);
37089
+ process3.kill(process3.pid, sig);
37060
37090
  }
37061
37091
  };
37062
37092
  });
@@ -37072,36 +37102,36 @@ var require_signal_exit = __commonJS({
37072
37102
  emitter.count += 1;
37073
37103
  signals = signals.filter(function(sig) {
37074
37104
  try {
37075
- process2.on(sig, sigListeners[sig]);
37105
+ process3.on(sig, sigListeners[sig]);
37076
37106
  return true;
37077
37107
  } catch (er) {
37078
37108
  return false;
37079
37109
  }
37080
37110
  });
37081
- process2.emit = processEmit;
37082
- process2.reallyExit = processReallyExit;
37111
+ process3.emit = processEmit;
37112
+ process3.reallyExit = processReallyExit;
37083
37113
  };
37084
37114
  module2.exports.load = load;
37085
- originalProcessReallyExit = process2.reallyExit;
37115
+ originalProcessReallyExit = process3.reallyExit;
37086
37116
  processReallyExit = function processReallyExit2(code) {
37087
37117
  if (!processOk(global.process)) {
37088
37118
  return;
37089
37119
  }
37090
- process2.exitCode = code || /* istanbul ignore next */
37120
+ process3.exitCode = code || /* istanbul ignore next */
37091
37121
  0;
37092
- emit("exit", process2.exitCode, null);
37093
- emit("afterexit", process2.exitCode, null);
37094
- originalProcessReallyExit.call(process2, process2.exitCode);
37122
+ emit("exit", process3.exitCode, null);
37123
+ emit("afterexit", process3.exitCode, null);
37124
+ originalProcessReallyExit.call(process3, process3.exitCode);
37095
37125
  };
37096
- originalProcessEmit = process2.emit;
37126
+ originalProcessEmit = process3.emit;
37097
37127
  processEmit = function processEmit2(ev, arg) {
37098
37128
  if (ev === "exit" && processOk(global.process)) {
37099
37129
  if (arg !== void 0) {
37100
- process2.exitCode = arg;
37130
+ process3.exitCode = arg;
37101
37131
  }
37102
37132
  var ret = originalProcessEmit.apply(this, arguments);
37103
- emit("exit", process2.exitCode, null);
37104
- emit("afterexit", process2.exitCode, null);
37133
+ emit("exit", process3.exitCode, null);
37134
+ emit("afterexit", process3.exitCode, null);
37105
37135
  return ret;
37106
37136
  } else {
37107
37137
  return originalProcessEmit.apply(this, arguments);
@@ -68846,7 +68876,7 @@ __export(src_exports, {
68846
68876
  module.exports = __toCommonJS(src_exports);
68847
68877
  var import_lodash14 = require("@modern-js/utils/lodash");
68848
68878
 
68849
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
68879
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
68850
68880
  var LoggerLevel;
68851
68881
  (function(LoggerLevel2) {
68852
68882
  LoggerLevel2["Error"] = "error";
@@ -68867,7 +68897,7 @@ var LevelPriority = [
68867
68897
  "stream"
68868
68898
  ];
68869
68899
 
68870
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
68900
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
68871
68901
  var import_utils = require("@modern-js/utils");
68872
68902
  var Logger = class {
68873
68903
  get currentLevelIndex() {
@@ -68928,22 +68958,22 @@ var Logger = class {
68928
68958
  }
68929
68959
  };
68930
68960
 
68931
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
68961
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
68932
68962
  var import_path7 = __toESM(require("path"));
68933
68963
 
68934
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
68964
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
68935
68965
  var import_events = require("events");
68936
68966
  var import_path4 = __toESM(require("path"));
68937
68967
 
68938
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
68968
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
68939
68969
  var import_path2 = __toESM(require("path"));
68940
68970
  var import_utils3 = require("@modern-js/utils");
68941
68971
 
68942
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
68972
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
68943
68973
  var import_path = __toESM(require("path"));
68944
68974
  var import_utils2 = require("@modern-js/utils");
68945
68975
 
68946
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
68976
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
68947
68977
  var IMAGE_EXT_LIST = [
68948
68978
  ".jpg",
68949
68979
  ".jpeg",
@@ -68957,7 +68987,7 @@ var IMAGE_EXT_LIST = [
68957
68987
  ".wmf"
68958
68988
  ];
68959
68989
 
68960
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
68990
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
68961
68991
  var FS_RESOURCE = "_codesmith_core_fs_resource";
68962
68992
  var FsResource = class {
68963
68993
  async value() {
@@ -68980,7 +69010,7 @@ var FsResource = class {
68980
69010
  }
68981
69011
  };
68982
69012
 
68983
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
69013
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
68984
69014
  var promisifyGlob = (pattern, options) => new Promise((resolve, reject) => {
68985
69015
  (0, import_utils3.glob)(pattern, options, (err, files) => err === null ? resolve(files) : reject(err));
68986
69016
  });
@@ -69005,11 +69035,11 @@ var FsMaterial = class {
69005
69035
  }
69006
69036
  };
69007
69037
 
69008
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69038
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69009
69039
  var import_path3 = __toESM(require("path"));
69010
69040
  var import_utils5 = require("@modern-js/utils");
69011
69041
 
69012
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
69042
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
69013
69043
  var import_utils4 = require("@modern-js/utils");
69014
69044
  async function fsExists(path17) {
69015
69045
  try {
@@ -69020,7 +69050,7 @@ async function fsExists(path17) {
69020
69050
  }
69021
69051
  }
69022
69052
 
69023
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69053
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69024
69054
  var MaxTimes = 5;
69025
69055
  async function getGeneratorDir(generator) {
69026
69056
  let result = generator;
@@ -69039,7 +69069,7 @@ async function getGeneratorDir(generator) {
69039
69069
  return result;
69040
69070
  }
69041
69071
 
69042
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
69072
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
69043
69073
  var nodeRequire = (path17) => {
69044
69074
  try {
69045
69075
  const module2 = __non_webpack_require__(path17);
@@ -69056,7 +69086,7 @@ var nodeRequire = (path17) => {
69056
69086
  }
69057
69087
  };
69058
69088
 
69059
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
69089
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
69060
69090
  var import_utils6 = require("@modern-js/utils");
69061
69091
  var GeneratorCore = class {
69062
69092
  get lifeCycleMethod() {
@@ -69256,10 +69286,10 @@ check path: ${import_utils6.chalk.blue.underline(generator)} exist a package.jso
69256
69286
  }
69257
69287
  };
69258
69288
 
69259
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
69289
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
69260
69290
  var import_path6 = __toESM(require("path"));
69261
69291
 
69262
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
69292
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
69263
69293
  var import_path5 = __toESM(require("path"));
69264
69294
  var import_utils7 = require("@modern-js/utils");
69265
69295
  async function canUseYarn() {
@@ -69339,7 +69369,7 @@ async function runInstall(targetDir, registryUrl, logger2) {
69339
69369
  }
69340
69370
  }
69341
69371
 
69342
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
69372
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
69343
69373
  async function timeoutPromise(promise, ms, reason = "Operation") {
69344
69374
  let timeoutId = null;
69345
69375
  const delayPromise = (ms2) => new Promise((resolve) => {
@@ -69361,14 +69391,14 @@ async function timeoutPromise(promise, ms, reason = "Operation") {
69361
69391
  }
69362
69392
  }
69363
69393
 
69364
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
69394
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
69365
69395
  var import_os = __toESM(require("os"));
69366
69396
 
69367
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
69397
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
69368
69398
  var NPM_API_TIMEOUT = 3e4;
69369
69399
  var CATCHE_VALIDITY_PREIOD = 12 * 3600 * 1e3;
69370
69400
 
69371
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
69401
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
69372
69402
  var import_utils33 = require("@modern-js/utils");
69373
69403
 
69374
69404
  // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/bind.js
@@ -72360,10 +72390,10 @@ var {
72360
72390
  mergeConfig: mergeConfig2
72361
72391
  } = axios_default;
72362
72392
 
72363
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72393
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72364
72394
  var import_tar = __toESM(require_tar());
72365
72395
 
72366
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
72396
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
72367
72397
  var import_utils31 = require("@modern-js/utils");
72368
72398
  async function getNpmTarballUrl(pkgName, pkgVersion, options) {
72369
72399
  const { registryUrl } = options || {};
@@ -72387,7 +72417,7 @@ async function getNpmTarballUrl(pkgName, pkgVersion, options) {
72387
72417
  }
72388
72418
  }
72389
72419
 
72390
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
72420
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
72391
72421
  var import_utils32 = require("@modern-js/utils");
72392
72422
  async function getNpmVersion(packageName, options) {
72393
72423
  const { version, registryUrl } = options || {};
@@ -72409,7 +72439,7 @@ async function getNpmVersion(packageName, options) {
72409
72439
  return stdout;
72410
72440
  }
72411
72441
 
72412
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72442
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72413
72443
  async function isValidCache(cacheDir) {
72414
72444
  if (await fsExists(`${cacheDir}/.codesmith.completed`)) {
72415
72445
  const preCacheTimeStr = await import_utils33.fs.readFile(`${cacheDir}/.codesmith.completed`, {
@@ -72491,7 +72521,7 @@ async function downloadPackage(pkgName, pkgVersion = "latest", options = {}) {
72491
72521
  return targetDir;
72492
72522
  }
72493
72523
 
72494
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
72524
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
72495
72525
  var import_utils34 = require("@modern-js/utils");
72496
72526
  function getPackageInfo(packageName) {
72497
72527
  if (!packageName) {
@@ -72516,7 +72546,7 @@ function getPackageInfo(packageName) {
72516
72546
  };
72517
72547
  }
72518
72548
 
72519
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
72549
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
72520
72550
  var MaterialsManager = class {
72521
72551
  loadLocalGenerator(generator) {
72522
72552
  if (!import_path6.default.isAbsolute(generator)) {
@@ -72544,7 +72574,7 @@ var MaterialsManager = class {
72544
72574
  }
72545
72575
  };
72546
72576
 
72547
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
72577
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
72548
72578
  var CodeSmith = class {
72549
72579
  async forge({ tasks, pwd }) {
72550
72580
  var _this_logger_timing, _this_logger;
@@ -72585,13 +72615,13 @@ var CodeSmith = class {
72585
72615
  }
72586
72616
  };
72587
72617
 
72588
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.4.0_@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
72618
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.4.1_@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
72589
72619
  var import_ejs = __toESM(require_ejs());
72590
72620
  function renderString(template, fullData) {
72591
72621
  return import_ejs.default.render(template, fullData) || "";
72592
72622
  }
72593
72623
 
72594
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.4.0_@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
72624
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.4.1_@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
72595
72625
  var EjsAPI = class {
72596
72626
  async renderTemplate(templateResource, target, parameters = {}) {
72597
72627
  if (templateResource._type !== FS_RESOURCE) {
@@ -72623,7 +72653,7 @@ var EjsAPI = class {
72623
72653
  }
72624
72654
  };
72625
72655
 
72626
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.4.0_@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
72656
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.4.1_@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
72627
72657
  var import_path8 = __toESM(require("path"));
72628
72658
  var import_utils37 = require("@modern-js/utils");
72629
72659
  var FsAPI = class {
@@ -72650,7 +72680,7 @@ var FsAPI = class {
72650
72680
  }
72651
72681
  };
72652
72682
 
72653
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.4.0_@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
72683
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.4.1_@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
72654
72684
  var import_utils38 = require("@modern-js/utils");
72655
72685
  async function canUseGit() {
72656
72686
  try {
@@ -72725,7 +72755,7 @@ async function gitCommit(cwd, commitMessage) {
72725
72755
  });
72726
72756
  }
72727
72757
 
72728
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.4.0_@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
72758
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.4.1_@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
72729
72759
  var GitAPI = class {
72730
72760
  async isInGitRepo(cwd = this.generatorCore.outputPath) {
72731
72761
  const canUse = await canUseGit();
@@ -72775,7 +72805,7 @@ var GitAPI = class {
72775
72805
  }
72776
72806
  };
72777
72807
 
72778
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.4.0_@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
72808
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.4.1_@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
72779
72809
  var import_handlebars = __toESM(require_lib());
72780
72810
  function renderString2(template, fullData, registers) {
72781
72811
  const helpers = {
@@ -72789,7 +72819,7 @@ function renderString2(template, fullData, registers) {
72789
72819
  return import_handlebars.default.compile(template)(fullData) || "";
72790
72820
  }
72791
72821
 
72792
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.4.0_@modern-js+codesmith@2.4.0/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
72822
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.4.1_@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
72793
72823
  var HandlebarsAPI = class {
72794
72824
  async registerHelp(helpers) {
72795
72825
  this.registers.helpers = {
@@ -72837,7 +72867,7 @@ var HandlebarsAPI = class {
72837
72867
  }
72838
72868
  };
72839
72869
 
72840
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.4.0/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
72870
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.4.1/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
72841
72871
  var import_utils41 = require("@modern-js/utils");
72842
72872
  async function canUseNvm() {
72843
72873
  try {
@@ -72887,7 +72917,7 @@ async function canUsePnpm2() {
72887
72917
  }
72888
72918
  }
72889
72919
 
72890
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.4.0/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
72920
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.4.1/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
72891
72921
  var import_utils42 = require("@modern-js/utils");
72892
72922
  function execaWithStreamLog(command, args, options) {
72893
72923
  const promise = (0, import_utils42.execa)(command, args, {
@@ -72983,7 +73013,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
72983
73013
  throw new Error("please install pnpm first");
72984
73014
  }
72985
73015
 
72986
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.4.0/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
73016
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.4.1/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
72987
73017
  var NpmAPI = class {
72988
73018
  npmInstall({ cwd, registryUrl, ignoreScripts }) {
72989
73019
  return npmInstall({
@@ -73011,7 +73041,7 @@ var NpmAPI = class {
73011
73041
  }
73012
73042
  };
73013
73043
 
73014
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.0_@modern-js+codesmith@2.4.0_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
73044
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
73015
73045
  var import_lodash2 = require("@modern-js/utils/lodash");
73016
73046
 
73017
73047
  // ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
@@ -82646,10 +82676,10 @@ var Schema = (
82646
82676
  }()
82647
82677
  );
82648
82678
 
82649
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.0_@modern-js+codesmith@2.4.0_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
82679
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
82650
82680
  var import_inquirer = __toESM(require_inquirer());
82651
82681
 
82652
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.0_@modern-js+codesmith@2.4.0_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
82682
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
82653
82683
  var import_lodash = require("@modern-js/utils/lodash");
82654
82684
  function validateSchema(schema) {
82655
82685
  const { type, properties } = schema;
@@ -82741,7 +82771,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
82741
82771
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
82742
82772
  }
82743
82773
 
82744
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.0_@modern-js+codesmith@2.4.0_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
82774
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
82745
82775
  var compileRule = (rule, scope) => {
82746
82776
  const state = Schema.compile(rule, {
82747
82777
  $self: {},
@@ -82845,7 +82875,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
82845
82875
  return answers;
82846
82876
  }
82847
82877
 
82848
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.0_@modern-js+codesmith@2.4.0_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
82878
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
82849
82879
  var CLIReader = class {
82850
82880
  getAnswers() {
82851
82881
  return this.answers;
@@ -82874,7 +82904,7 @@ var CLIReader = class {
82874
82904
  }
82875
82905
  };
82876
82906
 
82877
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.0_@modern-js+codesmith@2.4.0_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
82907
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
82878
82908
  var FormilyAPI = class {
82879
82909
  mergeAnswers(answers, configValue) {
82880
82910
  const inputData = (0, import_lodash2.merge)(answers, configValue);
@@ -82896,7 +82926,7 @@ var FormilyAPI = class {
82896
82926
  }
82897
82927
  };
82898
82928
 
82899
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.0_@modern-js+codesmith@2.4.0_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
82929
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
82900
82930
  var import_utils46 = require("@modern-js/utils");
82901
82931
  var import_lodash6 = require("@modern-js/utils/lodash");
82902
82932
  var import_comment_json = __toESM(require_src3());
@@ -82965,7 +82995,7 @@ var I18n = class {
82965
82995
  }
82966
82996
  };
82967
82997
 
82968
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.0_@modern-js+codesmith@2.4.0_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
82998
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
82969
82999
  var EN_LOCALE = {
82970
83000
  environment: {
82971
83001
  node_version: "please upgrade node to lts version",
@@ -82992,7 +83022,7 @@ var EN_LOCALE = {
82992
83022
  }
82993
83023
  };
82994
83024
 
82995
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.0_@modern-js+codesmith@2.4.0_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
83025
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
82996
83026
  var ZH_LOCALE = {
82997
83027
  environment: {
82998
83028
  node_version: "请升级 Node 版本至 LIS",
@@ -83019,14 +83049,14 @@ var ZH_LOCALE = {
83019
83049
  }
83020
83050
  };
83021
83051
 
83022
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.0_@modern-js+codesmith@2.4.0_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
83052
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
83023
83053
  var i18n = new I18n();
83024
83054
  var localeKeys = i18n.init("zh", {
83025
83055
  zh: ZH_LOCALE,
83026
83056
  en: EN_LOCALE
83027
83057
  });
83028
83058
 
83029
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.0_@modern-js+codesmith@2.4.0_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
83059
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
83030
83060
  var import_path10 = __toESM(require("path"));
83031
83061
  var import_utils45 = require("@modern-js/utils");
83032
83062
  var NODE_MAJOR_VERSION_MAP = {
@@ -83074,7 +83104,7 @@ async function checkUseNvm(cwd, logger2) {
83074
83104
  }
83075
83105
  }
83076
83106
 
83077
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.0_@modern-js+codesmith@2.4.0_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
83107
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
83078
83108
  var import_lodash5 = require("@modern-js/utils/lodash");
83079
83109
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
83080
83110
  for (const question of questions) {
@@ -83102,7 +83132,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
83102
83132
  return questions;
83103
83133
  }
83104
83134
 
83105
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.0_@modern-js+codesmith@2.4.0_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
83135
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
83106
83136
  var AppAPI = class {
83107
83137
  async checkEnvironment(nodeVersion) {
83108
83138
  if (import_utils46.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
@@ -83597,9 +83627,9 @@ var BooleanConfig;
83597
83627
 
83598
83628
  // ../../generator-common/dist/esm-node/common/solution.js
83599
83629
  var Solution;
83600
- (function(Solution22) {
83601
- Solution22["MWA"] = "mwa";
83602
- Solution22["Module"] = "module";
83630
+ (function(Solution2) {
83631
+ Solution2["MWA"] = "mwa";
83632
+ Solution2["Module"] = "module";
83603
83633
  })(Solution || (Solution = {}));
83604
83634
  var SolutionText = {
83605
83635
  ["mwa"]: () => i18n2.t(localeKeys2.solution.mwa),
@@ -83638,7 +83668,8 @@ var getSolutionSchema = (extra = {}) => {
83638
83668
  };
83639
83669
  };
83640
83670
  var getScenesSchema = (extra = {}) => {
83641
- const hasPlugin = (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution] && extra.customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution].length > 0;
83671
+ var _extra_customPlugin;
83672
+ const hasPlugin = (extra === null || extra === void 0 ? void 0 : (_extra_customPlugin = extra.customPlugin) === null || _extra_customPlugin === void 0 ? void 0 : _extra_customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution]) && extra.customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution].length > 0;
83642
83673
  return {
83643
83674
  type: "object",
83644
83675
  properties: hasPlugin ? {
@@ -83748,7 +83779,7 @@ var getPackageNameSchema = (extra = {}) => {
83748
83779
  };
83749
83780
 
83750
83781
  // ../../generator-common/dist/esm-node/common/packagePath.js
83751
- var PackagePathRegex = new RegExp("^[a-z0-9-_]+[a-z0-9-/_]*$");
83782
+ var PackagePathRegex = /^[a-z0-9-_]+[a-z0-9-\/_]*$/;
83752
83783
  var getPackagePathSchema = (extra) => {
83753
83784
  return {
83754
83785
  type: "string",
@@ -84613,11 +84644,11 @@ function _create_class(Constructor, protoProps, staticProps) {
84613
84644
  // ../../generator-plugin/dist/esm/context/file.js
84614
84645
  var import_path14 = __toESM(require("path"));
84615
84646
 
84616
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.4.0/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84647
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.4.1/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84617
84648
  var import_comment_json2 = __toESM(require_src3());
84618
84649
  var declarationUpdate = __toESM(require_dist());
84619
84650
 
84620
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.4.0/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
84651
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.4.1/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
84621
84652
  async function editJson(generatorCore, resource, getNewJsonValue) {
84622
84653
  const originJsonValue = await resource.value();
84623
84654
  const newJsonString = await getNewJsonValue(originJsonValue.content);
@@ -84630,7 +84661,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
84630
84661
  return newJsonString;
84631
84662
  }
84632
84663
 
84633
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.4.0/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84664
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.4.1/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84634
84665
  var JsonAPI = class {
84635
84666
  async get(resource) {
84636
84667
  const originJsonValue = await resource.value();
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-20240816011843",
18
+ "version": "0.0.0-next-20240821032833",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -23,23 +23,23 @@
23
23
  "/dist/index.js"
24
24
  ],
25
25
  "dependencies": {
26
- "@modern-js/utils": "0.0.0-next-20240816011843"
26
+ "@modern-js/utils": "0.0.0-next-20240821032833"
27
27
  },
28
28
  "devDependencies": {
29
- "@modern-js/codesmith": "2.4.0",
30
- "@modern-js/codesmith-api-app": "2.4.0",
29
+ "@modern-js/codesmith": "2.4.1",
30
+ "@modern-js/codesmith-api-app": "2.4.1",
31
31
  "@types/jest": "^29",
32
32
  "@types/node": "^14",
33
33
  "jest": "^29",
34
34
  "typescript": "^5",
35
- "@modern-js/base-generator": "0.0.0-next-20240816011843",
36
- "@modern-js/generator-common": "0.0.0-next-20240816011843",
37
- "@modern-js/generator-plugin": "0.0.0-next-20240816011843",
38
- "@modern-js/generator-utils": "0.0.0-next-20240816011843",
39
- "@modern-js/mwa-generator": "0.0.0-next-20240816011843",
40
- "@scripts/build": "0.0.0-next-20240816011843",
41
- "@scripts/jest-config": "0.0.0-next-20240816011843",
42
- "@modern-js/module-generator": "0.0.0-next-20240816011843"
35
+ "@modern-js/base-generator": "0.0.0-next-20240821032833",
36
+ "@modern-js/generator-common": "0.0.0-next-20240821032833",
37
+ "@modern-js/generator-plugin": "0.0.0-next-20240821032833",
38
+ "@modern-js/generator-utils": "0.0.0-next-20240821032833",
39
+ "@modern-js/mwa-generator": "0.0.0-next-20240821032833",
40
+ "@modern-js/module-generator": "0.0.0-next-20240821032833",
41
+ "@scripts/build": "0.0.0-next-20240821032833",
42
+ "@scripts/jest-config": "0.0.0-next-20240821032833"
43
43
  },
44
44
  "sideEffects": false,
45
45
  "publishConfig": {
package/src/index.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { merge } from '@modern-js/utils/lodash';
2
- import { GeneratorContext, GeneratorCore } from '@modern-js/codesmith';
2
+ import type { GeneratorContext, GeneratorCore } from '@modern-js/codesmith';
3
3
  import { AppAPI } from '@modern-js/codesmith-api-app';
4
4
  import {
5
5
  i18n,
6
6
  getSolutionSchema,
7
7
  SolutionGenerator,
8
- Solution,
8
+ type Solution,
9
9
  SolutionDefaultConfig,
10
10
  BaseGenerator,
11
11
  getScenesSchema,