@storm-software/workspace-tools 1.56.4 → 1.56.9

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.
@@ -606,7 +606,7 @@ var require_format_files = __commonJS({
606
606
  "use strict";
607
607
  Object.defineProperty(exports2, "__esModule", { value: true });
608
608
  exports2.formatFiles = void 0;
609
- var path4 = require("path");
609
+ var path2 = require("path");
610
610
  var nx_1 = require_nx();
611
611
  var { updateJson: updateJson2, readJson, sortObjectByKeys } = (0, nx_1.requireNx)();
612
612
  sortObjectByKeys = sortObjectByKeys ?? require("nx/src/utils/object-sort").sortObjectByKeys;
@@ -623,7 +623,7 @@ var require_format_files = __commonJS({
623
623
  const changedPrettierInTree = getChangedPrettierConfigInTree(tree);
624
624
  await Promise.all(Array.from(files).map(async (file) => {
625
625
  try {
626
- const systemPath = path4.join(tree.root, file.path);
626
+ const systemPath = path2.join(tree.root, file.path);
627
627
  const resolvedOptions = await prettier.resolveConfig(systemPath, {
628
628
  editorconfig: true
629
629
  });
@@ -667,9 +667,9 @@ var require_format_files = __commonJS({
667
667
  }
668
668
  }
669
669
  function getRootTsConfigPath(tree) {
670
- for (const path5 of ["tsconfig.base.json", "tsconfig.json"]) {
671
- if (tree.exists(path5)) {
672
- return path5;
670
+ for (const path3 of ["tsconfig.base.json", "tsconfig.json"]) {
671
+ if (tree.exists(path3)) {
672
+ return path3;
673
673
  }
674
674
  }
675
675
  return null;
@@ -962,8 +962,8 @@ var require_binary_extensions = __commonJS({
962
962
  ".zip",
963
963
  ".zipx"
964
964
  ]);
965
- function isBinaryPath(path4) {
966
- return binaryExtensions.has((0, path_1.extname)(path4).toLowerCase());
965
+ function isBinaryPath(path2) {
966
+ return binaryExtensions.has((0, path_1.extname)(path2).toLowerCase());
967
967
  }
968
968
  exports2.isBinaryPath = isBinaryPath;
969
969
  }
@@ -1147,7 +1147,7 @@ var require_ejs = __commonJS({
1147
1147
  "node_modules/.pnpm/ejs@3.1.9/node_modules/ejs/lib/ejs.js"(exports2) {
1148
1148
  "use strict";
1149
1149
  var fs = require("fs");
1150
- var path4 = require("path");
1150
+ var path2 = require("path");
1151
1151
  var utils = require_utils();
1152
1152
  var scopeOptionWarned = false;
1153
1153
  var _VERSION_STRING = require_package().version;
@@ -1178,9 +1178,9 @@ var require_ejs = __commonJS({
1178
1178
  exports2.localsName = _DEFAULT_LOCALS_NAME;
1179
1179
  exports2.promiseImpl = new Function("return this;")().Promise;
1180
1180
  exports2.resolveInclude = function(name, filename, isDir) {
1181
- var dirname = path4.dirname;
1182
- var extname = path4.extname;
1183
- var resolve = path4.resolve;
1181
+ var dirname = path2.dirname;
1182
+ var extname = path2.extname;
1183
+ var resolve = path2.resolve;
1184
1184
  var includePath = resolve(isDir ? filename : dirname(filename), name);
1185
1185
  var ext = extname(name);
1186
1186
  if (!ext) {
@@ -1197,30 +1197,30 @@ var require_ejs = __commonJS({
1197
1197
  return filePath;
1198
1198
  }
1199
1199
  }
1200
- function getIncludePath(path5, options) {
1200
+ function getIncludePath(path3, options) {
1201
1201
  var includePath;
1202
1202
  var filePath;
1203
1203
  var views = options.views;
1204
- var match = /^[A-Za-z]+:\\|^\//.exec(path5);
1204
+ var match = /^[A-Za-z]+:\\|^\//.exec(path3);
1205
1205
  if (match && match.length) {
1206
- path5 = path5.replace(/^\/*/, "");
1206
+ path3 = path3.replace(/^\/*/, "");
1207
1207
  if (Array.isArray(options.root)) {
1208
- includePath = resolvePaths(path5, options.root);
1208
+ includePath = resolvePaths(path3, options.root);
1209
1209
  } else {
1210
- includePath = exports2.resolveInclude(path5, options.root || "/", true);
1210
+ includePath = exports2.resolveInclude(path3, options.root || "/", true);
1211
1211
  }
1212
1212
  } else {
1213
1213
  if (options.filename) {
1214
- filePath = exports2.resolveInclude(path5, options.filename);
1214
+ filePath = exports2.resolveInclude(path3, options.filename);
1215
1215
  if (fs.existsSync(filePath)) {
1216
1216
  includePath = filePath;
1217
1217
  }
1218
1218
  }
1219
1219
  if (!includePath && Array.isArray(views)) {
1220
- includePath = resolvePaths(path5, views);
1220
+ includePath = resolvePaths(path3, views);
1221
1221
  }
1222
1222
  if (!includePath && typeof options.includer !== "function") {
1223
- throw new Error('Could not find the include file "' + options.escapeFunction(path5) + '"');
1223
+ throw new Error('Could not find the include file "' + options.escapeFunction(path3) + '"');
1224
1224
  }
1225
1225
  }
1226
1226
  return includePath;
@@ -1279,11 +1279,11 @@ var require_ejs = __commonJS({
1279
1279
  function fileLoader(filePath) {
1280
1280
  return exports2.fileLoader(filePath);
1281
1281
  }
1282
- function includeFile(path5, options) {
1282
+ function includeFile(path3, options) {
1283
1283
  var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
1284
- opts.filename = getIncludePath(path5, opts);
1284
+ opts.filename = getIncludePath(path3, opts);
1285
1285
  if (typeof options.includer === "function") {
1286
- var includerResult = options.includer(path5, opts.filename);
1286
+ var includerResult = options.includer(path3, opts.filename);
1287
1287
  if (includerResult) {
1288
1288
  if (includerResult.filename) {
1289
1289
  opts.filename = includerResult.filename;
@@ -1518,12 +1518,12 @@ var require_ejs = __commonJS({
1518
1518
  throw e;
1519
1519
  }
1520
1520
  var returnedFn = opts.client ? fn : function anonymous(data) {
1521
- var include = function(path5, includeData) {
1521
+ var include = function(path3, includeData) {
1522
1522
  var d = utils.shallowCopy(utils.createNullProtoObjWherePossible(), data);
1523
1523
  if (includeData) {
1524
1524
  d = utils.shallowCopy(d, includeData);
1525
1525
  }
1526
- return includeFile(path5, opts)(d);
1526
+ return includeFile(path3, opts)(d);
1527
1527
  };
1528
1528
  return fn.apply(
1529
1529
  opts.context,
@@ -1532,7 +1532,7 @@ var require_ejs = __commonJS({
1532
1532
  };
1533
1533
  if (opts.filename && typeof Object.defineProperty === "function") {
1534
1534
  var filename = opts.filename;
1535
- var basename = path4.basename(filename, path4.extname(filename));
1535
+ var basename = path2.basename(filename, path2.extname(filename));
1536
1536
  try {
1537
1537
  Object.defineProperty(returnedFn, "name", {
1538
1538
  value: basename,
@@ -1695,7 +1695,7 @@ var require_generate_files = __commonJS({
1695
1695
  Object.defineProperty(exports2, "__esModule", { value: true });
1696
1696
  exports2.generateFiles = void 0;
1697
1697
  var fs_1 = require("fs");
1698
- var path4 = require("path");
1698
+ var path2 = require("path");
1699
1699
  var nx_1 = require_nx();
1700
1700
  var binary_extensions_1 = require_binary_extensions();
1701
1701
  var { logger } = (0, nx_1.requireNx)();
@@ -1727,8 +1727,8 @@ var require_generate_files = __commonJS({
1727
1727
  }
1728
1728
  exports2.generateFiles = generateFiles2;
1729
1729
  function computePath(srcFolder, target, filePath, substitutions) {
1730
- const relativeFromSrcFolder = path4.relative(srcFolder, filePath);
1731
- let computedPath = path4.join(target, relativeFromSrcFolder);
1730
+ const relativeFromSrcFolder = path2.relative(srcFolder, filePath);
1731
+ let computedPath = path2.join(target, relativeFromSrcFolder);
1732
1732
  if (computedPath.endsWith(".template")) {
1733
1733
  computedPath = computedPath.substring(0, computedPath.length - 9);
1734
1734
  }
@@ -1741,7 +1741,7 @@ var require_generate_files = __commonJS({
1741
1741
  let res = [];
1742
1742
  try {
1743
1743
  (0, fs_1.readdirSync)(parent).forEach((c) => {
1744
- const child = path4.join(parent, c);
1744
+ const child = path2.join(parent, c);
1745
1745
  try {
1746
1746
  const s = (0, fs_1.statSync)(child);
1747
1747
  if (!s.isDirectory()) {
@@ -4107,7 +4107,7 @@ var require_subset = __commonJS({
4107
4107
  var require_semver2 = __commonJS({
4108
4108
  "node_modules/.pnpm/semver@7.5.3/node_modules/semver/index.js"(exports2, module2) {
4109
4109
  var internalRe = require_re();
4110
- var constants3 = require_constants();
4110
+ var constants = require_constants();
4111
4111
  var SemVer = require_semver();
4112
4112
  var identifiers = require_identifiers();
4113
4113
  var parse = require_parse();
@@ -4189,8 +4189,8 @@ var require_semver2 = __commonJS({
4189
4189
  re: internalRe.re,
4190
4190
  src: internalRe.src,
4191
4191
  tokens: internalRe.t,
4192
- SEMVER_SPEC_VERSION: constants3.SEMVER_SPEC_VERSION,
4193
- RELEASE_TYPES: constants3.RELEASE_TYPES,
4192
+ SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
4193
+ RELEASE_TYPES: constants.RELEASE_TYPES,
4194
4194
  compareIdentifiers: identifiers.compareIdentifiers,
4195
4195
  rcompareIdentifiers: identifiers.rcompareIdentifiers
4196
4196
  };
@@ -4731,7 +4731,7 @@ var require_minimatch = __commonJS({
4731
4731
  "node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports2, module2) {
4732
4732
  module2.exports = minimatch;
4733
4733
  minimatch.Minimatch = Minimatch;
4734
- var path4 = function() {
4734
+ var path2 = function() {
4735
4735
  try {
4736
4736
  return require("path");
4737
4737
  } catch (e) {
@@ -4739,7 +4739,7 @@ var require_minimatch = __commonJS({
4739
4739
  }() || {
4740
4740
  sep: "/"
4741
4741
  };
4742
- minimatch.sep = path4.sep;
4742
+ minimatch.sep = path2.sep;
4743
4743
  var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
4744
4744
  var expand = require_brace_expansion();
4745
4745
  var plTypes = {
@@ -4830,8 +4830,8 @@ var require_minimatch = __commonJS({
4830
4830
  if (!options)
4831
4831
  options = {};
4832
4832
  pattern = pattern.trim();
4833
- if (!options.allowWindowsEscape && path4.sep !== "/") {
4834
- pattern = pattern.split(path4.sep).join("/");
4833
+ if (!options.allowWindowsEscape && path2.sep !== "/") {
4834
+ pattern = pattern.split(path2.sep).join("/");
4835
4835
  }
4836
4836
  this.options = options;
4837
4837
  this.set = [];
@@ -5208,8 +5208,8 @@ var require_minimatch = __commonJS({
5208
5208
  if (f === "/" && partial)
5209
5209
  return true;
5210
5210
  var options = this.options;
5211
- if (path4.sep !== "/") {
5212
- f = f.split(path4.sep).join("/");
5211
+ if (path2.sep !== "/") {
5212
+ f = f.split(path2.sep).join("/");
5213
5213
  }
5214
5214
  f = f.split(slashSplit);
5215
5215
  this.debug(this.pattern, "split", f);
@@ -5367,12 +5367,12 @@ var require_inherits = __commonJS({
5367
5367
  var require_path_is_absolute = __commonJS({
5368
5368
  "node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(exports2, module2) {
5369
5369
  "use strict";
5370
- function posix(path4) {
5371
- return path4.charAt(0) === "/";
5370
+ function posix(path2) {
5371
+ return path2.charAt(0) === "/";
5372
5372
  }
5373
- function win32(path4) {
5373
+ function win32(path2) {
5374
5374
  var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
5375
- var result = splitDeviceRe.exec(path4);
5375
+ var result = splitDeviceRe.exec(path2);
5376
5376
  var device = result[1] || "";
5377
5377
  var isUnc = Boolean(device && device.charAt(1) !== ":");
5378
5378
  return Boolean(result[2] || isUnc);
@@ -5397,7 +5397,7 @@ var require_common = __commonJS({
5397
5397
  return Object.prototype.hasOwnProperty.call(obj, field);
5398
5398
  }
5399
5399
  var fs = require("fs");
5400
- var path4 = require("path");
5400
+ var path2 = require("path");
5401
5401
  var minimatch = require_minimatch();
5402
5402
  var isAbsolute = require_path_is_absolute();
5403
5403
  var Minimatch = minimatch.Minimatch;
@@ -5462,11 +5462,11 @@ var require_common = __commonJS({
5462
5462
  if (!ownProp(options, "cwd"))
5463
5463
  self.cwd = cwd;
5464
5464
  else {
5465
- self.cwd = path4.resolve(options.cwd);
5465
+ self.cwd = path2.resolve(options.cwd);
5466
5466
  self.changedCwd = self.cwd !== cwd;
5467
5467
  }
5468
- self.root = options.root || path4.resolve(self.cwd, "/");
5469
- self.root = path4.resolve(self.root);
5468
+ self.root = options.root || path2.resolve(self.cwd, "/");
5469
+ self.root = path2.resolve(self.root);
5470
5470
  if (process.platform === "win32")
5471
5471
  self.root = self.root.replace(/\\/g, "/");
5472
5472
  self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd);
@@ -5548,30 +5548,30 @@ var require_common = __commonJS({
5548
5548
  function makeAbs(self, f) {
5549
5549
  var abs = f;
5550
5550
  if (f.charAt(0) === "/") {
5551
- abs = path4.join(self.root, f);
5551
+ abs = path2.join(self.root, f);
5552
5552
  } else if (isAbsolute(f) || f === "") {
5553
5553
  abs = f;
5554
5554
  } else if (self.changedCwd) {
5555
- abs = path4.resolve(self.cwd, f);
5555
+ abs = path2.resolve(self.cwd, f);
5556
5556
  } else {
5557
- abs = path4.resolve(f);
5557
+ abs = path2.resolve(f);
5558
5558
  }
5559
5559
  if (process.platform === "win32")
5560
5560
  abs = abs.replace(/\\/g, "/");
5561
5561
  return abs;
5562
5562
  }
5563
- function isIgnored(self, path5) {
5563
+ function isIgnored(self, path3) {
5564
5564
  if (!self.ignore.length)
5565
5565
  return false;
5566
5566
  return self.ignore.some(function(item) {
5567
- return item.matcher.match(path5) || !!(item.gmatcher && item.gmatcher.match(path5));
5567
+ return item.matcher.match(path3) || !!(item.gmatcher && item.gmatcher.match(path3));
5568
5568
  });
5569
5569
  }
5570
- function childrenIgnored(self, path5) {
5570
+ function childrenIgnored(self, path3) {
5571
5571
  if (!self.ignore.length)
5572
5572
  return false;
5573
5573
  return self.ignore.some(function(item) {
5574
- return !!(item.gmatcher && item.gmatcher.match(path5));
5574
+ return !!(item.gmatcher && item.gmatcher.match(path3));
5575
5575
  });
5576
5576
  }
5577
5577
  }
@@ -5587,7 +5587,7 @@ var require_sync = __commonJS({
5587
5587
  var Minimatch = minimatch.Minimatch;
5588
5588
  var Glob = require_glob().Glob;
5589
5589
  var util2 = require("util");
5590
- var path4 = require("path");
5590
+ var path2 = require("path");
5591
5591
  var assert = require("assert");
5592
5592
  var isAbsolute = require_path_is_absolute();
5593
5593
  var common = require_common();
@@ -5715,7 +5715,7 @@ var require_sync = __commonJS({
5715
5715
  e = prefix + e;
5716
5716
  }
5717
5717
  if (e.charAt(0) === "/" && !this.nomount) {
5718
- e = path4.join(this.root, e);
5718
+ e = path2.join(this.root, e);
5719
5719
  }
5720
5720
  this._emitMatch(index, e);
5721
5721
  }
@@ -5864,9 +5864,9 @@ var require_sync = __commonJS({
5864
5864
  if (prefix && isAbsolute(prefix) && !this.nomount) {
5865
5865
  var trail = /[\/\\]$/.test(prefix);
5866
5866
  if (prefix.charAt(0) === "/") {
5867
- prefix = path4.join(this.root, prefix);
5867
+ prefix = path2.join(this.root, prefix);
5868
5868
  } else {
5869
- prefix = path4.resolve(this.root, prefix);
5869
+ prefix = path2.resolve(this.root, prefix);
5870
5870
  if (trail)
5871
5871
  prefix += "/";
5872
5872
  }
@@ -6061,7 +6061,7 @@ var require_glob = __commonJS({
6061
6061
  var Minimatch = minimatch.Minimatch;
6062
6062
  var inherits = require_inherits();
6063
6063
  var EE = require("events").EventEmitter;
6064
- var path4 = require("path");
6064
+ var path2 = require("path");
6065
6065
  var assert = require("assert");
6066
6066
  var isAbsolute = require_path_is_absolute();
6067
6067
  var globSync = require_sync();
@@ -6344,7 +6344,7 @@ var require_glob = __commonJS({
6344
6344
  e = prefix + e;
6345
6345
  }
6346
6346
  if (e.charAt(0) === "/" && !this.nomount) {
6347
- e = path4.join(this.root, e);
6347
+ e = path2.join(this.root, e);
6348
6348
  }
6349
6349
  this._emitMatch(index, e);
6350
6350
  }
@@ -6531,9 +6531,9 @@ var require_glob = __commonJS({
6531
6531
  if (prefix && isAbsolute(prefix) && !this.nomount) {
6532
6532
  var trail = /[\/\\]$/.test(prefix);
6533
6533
  if (prefix.charAt(0) === "/") {
6534
- prefix = path4.join(this.root, prefix);
6534
+ prefix = path2.join(this.root, prefix);
6535
6535
  } else {
6536
- prefix = path4.resolve(this.root, prefix);
6536
+ prefix = path2.resolve(this.root, prefix);
6537
6537
  if (trail)
6538
6538
  prefix += "/";
6539
6539
  }
@@ -6611,7 +6611,7 @@ var require_glob = __commonJS({
6611
6611
  var require_rimraf = __commonJS({
6612
6612
  "node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports2, module2) {
6613
6613
  var assert = require("assert");
6614
- var path4 = require("path");
6614
+ var path2 = require("path");
6615
6615
  var fs = require("fs");
6616
6616
  var glob = void 0;
6617
6617
  try {
@@ -6793,7 +6793,7 @@ var require_rimraf = __commonJS({
6793
6793
  return options.rmdir(p, cb);
6794
6794
  let errState;
6795
6795
  files.forEach((f) => {
6796
- rimraf(path4.join(p, f), options, (er2) => {
6796
+ rimraf(path2.join(p, f), options, (er2) => {
6797
6797
  if (errState)
6798
6798
  return;
6799
6799
  if (er2)
@@ -6868,7 +6868,7 @@ var require_rimraf = __commonJS({
6868
6868
  var rmkidsSync = (p, options) => {
6869
6869
  assert(p);
6870
6870
  assert(options);
6871
- options.readdirSync(p).forEach((f) => rimrafSync(path4.join(p, f), options));
6871
+ options.readdirSync(p).forEach((f) => rimrafSync(path2.join(p, f), options));
6872
6872
  const retries = isWindows ? 100 : 1;
6873
6873
  let i = 0;
6874
6874
  do {
@@ -6892,16 +6892,16 @@ var require_rimraf = __commonJS({
6892
6892
  var require_tmp = __commonJS({
6893
6893
  "node_modules/.pnpm/tmp@0.2.1/node_modules/tmp/lib/tmp.js"(exports2, module2) {
6894
6894
  var fs = require("fs");
6895
- var os2 = require("os");
6896
- var path4 = require("path");
6895
+ var os = require("os");
6896
+ var path2 = require("path");
6897
6897
  var crypto = require("crypto");
6898
- var _c = { fs: fs.constants, os: os2.constants };
6898
+ var _c = { fs: fs.constants, os: os.constants };
6899
6899
  var rimraf = require_rimraf();
6900
6900
  var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
6901
6901
  var TEMPLATE_PATTERN = /XXXXXX/;
6902
6902
  var DEFAULT_TRIES = 3;
6903
6903
  var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR);
6904
- var IS_WIN32 = os2.platform() === "win32";
6904
+ var IS_WIN32 = os.platform() === "win32";
6905
6905
  var EBADF = _c.EBADF || _c.os.errno.EBADF;
6906
6906
  var ENOENT = _c.ENOENT || _c.os.errno.ENOENT;
6907
6907
  var DIR_MODE = 448;
@@ -7116,9 +7116,9 @@ var require_tmp = __commonJS({
7116
7116
  function _generateTmpName(opts) {
7117
7117
  const tmpDir = opts.tmpdir;
7118
7118
  if (!_isUndefined(opts.name))
7119
- return path4.join(tmpDir, opts.dir, opts.name);
7119
+ return path2.join(tmpDir, opts.dir, opts.name);
7120
7120
  if (!_isUndefined(opts.template))
7121
- return path4.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
7121
+ return path2.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
7122
7122
  const name = [
7123
7123
  opts.prefix ? opts.prefix : "tmp",
7124
7124
  "-",
@@ -7127,7 +7127,7 @@ var require_tmp = __commonJS({
7127
7127
  _randomChars(12),
7128
7128
  opts.postfix ? "-" + opts.postfix : ""
7129
7129
  ].join("");
7130
- return path4.join(tmpDir, opts.dir, name);
7130
+ return path2.join(tmpDir, opts.dir, name);
7131
7131
  }
7132
7132
  function _assertAndSanitizeOptions(options) {
7133
7133
  options.tmpdir = _getTmpDir(options);
@@ -7148,9 +7148,9 @@ var require_tmp = __commonJS({
7148
7148
  options.detachDescriptor = !!options.detachDescriptor;
7149
7149
  options.discardDescriptor = !!options.discardDescriptor;
7150
7150
  options.unsafeCleanup = !!options.unsafeCleanup;
7151
- options.dir = _isUndefined(options.dir) ? "" : path4.relative(tmpDir, _resolvePath(options.dir, tmpDir));
7152
- options.template = _isUndefined(options.template) ? void 0 : path4.relative(tmpDir, _resolvePath(options.template, tmpDir));
7153
- options.template = _isBlank(options.template) ? void 0 : path4.relative(options.dir, options.template);
7151
+ options.dir = _isUndefined(options.dir) ? "" : path2.relative(tmpDir, _resolvePath(options.dir, tmpDir));
7152
+ options.template = _isUndefined(options.template) ? void 0 : path2.relative(tmpDir, _resolvePath(options.template, tmpDir));
7153
+ options.template = _isBlank(options.template) ? void 0 : path2.relative(options.dir, options.template);
7154
7154
  options.name = _isUndefined(options.name) ? void 0 : _sanitizeName(options.name);
7155
7155
  options.prefix = _isUndefined(options.prefix) ? "" : options.prefix;
7156
7156
  options.postfix = _isUndefined(options.postfix) ? "" : options.postfix;
@@ -7158,9 +7158,9 @@ var require_tmp = __commonJS({
7158
7158
  function _resolvePath(name, tmpDir) {
7159
7159
  const sanitizedName = _sanitizeName(name);
7160
7160
  if (sanitizedName.startsWith(tmpDir)) {
7161
- return path4.resolve(sanitizedName);
7161
+ return path2.resolve(sanitizedName);
7162
7162
  } else {
7163
- return path4.resolve(path4.join(tmpDir, sanitizedName));
7163
+ return path2.resolve(path2.join(tmpDir, sanitizedName));
7164
7164
  }
7165
7165
  }
7166
7166
  function _sanitizeName(name) {
@@ -7171,13 +7171,13 @@ var require_tmp = __commonJS({
7171
7171
  }
7172
7172
  function _assertIsRelative(name, option, tmpDir) {
7173
7173
  if (option === "name") {
7174
- if (path4.isAbsolute(name))
7174
+ if (path2.isAbsolute(name))
7175
7175
  throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
7176
- let basename = path4.basename(name);
7176
+ let basename = path2.basename(name);
7177
7177
  if (basename === ".." || basename === "." || basename !== name)
7178
7178
  throw new Error(`${option} option must not contain a path, found "${name}".`);
7179
7179
  } else {
7180
- if (path4.isAbsolute(name) && !name.startsWith(tmpDir)) {
7180
+ if (path2.isAbsolute(name) && !name.startsWith(tmpDir)) {
7181
7181
  throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
7182
7182
  }
7183
7183
  let resolvedPath = _resolvePath(name, tmpDir);
@@ -7198,7 +7198,7 @@ var require_tmp = __commonJS({
7198
7198
  _gracefulCleanup = true;
7199
7199
  }
7200
7200
  function _getTmpDir(options) {
7201
- return path4.resolve(_sanitizeName(options && options.tmpdir || os2.tmpdir()));
7201
+ return path2.resolve(_sanitizeName(options && options.tmpdir || os.tmpdir()));
7202
7202
  }
7203
7203
  process.addListener(EXIT, _garbageCollector);
7204
7204
  Object.defineProperty(module2.exports, "tmpdir", {
@@ -7809,17 +7809,17 @@ var require_ignore = __commonJS({
7809
7809
  var throwError = (message, Ctor) => {
7810
7810
  throw new Ctor(message);
7811
7811
  };
7812
- var checkPath = (path4, originalPath, doThrow) => {
7813
- if (!isString(path4)) {
7812
+ var checkPath = (path2, originalPath, doThrow) => {
7813
+ if (!isString(path2)) {
7814
7814
  return doThrow(
7815
7815
  `path must be a string, but got \`${originalPath}\``,
7816
7816
  TypeError
7817
7817
  );
7818
7818
  }
7819
- if (!path4) {
7819
+ if (!path2) {
7820
7820
  return doThrow(`path must not be empty`, TypeError);
7821
7821
  }
7822
- if (checkPath.isNotRelative(path4)) {
7822
+ if (checkPath.isNotRelative(path2)) {
7823
7823
  const r = "`path.relative()`d";
7824
7824
  return doThrow(
7825
7825
  `path should be a ${r} string, but got "${originalPath}"`,
@@ -7828,7 +7828,7 @@ var require_ignore = __commonJS({
7828
7828
  }
7829
7829
  return true;
7830
7830
  };
7831
- var isNotRelative = (path4) => REGEX_TEST_INVALID_PATH.test(path4);
7831
+ var isNotRelative = (path2) => REGEX_TEST_INVALID_PATH.test(path2);
7832
7832
  checkPath.isNotRelative = isNotRelative;
7833
7833
  checkPath.convert = (p) => p;
7834
7834
  var Ignore = class {
@@ -7887,7 +7887,7 @@ var require_ignore = __commonJS({
7887
7887
  // setting `checkUnignored` to `false` could reduce additional
7888
7888
  // path matching.
7889
7889
  // @returns {TestResult} true if a file is ignored
7890
- _testOne(path4, checkUnignored) {
7890
+ _testOne(path2, checkUnignored) {
7891
7891
  let ignored = false;
7892
7892
  let unignored = false;
7893
7893
  this._rules.forEach((rule) => {
@@ -7895,7 +7895,7 @@ var require_ignore = __commonJS({
7895
7895
  if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
7896
7896
  return;
7897
7897
  }
7898
- const matched = rule.regex.test(path4);
7898
+ const matched = rule.regex.test(path2);
7899
7899
  if (matched) {
7900
7900
  ignored = !negative;
7901
7901
  unignored = negative;
@@ -7908,24 +7908,24 @@ var require_ignore = __commonJS({
7908
7908
  }
7909
7909
  // @returns {TestResult}
7910
7910
  _test(originalPath, cache, checkUnignored, slices) {
7911
- const path4 = originalPath && checkPath.convert(originalPath);
7911
+ const path2 = originalPath && checkPath.convert(originalPath);
7912
7912
  checkPath(
7913
- path4,
7913
+ path2,
7914
7914
  originalPath,
7915
7915
  this._allowRelativePaths ? RETURN_FALSE : throwError
7916
7916
  );
7917
- return this._t(path4, cache, checkUnignored, slices);
7917
+ return this._t(path2, cache, checkUnignored, slices);
7918
7918
  }
7919
- _t(path4, cache, checkUnignored, slices) {
7920
- if (path4 in cache) {
7921
- return cache[path4];
7919
+ _t(path2, cache, checkUnignored, slices) {
7920
+ if (path2 in cache) {
7921
+ return cache[path2];
7922
7922
  }
7923
7923
  if (!slices) {
7924
- slices = path4.split(SLASH);
7924
+ slices = path2.split(SLASH);
7925
7925
  }
7926
7926
  slices.pop();
7927
7927
  if (!slices.length) {
7928
- return cache[path4] = this._testOne(path4, checkUnignored);
7928
+ return cache[path2] = this._testOne(path2, checkUnignored);
7929
7929
  }
7930
7930
  const parent = this._t(
7931
7931
  slices.join(SLASH) + SLASH,
@@ -7933,24 +7933,24 @@ var require_ignore = __commonJS({
7933
7933
  checkUnignored,
7934
7934
  slices
7935
7935
  );
7936
- return cache[path4] = parent.ignored ? parent : this._testOne(path4, checkUnignored);
7936
+ return cache[path2] = parent.ignored ? parent : this._testOne(path2, checkUnignored);
7937
7937
  }
7938
- ignores(path4) {
7939
- return this._test(path4, this._ignoreCache, false).ignored;
7938
+ ignores(path2) {
7939
+ return this._test(path2, this._ignoreCache, false).ignored;
7940
7940
  }
7941
7941
  createFilter() {
7942
- return (path4) => !this.ignores(path4);
7942
+ return (path2) => !this.ignores(path2);
7943
7943
  }
7944
7944
  filter(paths) {
7945
7945
  return makeArray(paths).filter(this.createFilter());
7946
7946
  }
7947
7947
  // @returns {TestResult}
7948
- test(path4) {
7949
- return this._test(path4, this._testCache, true);
7948
+ test(path2) {
7949
+ return this._test(path2, this._testCache, true);
7950
7950
  }
7951
7951
  };
7952
7952
  var factory = (options) => new Ignore(options);
7953
- var isPathValid = (path4) => checkPath(path4 && checkPath.convert(path4), path4, RETURN_FALSE);
7953
+ var isPathValid = (path2) => checkPath(path2 && checkPath.convert(path2), path2, RETURN_FALSE);
7954
7954
  factory.isPathValid = isPathValid;
7955
7955
  factory.default = factory;
7956
7956
  module2.exports = factory;
@@ -7961,7 +7961,7 @@ var require_ignore = __commonJS({
7961
7961
  const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
7962
7962
  checkPath.convert = makePosix;
7963
7963
  const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
7964
- checkPath.isNotRelative = (path4) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path4) || isNotRelative(path4);
7964
+ checkPath.isNotRelative = (path2) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path2) || isNotRelative(path2);
7965
7965
  }
7966
7966
  }
7967
7967
  });
@@ -8002,8 +8002,8 @@ var require_visit_not_ignored_files = __commonJS({
8002
8002
  }
8003
8003
  }
8004
8004
  exports2.visitNotIgnoredFiles = visitNotIgnoredFiles;
8005
- function normalizePathRelativeToRoot(path4, root) {
8006
- return (0, path_1.relative)(root, (0, path_1.join)(root, path4)).split(path_1.sep).join("/");
8005
+ function normalizePathRelativeToRoot(path2, root) {
8006
+ return (0, path_1.relative)(root, (0, path_1.join)(root, path2)).split(path_1.sep).join("/");
8007
8007
  }
8008
8008
  }
8009
8009
  });
@@ -8384,8 +8384,8 @@ var require_invoke_nx_generator = __commonJS({
8384
8384
  }
8385
8385
  return fileChanges;
8386
8386
  }
8387
- normalize(path4) {
8388
- return (0, path_1.relative)(this.root, (0, path_1.join)(this.root, path4));
8387
+ normalize(path2) {
8388
+ return (0, path_1.relative)(this.root, (0, path_1.join)(this.root, path2));
8389
8389
  }
8390
8390
  read(filePath, encoding) {
8391
8391
  return encoding ? this.tree.read(filePath).toString(encoding) : this.tree.read(filePath);
@@ -8769,9 +8769,9 @@ var require_noop = __commonJS({
8769
8769
  "use strict";
8770
8770
  Object.defineProperty(exports2, "__esModule", { value: true });
8771
8771
  exports2.noop = void 0;
8772
- function noop2() {
8772
+ function noop() {
8773
8773
  }
8774
- exports2.noop = noop2;
8774
+ exports2.noop = noop;
8775
8775
  }
8776
8776
  });
8777
8777
 
@@ -9061,10 +9061,10 @@ var require_identity = __commonJS({
9061
9061
  "use strict";
9062
9062
  Object.defineProperty(exports2, "__esModule", { value: true });
9063
9063
  exports2.identity = void 0;
9064
- function identity2(x) {
9064
+ function identity(x) {
9065
9065
  return x;
9066
9066
  }
9067
- exports2.identity = identity2;
9067
+ exports2.identity = identity;
9068
9068
  }
9069
9069
  });
9070
9070
 
@@ -11108,10 +11108,10 @@ var require_isAsyncIterable = __commonJS({
11108
11108
  Object.defineProperty(exports2, "__esModule", { value: true });
11109
11109
  exports2.isAsyncIterable = void 0;
11110
11110
  var isFunction_1 = require_isFunction();
11111
- function isAsyncIterable2(obj) {
11111
+ function isAsyncIterable(obj) {
11112
11112
  return Symbol.asyncIterator && isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
11113
11113
  }
11114
- exports2.isAsyncIterable = isAsyncIterable2;
11114
+ exports2.isAsyncIterable = isAsyncIterable;
11115
11115
  }
11116
11116
  });
11117
11117
 
@@ -11571,7 +11571,7 @@ var require_innerFrom = __commonJS({
11571
11571
  exports2.fromIterable = fromIterable;
11572
11572
  function fromAsyncIterable(asyncIterable) {
11573
11573
  return new Observable_1.Observable(function(subscriber) {
11574
- process7(asyncIterable, subscriber).catch(function(err) {
11574
+ process2(asyncIterable, subscriber).catch(function(err) {
11575
11575
  return subscriber.error(err);
11576
11576
  });
11577
11577
  });
@@ -11581,7 +11581,7 @@ var require_innerFrom = __commonJS({
11581
11581
  return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
11582
11582
  }
11583
11583
  exports2.fromReadableStreamLike = fromReadableStreamLike;
11584
- function process7(asyncIterable, subscriber) {
11584
+ function process2(asyncIterable, subscriber) {
11585
11585
  var asyncIterable_1, asyncIterable_1_1;
11586
11586
  var e_2, _a;
11587
11587
  return __awaiter2(this, void 0, void 0, function() {
@@ -18236,7 +18236,7 @@ var require_devkit = __commonJS({
18236
18236
  var require_resolve_from = __commonJS({
18237
18237
  "node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js"(exports2, module2) {
18238
18238
  "use strict";
18239
- var path4 = require("path");
18239
+ var path2 = require("path");
18240
18240
  var Module = require("module");
18241
18241
  var fs = require("fs");
18242
18242
  var resolveFrom = (fromDir, moduleId, silent) => {
@@ -18250,14 +18250,14 @@ var require_resolve_from = __commonJS({
18250
18250
  fromDir = fs.realpathSync(fromDir);
18251
18251
  } catch (err) {
18252
18252
  if (err.code === "ENOENT") {
18253
- fromDir = path4.resolve(fromDir);
18253
+ fromDir = path2.resolve(fromDir);
18254
18254
  } else if (silent) {
18255
18255
  return null;
18256
18256
  } else {
18257
18257
  throw err;
18258
18258
  }
18259
18259
  }
18260
- const fromFile = path4.join(fromDir, "noop.js");
18260
+ const fromFile = path2.join(fromDir, "noop.js");
18261
18261
  const resolveFileName = () => Module._resolveFilename(moduleId, {
18262
18262
  id: fromFile,
18263
18263
  filename: fromFile,
@@ -18329,7 +18329,7 @@ var require_parent_module = __commonJS({
18329
18329
  var require_import_fresh = __commonJS({
18330
18330
  "node_modules/.pnpm/import-fresh@3.3.0/node_modules/import-fresh/index.js"(exports2, module2) {
18331
18331
  "use strict";
18332
- var path4 = require("path");
18332
+ var path2 = require("path");
18333
18333
  var resolveFrom = require_resolve_from();
18334
18334
  var parentModule = require_parent_module();
18335
18335
  module2.exports = (moduleId) => {
@@ -18337,7 +18337,7 @@ var require_import_fresh = __commonJS({
18337
18337
  throw new TypeError("Expected a string");
18338
18338
  }
18339
18339
  const parentPath = parentModule(__filename);
18340
- const cwd = parentPath ? path4.dirname(parentPath) : __dirname;
18340
+ const cwd = parentPath ? path2.dirname(parentPath) : __dirname;
18341
18341
  const filePath = resolveFrom(cwd, moduleId);
18342
18342
  const oldModule = require.cache[filePath];
18343
18343
  if (oldModule && oldModule.parent) {
@@ -19779,15 +19779,15 @@ var require_route = __commonJS({
19779
19779
  };
19780
19780
  }
19781
19781
  function wrapConversion(toModel, graph) {
19782
- var path4 = [graph[toModel].parent, toModel];
19782
+ var path2 = [graph[toModel].parent, toModel];
19783
19783
  var fn = conversions[graph[toModel].parent][toModel];
19784
19784
  var cur = graph[toModel].parent;
19785
19785
  while (graph[cur].parent) {
19786
- path4.unshift(graph[cur].parent);
19786
+ path2.unshift(graph[cur].parent);
19787
19787
  fn = link(conversions[graph[cur].parent][cur], fn);
19788
19788
  cur = graph[cur].parent;
19789
19789
  }
19790
- fn.conversion = path4;
19790
+ fn.conversion = path2;
19791
19791
  return fn;
19792
19792
  }
19793
19793
  module2.exports = function(fromModel) {
@@ -20027,7 +20027,7 @@ var require_has_flag = __commonJS({
20027
20027
  var require_supports_color = __commonJS({
20028
20028
  "node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports2, module2) {
20029
20029
  "use strict";
20030
- var os2 = require("os");
20030
+ var os = require("os");
20031
20031
  var hasFlag = require_has_flag();
20032
20032
  var env = process.env;
20033
20033
  var forceColor;
@@ -20065,7 +20065,7 @@ var require_supports_color = __commonJS({
20065
20065
  }
20066
20066
  const min = forceColor ? 1 : 0;
20067
20067
  if (process.platform === "win32") {
20068
- const osRelease = os2.release().split(".");
20068
+ const osRelease = os.release().split(".");
20069
20069
  if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
20070
20070
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
20071
20071
  }
@@ -22929,7 +22929,7 @@ var require_loader = __commonJS({
22929
22929
  iterator(documents[index]);
22930
22930
  }
22931
22931
  }
22932
- function load2(input, options) {
22932
+ function load(input, options) {
22933
22933
  var documents = loadDocuments(input, options);
22934
22934
  if (documents.length === 0) {
22935
22935
  return void 0;
@@ -22939,7 +22939,7 @@ var require_loader = __commonJS({
22939
22939
  throw new YAMLException("expected a single document in the stream, but found more");
22940
22940
  }
22941
22941
  module2.exports.loadAll = loadAll;
22942
- module2.exports.load = load2;
22942
+ module2.exports.load = load;
22943
22943
  }
22944
22944
  });
22945
22945
 
@@ -23755,7 +23755,7 @@ ${error.message}`;
23755
23755
  return typescript.sys.fileExists(fileName);
23756
23756
  });
23757
23757
  if (filePath !== void 0) {
23758
- const { config, error } = typescript.readConfigFile(filePath, (path4) => typescript.sys.readFile(path4));
23758
+ const { config, error } = typescript.readConfigFile(filePath, (path2) => typescript.sys.readFile(path2));
23759
23759
  if (error) {
23760
23760
  throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
23761
23761
  }
@@ -23878,42 +23878,42 @@ var require_defaults = __commonJS({
23878
23878
  var require_env_paths = __commonJS({
23879
23879
  "node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports2, module2) {
23880
23880
  "use strict";
23881
- var path4 = require("path");
23882
- var os2 = require("os");
23883
- var homedir = os2.homedir();
23884
- var tmpdir = os2.tmpdir();
23881
+ var path2 = require("path");
23882
+ var os = require("os");
23883
+ var homedir = os.homedir();
23884
+ var tmpdir = os.tmpdir();
23885
23885
  var { env } = process;
23886
23886
  var macos = (name) => {
23887
- const library = path4.join(homedir, "Library");
23887
+ const library = path2.join(homedir, "Library");
23888
23888
  return {
23889
- data: path4.join(library, "Application Support", name),
23890
- config: path4.join(library, "Preferences", name),
23891
- cache: path4.join(library, "Caches", name),
23892
- log: path4.join(library, "Logs", name),
23893
- temp: path4.join(tmpdir, name)
23889
+ data: path2.join(library, "Application Support", name),
23890
+ config: path2.join(library, "Preferences", name),
23891
+ cache: path2.join(library, "Caches", name),
23892
+ log: path2.join(library, "Logs", name),
23893
+ temp: path2.join(tmpdir, name)
23894
23894
  };
23895
23895
  };
23896
23896
  var windows = (name) => {
23897
- const appData = env.APPDATA || path4.join(homedir, "AppData", "Roaming");
23898
- const localAppData = env.LOCALAPPDATA || path4.join(homedir, "AppData", "Local");
23897
+ const appData = env.APPDATA || path2.join(homedir, "AppData", "Roaming");
23898
+ const localAppData = env.LOCALAPPDATA || path2.join(homedir, "AppData", "Local");
23899
23899
  return {
23900
23900
  // Data/config/cache/log are invented by me as Windows isn't opinionated about this
23901
- data: path4.join(localAppData, name, "Data"),
23902
- config: path4.join(appData, name, "Config"),
23903
- cache: path4.join(localAppData, name, "Cache"),
23904
- log: path4.join(localAppData, name, "Log"),
23905
- temp: path4.join(tmpdir, name)
23901
+ data: path2.join(localAppData, name, "Data"),
23902
+ config: path2.join(appData, name, "Config"),
23903
+ cache: path2.join(localAppData, name, "Cache"),
23904
+ log: path2.join(localAppData, name, "Log"),
23905
+ temp: path2.join(tmpdir, name)
23906
23906
  };
23907
23907
  };
23908
23908
  var linux = (name) => {
23909
- const username = path4.basename(homedir);
23909
+ const username = path2.basename(homedir);
23910
23910
  return {
23911
- data: path4.join(env.XDG_DATA_HOME || path4.join(homedir, ".local", "share"), name),
23912
- config: path4.join(env.XDG_CONFIG_HOME || path4.join(homedir, ".config"), name),
23913
- cache: path4.join(env.XDG_CACHE_HOME || path4.join(homedir, ".cache"), name),
23911
+ data: path2.join(env.XDG_DATA_HOME || path2.join(homedir, ".local", "share"), name),
23912
+ config: path2.join(env.XDG_CONFIG_HOME || path2.join(homedir, ".config"), name),
23913
+ cache: path2.join(env.XDG_CACHE_HOME || path2.join(homedir, ".cache"), name),
23914
23914
  // https://wiki.debian.org/XDGBaseDirectorySpecification#state
23915
- log: path4.join(env.XDG_STATE_HOME || path4.join(homedir, ".local", "state"), name),
23916
- temp: path4.join(tmpdir, username, name)
23915
+ log: path2.join(env.XDG_STATE_HOME || path2.join(homedir, ".local", "state"), name),
23916
+ temp: path2.join(tmpdir, username, name)
23917
23917
  };
23918
23918
  };
23919
23919
  var envPaths = (name, options) => {
@@ -23986,11 +23986,11 @@ var require_util = __commonJS({
23986
23986
  return result;
23987
23987
  }
23988
23988
  exports2.emplace = emplace;
23989
- function getPropertyByPath(source, path4) {
23990
- if (typeof path4 === "string" && Object.prototype.hasOwnProperty.call(source, path4)) {
23991
- return source[path4];
23989
+ function getPropertyByPath(source, path2) {
23990
+ if (typeof path2 === "string" && Object.prototype.hasOwnProperty.call(source, path2)) {
23991
+ return source[path2];
23992
23992
  }
23993
- const parsedPath = typeof path4 === "string" ? path4.split(".") : path4;
23993
+ const parsedPath = typeof path2 === "string" ? path2.split(".") : path2;
23994
23994
  return parsedPath.reduce((previous, key) => {
23995
23995
  if (previous === void 0) {
23996
23996
  return previous;
@@ -24003,9 +24003,9 @@ var require_util = __commonJS({
24003
24003
  return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
24004
24004
  }
24005
24005
  exports2.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
24006
- async function isDirectory(path4) {
24006
+ async function isDirectory(path2) {
24007
24007
  try {
24008
- const stat = await fs_1.promises.stat(path4);
24008
+ const stat = await fs_1.promises.stat(path2);
24009
24009
  return stat.isDirectory();
24010
24010
  } catch (e) {
24011
24011
  if (e.code === "ENOENT") {
@@ -24015,9 +24015,9 @@ var require_util = __commonJS({
24015
24015
  }
24016
24016
  }
24017
24017
  exports2.isDirectory = isDirectory;
24018
- function isDirectorySync(path4) {
24018
+ function isDirectorySync(path2) {
24019
24019
  try {
24020
- const stat = fs_1.default.statSync(path4);
24020
+ const stat = fs_1.default.statSync(path2);
24021
24021
  return stat.isDirectory();
24022
24022
  } catch (e) {
24023
24023
  if (e.code === "ENOENT") {
@@ -24115,7 +24115,7 @@ var require_ExplorerBase = __commonJS({
24115
24115
  const idx = importStack.indexOf(fullPath);
24116
24116
  if (idx !== -1) {
24117
24117
  throw new Error(`Circular import detected:
24118
- ${[...importStack, fullPath].map((path4, i) => `${i + 1}. ${path4}`).join("\n")} (same as ${idx + 1}.)`);
24118
+ ${[...importStack, fullPath].map((path2, i) => `${i + 1}. ${path2}`).join("\n")} (same as ${idx + 1}.)`);
24119
24119
  }
24120
24120
  }
24121
24121
  }
@@ -24202,13 +24202,13 @@ var require_Explorer = __commonJS({
24202
24202
  var Explorer = class extends ExplorerBase_js_1.ExplorerBase {
24203
24203
  async load(filepath) {
24204
24204
  filepath = path_1.default.resolve(filepath);
24205
- const load2 = async () => {
24205
+ const load = async () => {
24206
24206
  return await this.config.transform(await this.#readConfiguration(filepath));
24207
24207
  };
24208
24208
  if (this.loadCache) {
24209
- return await (0, util_js_1.emplace)(this.loadCache, filepath, load2);
24209
+ return await (0, util_js_1.emplace)(this.loadCache, filepath, load);
24210
24210
  }
24211
- return await load2();
24211
+ return await load();
24212
24212
  }
24213
24213
  async search(from = "") {
24214
24214
  if (this.config.metaConfigFilePath) {
@@ -24300,9 +24300,9 @@ var require_Explorer = __commonJS({
24300
24300
  throw error;
24301
24301
  }
24302
24302
  }
24303
- async #fileExists(path4) {
24303
+ async #fileExists(path2) {
24304
24304
  try {
24305
- await promises_1.default.stat(path4);
24305
+ await promises_1.default.stat(path2);
24306
24306
  return true;
24307
24307
  } catch (e) {
24308
24308
  return false;
@@ -24360,13 +24360,13 @@ var require_ExplorerSync = __commonJS({
24360
24360
  var ExplorerSync = class extends ExplorerBase_js_1.ExplorerBase {
24361
24361
  load(filepath) {
24362
24362
  filepath = path_1.default.resolve(filepath);
24363
- const load2 = () => {
24363
+ const load = () => {
24364
24364
  return this.config.transform(this.#readConfiguration(filepath));
24365
24365
  };
24366
24366
  if (this.loadCache) {
24367
- return (0, util_js_1.emplace)(this.loadCache, filepath, load2);
24367
+ return (0, util_js_1.emplace)(this.loadCache, filepath, load);
24368
24368
  }
24369
- return load2();
24369
+ return load();
24370
24370
  }
24371
24371
  search(from = "") {
24372
24372
  if (this.config.metaConfigFilePath) {
@@ -24458,9 +24458,9 @@ var require_ExplorerSync = __commonJS({
24458
24458
  throw error;
24459
24459
  }
24460
24460
  }
24461
- #fileExists(path4) {
24461
+ #fileExists(path2) {
24462
24462
  try {
24463
- fs_1.default.statSync(path4);
24463
+ fs_1.default.statSync(path2);
24464
24464
  return true;
24465
24465
  } catch (e) {
24466
24466
  return false;
@@ -24542,7 +24542,7 @@ var require_dist = __commonJS({
24542
24542
  var Explorer_js_1 = require_Explorer();
24543
24543
  var ExplorerSync_js_1 = require_ExplorerSync();
24544
24544
  var util_1 = require_util();
24545
- var identity2 = function identity3(x) {
24545
+ var identity = function identity2(x) {
24546
24546
  return x;
24547
24547
  };
24548
24548
  function getUserDefinedOptionsFromMetaConfig() {
@@ -24553,7 +24553,7 @@ var require_dist = __commonJS({
24553
24553
  ignoreEmptySearchPlaces: false,
24554
24554
  applyPackagePropertyPathToConfiguration: true,
24555
24555
  loaders: defaults_1.defaultLoaders,
24556
- transform: identity2,
24556
+ transform: identity,
24557
24557
  cache: true,
24558
24558
  metaConfigFilePath: null,
24559
24559
  mergeImportArrays: true,
@@ -24580,7 +24580,7 @@ var require_dist = __commonJS({
24580
24580
  };
24581
24581
  }
24582
24582
  function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
24583
- const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path4) => path4.replace("{name}", moduleName));
24583
+ const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path2) => path2.replace("{name}", moduleName));
24584
24584
  if (userConfiguredOptions.mergeSearchPlaces) {
24585
24585
  return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
24586
24586
  }
@@ -24625,7 +24625,7 @@ var require_dist = __commonJS({
24625
24625
  searchPlaces: (0, defaults_1.getDefaultSearchPlaces)(moduleName),
24626
24626
  ignoreEmptySearchPlaces: true,
24627
24627
  cache: true,
24628
- transform: identity2,
24628
+ transform: identity,
24629
24629
  loaders: defaults_1.defaultLoaders,
24630
24630
  metaConfigFilePath: null,
24631
24631
  mergeImportArrays: true,
@@ -24641,7 +24641,7 @@ var require_dist = __commonJS({
24641
24641
  searchPlaces: (0, defaults_1.getDefaultSearchPlacesSync)(moduleName),
24642
24642
  ignoreEmptySearchPlaces: true,
24643
24643
  cache: true,
24644
- transform: identity2,
24644
+ transform: identity,
24645
24645
  loaders: defaults_1.defaultLoadersSync,
24646
24646
  metaConfigFilePath: null,
24647
24647
  mergeImportArrays: true,
@@ -25547,15 +25547,15 @@ var require_route2 = __commonJS({
25547
25547
  };
25548
25548
  }
25549
25549
  function wrapConversion(toModel, graph) {
25550
- const path4 = [graph[toModel].parent, toModel];
25550
+ const path2 = [graph[toModel].parent, toModel];
25551
25551
  let fn = conversions[graph[toModel].parent][toModel];
25552
25552
  let cur = graph[toModel].parent;
25553
25553
  while (graph[cur].parent) {
25554
- path4.unshift(graph[cur].parent);
25554
+ path2.unshift(graph[cur].parent);
25555
25555
  fn = link(conversions[graph[cur].parent][cur], fn);
25556
25556
  cur = graph[cur].parent;
25557
25557
  }
25558
- fn.conversion = path4;
25558
+ fn.conversion = path2;
25559
25559
  return fn;
25560
25560
  }
25561
25561
  module2.exports = function(fromModel) {
@@ -25670,7 +25670,7 @@ var require_ansi_styles2 = __commonJS({
25670
25670
  });
25671
25671
  };
25672
25672
  var colorConvert;
25673
- var makeDynamicStyles = (wrap, targetSpace, identity2, isBackground) => {
25673
+ var makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
25674
25674
  if (colorConvert === void 0) {
25675
25675
  colorConvert = require_color_convert2();
25676
25676
  }
@@ -25679,7 +25679,7 @@ var require_ansi_styles2 = __commonJS({
25679
25679
  for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
25680
25680
  const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
25681
25681
  if (sourceSpace === targetSpace) {
25682
- styles[name] = wrap(identity2, offset);
25682
+ styles[name] = wrap(identity, offset);
25683
25683
  } else if (typeof suite === "object") {
25684
25684
  styles[name] = wrap(suite[targetSpace], offset);
25685
25685
  }
@@ -25795,7 +25795,7 @@ var require_has_flag2 = __commonJS({
25795
25795
  var require_supports_color2 = __commonJS({
25796
25796
  "node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports2, module2) {
25797
25797
  "use strict";
25798
- var os2 = require("os");
25798
+ var os = require("os");
25799
25799
  var tty = require("tty");
25800
25800
  var hasFlag = require_has_flag2();
25801
25801
  var { env } = process;
@@ -25843,7 +25843,7 @@ var require_supports_color2 = __commonJS({
25843
25843
  return min;
25844
25844
  }
25845
25845
  if (process.platform === "win32") {
25846
- const osRelease = os2.release().split(".");
25846
+ const osRelease = os.release().split(".");
25847
25847
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
25848
25848
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
25849
25849
  }
@@ -26224,543 +26224,6 @@ var require_source = __commonJS({
26224
26224
  }
26225
26225
  });
26226
26226
 
26227
- // node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
26228
- var require_windows = __commonJS({
26229
- "node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports2, module2) {
26230
- module2.exports = isexe;
26231
- isexe.sync = sync;
26232
- var fs = require("fs");
26233
- function checkPathExt(path4, options) {
26234
- var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
26235
- if (!pathext) {
26236
- return true;
26237
- }
26238
- pathext = pathext.split(";");
26239
- if (pathext.indexOf("") !== -1) {
26240
- return true;
26241
- }
26242
- for (var i = 0; i < pathext.length; i++) {
26243
- var p = pathext[i].toLowerCase();
26244
- if (p && path4.substr(-p.length).toLowerCase() === p) {
26245
- return true;
26246
- }
26247
- }
26248
- return false;
26249
- }
26250
- function checkStat(stat, path4, options) {
26251
- if (!stat.isSymbolicLink() && !stat.isFile()) {
26252
- return false;
26253
- }
26254
- return checkPathExt(path4, options);
26255
- }
26256
- function isexe(path4, options, cb) {
26257
- fs.stat(path4, function(er, stat) {
26258
- cb(er, er ? false : checkStat(stat, path4, options));
26259
- });
26260
- }
26261
- function sync(path4, options) {
26262
- return checkStat(fs.statSync(path4), path4, options);
26263
- }
26264
- }
26265
- });
26266
-
26267
- // node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
26268
- var require_mode = __commonJS({
26269
- "node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports2, module2) {
26270
- module2.exports = isexe;
26271
- isexe.sync = sync;
26272
- var fs = require("fs");
26273
- function isexe(path4, options, cb) {
26274
- fs.stat(path4, function(er, stat) {
26275
- cb(er, er ? false : checkStat(stat, options));
26276
- });
26277
- }
26278
- function sync(path4, options) {
26279
- return checkStat(fs.statSync(path4), options);
26280
- }
26281
- function checkStat(stat, options) {
26282
- return stat.isFile() && checkMode(stat, options);
26283
- }
26284
- function checkMode(stat, options) {
26285
- var mod = stat.mode;
26286
- var uid = stat.uid;
26287
- var gid = stat.gid;
26288
- var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
26289
- var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
26290
- var u = parseInt("100", 8);
26291
- var g = parseInt("010", 8);
26292
- var o = parseInt("001", 8);
26293
- var ug = u | g;
26294
- var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
26295
- return ret;
26296
- }
26297
- }
26298
- });
26299
-
26300
- // node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
26301
- var require_isexe = __commonJS({
26302
- "node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports2, module2) {
26303
- var fs = require("fs");
26304
- var core;
26305
- if (process.platform === "win32" || global.TESTING_WINDOWS) {
26306
- core = require_windows();
26307
- } else {
26308
- core = require_mode();
26309
- }
26310
- module2.exports = isexe;
26311
- isexe.sync = sync;
26312
- function isexe(path4, options, cb) {
26313
- if (typeof options === "function") {
26314
- cb = options;
26315
- options = {};
26316
- }
26317
- if (!cb) {
26318
- if (typeof Promise !== "function") {
26319
- throw new TypeError("callback not provided");
26320
- }
26321
- return new Promise(function(resolve, reject) {
26322
- isexe(path4, options || {}, function(er, is) {
26323
- if (er) {
26324
- reject(er);
26325
- } else {
26326
- resolve(is);
26327
- }
26328
- });
26329
- });
26330
- }
26331
- core(path4, options || {}, function(er, is) {
26332
- if (er) {
26333
- if (er.code === "EACCES" || options && options.ignoreErrors) {
26334
- er = null;
26335
- is = false;
26336
- }
26337
- }
26338
- cb(er, is);
26339
- });
26340
- }
26341
- function sync(path4, options) {
26342
- try {
26343
- return core.sync(path4, options || {});
26344
- } catch (er) {
26345
- if (options && options.ignoreErrors || er.code === "EACCES") {
26346
- return false;
26347
- } else {
26348
- throw er;
26349
- }
26350
- }
26351
- }
26352
- }
26353
- });
26354
-
26355
- // node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
26356
- var require_which = __commonJS({
26357
- "node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module2) {
26358
- var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
26359
- var path4 = require("path");
26360
- var COLON = isWindows ? ";" : ":";
26361
- var isexe = require_isexe();
26362
- var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
26363
- var getPathInfo = (cmd, opt) => {
26364
- const colon = opt.colon || COLON;
26365
- const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
26366
- // windows always checks the cwd first
26367
- ...isWindows ? [process.cwd()] : [],
26368
- ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
26369
- "").split(colon)
26370
- ];
26371
- const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
26372
- const pathExt = isWindows ? pathExtExe.split(colon) : [""];
26373
- if (isWindows) {
26374
- if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
26375
- pathExt.unshift("");
26376
- }
26377
- return {
26378
- pathEnv,
26379
- pathExt,
26380
- pathExtExe
26381
- };
26382
- };
26383
- var which = (cmd, opt, cb) => {
26384
- if (typeof opt === "function") {
26385
- cb = opt;
26386
- opt = {};
26387
- }
26388
- if (!opt)
26389
- opt = {};
26390
- const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
26391
- const found = [];
26392
- const step = (i) => new Promise((resolve, reject) => {
26393
- if (i === pathEnv.length)
26394
- return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
26395
- const ppRaw = pathEnv[i];
26396
- const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
26397
- const pCmd = path4.join(pathPart, cmd);
26398
- const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
26399
- resolve(subStep(p, i, 0));
26400
- });
26401
- const subStep = (p, i, ii) => new Promise((resolve, reject) => {
26402
- if (ii === pathExt.length)
26403
- return resolve(step(i + 1));
26404
- const ext = pathExt[ii];
26405
- isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
26406
- if (!er && is) {
26407
- if (opt.all)
26408
- found.push(p + ext);
26409
- else
26410
- return resolve(p + ext);
26411
- }
26412
- return resolve(subStep(p, i, ii + 1));
26413
- });
26414
- });
26415
- return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
26416
- };
26417
- var whichSync = (cmd, opt) => {
26418
- opt = opt || {};
26419
- const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
26420
- const found = [];
26421
- for (let i = 0; i < pathEnv.length; i++) {
26422
- const ppRaw = pathEnv[i];
26423
- const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
26424
- const pCmd = path4.join(pathPart, cmd);
26425
- const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
26426
- for (let j = 0; j < pathExt.length; j++) {
26427
- const cur = p + pathExt[j];
26428
- try {
26429
- const is = isexe.sync(cur, { pathExt: pathExtExe });
26430
- if (is) {
26431
- if (opt.all)
26432
- found.push(cur);
26433
- else
26434
- return cur;
26435
- }
26436
- } catch (ex) {
26437
- }
26438
- }
26439
- }
26440
- if (opt.all && found.length)
26441
- return found;
26442
- if (opt.nothrow)
26443
- return null;
26444
- throw getNotFoundError(cmd);
26445
- };
26446
- module2.exports = which;
26447
- which.sync = whichSync;
26448
- }
26449
- });
26450
-
26451
- // node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
26452
- var require_path_key = __commonJS({
26453
- "node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports2, module2) {
26454
- "use strict";
26455
- var pathKey2 = (options = {}) => {
26456
- const environment = options.env || process.env;
26457
- const platform = options.platform || process.platform;
26458
- if (platform !== "win32") {
26459
- return "PATH";
26460
- }
26461
- return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
26462
- };
26463
- module2.exports = pathKey2;
26464
- module2.exports.default = pathKey2;
26465
- }
26466
- });
26467
-
26468
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
26469
- var require_resolveCommand = __commonJS({
26470
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
26471
- "use strict";
26472
- var path4 = require("path");
26473
- var which = require_which();
26474
- var getPathKey = require_path_key();
26475
- function resolveCommandAttempt(parsed, withoutPathExt) {
26476
- const env = parsed.options.env || process.env;
26477
- const cwd = process.cwd();
26478
- const hasCustomCwd = parsed.options.cwd != null;
26479
- const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
26480
- if (shouldSwitchCwd) {
26481
- try {
26482
- process.chdir(parsed.options.cwd);
26483
- } catch (err) {
26484
- }
26485
- }
26486
- let resolved;
26487
- try {
26488
- resolved = which.sync(parsed.command, {
26489
- path: env[getPathKey({ env })],
26490
- pathExt: withoutPathExt ? path4.delimiter : void 0
26491
- });
26492
- } catch (e) {
26493
- } finally {
26494
- if (shouldSwitchCwd) {
26495
- process.chdir(cwd);
26496
- }
26497
- }
26498
- if (resolved) {
26499
- resolved = path4.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
26500
- }
26501
- return resolved;
26502
- }
26503
- function resolveCommand(parsed) {
26504
- return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
26505
- }
26506
- module2.exports = resolveCommand;
26507
- }
26508
- });
26509
-
26510
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
26511
- var require_escape = __commonJS({
26512
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
26513
- "use strict";
26514
- var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
26515
- function escapeCommand(arg) {
26516
- arg = arg.replace(metaCharsRegExp, "^$1");
26517
- return arg;
26518
- }
26519
- function escapeArgument(arg, doubleEscapeMetaChars) {
26520
- arg = `${arg}`;
26521
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
26522
- arg = arg.replace(/(\\*)$/, "$1$1");
26523
- arg = `"${arg}"`;
26524
- arg = arg.replace(metaCharsRegExp, "^$1");
26525
- if (doubleEscapeMetaChars) {
26526
- arg = arg.replace(metaCharsRegExp, "^$1");
26527
- }
26528
- return arg;
26529
- }
26530
- module2.exports.command = escapeCommand;
26531
- module2.exports.argument = escapeArgument;
26532
- }
26533
- });
26534
-
26535
- // node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
26536
- var require_shebang_regex = __commonJS({
26537
- "node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports2, module2) {
26538
- "use strict";
26539
- module2.exports = /^#!(.*)/;
26540
- }
26541
- });
26542
-
26543
- // node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
26544
- var require_shebang_command = __commonJS({
26545
- "node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports2, module2) {
26546
- "use strict";
26547
- var shebangRegex = require_shebang_regex();
26548
- module2.exports = (string = "") => {
26549
- const match = string.match(shebangRegex);
26550
- if (!match) {
26551
- return null;
26552
- }
26553
- const [path4, argument] = match[0].replace(/#! ?/, "").split(" ");
26554
- const binary = path4.split("/").pop();
26555
- if (binary === "env") {
26556
- return argument;
26557
- }
26558
- return argument ? `${binary} ${argument}` : binary;
26559
- };
26560
- }
26561
- });
26562
-
26563
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
26564
- var require_readShebang = __commonJS({
26565
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
26566
- "use strict";
26567
- var fs = require("fs");
26568
- var shebangCommand = require_shebang_command();
26569
- function readShebang(command) {
26570
- const size = 150;
26571
- const buffer = Buffer.alloc(size);
26572
- let fd;
26573
- try {
26574
- fd = fs.openSync(command, "r");
26575
- fs.readSync(fd, buffer, 0, size, 0);
26576
- fs.closeSync(fd);
26577
- } catch (e) {
26578
- }
26579
- return shebangCommand(buffer.toString());
26580
- }
26581
- module2.exports = readShebang;
26582
- }
26583
- });
26584
-
26585
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
26586
- var require_parse2 = __commonJS({
26587
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
26588
- "use strict";
26589
- var path4 = require("path");
26590
- var resolveCommand = require_resolveCommand();
26591
- var escape = require_escape();
26592
- var readShebang = require_readShebang();
26593
- var isWin = process.platform === "win32";
26594
- var isExecutableRegExp = /\.(?:com|exe)$/i;
26595
- var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
26596
- function detectShebang(parsed) {
26597
- parsed.file = resolveCommand(parsed);
26598
- const shebang = parsed.file && readShebang(parsed.file);
26599
- if (shebang) {
26600
- parsed.args.unshift(parsed.file);
26601
- parsed.command = shebang;
26602
- return resolveCommand(parsed);
26603
- }
26604
- return parsed.file;
26605
- }
26606
- function parseNonShell(parsed) {
26607
- if (!isWin) {
26608
- return parsed;
26609
- }
26610
- const commandFile = detectShebang(parsed);
26611
- const needsShell = !isExecutableRegExp.test(commandFile);
26612
- if (parsed.options.forceShell || needsShell) {
26613
- const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
26614
- parsed.command = path4.normalize(parsed.command);
26615
- parsed.command = escape.command(parsed.command);
26616
- parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
26617
- const shellCommand = [parsed.command].concat(parsed.args).join(" ");
26618
- parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
26619
- parsed.command = process.env.comspec || "cmd.exe";
26620
- parsed.options.windowsVerbatimArguments = true;
26621
- }
26622
- return parsed;
26623
- }
26624
- function parse(command, args, options) {
26625
- if (args && !Array.isArray(args)) {
26626
- options = args;
26627
- args = null;
26628
- }
26629
- args = args ? args.slice(0) : [];
26630
- options = Object.assign({}, options);
26631
- const parsed = {
26632
- command,
26633
- args,
26634
- options,
26635
- file: void 0,
26636
- original: {
26637
- command,
26638
- args
26639
- }
26640
- };
26641
- return options.shell ? parsed : parseNonShell(parsed);
26642
- }
26643
- module2.exports = parse;
26644
- }
26645
- });
26646
-
26647
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
26648
- var require_enoent = __commonJS({
26649
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
26650
- "use strict";
26651
- var isWin = process.platform === "win32";
26652
- function notFoundError(original, syscall) {
26653
- return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
26654
- code: "ENOENT",
26655
- errno: "ENOENT",
26656
- syscall: `${syscall} ${original.command}`,
26657
- path: original.command,
26658
- spawnargs: original.args
26659
- });
26660
- }
26661
- function hookChildProcess(cp, parsed) {
26662
- if (!isWin) {
26663
- return;
26664
- }
26665
- const originalEmit = cp.emit;
26666
- cp.emit = function(name, arg1) {
26667
- if (name === "exit") {
26668
- const err = verifyENOENT(arg1, parsed, "spawn");
26669
- if (err) {
26670
- return originalEmit.call(cp, "error", err);
26671
- }
26672
- }
26673
- return originalEmit.apply(cp, arguments);
26674
- };
26675
- }
26676
- function verifyENOENT(status, parsed) {
26677
- if (isWin && status === 1 && !parsed.file) {
26678
- return notFoundError(parsed.original, "spawn");
26679
- }
26680
- return null;
26681
- }
26682
- function verifyENOENTSync(status, parsed) {
26683
- if (isWin && status === 1 && !parsed.file) {
26684
- return notFoundError(parsed.original, "spawnSync");
26685
- }
26686
- return null;
26687
- }
26688
- module2.exports = {
26689
- hookChildProcess,
26690
- verifyENOENT,
26691
- verifyENOENTSync,
26692
- notFoundError
26693
- };
26694
- }
26695
- });
26696
-
26697
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
26698
- var require_cross_spawn = __commonJS({
26699
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports2, module2) {
26700
- "use strict";
26701
- var cp = require("child_process");
26702
- var parse = require_parse2();
26703
- var enoent = require_enoent();
26704
- function spawn(command, args, options) {
26705
- const parsed = parse(command, args, options);
26706
- const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
26707
- enoent.hookChildProcess(spawned, parsed);
26708
- return spawned;
26709
- }
26710
- function spawnSync(command, args, options) {
26711
- const parsed = parse(command, args, options);
26712
- const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
26713
- result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
26714
- return result;
26715
- }
26716
- module2.exports = spawn;
26717
- module2.exports.spawn = spawn;
26718
- module2.exports.sync = spawnSync;
26719
- module2.exports._parse = parse;
26720
- module2.exports._enoent = enoent;
26721
- }
26722
- });
26723
-
26724
- // node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js
26725
- var require_merge_stream = __commonJS({
26726
- "node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports2, module2) {
26727
- "use strict";
26728
- var { PassThrough } = require("stream");
26729
- module2.exports = function() {
26730
- var sources = [];
26731
- var output = new PassThrough({ objectMode: true });
26732
- output.setMaxListeners(0);
26733
- output.add = add;
26734
- output.isEmpty = isEmpty;
26735
- output.on("unpipe", remove);
26736
- Array.prototype.slice.call(arguments).forEach(add);
26737
- return output;
26738
- function add(source) {
26739
- if (Array.isArray(source)) {
26740
- source.forEach(add);
26741
- return this;
26742
- }
26743
- sources.push(source);
26744
- source.once("end", remove.bind(null, source));
26745
- source.once("error", output.emit.bind(output, "error"));
26746
- source.pipe(output, { end: false });
26747
- return this;
26748
- }
26749
- function isEmpty() {
26750
- return sources.length == 0;
26751
- }
26752
- function remove(source) {
26753
- sources = sources.filter(function(it) {
26754
- return it !== source;
26755
- });
26756
- if (!sources.length && output.readable) {
26757
- output.end();
26758
- }
26759
- }
26760
- };
26761
- }
26762
- });
26763
-
26764
26227
  // packages/workspace-tools/src/generators/preset/generator.ts
26765
26228
  var generator_exports = {};
26766
26229
  __export(generator_exports, {
@@ -26768,7 +26231,7 @@ __export(generator_exports, {
26768
26231
  presetGeneratorFn: () => presetGeneratorFn
26769
26232
  });
26770
26233
  module.exports = __toCommonJS(generator_exports);
26771
- var path3 = __toESM(require("node:path"));
26234
+ var path = __toESM(require("node:path"));
26772
26235
  var import_devkit = __toESM(require_devkit());
26773
26236
 
26774
26237
  // packages/config-tools/src/config-file/get-config-file.ts
@@ -27215,8 +26678,8 @@ function getErrorMap() {
27215
26678
  return overrideErrorMap;
27216
26679
  }
27217
26680
  var makeIssue = (params) => {
27218
- const { data, path: path4, errorMaps, issueData } = params;
27219
- const fullPath = [...path4, ...issueData.path || []];
26681
+ const { data, path: path2, errorMaps, issueData } = params;
26682
+ const fullPath = [...path2, ...issueData.path || []];
27220
26683
  const fullIssue = {
27221
26684
  ...issueData,
27222
26685
  path: fullPath
@@ -27314,11 +26777,11 @@ var errorUtil;
27314
26777
  errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
27315
26778
  })(errorUtil || (errorUtil = {}));
27316
26779
  var ParseInputLazyPath = class {
27317
- constructor(parent, value, path4, key) {
26780
+ constructor(parent, value, path2, key) {
27318
26781
  this._cachedPath = [];
27319
26782
  this.parent = parent;
27320
26783
  this.data = value;
27321
- this._path = path4;
26784
+ this._path = path2;
27322
26785
  this._key = key;
27323
26786
  }
27324
26787
  get path() {
@@ -30768,1583 +30231,6 @@ var getStopwatch = (name) => {
30768
30231
  };
30769
30232
  };
30770
30233
 
30771
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
30772
- var import_node_buffer2 = require("node:buffer");
30773
- var import_node_path4 = __toESM(require("node:path"), 1);
30774
- var import_node_child_process3 = __toESM(require("node:child_process"), 1);
30775
- var import_node_process4 = __toESM(require("node:process"), 1);
30776
- var import_cross_spawn = __toESM(require_cross_spawn(), 1);
30777
-
30778
- // node_modules/.pnpm/strip-final-newline@3.0.0/node_modules/strip-final-newline/index.js
30779
- function stripFinalNewline(input) {
30780
- const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
30781
- const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
30782
- if (input[input.length - 1] === LF) {
30783
- input = input.slice(0, -1);
30784
- }
30785
- if (input[input.length - 1] === CR) {
30786
- input = input.slice(0, -1);
30787
- }
30788
- return input;
30789
- }
30790
-
30791
- // node_modules/.pnpm/npm-run-path@5.2.0/node_modules/npm-run-path/index.js
30792
- var import_node_process = __toESM(require("node:process"), 1);
30793
- var import_node_path3 = __toESM(require("node:path"), 1);
30794
- var import_node_url = __toESM(require("node:url"), 1);
30795
-
30796
- // node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
30797
- function pathKey(options = {}) {
30798
- const {
30799
- env = process.env,
30800
- platform = process.platform
30801
- } = options;
30802
- if (platform !== "win32") {
30803
- return "PATH";
30804
- }
30805
- return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
30806
- }
30807
-
30808
- // node_modules/.pnpm/npm-run-path@5.2.0/node_modules/npm-run-path/index.js
30809
- function npmRunPath(options = {}) {
30810
- const {
30811
- cwd = import_node_process.default.cwd(),
30812
- path: path_ = import_node_process.default.env[pathKey()],
30813
- execPath = import_node_process.default.execPath
30814
- } = options;
30815
- let previous;
30816
- const execPathString = execPath instanceof URL ? import_node_url.default.fileURLToPath(execPath) : execPath;
30817
- const cwdString = cwd instanceof URL ? import_node_url.default.fileURLToPath(cwd) : cwd;
30818
- let cwdPath = import_node_path3.default.resolve(cwdString);
30819
- const result = [];
30820
- while (previous !== cwdPath) {
30821
- result.push(import_node_path3.default.join(cwdPath, "node_modules/.bin"));
30822
- previous = cwdPath;
30823
- cwdPath = import_node_path3.default.resolve(cwdPath, "..");
30824
- }
30825
- result.push(import_node_path3.default.resolve(cwdString, execPathString, ".."));
30826
- return [...result, path_].join(import_node_path3.default.delimiter);
30827
- }
30828
- function npmRunPathEnv({ env = import_node_process.default.env, ...options } = {}) {
30829
- env = { ...env };
30830
- const path4 = pathKey({ env });
30831
- options.path = env[path4];
30832
- env[path4] = npmRunPath(options);
30833
- return env;
30834
- }
30835
-
30836
- // node_modules/.pnpm/mimic-fn@4.0.0/node_modules/mimic-fn/index.js
30837
- var copyProperty = (to, from, property, ignoreNonConfigurable) => {
30838
- if (property === "length" || property === "prototype") {
30839
- return;
30840
- }
30841
- if (property === "arguments" || property === "caller") {
30842
- return;
30843
- }
30844
- const toDescriptor = Object.getOwnPropertyDescriptor(to, property);
30845
- const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);
30846
- if (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {
30847
- return;
30848
- }
30849
- Object.defineProperty(to, property, fromDescriptor);
30850
- };
30851
- var canCopyProperty = function(toDescriptor, fromDescriptor) {
30852
- return toDescriptor === void 0 || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);
30853
- };
30854
- var changePrototype = (to, from) => {
30855
- const fromPrototype = Object.getPrototypeOf(from);
30856
- if (fromPrototype === Object.getPrototypeOf(to)) {
30857
- return;
30858
- }
30859
- Object.setPrototypeOf(to, fromPrototype);
30860
- };
30861
- var wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/
30862
- ${fromBody}`;
30863
- var toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
30864
- var toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name");
30865
- var changeToString = (to, from, name) => {
30866
- const withName = name === "" ? "" : `with ${name.trim()}() `;
30867
- const newToString = wrappedToString.bind(null, withName, from.toString());
30868
- Object.defineProperty(newToString, "name", toStringName);
30869
- Object.defineProperty(to, "toString", { ...toStringDescriptor, value: newToString });
30870
- };
30871
- function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
30872
- const { name } = to;
30873
- for (const property of Reflect.ownKeys(from)) {
30874
- copyProperty(to, from, property, ignoreNonConfigurable);
30875
- }
30876
- changePrototype(to, from);
30877
- changeToString(to, from, name);
30878
- return to;
30879
- }
30880
-
30881
- // node_modules/.pnpm/onetime@6.0.0/node_modules/onetime/index.js
30882
- var calledFunctions = /* @__PURE__ */ new WeakMap();
30883
- var onetime = (function_, options = {}) => {
30884
- if (typeof function_ !== "function") {
30885
- throw new TypeError("Expected a function");
30886
- }
30887
- let returnValue;
30888
- let callCount = 0;
30889
- const functionName = function_.displayName || function_.name || "<anonymous>";
30890
- const onetime2 = function(...arguments_) {
30891
- calledFunctions.set(onetime2, ++callCount);
30892
- if (callCount === 1) {
30893
- returnValue = function_.apply(this, arguments_);
30894
- function_ = null;
30895
- } else if (options.throw === true) {
30896
- throw new Error(`Function \`${functionName}\` can only be called once`);
30897
- }
30898
- return returnValue;
30899
- };
30900
- mimicFunction(onetime2, function_);
30901
- calledFunctions.set(onetime2, callCount);
30902
- return onetime2;
30903
- };
30904
- onetime.callCount = (function_) => {
30905
- if (!calledFunctions.has(function_)) {
30906
- throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
30907
- }
30908
- return calledFunctions.get(function_);
30909
- };
30910
- var onetime_default = onetime;
30911
-
30912
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
30913
- var import_node_process2 = __toESM(require("node:process"), 1);
30914
-
30915
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
30916
- var import_node_os2 = require("node:os");
30917
-
30918
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/realtime.js
30919
- var getRealtimeSignals = () => {
30920
- const length = SIGRTMAX - SIGRTMIN + 1;
30921
- return Array.from({ length }, getRealtimeSignal);
30922
- };
30923
- var getRealtimeSignal = (value, index) => ({
30924
- name: `SIGRT${index + 1}`,
30925
- number: SIGRTMIN + index,
30926
- action: "terminate",
30927
- description: "Application-specific signal (realtime)",
30928
- standard: "posix"
30929
- });
30930
- var SIGRTMIN = 34;
30931
- var SIGRTMAX = 64;
30932
-
30933
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
30934
- var import_node_os = require("node:os");
30935
-
30936
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/core.js
30937
- var SIGNALS = [
30938
- {
30939
- name: "SIGHUP",
30940
- number: 1,
30941
- action: "terminate",
30942
- description: "Terminal closed",
30943
- standard: "posix"
30944
- },
30945
- {
30946
- name: "SIGINT",
30947
- number: 2,
30948
- action: "terminate",
30949
- description: "User interruption with CTRL-C",
30950
- standard: "ansi"
30951
- },
30952
- {
30953
- name: "SIGQUIT",
30954
- number: 3,
30955
- action: "core",
30956
- description: "User interruption with CTRL-\\",
30957
- standard: "posix"
30958
- },
30959
- {
30960
- name: "SIGILL",
30961
- number: 4,
30962
- action: "core",
30963
- description: "Invalid machine instruction",
30964
- standard: "ansi"
30965
- },
30966
- {
30967
- name: "SIGTRAP",
30968
- number: 5,
30969
- action: "core",
30970
- description: "Debugger breakpoint",
30971
- standard: "posix"
30972
- },
30973
- {
30974
- name: "SIGABRT",
30975
- number: 6,
30976
- action: "core",
30977
- description: "Aborted",
30978
- standard: "ansi"
30979
- },
30980
- {
30981
- name: "SIGIOT",
30982
- number: 6,
30983
- action: "core",
30984
- description: "Aborted",
30985
- standard: "bsd"
30986
- },
30987
- {
30988
- name: "SIGBUS",
30989
- number: 7,
30990
- action: "core",
30991
- description: "Bus error due to misaligned, non-existing address or paging error",
30992
- standard: "bsd"
30993
- },
30994
- {
30995
- name: "SIGEMT",
30996
- number: 7,
30997
- action: "terminate",
30998
- description: "Command should be emulated but is not implemented",
30999
- standard: "other"
31000
- },
31001
- {
31002
- name: "SIGFPE",
31003
- number: 8,
31004
- action: "core",
31005
- description: "Floating point arithmetic error",
31006
- standard: "ansi"
31007
- },
31008
- {
31009
- name: "SIGKILL",
31010
- number: 9,
31011
- action: "terminate",
31012
- description: "Forced termination",
31013
- standard: "posix",
31014
- forced: true
31015
- },
31016
- {
31017
- name: "SIGUSR1",
31018
- number: 10,
31019
- action: "terminate",
31020
- description: "Application-specific signal",
31021
- standard: "posix"
31022
- },
31023
- {
31024
- name: "SIGSEGV",
31025
- number: 11,
31026
- action: "core",
31027
- description: "Segmentation fault",
31028
- standard: "ansi"
31029
- },
31030
- {
31031
- name: "SIGUSR2",
31032
- number: 12,
31033
- action: "terminate",
31034
- description: "Application-specific signal",
31035
- standard: "posix"
31036
- },
31037
- {
31038
- name: "SIGPIPE",
31039
- number: 13,
31040
- action: "terminate",
31041
- description: "Broken pipe or socket",
31042
- standard: "posix"
31043
- },
31044
- {
31045
- name: "SIGALRM",
31046
- number: 14,
31047
- action: "terminate",
31048
- description: "Timeout or timer",
31049
- standard: "posix"
31050
- },
31051
- {
31052
- name: "SIGTERM",
31053
- number: 15,
31054
- action: "terminate",
31055
- description: "Termination",
31056
- standard: "ansi"
31057
- },
31058
- {
31059
- name: "SIGSTKFLT",
31060
- number: 16,
31061
- action: "terminate",
31062
- description: "Stack is empty or overflowed",
31063
- standard: "other"
31064
- },
31065
- {
31066
- name: "SIGCHLD",
31067
- number: 17,
31068
- action: "ignore",
31069
- description: "Child process terminated, paused or unpaused",
31070
- standard: "posix"
31071
- },
31072
- {
31073
- name: "SIGCLD",
31074
- number: 17,
31075
- action: "ignore",
31076
- description: "Child process terminated, paused or unpaused",
31077
- standard: "other"
31078
- },
31079
- {
31080
- name: "SIGCONT",
31081
- number: 18,
31082
- action: "unpause",
31083
- description: "Unpaused",
31084
- standard: "posix",
31085
- forced: true
31086
- },
31087
- {
31088
- name: "SIGSTOP",
31089
- number: 19,
31090
- action: "pause",
31091
- description: "Paused",
31092
- standard: "posix",
31093
- forced: true
31094
- },
31095
- {
31096
- name: "SIGTSTP",
31097
- number: 20,
31098
- action: "pause",
31099
- description: 'Paused using CTRL-Z or "suspend"',
31100
- standard: "posix"
31101
- },
31102
- {
31103
- name: "SIGTTIN",
31104
- number: 21,
31105
- action: "pause",
31106
- description: "Background process cannot read terminal input",
31107
- standard: "posix"
31108
- },
31109
- {
31110
- name: "SIGBREAK",
31111
- number: 21,
31112
- action: "terminate",
31113
- description: "User interruption with CTRL-BREAK",
31114
- standard: "other"
31115
- },
31116
- {
31117
- name: "SIGTTOU",
31118
- number: 22,
31119
- action: "pause",
31120
- description: "Background process cannot write to terminal output",
31121
- standard: "posix"
31122
- },
31123
- {
31124
- name: "SIGURG",
31125
- number: 23,
31126
- action: "ignore",
31127
- description: "Socket received out-of-band data",
31128
- standard: "bsd"
31129
- },
31130
- {
31131
- name: "SIGXCPU",
31132
- number: 24,
31133
- action: "core",
31134
- description: "Process timed out",
31135
- standard: "bsd"
31136
- },
31137
- {
31138
- name: "SIGXFSZ",
31139
- number: 25,
31140
- action: "core",
31141
- description: "File too big",
31142
- standard: "bsd"
31143
- },
31144
- {
31145
- name: "SIGVTALRM",
31146
- number: 26,
31147
- action: "terminate",
31148
- description: "Timeout or timer",
31149
- standard: "bsd"
31150
- },
31151
- {
31152
- name: "SIGPROF",
31153
- number: 27,
31154
- action: "terminate",
31155
- description: "Timeout or timer",
31156
- standard: "bsd"
31157
- },
31158
- {
31159
- name: "SIGWINCH",
31160
- number: 28,
31161
- action: "ignore",
31162
- description: "Terminal window size changed",
31163
- standard: "bsd"
31164
- },
31165
- {
31166
- name: "SIGIO",
31167
- number: 29,
31168
- action: "terminate",
31169
- description: "I/O is available",
31170
- standard: "other"
31171
- },
31172
- {
31173
- name: "SIGPOLL",
31174
- number: 29,
31175
- action: "terminate",
31176
- description: "Watched event",
31177
- standard: "other"
31178
- },
31179
- {
31180
- name: "SIGINFO",
31181
- number: 29,
31182
- action: "ignore",
31183
- description: "Request for process information",
31184
- standard: "other"
31185
- },
31186
- {
31187
- name: "SIGPWR",
31188
- number: 30,
31189
- action: "terminate",
31190
- description: "Device running out of power",
31191
- standard: "systemv"
31192
- },
31193
- {
31194
- name: "SIGSYS",
31195
- number: 31,
31196
- action: "core",
31197
- description: "Invalid system call",
31198
- standard: "other"
31199
- },
31200
- {
31201
- name: "SIGUNUSED",
31202
- number: 31,
31203
- action: "terminate",
31204
- description: "Invalid system call",
31205
- standard: "other"
31206
- }
31207
- ];
31208
-
31209
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
31210
- var getSignals = () => {
31211
- const realtimeSignals = getRealtimeSignals();
31212
- const signals2 = [...SIGNALS, ...realtimeSignals].map(normalizeSignal);
31213
- return signals2;
31214
- };
31215
- var normalizeSignal = ({
31216
- name,
31217
- number: defaultNumber,
31218
- description,
31219
- action,
31220
- forced = false,
31221
- standard
31222
- }) => {
31223
- const {
31224
- signals: { [name]: constantSignal }
31225
- } = import_node_os.constants;
31226
- const supported = constantSignal !== void 0;
31227
- const number = supported ? constantSignal : defaultNumber;
31228
- return { name, number, description, supported, action, forced, standard };
31229
- };
31230
-
31231
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
31232
- var getSignalsByName = () => {
31233
- const signals2 = getSignals();
31234
- return Object.fromEntries(signals2.map(getSignalByName));
31235
- };
31236
- var getSignalByName = ({
31237
- name,
31238
- number,
31239
- description,
31240
- supported,
31241
- action,
31242
- forced,
31243
- standard
31244
- }) => [name, { name, number, description, supported, action, forced, standard }];
31245
- var signalsByName = getSignalsByName();
31246
- var getSignalsByNumber = () => {
31247
- const signals2 = getSignals();
31248
- const length = SIGRTMAX + 1;
31249
- const signalsA = Array.from(
31250
- { length },
31251
- (value, number) => getSignalByNumber(number, signals2)
31252
- );
31253
- return Object.assign({}, ...signalsA);
31254
- };
31255
- var getSignalByNumber = (number, signals2) => {
31256
- const signal = findSignalByNumber(number, signals2);
31257
- if (signal === void 0) {
31258
- return {};
31259
- }
31260
- const { name, description, supported, action, forced, standard } = signal;
31261
- return {
31262
- [number]: {
31263
- name,
31264
- number,
31265
- description,
31266
- supported,
31267
- action,
31268
- forced,
31269
- standard
31270
- }
31271
- };
31272
- };
31273
- var findSignalByNumber = (number, signals2) => {
31274
- const signal = signals2.find(({ name }) => import_node_os2.constants.signals[name] === number);
31275
- if (signal !== void 0) {
31276
- return signal;
31277
- }
31278
- return signals2.find((signalA) => signalA.number === number);
31279
- };
31280
- var signalsByNumber = getSignalsByNumber();
31281
-
31282
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
31283
- var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
31284
- if (timedOut) {
31285
- return `timed out after ${timeout} milliseconds`;
31286
- }
31287
- if (isCanceled) {
31288
- return "was canceled";
31289
- }
31290
- if (errorCode !== void 0) {
31291
- return `failed with ${errorCode}`;
31292
- }
31293
- if (signal !== void 0) {
31294
- return `was killed with ${signal} (${signalDescription})`;
31295
- }
31296
- if (exitCode !== void 0) {
31297
- return `failed with exit code ${exitCode}`;
31298
- }
31299
- return "failed";
31300
- };
31301
- var makeError = ({
31302
- stdout,
31303
- stderr,
31304
- all,
31305
- error,
31306
- signal,
31307
- exitCode,
31308
- command,
31309
- escapedCommand,
31310
- timedOut,
31311
- isCanceled,
31312
- killed,
31313
- parsed: { options: { timeout, cwd = import_node_process2.default.cwd() } }
31314
- }) => {
31315
- exitCode = exitCode === null ? void 0 : exitCode;
31316
- signal = signal === null ? void 0 : signal;
31317
- const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
31318
- const errorCode = error && error.code;
31319
- const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled });
31320
- const execaMessage = `Command ${prefix}: ${command}`;
31321
- const isError = Object.prototype.toString.call(error) === "[object Error]";
31322
- const shortMessage = isError ? `${execaMessage}
31323
- ${error.message}` : execaMessage;
31324
- const message = [shortMessage, stderr, stdout].filter(Boolean).join("\n");
31325
- if (isError) {
31326
- error.originalMessage = error.message;
31327
- error.message = message;
31328
- } else {
31329
- error = new Error(message);
31330
- }
31331
- error.shortMessage = shortMessage;
31332
- error.command = command;
31333
- error.escapedCommand = escapedCommand;
31334
- error.exitCode = exitCode;
31335
- error.signal = signal;
31336
- error.signalDescription = signalDescription;
31337
- error.stdout = stdout;
31338
- error.stderr = stderr;
31339
- error.cwd = cwd;
31340
- if (all !== void 0) {
31341
- error.all = all;
31342
- }
31343
- if ("bufferedData" in error) {
31344
- delete error.bufferedData;
31345
- }
31346
- error.failed = true;
31347
- error.timedOut = Boolean(timedOut);
31348
- error.isCanceled = isCanceled;
31349
- error.killed = killed && !timedOut;
31350
- return error;
31351
- };
31352
-
31353
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stdio.js
31354
- var aliases = ["stdin", "stdout", "stderr"];
31355
- var hasAlias = (options) => aliases.some((alias) => options[alias] !== void 0);
31356
- var normalizeStdio = (options) => {
31357
- if (!options) {
31358
- return;
31359
- }
31360
- const { stdio } = options;
31361
- if (stdio === void 0) {
31362
- return aliases.map((alias) => options[alias]);
31363
- }
31364
- if (hasAlias(options)) {
31365
- throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
31366
- }
31367
- if (typeof stdio === "string") {
31368
- return stdio;
31369
- }
31370
- if (!Array.isArray(stdio)) {
31371
- throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
31372
- }
31373
- const length = Math.max(stdio.length, aliases.length);
31374
- return Array.from({ length }, (value, index) => stdio[index]);
31375
- };
31376
-
31377
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
31378
- var import_node_os3 = __toESM(require("node:os"), 1);
31379
-
31380
- // node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
31381
- var signals = [];
31382
- signals.push("SIGHUP", "SIGINT", "SIGTERM");
31383
- if (process.platform !== "win32") {
31384
- signals.push(
31385
- "SIGALRM",
31386
- "SIGABRT",
31387
- "SIGVTALRM",
31388
- "SIGXCPU",
31389
- "SIGXFSZ",
31390
- "SIGUSR2",
31391
- "SIGTRAP",
31392
- "SIGSYS",
31393
- "SIGQUIT",
31394
- "SIGIOT"
31395
- // should detect profiler and enable/disable accordingly.
31396
- // see #21
31397
- // 'SIGPROF'
31398
- );
31399
- }
31400
- if (process.platform === "linux") {
31401
- signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
31402
- }
31403
-
31404
- // node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
31405
- var processOk = (process7) => !!process7 && typeof process7 === "object" && typeof process7.removeListener === "function" && typeof process7.emit === "function" && typeof process7.reallyExit === "function" && typeof process7.listeners === "function" && typeof process7.kill === "function" && typeof process7.pid === "number" && typeof process7.on === "function";
31406
- var kExitEmitter = Symbol.for("signal-exit emitter");
31407
- var global2 = globalThis;
31408
- var ObjectDefineProperty = Object.defineProperty.bind(Object);
31409
- var Emitter = class {
31410
- emitted = {
31411
- afterExit: false,
31412
- exit: false
31413
- };
31414
- listeners = {
31415
- afterExit: [],
31416
- exit: []
31417
- };
31418
- count = 0;
31419
- id = Math.random();
31420
- constructor() {
31421
- if (global2[kExitEmitter]) {
31422
- return global2[kExitEmitter];
31423
- }
31424
- ObjectDefineProperty(global2, kExitEmitter, {
31425
- value: this,
31426
- writable: false,
31427
- enumerable: false,
31428
- configurable: false
31429
- });
31430
- }
31431
- on(ev, fn) {
31432
- this.listeners[ev].push(fn);
31433
- }
31434
- removeListener(ev, fn) {
31435
- const list = this.listeners[ev];
31436
- const i = list.indexOf(fn);
31437
- if (i === -1) {
31438
- return;
31439
- }
31440
- if (i === 0 && list.length === 1) {
31441
- list.length = 0;
31442
- } else {
31443
- list.splice(i, 1);
31444
- }
31445
- }
31446
- emit(ev, code, signal) {
31447
- if (this.emitted[ev]) {
31448
- return false;
31449
- }
31450
- this.emitted[ev] = true;
31451
- let ret = false;
31452
- for (const fn of this.listeners[ev]) {
31453
- ret = fn(code, signal) === true || ret;
31454
- }
31455
- if (ev === "exit") {
31456
- ret = this.emit("afterExit", code, signal) || ret;
31457
- }
31458
- return ret;
31459
- }
31460
- };
31461
- var SignalExitBase = class {
31462
- };
31463
- var signalExitWrap = (handler) => {
31464
- return {
31465
- onExit(cb, opts) {
31466
- return handler.onExit(cb, opts);
31467
- },
31468
- load() {
31469
- return handler.load();
31470
- },
31471
- unload() {
31472
- return handler.unload();
31473
- }
31474
- };
31475
- };
31476
- var SignalExitFallback = class extends SignalExitBase {
31477
- onExit() {
31478
- return () => {
31479
- };
31480
- }
31481
- load() {
31482
- }
31483
- unload() {
31484
- }
31485
- };
31486
- var SignalExit = class extends SignalExitBase {
31487
- // "SIGHUP" throws an `ENOSYS` error on Windows,
31488
- // so use a supported signal instead
31489
- /* c8 ignore start */
31490
- #hupSig = process4.platform === "win32" ? "SIGINT" : "SIGHUP";
31491
- /* c8 ignore stop */
31492
- #emitter = new Emitter();
31493
- #process;
31494
- #originalProcessEmit;
31495
- #originalProcessReallyExit;
31496
- #sigListeners = {};
31497
- #loaded = false;
31498
- constructor(process7) {
31499
- super();
31500
- this.#process = process7;
31501
- this.#sigListeners = {};
31502
- for (const sig of signals) {
31503
- this.#sigListeners[sig] = () => {
31504
- const listeners = this.#process.listeners(sig);
31505
- let { count } = this.#emitter;
31506
- const p = process7;
31507
- if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
31508
- count += p.__signal_exit_emitter__.count;
31509
- }
31510
- if (listeners.length === count) {
31511
- this.unload();
31512
- const ret = this.#emitter.emit("exit", null, sig);
31513
- const s = sig === "SIGHUP" ? this.#hupSig : sig;
31514
- if (!ret)
31515
- process7.kill(process7.pid, s);
31516
- }
31517
- };
31518
- }
31519
- this.#originalProcessReallyExit = process7.reallyExit;
31520
- this.#originalProcessEmit = process7.emit;
31521
- }
31522
- onExit(cb, opts) {
31523
- if (!processOk(this.#process)) {
31524
- return () => {
31525
- };
31526
- }
31527
- if (this.#loaded === false) {
31528
- this.load();
31529
- }
31530
- const ev = opts?.alwaysLast ? "afterExit" : "exit";
31531
- this.#emitter.on(ev, cb);
31532
- return () => {
31533
- this.#emitter.removeListener(ev, cb);
31534
- if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
31535
- this.unload();
31536
- }
31537
- };
31538
- }
31539
- load() {
31540
- if (this.#loaded) {
31541
- return;
31542
- }
31543
- this.#loaded = true;
31544
- this.#emitter.count += 1;
31545
- for (const sig of signals) {
31546
- try {
31547
- const fn = this.#sigListeners[sig];
31548
- if (fn)
31549
- this.#process.on(sig, fn);
31550
- } catch (_) {
31551
- }
31552
- }
31553
- this.#process.emit = (ev, ...a) => {
31554
- return this.#processEmit(ev, ...a);
31555
- };
31556
- this.#process.reallyExit = (code) => {
31557
- return this.#processReallyExit(code);
31558
- };
31559
- }
31560
- unload() {
31561
- if (!this.#loaded) {
31562
- return;
31563
- }
31564
- this.#loaded = false;
31565
- signals.forEach((sig) => {
31566
- const listener = this.#sigListeners[sig];
31567
- if (!listener) {
31568
- throw new Error("Listener not defined for signal: " + sig);
31569
- }
31570
- try {
31571
- this.#process.removeListener(sig, listener);
31572
- } catch (_) {
31573
- }
31574
- });
31575
- this.#process.emit = this.#originalProcessEmit;
31576
- this.#process.reallyExit = this.#originalProcessReallyExit;
31577
- this.#emitter.count -= 1;
31578
- }
31579
- #processReallyExit(code) {
31580
- if (!processOk(this.#process)) {
31581
- return 0;
31582
- }
31583
- this.#process.exitCode = code || 0;
31584
- this.#emitter.emit("exit", this.#process.exitCode, null);
31585
- return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
31586
- }
31587
- #processEmit(ev, ...args) {
31588
- const og = this.#originalProcessEmit;
31589
- if (ev === "exit" && processOk(this.#process)) {
31590
- if (typeof args[0] === "number") {
31591
- this.#process.exitCode = args[0];
31592
- }
31593
- const ret = og.call(this.#process, ev, ...args);
31594
- this.#emitter.emit("exit", this.#process.exitCode, null);
31595
- return ret;
31596
- } else {
31597
- return og.call(this.#process, ev, ...args);
31598
- }
31599
- }
31600
- };
31601
- var process4 = globalThis.process;
31602
- var {
31603
- /**
31604
- * Called when the process is exiting, whether via signal, explicit
31605
- * exit, or running out of stuff to do.
31606
- *
31607
- * If the global process object is not suitable for instrumentation,
31608
- * then this will be a no-op.
31609
- *
31610
- * Returns a function that may be used to unload signal-exit.
31611
- */
31612
- onExit,
31613
- /**
31614
- * Load the listeners. Likely you never need to call this, unless
31615
- * doing a rather deep integration with signal-exit functionality.
31616
- * Mostly exposed for the benefit of testing.
31617
- *
31618
- * @internal
31619
- */
31620
- load,
31621
- /**
31622
- * Unload the listeners. Likely you never need to call this, unless
31623
- * doing a rather deep integration with signal-exit functionality.
31624
- * Mostly exposed for the benefit of testing.
31625
- *
31626
- * @internal
31627
- */
31628
- unload
31629
- } = signalExitWrap(processOk(process4) ? new SignalExit(process4) : new SignalExitFallback());
31630
-
31631
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
31632
- var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
31633
- var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
31634
- const killResult = kill(signal);
31635
- setKillTimeout(kill, signal, options, killResult);
31636
- return killResult;
31637
- };
31638
- var setKillTimeout = (kill, signal, options, killResult) => {
31639
- if (!shouldForceKill(signal, options, killResult)) {
31640
- return;
31641
- }
31642
- const timeout = getForceKillAfterTimeout(options);
31643
- const t = setTimeout(() => {
31644
- kill("SIGKILL");
31645
- }, timeout);
31646
- if (t.unref) {
31647
- t.unref();
31648
- }
31649
- };
31650
- var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
31651
- var isSigterm = (signal) => signal === import_node_os3.default.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
31652
- var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
31653
- if (forceKillAfterTimeout === true) {
31654
- return DEFAULT_FORCE_KILL_TIMEOUT;
31655
- }
31656
- if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
31657
- throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
31658
- }
31659
- return forceKillAfterTimeout;
31660
- };
31661
- var spawnedCancel = (spawned, context) => {
31662
- const killResult = spawned.kill();
31663
- if (killResult) {
31664
- context.isCanceled = true;
31665
- }
31666
- };
31667
- var timeoutKill = (spawned, signal, reject) => {
31668
- spawned.kill(signal);
31669
- reject(Object.assign(new Error("Timed out"), { timedOut: true, signal }));
31670
- };
31671
- var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
31672
- if (timeout === 0 || timeout === void 0) {
31673
- return spawnedPromise;
31674
- }
31675
- let timeoutId;
31676
- const timeoutPromise = new Promise((resolve, reject) => {
31677
- timeoutId = setTimeout(() => {
31678
- timeoutKill(spawned, killSignal, reject);
31679
- }, timeout);
31680
- });
31681
- const safeSpawnedPromise = spawnedPromise.finally(() => {
31682
- clearTimeout(timeoutId);
31683
- });
31684
- return Promise.race([timeoutPromise, safeSpawnedPromise]);
31685
- };
31686
- var validateTimeout = ({ timeout }) => {
31687
- if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
31688
- throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
31689
- }
31690
- };
31691
- var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => {
31692
- if (!cleanup || detached) {
31693
- return timedPromise;
31694
- }
31695
- const removeExitHandler = onExit(() => {
31696
- spawned.kill();
31697
- });
31698
- return timedPromise.finally(() => {
31699
- removeExitHandler();
31700
- });
31701
- };
31702
-
31703
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
31704
- var import_node_fs3 = require("node:fs");
31705
- var import_node_child_process = require("node:child_process");
31706
-
31707
- // node_modules/.pnpm/is-stream@3.0.0/node_modules/is-stream/index.js
31708
- function isStream(stream) {
31709
- return stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
31710
- }
31711
- function isWritableStream(stream) {
31712
- return isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
31713
- }
31714
-
31715
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
31716
- var isExecaChildProcess = (target) => target instanceof import_node_child_process.ChildProcess && typeof target.then === "function";
31717
- var pipeToTarget = (spawned, streamName, target) => {
31718
- if (typeof target === "string") {
31719
- spawned[streamName].pipe((0, import_node_fs3.createWriteStream)(target));
31720
- return spawned;
31721
- }
31722
- if (isWritableStream(target)) {
31723
- spawned[streamName].pipe(target);
31724
- return spawned;
31725
- }
31726
- if (!isExecaChildProcess(target)) {
31727
- throw new TypeError("The second argument must be a string, a stream or an Execa child process.");
31728
- }
31729
- if (!isWritableStream(target.stdin)) {
31730
- throw new TypeError("The target child process's stdin must be available.");
31731
- }
31732
- spawned[streamName].pipe(target.stdin);
31733
- return target;
31734
- };
31735
- var addPipeMethods = (spawned) => {
31736
- if (spawned.stdout !== null) {
31737
- spawned.pipeStdout = pipeToTarget.bind(void 0, spawned, "stdout");
31738
- }
31739
- if (spawned.stderr !== null) {
31740
- spawned.pipeStderr = pipeToTarget.bind(void 0, spawned, "stderr");
31741
- }
31742
- if (spawned.all !== void 0) {
31743
- spawned.pipeAll = pipeToTarget.bind(void 0, spawned, "all");
31744
- }
31745
- };
31746
-
31747
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
31748
- var import_node_fs4 = require("node:fs");
31749
- var import_promises = require("node:timers/promises");
31750
-
31751
- // node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/contents.js
31752
- var getStreamContents = async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
31753
- if (!isAsyncIterable(stream)) {
31754
- throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");
31755
- }
31756
- const state = init();
31757
- state.length = 0;
31758
- try {
31759
- for await (const chunk of stream) {
31760
- const chunkType = getChunkType(chunk);
31761
- const convertedChunk = convertChunk[chunkType](chunk, state);
31762
- appendChunk({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
31763
- }
31764
- appendFinalChunk({ state, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer });
31765
- return finalize(state);
31766
- } catch (error) {
31767
- error.bufferedData = finalize(state);
31768
- throw error;
31769
- }
31770
- };
31771
- var appendFinalChunk = ({ state, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer }) => {
31772
- const convertedChunk = getFinalChunk(state);
31773
- if (convertedChunk !== void 0) {
31774
- appendChunk({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
31775
- }
31776
- };
31777
- var appendChunk = ({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer }) => {
31778
- const chunkSize = getSize(convertedChunk);
31779
- const newLength = state.length + chunkSize;
31780
- if (newLength <= maxBuffer) {
31781
- addNewChunk(convertedChunk, state, addChunk, newLength);
31782
- return;
31783
- }
31784
- const truncatedChunk = truncateChunk(convertedChunk, maxBuffer - state.length);
31785
- if (truncatedChunk !== void 0) {
31786
- addNewChunk(truncatedChunk, state, addChunk, maxBuffer);
31787
- }
31788
- throw new MaxBufferError();
31789
- };
31790
- var addNewChunk = (convertedChunk, state, addChunk, newLength) => {
31791
- state.contents = addChunk(convertedChunk, state, newLength);
31792
- state.length = newLength;
31793
- };
31794
- var isAsyncIterable = (stream) => typeof stream === "object" && stream !== null && typeof stream[Symbol.asyncIterator] === "function";
31795
- var getChunkType = (chunk) => {
31796
- const typeOfChunk = typeof chunk;
31797
- if (typeOfChunk === "string") {
31798
- return "string";
31799
- }
31800
- if (typeOfChunk !== "object" || chunk === null) {
31801
- return "others";
31802
- }
31803
- if (globalThis.Buffer?.isBuffer(chunk)) {
31804
- return "buffer";
31805
- }
31806
- const prototypeName = objectToString.call(chunk);
31807
- if (prototypeName === "[object ArrayBuffer]") {
31808
- return "arrayBuffer";
31809
- }
31810
- if (prototypeName === "[object DataView]") {
31811
- return "dataView";
31812
- }
31813
- if (Number.isInteger(chunk.byteLength) && Number.isInteger(chunk.byteOffset) && objectToString.call(chunk.buffer) === "[object ArrayBuffer]") {
31814
- return "typedArray";
31815
- }
31816
- return "others";
31817
- };
31818
- var { toString: objectToString } = Object.prototype;
31819
- var MaxBufferError = class extends Error {
31820
- name = "MaxBufferError";
31821
- constructor() {
31822
- super("maxBuffer exceeded");
31823
- }
31824
- };
31825
-
31826
- // node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/utils.js
31827
- var identity = (value) => value;
31828
- var noop = () => void 0;
31829
- var getContentsProp = ({ contents }) => contents;
31830
- var throwObjectStream = (chunk) => {
31831
- throw new Error(`Streams in object mode are not supported: ${String(chunk)}`);
31832
- };
31833
- var getLengthProp = (convertedChunk) => convertedChunk.length;
31834
-
31835
- // node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/array-buffer.js
31836
- async function getStreamAsArrayBuffer(stream, options) {
31837
- return getStreamContents(stream, arrayBufferMethods, options);
31838
- }
31839
- var initArrayBuffer = () => ({ contents: new ArrayBuffer(0) });
31840
- var useTextEncoder = (chunk) => textEncoder.encode(chunk);
31841
- var textEncoder = new TextEncoder();
31842
- var useUint8Array = (chunk) => new Uint8Array(chunk);
31843
- var useUint8ArrayWithOffset = (chunk) => new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength);
31844
- var truncateArrayBufferChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
31845
- var addArrayBufferChunk = (convertedChunk, { contents, length: previousLength }, length) => {
31846
- const newContents = hasArrayBufferResize() ? resizeArrayBuffer(contents, length) : resizeArrayBufferSlow(contents, length);
31847
- new Uint8Array(newContents).set(convertedChunk, previousLength);
31848
- return newContents;
31849
- };
31850
- var resizeArrayBufferSlow = (contents, length) => {
31851
- if (length <= contents.byteLength) {
31852
- return contents;
31853
- }
31854
- const arrayBuffer = new ArrayBuffer(getNewContentsLength(length));
31855
- new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
31856
- return arrayBuffer;
31857
- };
31858
- var resizeArrayBuffer = (contents, length) => {
31859
- if (length <= contents.maxByteLength) {
31860
- contents.resize(length);
31861
- return contents;
31862
- }
31863
- const arrayBuffer = new ArrayBuffer(length, { maxByteLength: getNewContentsLength(length) });
31864
- new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
31865
- return arrayBuffer;
31866
- };
31867
- var getNewContentsLength = (length) => SCALE_FACTOR ** Math.ceil(Math.log(length) / Math.log(SCALE_FACTOR));
31868
- var SCALE_FACTOR = 2;
31869
- var finalizeArrayBuffer = ({ contents, length }) => hasArrayBufferResize() ? contents : contents.slice(0, length);
31870
- var hasArrayBufferResize = () => "resize" in ArrayBuffer.prototype;
31871
- var arrayBufferMethods = {
31872
- init: initArrayBuffer,
31873
- convertChunk: {
31874
- string: useTextEncoder,
31875
- buffer: useUint8Array,
31876
- arrayBuffer: useUint8Array,
31877
- dataView: useUint8ArrayWithOffset,
31878
- typedArray: useUint8ArrayWithOffset,
31879
- others: throwObjectStream
31880
- },
31881
- getSize: getLengthProp,
31882
- truncateChunk: truncateArrayBufferChunk,
31883
- addChunk: addArrayBufferChunk,
31884
- getFinalChunk: noop,
31885
- finalize: finalizeArrayBuffer
31886
- };
31887
-
31888
- // node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/buffer.js
31889
- async function getStreamAsBuffer(stream, options) {
31890
- if (!("Buffer" in globalThis)) {
31891
- throw new Error("getStreamAsBuffer() is only supported in Node.js");
31892
- }
31893
- try {
31894
- return arrayBufferToNodeBuffer(await getStreamAsArrayBuffer(stream, options));
31895
- } catch (error) {
31896
- if (error.bufferedData !== void 0) {
31897
- error.bufferedData = arrayBufferToNodeBuffer(error.bufferedData);
31898
- }
31899
- throw error;
31900
- }
31901
- }
31902
- var arrayBufferToNodeBuffer = (arrayBuffer) => globalThis.Buffer.from(arrayBuffer);
31903
-
31904
- // node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/string.js
31905
- async function getStreamAsString(stream, options) {
31906
- return getStreamContents(stream, stringMethods, options);
31907
- }
31908
- var initString = () => ({ contents: "", textDecoder: new TextDecoder() });
31909
- var useTextDecoder = (chunk, { textDecoder }) => textDecoder.decode(chunk, { stream: true });
31910
- var addStringChunk = (convertedChunk, { contents }) => contents + convertedChunk;
31911
- var truncateStringChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
31912
- var getFinalStringChunk = ({ textDecoder }) => {
31913
- const finalChunk = textDecoder.decode();
31914
- return finalChunk === "" ? void 0 : finalChunk;
31915
- };
31916
- var stringMethods = {
31917
- init: initString,
31918
- convertChunk: {
31919
- string: identity,
31920
- buffer: useTextDecoder,
31921
- arrayBuffer: useTextDecoder,
31922
- dataView: useTextDecoder,
31923
- typedArray: useTextDecoder,
31924
- others: throwObjectStream
31925
- },
31926
- getSize: getLengthProp,
31927
- truncateChunk: truncateStringChunk,
31928
- addChunk: addStringChunk,
31929
- getFinalChunk: getFinalStringChunk,
31930
- finalize: getContentsProp
31931
- };
31932
-
31933
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
31934
- var import_merge_stream = __toESM(require_merge_stream(), 1);
31935
- var validateInputOptions = (input) => {
31936
- if (input !== void 0) {
31937
- throw new TypeError("The `input` and `inputFile` options cannot be both set.");
31938
- }
31939
- };
31940
- var getInputSync = ({ input, inputFile }) => {
31941
- if (typeof inputFile !== "string") {
31942
- return input;
31943
- }
31944
- validateInputOptions(input);
31945
- return (0, import_node_fs4.readFileSync)(inputFile);
31946
- };
31947
- var handleInputSync = (options) => {
31948
- const input = getInputSync(options);
31949
- if (isStream(input)) {
31950
- throw new TypeError("The `input` option cannot be a stream in sync mode");
31951
- }
31952
- return input;
31953
- };
31954
- var getInput = ({ input, inputFile }) => {
31955
- if (typeof inputFile !== "string") {
31956
- return input;
31957
- }
31958
- validateInputOptions(input);
31959
- return (0, import_node_fs4.createReadStream)(inputFile);
31960
- };
31961
- var handleInput = (spawned, options) => {
31962
- const input = getInput(options);
31963
- if (input === void 0) {
31964
- return;
31965
- }
31966
- if (isStream(input)) {
31967
- input.pipe(spawned.stdin);
31968
- } else {
31969
- spawned.stdin.end(input);
31970
- }
31971
- };
31972
- var makeAllStream = (spawned, { all }) => {
31973
- if (!all || !spawned.stdout && !spawned.stderr) {
31974
- return;
31975
- }
31976
- const mixed = (0, import_merge_stream.default)();
31977
- if (spawned.stdout) {
31978
- mixed.add(spawned.stdout);
31979
- }
31980
- if (spawned.stderr) {
31981
- mixed.add(spawned.stderr);
31982
- }
31983
- return mixed;
31984
- };
31985
- var getBufferedData = async (stream, streamPromise) => {
31986
- if (!stream || streamPromise === void 0) {
31987
- return;
31988
- }
31989
- await (0, import_promises.setTimeout)(0);
31990
- stream.destroy();
31991
- try {
31992
- return await streamPromise;
31993
- } catch (error) {
31994
- return error.bufferedData;
31995
- }
31996
- };
31997
- var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => {
31998
- if (!stream || !buffer) {
31999
- return;
32000
- }
32001
- if (encoding === "utf8" || encoding === "utf-8") {
32002
- return getStreamAsString(stream, { maxBuffer });
32003
- }
32004
- if (encoding === null || encoding === "buffer") {
32005
- return getStreamAsBuffer(stream, { maxBuffer });
32006
- }
32007
- return applyEncoding(stream, maxBuffer, encoding);
32008
- };
32009
- var applyEncoding = async (stream, maxBuffer, encoding) => {
32010
- const buffer = await getStreamAsBuffer(stream, { maxBuffer });
32011
- return buffer.toString(encoding);
32012
- };
32013
- var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
32014
- const stdoutPromise = getStreamPromise(stdout, { encoding, buffer, maxBuffer });
32015
- const stderrPromise = getStreamPromise(stderr, { encoding, buffer, maxBuffer });
32016
- const allPromise = getStreamPromise(all, { encoding, buffer, maxBuffer: maxBuffer * 2 });
32017
- try {
32018
- return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);
32019
- } catch (error) {
32020
- return Promise.all([
32021
- { error, signal: error.signal, timedOut: error.timedOut },
32022
- getBufferedData(stdout, stdoutPromise),
32023
- getBufferedData(stderr, stderrPromise),
32024
- getBufferedData(all, allPromise)
32025
- ]);
32026
- }
32027
- };
32028
-
32029
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/promise.js
32030
- var nativePromisePrototype = (async () => {
32031
- })().constructor.prototype;
32032
- var descriptors = ["then", "catch", "finally"].map((property) => [
32033
- property,
32034
- Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
32035
- ]);
32036
- var mergePromise = (spawned, promise) => {
32037
- for (const [property, descriptor] of descriptors) {
32038
- const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);
32039
- Reflect.defineProperty(spawned, property, { ...descriptor, value });
32040
- }
32041
- };
32042
- var getSpawnedPromise = (spawned) => new Promise((resolve, reject) => {
32043
- spawned.on("exit", (exitCode, signal) => {
32044
- resolve({ exitCode, signal });
32045
- });
32046
- spawned.on("error", (error) => {
32047
- reject(error);
32048
- });
32049
- if (spawned.stdin) {
32050
- spawned.stdin.on("error", (error) => {
32051
- reject(error);
32052
- });
32053
- }
32054
- });
32055
-
32056
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/command.js
32057
- var import_node_buffer = require("node:buffer");
32058
- var import_node_child_process2 = require("node:child_process");
32059
- var normalizeArgs = (file, args = []) => {
32060
- if (!Array.isArray(args)) {
32061
- return [file];
32062
- }
32063
- return [file, ...args];
32064
- };
32065
- var NO_ESCAPE_REGEXP = /^[\w.-]+$/;
32066
- var escapeArg = (arg) => {
32067
- if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) {
32068
- return arg;
32069
- }
32070
- return `"${arg.replaceAll('"', '\\"')}"`;
32071
- };
32072
- var joinCommand = (file, args) => normalizeArgs(file, args).join(" ");
32073
- var getEscapedCommand = (file, args) => normalizeArgs(file, args).map((arg) => escapeArg(arg)).join(" ");
32074
- var SPACES_REGEXP = / +/g;
32075
- var parseExpression = (expression) => {
32076
- const typeOfExpression = typeof expression;
32077
- if (typeOfExpression === "string") {
32078
- return expression;
32079
- }
32080
- if (typeOfExpression === "number") {
32081
- return String(expression);
32082
- }
32083
- if (typeOfExpression === "object" && expression !== null && !(expression instanceof import_node_child_process2.ChildProcess) && "stdout" in expression) {
32084
- const typeOfStdout = typeof expression.stdout;
32085
- if (typeOfStdout === "string") {
32086
- return expression.stdout;
32087
- }
32088
- if (import_node_buffer.Buffer.isBuffer(expression.stdout)) {
32089
- return expression.stdout.toString();
32090
- }
32091
- throw new TypeError(`Unexpected "${typeOfStdout}" stdout in template expression`);
32092
- }
32093
- throw new TypeError(`Unexpected "${typeOfExpression}" in template expression`);
32094
- };
32095
- var concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0 ? [...tokens, ...nextTokens] : [
32096
- ...tokens.slice(0, -1),
32097
- `${tokens.at(-1)}${nextTokens[0]}`,
32098
- ...nextTokens.slice(1)
32099
- ];
32100
- var parseTemplate = ({ templates, expressions, tokens, index, template }) => {
32101
- const templateString = template ?? templates.raw[index];
32102
- const templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);
32103
- const newTokens = concatTokens(
32104
- tokens,
32105
- templateTokens,
32106
- templateString.startsWith(" ")
32107
- );
32108
- if (index === expressions.length) {
32109
- return newTokens;
32110
- }
32111
- const expression = expressions[index];
32112
- const expressionTokens = Array.isArray(expression) ? expression.map((expression2) => parseExpression(expression2)) : [parseExpression(expression)];
32113
- return concatTokens(
32114
- newTokens,
32115
- expressionTokens,
32116
- templateString.endsWith(" ")
32117
- );
32118
- };
32119
- var parseTemplates = (templates, expressions) => {
32120
- let tokens = [];
32121
- for (const [index, template] of templates.entries()) {
32122
- tokens = parseTemplate({ templates, expressions, tokens, index, template });
32123
- }
32124
- return tokens;
32125
- };
32126
-
32127
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/verbose.js
32128
- var import_node_util = require("node:util");
32129
- var import_node_process3 = __toESM(require("node:process"), 1);
32130
- var verboseDefault = (0, import_node_util.debuglog)("execa").enabled;
32131
- var padField = (field, padding) => String(field).padStart(padding, "0");
32132
- var getTimestamp = () => {
32133
- const date = /* @__PURE__ */ new Date();
32134
- return `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;
32135
- };
32136
- var logCommand = (escapedCommand, { verbose }) => {
32137
- if (!verbose) {
32138
- return;
32139
- }
32140
- import_node_process3.default.stderr.write(`[${getTimestamp()}] ${escapedCommand}
32141
- `);
32142
- };
32143
-
32144
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
32145
- var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
32146
- var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
32147
- const env = extendEnv ? { ...import_node_process4.default.env, ...envOption } : envOption;
32148
- if (preferLocal) {
32149
- return npmRunPathEnv({ env, cwd: localDir, execPath });
32150
- }
32151
- return env;
32152
- };
32153
- var handleArguments = (file, args, options = {}) => {
32154
- const parsed = import_cross_spawn.default._parse(file, args, options);
32155
- file = parsed.command;
32156
- args = parsed.args;
32157
- options = parsed.options;
32158
- options = {
32159
- maxBuffer: DEFAULT_MAX_BUFFER,
32160
- buffer: true,
32161
- stripFinalNewline: true,
32162
- extendEnv: true,
32163
- preferLocal: false,
32164
- localDir: options.cwd || import_node_process4.default.cwd(),
32165
- execPath: import_node_process4.default.execPath,
32166
- encoding: "utf8",
32167
- reject: true,
32168
- cleanup: true,
32169
- all: false,
32170
- windowsHide: true,
32171
- verbose: verboseDefault,
32172
- ...options
32173
- };
32174
- options.env = getEnv(options);
32175
- options.stdio = normalizeStdio(options);
32176
- if (import_node_process4.default.platform === "win32" && import_node_path4.default.basename(file, ".exe") === "cmd") {
32177
- args.unshift("/q");
32178
- }
32179
- return { file, args, options, parsed };
32180
- };
32181
- var handleOutput = (options, value, error) => {
32182
- if (typeof value !== "string" && !import_node_buffer2.Buffer.isBuffer(value)) {
32183
- return error === void 0 ? void 0 : "";
32184
- }
32185
- if (options.stripFinalNewline) {
32186
- return stripFinalNewline(value);
32187
- }
32188
- return value;
32189
- };
32190
- function execa(file, args, options) {
32191
- const parsed = handleArguments(file, args, options);
32192
- const command = joinCommand(file, args);
32193
- const escapedCommand = getEscapedCommand(file, args);
32194
- logCommand(escapedCommand, parsed.options);
32195
- validateTimeout(parsed.options);
32196
- let spawned;
32197
- try {
32198
- spawned = import_node_child_process3.default.spawn(parsed.file, parsed.args, parsed.options);
32199
- } catch (error) {
32200
- const dummySpawned = new import_node_child_process3.default.ChildProcess();
32201
- const errorPromise = Promise.reject(makeError({
32202
- error,
32203
- stdout: "",
32204
- stderr: "",
32205
- all: "",
32206
- command,
32207
- escapedCommand,
32208
- parsed,
32209
- timedOut: false,
32210
- isCanceled: false,
32211
- killed: false
32212
- }));
32213
- mergePromise(dummySpawned, errorPromise);
32214
- return dummySpawned;
32215
- }
32216
- const spawnedPromise = getSpawnedPromise(spawned);
32217
- const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
32218
- const processDone = setExitHandler(spawned, parsed.options, timedPromise);
32219
- const context = { isCanceled: false };
32220
- spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
32221
- spawned.cancel = spawnedCancel.bind(null, spawned, context);
32222
- const handlePromise = async () => {
32223
- const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
32224
- const stdout = handleOutput(parsed.options, stdoutResult);
32225
- const stderr = handleOutput(parsed.options, stderrResult);
32226
- const all = handleOutput(parsed.options, allResult);
32227
- if (error || exitCode !== 0 || signal !== null) {
32228
- const returnedError = makeError({
32229
- error,
32230
- exitCode,
32231
- signal,
32232
- stdout,
32233
- stderr,
32234
- all,
32235
- command,
32236
- escapedCommand,
32237
- parsed,
32238
- timedOut,
32239
- isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),
32240
- killed: spawned.killed
32241
- });
32242
- if (!parsed.options.reject) {
32243
- return returnedError;
32244
- }
32245
- throw returnedError;
32246
- }
32247
- return {
32248
- command,
32249
- escapedCommand,
32250
- exitCode: 0,
32251
- stdout,
32252
- stderr,
32253
- all,
32254
- failed: false,
32255
- timedOut: false,
32256
- isCanceled: false,
32257
- killed: false
32258
- };
32259
- };
32260
- const handlePromiseOnce = onetime_default(handlePromise);
32261
- handleInput(spawned, parsed.options);
32262
- spawned.all = makeAllStream(spawned, parsed.options);
32263
- addPipeMethods(spawned);
32264
- mergePromise(spawned, handlePromiseOnce);
32265
- return spawned;
32266
- }
32267
- function execaSync(file, args, options) {
32268
- const parsed = handleArguments(file, args, options);
32269
- const command = joinCommand(file, args);
32270
- const escapedCommand = getEscapedCommand(file, args);
32271
- logCommand(escapedCommand, parsed.options);
32272
- const input = handleInputSync(parsed.options);
32273
- let result;
32274
- try {
32275
- result = import_node_child_process3.default.spawnSync(parsed.file, parsed.args, { ...parsed.options, input });
32276
- } catch (error) {
32277
- throw makeError({
32278
- error,
32279
- stdout: "",
32280
- stderr: "",
32281
- all: "",
32282
- command,
32283
- escapedCommand,
32284
- parsed,
32285
- timedOut: false,
32286
- isCanceled: false,
32287
- killed: false
32288
- });
32289
- }
32290
- const stdout = handleOutput(parsed.options, result.stdout, result.error);
32291
- const stderr = handleOutput(parsed.options, result.stderr, result.error);
32292
- if (result.error || result.status !== 0 || result.signal !== null) {
32293
- const error = makeError({
32294
- stdout,
32295
- stderr,
32296
- error: result.error,
32297
- signal: result.signal,
32298
- exitCode: result.status,
32299
- command,
32300
- escapedCommand,
32301
- parsed,
32302
- timedOut: result.error && result.error.code === "ETIMEDOUT",
32303
- isCanceled: false,
32304
- killed: result.signal !== null
32305
- });
32306
- if (!parsed.options.reject) {
32307
- return error;
32308
- }
32309
- throw error;
32310
- }
32311
- return {
32312
- command,
32313
- escapedCommand,
32314
- exitCode: 0,
32315
- stdout,
32316
- stderr,
32317
- failed: false,
32318
- timedOut: false,
32319
- isCanceled: false,
32320
- killed: false
32321
- };
32322
- }
32323
- var normalizeScriptStdin = ({ input, inputFile, stdio }) => input === void 0 && inputFile === void 0 && stdio === void 0 ? { stdin: "inherit" } : {};
32324
- var normalizeScriptOptions = (options = {}) => ({
32325
- preferLocal: true,
32326
- ...normalizeScriptStdin(options),
32327
- ...options
32328
- });
32329
- function create$(options) {
32330
- function $2(templatesOrOptions, ...expressions) {
32331
- if (!Array.isArray(templatesOrOptions)) {
32332
- return create$({ ...options, ...templatesOrOptions });
32333
- }
32334
- const [file, ...args] = parseTemplates(templatesOrOptions, expressions);
32335
- return execa(file, args, normalizeScriptOptions(options));
32336
- }
32337
- $2.sync = (templates, ...expressions) => {
32338
- if (!Array.isArray(templates)) {
32339
- throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");
32340
- }
32341
- const [file, ...args] = parseTemplates(templates, expressions);
32342
- return execaSync(file, args, normalizeScriptOptions(options));
32343
- };
32344
- return $2;
32345
- }
32346
- var $ = create$();
32347
-
32348
30234
  // packages/config-tools/src/utilities/run.ts
32349
30235
  var LARGE_BUFFER = 1024 * 1e6;
32350
30236
 
@@ -32856,7 +30742,7 @@ async function presetGeneratorFn(tree, options) {
32856
30742
  };
32857
30743
  return json;
32858
30744
  });
32859
- (0, import_devkit.generateFiles)(tree, path3.join(__dirname, "files"), projectRoot, {
30745
+ (0, import_devkit.generateFiles)(tree, path.join(__dirname, "files"), projectRoot, {
32860
30746
  ...options,
32861
30747
  pnpmVersion,
32862
30748
  nodeVersion