@storm-software/workspace-tools 1.23.0 → 1.24.0

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.
@@ -7593,9 +7593,9 @@ var require_run_tasks_in_serial = __commonJS({
7593
7593
  }
7594
7594
  });
7595
7595
 
7596
- // node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.js
7596
+ // node_modules/.pnpm/ignore@5.3.0/node_modules/ignore/index.js
7597
7597
  var require_ignore = __commonJS({
7598
- "node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.js"(exports, module2) {
7598
+ "node_modules/.pnpm/ignore@5.3.0/node_modules/ignore/index.js"(exports, module2) {
7599
7599
  function makeArray(subject) {
7600
7600
  return Array.isArray(subject) ? subject : [subject];
7601
7601
  }
@@ -31250,6 +31250,337 @@ var require_print_diagnostics = __commonJS({
31250
31250
  }
31251
31251
  });
31252
31252
 
31253
+ // node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js
31254
+ var require_util3 = __commonJS({
31255
+ "node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js"(exports, module2) {
31256
+ "use strict";
31257
+ var stringReplaceAll = (string, substring, replacer) => {
31258
+ let index = string.indexOf(substring);
31259
+ if (index === -1) {
31260
+ return string;
31261
+ }
31262
+ const substringLength = substring.length;
31263
+ let endIndex = 0;
31264
+ let returnValue = "";
31265
+ do {
31266
+ returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
31267
+ endIndex = index + substringLength;
31268
+ index = string.indexOf(substring, endIndex);
31269
+ } while (index !== -1);
31270
+ returnValue += string.substr(endIndex);
31271
+ return returnValue;
31272
+ };
31273
+ var stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
31274
+ let endIndex = 0;
31275
+ let returnValue = "";
31276
+ do {
31277
+ const gotCR = string[index - 1] === "\r";
31278
+ returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
31279
+ endIndex = index + 1;
31280
+ index = string.indexOf("\n", endIndex);
31281
+ } while (index !== -1);
31282
+ returnValue += string.substr(endIndex);
31283
+ return returnValue;
31284
+ };
31285
+ module2.exports = {
31286
+ stringReplaceAll,
31287
+ stringEncaseCRLFWithFirstIndex
31288
+ };
31289
+ }
31290
+ });
31291
+
31292
+ // node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js
31293
+ var require_templates3 = __commonJS({
31294
+ "node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js"(exports, module2) {
31295
+ "use strict";
31296
+ var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
31297
+ var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
31298
+ var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
31299
+ var ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
31300
+ var ESCAPES = /* @__PURE__ */ new Map([
31301
+ ["n", "\n"],
31302
+ ["r", "\r"],
31303
+ ["t", " "],
31304
+ ["b", "\b"],
31305
+ ["f", "\f"],
31306
+ ["v", "\v"],
31307
+ ["0", "\0"],
31308
+ ["\\", "\\"],
31309
+ ["e", "\x1B"],
31310
+ ["a", "\x07"]
31311
+ ]);
31312
+ function unescape(c) {
31313
+ const u = c[0] === "u";
31314
+ const bracket = c[1] === "{";
31315
+ if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
31316
+ return String.fromCharCode(parseInt(c.slice(1), 16));
31317
+ }
31318
+ if (u && bracket) {
31319
+ return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
31320
+ }
31321
+ return ESCAPES.get(c) || c;
31322
+ }
31323
+ function parseArguments(name, arguments_) {
31324
+ const results = [];
31325
+ const chunks = arguments_.trim().split(/\s*,\s*/g);
31326
+ let matches;
31327
+ for (const chunk of chunks) {
31328
+ const number = Number(chunk);
31329
+ if (!Number.isNaN(number)) {
31330
+ results.push(number);
31331
+ } else if (matches = chunk.match(STRING_REGEX)) {
31332
+ results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
31333
+ } else {
31334
+ throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
31335
+ }
31336
+ }
31337
+ return results;
31338
+ }
31339
+ function parseStyle(style) {
31340
+ STYLE_REGEX.lastIndex = 0;
31341
+ const results = [];
31342
+ let matches;
31343
+ while ((matches = STYLE_REGEX.exec(style)) !== null) {
31344
+ const name = matches[1];
31345
+ if (matches[2]) {
31346
+ const args = parseArguments(name, matches[2]);
31347
+ results.push([name].concat(args));
31348
+ } else {
31349
+ results.push([name]);
31350
+ }
31351
+ }
31352
+ return results;
31353
+ }
31354
+ function buildStyle(chalk2, styles) {
31355
+ const enabled = {};
31356
+ for (const layer of styles) {
31357
+ for (const style of layer.styles) {
31358
+ enabled[style[0]] = layer.inverse ? null : style.slice(1);
31359
+ }
31360
+ }
31361
+ let current = chalk2;
31362
+ for (const [styleName, styles2] of Object.entries(enabled)) {
31363
+ if (!Array.isArray(styles2)) {
31364
+ continue;
31365
+ }
31366
+ if (!(styleName in current)) {
31367
+ throw new Error(`Unknown Chalk style: ${styleName}`);
31368
+ }
31369
+ current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
31370
+ }
31371
+ return current;
31372
+ }
31373
+ module2.exports = (chalk2, temporary) => {
31374
+ const styles = [];
31375
+ const chunks = [];
31376
+ let chunk = [];
31377
+ temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
31378
+ if (escapeCharacter) {
31379
+ chunk.push(unescape(escapeCharacter));
31380
+ } else if (style) {
31381
+ const string = chunk.join("");
31382
+ chunk = [];
31383
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk2, styles)(string));
31384
+ styles.push({ inverse, styles: parseStyle(style) });
31385
+ } else if (close) {
31386
+ if (styles.length === 0) {
31387
+ throw new Error("Found extraneous } in Chalk template literal");
31388
+ }
31389
+ chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
31390
+ chunk = [];
31391
+ styles.pop();
31392
+ } else {
31393
+ chunk.push(character);
31394
+ }
31395
+ });
31396
+ chunks.push(chunk.join(""));
31397
+ if (styles.length > 0) {
31398
+ const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
31399
+ throw new Error(errMessage);
31400
+ }
31401
+ return chunks.join("");
31402
+ };
31403
+ }
31404
+ });
31405
+
31406
+ // node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js
31407
+ var require_source2 = __commonJS({
31408
+ "node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"(exports, module2) {
31409
+ "use strict";
31410
+ var ansiStyles = require_ansi_styles2();
31411
+ var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color2();
31412
+ var {
31413
+ stringReplaceAll,
31414
+ stringEncaseCRLFWithFirstIndex
31415
+ } = require_util3();
31416
+ var { isArray } = Array;
31417
+ var levelMapping = [
31418
+ "ansi",
31419
+ "ansi",
31420
+ "ansi256",
31421
+ "ansi16m"
31422
+ ];
31423
+ var styles = /* @__PURE__ */ Object.create(null);
31424
+ var applyOptions = (object, options = {}) => {
31425
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
31426
+ throw new Error("The `level` option should be an integer from 0 to 3");
31427
+ }
31428
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
31429
+ object.level = options.level === void 0 ? colorLevel : options.level;
31430
+ };
31431
+ var ChalkClass = class {
31432
+ constructor(options) {
31433
+ return chalkFactory(options);
31434
+ }
31435
+ };
31436
+ var chalkFactory = (options) => {
31437
+ const chalk3 = {};
31438
+ applyOptions(chalk3, options);
31439
+ chalk3.template = (...arguments_) => chalkTag(chalk3.template, ...arguments_);
31440
+ Object.setPrototypeOf(chalk3, Chalk.prototype);
31441
+ Object.setPrototypeOf(chalk3.template, chalk3);
31442
+ chalk3.template.constructor = () => {
31443
+ throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
31444
+ };
31445
+ chalk3.template.Instance = ChalkClass;
31446
+ return chalk3.template;
31447
+ };
31448
+ function Chalk(options) {
31449
+ return chalkFactory(options);
31450
+ }
31451
+ for (const [styleName, style] of Object.entries(ansiStyles)) {
31452
+ styles[styleName] = {
31453
+ get() {
31454
+ const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
31455
+ Object.defineProperty(this, styleName, { value: builder });
31456
+ return builder;
31457
+ }
31458
+ };
31459
+ }
31460
+ styles.visible = {
31461
+ get() {
31462
+ const builder = createBuilder(this, this._styler, true);
31463
+ Object.defineProperty(this, "visible", { value: builder });
31464
+ return builder;
31465
+ }
31466
+ };
31467
+ var usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
31468
+ for (const model of usedModels) {
31469
+ styles[model] = {
31470
+ get() {
31471
+ const { level } = this;
31472
+ return function(...arguments_) {
31473
+ const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
31474
+ return createBuilder(this, styler, this._isEmpty);
31475
+ };
31476
+ }
31477
+ };
31478
+ }
31479
+ for (const model of usedModels) {
31480
+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
31481
+ styles[bgModel] = {
31482
+ get() {
31483
+ const { level } = this;
31484
+ return function(...arguments_) {
31485
+ const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
31486
+ return createBuilder(this, styler, this._isEmpty);
31487
+ };
31488
+ }
31489
+ };
31490
+ }
31491
+ var proto = Object.defineProperties(() => {
31492
+ }, {
31493
+ ...styles,
31494
+ level: {
31495
+ enumerable: true,
31496
+ get() {
31497
+ return this._generator.level;
31498
+ },
31499
+ set(level) {
31500
+ this._generator.level = level;
31501
+ }
31502
+ }
31503
+ });
31504
+ var createStyler = (open, close, parent) => {
31505
+ let openAll;
31506
+ let closeAll;
31507
+ if (parent === void 0) {
31508
+ openAll = open;
31509
+ closeAll = close;
31510
+ } else {
31511
+ openAll = parent.openAll + open;
31512
+ closeAll = close + parent.closeAll;
31513
+ }
31514
+ return {
31515
+ open,
31516
+ close,
31517
+ openAll,
31518
+ closeAll,
31519
+ parent
31520
+ };
31521
+ };
31522
+ var createBuilder = (self, _styler, _isEmpty) => {
31523
+ const builder = (...arguments_) => {
31524
+ if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
31525
+ return applyStyle(builder, chalkTag(builder, ...arguments_));
31526
+ }
31527
+ return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
31528
+ };
31529
+ Object.setPrototypeOf(builder, proto);
31530
+ builder._generator = self;
31531
+ builder._styler = _styler;
31532
+ builder._isEmpty = _isEmpty;
31533
+ return builder;
31534
+ };
31535
+ var applyStyle = (self, string) => {
31536
+ if (self.level <= 0 || !string) {
31537
+ return self._isEmpty ? "" : string;
31538
+ }
31539
+ let styler = self._styler;
31540
+ if (styler === void 0) {
31541
+ return string;
31542
+ }
31543
+ const { openAll, closeAll } = styler;
31544
+ if (string.indexOf("\x1B") !== -1) {
31545
+ while (styler !== void 0) {
31546
+ string = stringReplaceAll(string, styler.close, styler.open);
31547
+ styler = styler.parent;
31548
+ }
31549
+ }
31550
+ const lfIndex = string.indexOf("\n");
31551
+ if (lfIndex !== -1) {
31552
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
31553
+ }
31554
+ return openAll + string + closeAll;
31555
+ };
31556
+ var template;
31557
+ var chalkTag = (chalk3, ...strings) => {
31558
+ const [firstString] = strings;
31559
+ if (!isArray(firstString) || !isArray(firstString.raw)) {
31560
+ return strings.join(" ");
31561
+ }
31562
+ const arguments_ = strings.slice(1);
31563
+ const parts = [firstString.raw[0]];
31564
+ for (let i = 1; i < firstString.length; i++) {
31565
+ parts.push(
31566
+ String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"),
31567
+ String(firstString.raw[i])
31568
+ );
31569
+ }
31570
+ if (template === void 0) {
31571
+ template = require_templates3();
31572
+ }
31573
+ return template(chalk3, parts.join(""));
31574
+ };
31575
+ Object.defineProperties(Chalk.prototype, styles);
31576
+ var chalk2 = Chalk();
31577
+ chalk2.supportsColor = stdoutColor;
31578
+ chalk2.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
31579
+ chalk2.stderr.supportsColor = stderrColor;
31580
+ module2.exports = chalk2;
31581
+ }
31582
+ });
31583
+
31253
31584
  // node_modules/.pnpm/@nx+js@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.9.0_nx@17.0.3_typescript@5.2.2_verdaccio@5.27.0/node_modules/@nx/js/src/utils/code-frames/identifiers.js
31254
31585
  var require_identifiers2 = __commonJS({
31255
31586
  "node_modules/.pnpm/@nx+js@17.0.3_@swc-node+register@1.6.8_@swc+core@1.3.96_@types+node@20.9.0_nx@17.0.3_typescript@5.2.2_verdaccio@5.27.0/node_modules/@nx/js/src/utils/code-frames/identifiers.js"(exports) {
@@ -31311,7 +31642,7 @@ var require_highlight = __commonJS({
31311
31642
  Object.defineProperty(exports, "__esModule", { value: true });
31312
31643
  exports.highlight = void 0;
31313
31644
  var jsTokens = require_js_tokens();
31314
- var chalk2 = require_source();
31645
+ var chalk2 = require_source2();
31315
31646
  var identifiers_1 = require_identifiers2();
31316
31647
  function getDefs(chalk3) {
31317
31648
  return {
@@ -31477,7 +31808,7 @@ var require_run_type_check = __commonJS({
31477
31808
  "use strict";
31478
31809
  Object.defineProperty(exports, "__esModule", { value: true });
31479
31810
  exports.getFormattedDiagnostic = exports.runTypeCheck = exports.runTypeCheckWatch = void 0;
31480
- var chalk2 = require_source();
31811
+ var chalk2 = require_source2();
31481
31812
  var path = require("path");
31482
31813
  var code_frames_1 = require("nx/src/utils/code-frames");
31483
31814
  var highlight_1 = require_highlight();
@@ -32410,9 +32741,9 @@ var require_watch_for_single_file_changes = __commonJS({
32410
32741
  }
32411
32742
  });
32412
32743
 
32413
- // node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
32744
+ // node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
32414
32745
  var require_universalify = __commonJS({
32415
- "node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
32746
+ "node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports) {
32416
32747
  "use strict";
32417
32748
  exports.fromCallback = function(fn) {
32418
32749
  return Object.defineProperty(function(...args) {
@@ -32420,11 +32751,8 @@ var require_universalify = __commonJS({
32420
32751
  fn.apply(this, args);
32421
32752
  else {
32422
32753
  return new Promise((resolve, reject) => {
32423
- fn.call(
32424
- this,
32425
- ...args,
32426
- (err, res) => err != null ? reject(err) : resolve(res)
32427
- );
32754
+ args.push((err, res) => err != null ? reject(err) : resolve(res));
32755
+ fn.apply(this, args);
32428
32756
  });
32429
32757
  }
32430
32758
  }, "name", { value: fn.name });
@@ -32434,8 +32762,10 @@ var require_universalify = __commonJS({
32434
32762
  const cb = args[args.length - 1];
32435
32763
  if (typeof cb !== "function")
32436
32764
  return fn.apply(this, args);
32437
- else
32438
- fn.apply(this, args.slice(0, -1)).then((r) => cb(null, r), cb);
32765
+ else {
32766
+ args.pop();
32767
+ fn.apply(this, args).then((r) => cb(null, r), cb);
32768
+ }
32439
32769
  }, "name", { value: fn.name });
32440
32770
  };
32441
32771
  }
@@ -33249,9 +33579,9 @@ var require_graceful_fs = __commonJS({
33249
33579
  }
33250
33580
  });
33251
33581
 
33252
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/fs/index.js
33582
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/fs/index.js
33253
33583
  var require_fs2 = __commonJS({
33254
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/fs/index.js"(exports) {
33584
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/fs/index.js"(exports) {
33255
33585
  "use strict";
33256
33586
  var u = require_universalify().fromCallback;
33257
33587
  var fs = require_graceful_fs();
@@ -33365,9 +33695,9 @@ var require_fs2 = __commonJS({
33365
33695
  }
33366
33696
  });
33367
33697
 
33368
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/mkdirs/utils.js
33698
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/utils.js
33369
33699
  var require_utils3 = __commonJS({
33370
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) {
33700
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) {
33371
33701
  "use strict";
33372
33702
  var path = require("path");
33373
33703
  module2.exports.checkPath = function checkPath(pth) {
@@ -33383,9 +33713,9 @@ var require_utils3 = __commonJS({
33383
33713
  }
33384
33714
  });
33385
33715
 
33386
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/mkdirs/make-dir.js
33716
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/make-dir.js
33387
33717
  var require_make_dir = __commonJS({
33388
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module2) {
33718
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module2) {
33389
33719
  "use strict";
33390
33720
  var fs = require_fs2();
33391
33721
  var { checkPath } = require_utils3();
@@ -33412,9 +33742,9 @@ var require_make_dir = __commonJS({
33412
33742
  }
33413
33743
  });
33414
33744
 
33415
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/mkdirs/index.js
33745
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/index.js
33416
33746
  var require_mkdirs = __commonJS({
33417
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/mkdirs/index.js"(exports, module2) {
33747
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/index.js"(exports, module2) {
33418
33748
  "use strict";
33419
33749
  var u = require_universalify().fromPromise;
33420
33750
  var { makeDir: _makeDir, makeDirSync } = require_make_dir();
@@ -33431,9 +33761,9 @@ var require_mkdirs = __commonJS({
33431
33761
  }
33432
33762
  });
33433
33763
 
33434
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/path-exists/index.js
33764
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/path-exists/index.js
33435
33765
  var require_path_exists = __commonJS({
33436
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/path-exists/index.js"(exports, module2) {
33766
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/path-exists/index.js"(exports, module2) {
33437
33767
  "use strict";
33438
33768
  var u = require_universalify().fromPromise;
33439
33769
  var fs = require_fs2();
@@ -33447,22 +33777,27 @@ var require_path_exists = __commonJS({
33447
33777
  }
33448
33778
  });
33449
33779
 
33450
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/util/utimes.js
33780
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/utimes.js
33451
33781
  var require_utimes = __commonJS({
33452
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/util/utimes.js"(exports, module2) {
33782
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/utimes.js"(exports, module2) {
33453
33783
  "use strict";
33454
- var fs = require_graceful_fs();
33455
- function utimesMillis(path, atime, mtime, callback) {
33456
- fs.open(path, "r+", (err, fd) => {
33457
- if (err)
33458
- return callback(err);
33459
- fs.futimes(fd, atime, mtime, (futimesErr) => {
33460
- fs.close(fd, (closeErr) => {
33461
- if (callback)
33462
- callback(futimesErr || closeErr);
33463
- });
33464
- });
33465
- });
33784
+ var fs = require_fs2();
33785
+ var u = require_universalify().fromPromise;
33786
+ async function utimesMillis(path, atime, mtime) {
33787
+ const fd = await fs.open(path, "r+");
33788
+ let closeErr = null;
33789
+ try {
33790
+ await fs.futimes(fd, atime, mtime);
33791
+ } finally {
33792
+ try {
33793
+ await fs.close(fd);
33794
+ } catch (e) {
33795
+ closeErr = e;
33796
+ }
33797
+ }
33798
+ if (closeErr) {
33799
+ throw closeErr;
33800
+ }
33466
33801
  }
33467
33802
  function utimesMillisSync(path, atime, mtime) {
33468
33803
  const fd = fs.openSync(path, "r+");
@@ -33470,19 +33805,19 @@ var require_utimes = __commonJS({
33470
33805
  return fs.closeSync(fd);
33471
33806
  }
33472
33807
  module2.exports = {
33473
- utimesMillis,
33808
+ utimesMillis: u(utimesMillis),
33474
33809
  utimesMillisSync
33475
33810
  };
33476
33811
  }
33477
33812
  });
33478
33813
 
33479
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/util/stat.js
33814
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/stat.js
33480
33815
  var require_stat = __commonJS({
33481
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
33816
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
33482
33817
  "use strict";
33483
33818
  var fs = require_fs2();
33484
33819
  var path = require("path");
33485
- var util2 = require("util");
33820
+ var u = require_universalify().fromPromise;
33486
33821
  function getStats(src, dest, opts) {
33487
33822
  const statFunc = opts.dereference ? (file) => fs.stat(file, { bigint: true }) : (file) => fs.lstat(file, { bigint: true });
33488
33823
  return Promise.all([
@@ -33507,32 +33842,28 @@ var require_stat = __commonJS({
33507
33842
  }
33508
33843
  return { srcStat, destStat };
33509
33844
  }
33510
- function checkPaths(src, dest, funcName, opts, cb) {
33511
- util2.callbackify(getStats)(src, dest, opts, (err, stats) => {
33512
- if (err)
33513
- return cb(err);
33514
- const { srcStat, destStat } = stats;
33515
- if (destStat) {
33516
- if (areIdentical(srcStat, destStat)) {
33517
- const srcBaseName = path.basename(src);
33518
- const destBaseName = path.basename(dest);
33519
- if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
33520
- return cb(null, { srcStat, destStat, isChangingCase: true });
33521
- }
33522
- return cb(new Error("Source and destination must not be the same."));
33523
- }
33524
- if (srcStat.isDirectory() && !destStat.isDirectory()) {
33525
- return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`));
33526
- }
33527
- if (!srcStat.isDirectory() && destStat.isDirectory()) {
33528
- return cb(new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`));
33845
+ async function checkPaths(src, dest, funcName, opts) {
33846
+ const { srcStat, destStat } = await getStats(src, dest, opts);
33847
+ if (destStat) {
33848
+ if (areIdentical(srcStat, destStat)) {
33849
+ const srcBaseName = path.basename(src);
33850
+ const destBaseName = path.basename(dest);
33851
+ if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
33852
+ return { srcStat, destStat, isChangingCase: true };
33529
33853
  }
33854
+ throw new Error("Source and destination must not be the same.");
33530
33855
  }
33531
- if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
33532
- return cb(new Error(errMsg(src, dest, funcName)));
33856
+ if (srcStat.isDirectory() && !destStat.isDirectory()) {
33857
+ throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`);
33533
33858
  }
33534
- return cb(null, { srcStat, destStat });
33535
- });
33859
+ if (!srcStat.isDirectory() && destStat.isDirectory()) {
33860
+ throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`);
33861
+ }
33862
+ }
33863
+ if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
33864
+ throw new Error(errMsg(src, dest, funcName));
33865
+ }
33866
+ return { srcStat, destStat };
33536
33867
  }
33537
33868
  function checkPathsSync(src, dest, funcName, opts) {
33538
33869
  const { srcStat, destStat } = getStatsSync(src, dest, opts);
@@ -33557,22 +33888,23 @@ var require_stat = __commonJS({
33557
33888
  }
33558
33889
  return { srcStat, destStat };
33559
33890
  }
33560
- function checkParentPaths(src, srcStat, dest, funcName, cb) {
33891
+ async function checkParentPaths(src, srcStat, dest, funcName) {
33561
33892
  const srcParent = path.resolve(path.dirname(src));
33562
33893
  const destParent = path.resolve(path.dirname(dest));
33563
33894
  if (destParent === srcParent || destParent === path.parse(destParent).root)
33564
- return cb();
33565
- fs.stat(destParent, { bigint: true }, (err, destStat) => {
33566
- if (err) {
33567
- if (err.code === "ENOENT")
33568
- return cb();
33569
- return cb(err);
33570
- }
33571
- if (areIdentical(srcStat, destStat)) {
33572
- return cb(new Error(errMsg(src, dest, funcName)));
33573
- }
33574
- return checkParentPaths(src, srcStat, destParent, funcName, cb);
33575
- });
33895
+ return;
33896
+ let destStat;
33897
+ try {
33898
+ destStat = await fs.stat(destParent, { bigint: true });
33899
+ } catch (err) {
33900
+ if (err.code === "ENOENT")
33901
+ return;
33902
+ throw err;
33903
+ }
33904
+ if (areIdentical(srcStat, destStat)) {
33905
+ throw new Error(errMsg(src, dest, funcName));
33906
+ }
33907
+ return checkParentPaths(src, srcStat, destParent, funcName);
33576
33908
  }
33577
33909
  function checkParentPathsSync(src, srcStat, dest, funcName) {
33578
33910
  const srcParent = path.resolve(path.dirname(src));
@@ -33598,42 +33930,39 @@ var require_stat = __commonJS({
33598
33930
  function isSrcSubdir(src, dest) {
33599
33931
  const srcArr = path.resolve(src).split(path.sep).filter((i) => i);
33600
33932
  const destArr = path.resolve(dest).split(path.sep).filter((i) => i);
33601
- return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
33933
+ return srcArr.every((cur, i) => destArr[i] === cur);
33602
33934
  }
33603
33935
  function errMsg(src, dest, funcName) {
33604
33936
  return `Cannot ${funcName} '${src}' to a subdirectory of itself, '${dest}'.`;
33605
33937
  }
33606
33938
  module2.exports = {
33607
- checkPaths,
33939
+ // checkPaths
33940
+ checkPaths: u(checkPaths),
33608
33941
  checkPathsSync,
33609
- checkParentPaths,
33942
+ // checkParent
33943
+ checkParentPaths: u(checkParentPaths),
33610
33944
  checkParentPathsSync,
33945
+ // Misc
33611
33946
  isSrcSubdir,
33612
33947
  areIdentical
33613
33948
  };
33614
33949
  }
33615
33950
  });
33616
33951
 
33617
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/copy/copy.js
33952
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy.js
33618
33953
  var require_copy = __commonJS({
33619
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
33954
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
33620
33955
  "use strict";
33621
- var fs = require_graceful_fs();
33956
+ var fs = require_fs2();
33622
33957
  var path = require("path");
33623
- var mkdirs = require_mkdirs().mkdirs;
33624
- var pathExists = require_path_exists().pathExists;
33625
- var utimesMillis = require_utimes().utimesMillis;
33958
+ var { mkdirs } = require_mkdirs();
33959
+ var { pathExists } = require_path_exists();
33960
+ var { utimesMillis } = require_utimes();
33626
33961
  var stat = require_stat();
33627
- function copy(src, dest, opts, cb) {
33628
- if (typeof opts === "function" && !cb) {
33629
- cb = opts;
33630
- opts = {};
33631
- } else if (typeof opts === "function") {
33962
+ async function copy(src, dest, opts = {}) {
33963
+ if (typeof opts === "function") {
33632
33964
  opts = { filter: opts };
33633
33965
  }
33634
- cb = cb || function() {
33635
- };
33636
- opts = opts || {};
33637
33966
  opts.clobber = "clobber" in opts ? !!opts.clobber : true;
33638
33967
  opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
33639
33968
  if (opts.preserveTimestamps && process.arch === "ia32") {
@@ -33643,212 +33972,119 @@ var require_copy = __commonJS({
33643
33972
  "fs-extra-WARN0001"
33644
33973
  );
33645
33974
  }
33646
- stat.checkPaths(src, dest, "copy", opts, (err, stats) => {
33647
- if (err)
33648
- return cb(err);
33649
- const { srcStat, destStat } = stats;
33650
- stat.checkParentPaths(src, srcStat, dest, "copy", (err2) => {
33651
- if (err2)
33652
- return cb(err2);
33653
- runFilter(src, dest, opts, (err3, include) => {
33654
- if (err3)
33655
- return cb(err3);
33656
- if (!include)
33657
- return cb();
33658
- checkParentDir(destStat, src, dest, opts, cb);
33659
- });
33660
- });
33661
- });
33662
- }
33663
- function checkParentDir(destStat, src, dest, opts, cb) {
33975
+ const { srcStat, destStat } = await stat.checkPaths(src, dest, "copy", opts);
33976
+ await stat.checkParentPaths(src, srcStat, dest, "copy");
33977
+ const include = await runFilter(src, dest, opts);
33978
+ if (!include)
33979
+ return;
33664
33980
  const destParent = path.dirname(dest);
33665
- pathExists(destParent, (err, dirExists) => {
33666
- if (err)
33667
- return cb(err);
33668
- if (dirExists)
33669
- return getStats(destStat, src, dest, opts, cb);
33670
- mkdirs(destParent, (err2) => {
33671
- if (err2)
33672
- return cb(err2);
33673
- return getStats(destStat, src, dest, opts, cb);
33674
- });
33675
- });
33981
+ const dirExists = await pathExists(destParent);
33982
+ if (!dirExists) {
33983
+ await mkdirs(destParent);
33984
+ }
33985
+ await getStatsAndPerformCopy(destStat, src, dest, opts);
33676
33986
  }
33677
- function runFilter(src, dest, opts, cb) {
33987
+ async function runFilter(src, dest, opts) {
33678
33988
  if (!opts.filter)
33679
- return cb(null, true);
33680
- Promise.resolve(opts.filter(src, dest)).then((include) => cb(null, include), (error) => cb(error));
33989
+ return true;
33990
+ return opts.filter(src, dest);
33681
33991
  }
33682
- function getStats(destStat, src, dest, opts, cb) {
33683
- const stat2 = opts.dereference ? fs.stat : fs.lstat;
33684
- stat2(src, (err, srcStat) => {
33685
- if (err)
33686
- return cb(err);
33687
- if (srcStat.isDirectory())
33688
- return onDir(srcStat, destStat, src, dest, opts, cb);
33689
- else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice())
33690
- return onFile(srcStat, destStat, src, dest, opts, cb);
33691
- else if (srcStat.isSymbolicLink())
33692
- return onLink(destStat, src, dest, opts, cb);
33693
- else if (srcStat.isSocket())
33694
- return cb(new Error(`Cannot copy a socket file: ${src}`));
33695
- else if (srcStat.isFIFO())
33696
- return cb(new Error(`Cannot copy a FIFO pipe: ${src}`));
33697
- return cb(new Error(`Unknown file: ${src}`));
33698
- });
33699
- }
33700
- function onFile(srcStat, destStat, src, dest, opts, cb) {
33701
- if (!destStat)
33702
- return copyFile(srcStat, src, dest, opts, cb);
33703
- return mayCopyFile(srcStat, src, dest, opts, cb);
33992
+ async function getStatsAndPerformCopy(destStat, src, dest, opts) {
33993
+ const statFn = opts.dereference ? fs.stat : fs.lstat;
33994
+ const srcStat = await statFn(src);
33995
+ if (srcStat.isDirectory())
33996
+ return onDir(srcStat, destStat, src, dest, opts);
33997
+ if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice())
33998
+ return onFile(srcStat, destStat, src, dest, opts);
33999
+ if (srcStat.isSymbolicLink())
34000
+ return onLink(destStat, src, dest, opts);
34001
+ if (srcStat.isSocket())
34002
+ throw new Error(`Cannot copy a socket file: ${src}`);
34003
+ if (srcStat.isFIFO())
34004
+ throw new Error(`Cannot copy a FIFO pipe: ${src}`);
34005
+ throw new Error(`Unknown file: ${src}`);
33704
34006
  }
33705
- function mayCopyFile(srcStat, src, dest, opts, cb) {
34007
+ async function onFile(srcStat, destStat, src, dest, opts) {
34008
+ if (!destStat)
34009
+ return copyFile(srcStat, src, dest, opts);
33706
34010
  if (opts.overwrite) {
33707
- fs.unlink(dest, (err) => {
33708
- if (err)
33709
- return cb(err);
33710
- return copyFile(srcStat, src, dest, opts, cb);
33711
- });
33712
- } else if (opts.errorOnExist) {
33713
- return cb(new Error(`'${dest}' already exists`));
33714
- } else
33715
- return cb();
33716
- }
33717
- function copyFile(srcStat, src, dest, opts, cb) {
33718
- fs.copyFile(src, dest, (err) => {
33719
- if (err)
33720
- return cb(err);
33721
- if (opts.preserveTimestamps)
33722
- return handleTimestampsAndMode(srcStat.mode, src, dest, cb);
33723
- return setDestMode(dest, srcStat.mode, cb);
33724
- });
33725
- }
33726
- function handleTimestampsAndMode(srcMode, src, dest, cb) {
33727
- if (fileIsNotWritable(srcMode)) {
33728
- return makeFileWritable(dest, srcMode, (err) => {
33729
- if (err)
33730
- return cb(err);
33731
- return setDestTimestampsAndMode(srcMode, src, dest, cb);
33732
- });
34011
+ await fs.unlink(dest);
34012
+ return copyFile(srcStat, src, dest, opts);
34013
+ }
34014
+ if (opts.errorOnExist) {
34015
+ throw new Error(`'${dest}' already exists`);
33733
34016
  }
33734
- return setDestTimestampsAndMode(srcMode, src, dest, cb);
33735
- }
33736
- function fileIsNotWritable(srcMode) {
33737
- return (srcMode & 128) === 0;
33738
- }
33739
- function makeFileWritable(dest, srcMode, cb) {
33740
- return setDestMode(dest, srcMode | 128, cb);
33741
- }
33742
- function setDestTimestampsAndMode(srcMode, src, dest, cb) {
33743
- setDestTimestamps(src, dest, (err) => {
33744
- if (err)
33745
- return cb(err);
33746
- return setDestMode(dest, srcMode, cb);
33747
- });
33748
- }
33749
- function setDestMode(dest, srcMode, cb) {
33750
- return fs.chmod(dest, srcMode, cb);
33751
- }
33752
- function setDestTimestamps(src, dest, cb) {
33753
- fs.stat(src, (err, updatedSrcStat) => {
33754
- if (err)
33755
- return cb(err);
33756
- return utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime, cb);
33757
- });
33758
- }
33759
- function onDir(srcStat, destStat, src, dest, opts, cb) {
33760
- if (!destStat)
33761
- return mkDirAndCopy(srcStat.mode, src, dest, opts, cb);
33762
- return copyDir(src, dest, opts, cb);
33763
- }
33764
- function mkDirAndCopy(srcMode, src, dest, opts, cb) {
33765
- fs.mkdir(dest, (err) => {
33766
- if (err)
33767
- return cb(err);
33768
- copyDir(src, dest, opts, (err2) => {
33769
- if (err2)
33770
- return cb(err2);
33771
- return setDestMode(dest, srcMode, cb);
33772
- });
33773
- });
33774
- }
33775
- function copyDir(src, dest, opts, cb) {
33776
- fs.readdir(src, (err, items) => {
33777
- if (err)
33778
- return cb(err);
33779
- return copyDirItems(items, src, dest, opts, cb);
33780
- });
33781
- }
33782
- function copyDirItems(items, src, dest, opts, cb) {
33783
- const item = items.pop();
33784
- if (!item)
33785
- return cb();
33786
- return copyDirItem(items, item, src, dest, opts, cb);
33787
- }
33788
- function copyDirItem(items, item, src, dest, opts, cb) {
33789
- const srcItem = path.join(src, item);
33790
- const destItem = path.join(dest, item);
33791
- runFilter(srcItem, destItem, opts, (err, include) => {
33792
- if (err)
33793
- return cb(err);
33794
- if (!include)
33795
- return copyDirItems(items, src, dest, opts, cb);
33796
- stat.checkPaths(srcItem, destItem, "copy", opts, (err2, stats) => {
33797
- if (err2)
33798
- return cb(err2);
33799
- const { destStat } = stats;
33800
- getStats(destStat, srcItem, destItem, opts, (err3) => {
33801
- if (err3)
33802
- return cb(err3);
33803
- return copyDirItems(items, src, dest, opts, cb);
33804
- });
33805
- });
33806
- });
33807
34017
  }
33808
- function onLink(destStat, src, dest, opts, cb) {
33809
- fs.readlink(src, (err, resolvedSrc) => {
33810
- if (err)
33811
- return cb(err);
33812
- if (opts.dereference) {
33813
- resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
34018
+ async function copyFile(srcStat, src, dest, opts) {
34019
+ await fs.copyFile(src, dest);
34020
+ if (opts.preserveTimestamps) {
34021
+ if (fileIsNotWritable(srcStat.mode)) {
34022
+ await makeFileWritable(dest, srcStat.mode);
33814
34023
  }
33815
- if (!destStat) {
33816
- return fs.symlink(resolvedSrc, dest, cb);
33817
- } else {
33818
- fs.readlink(dest, (err2, resolvedDest) => {
33819
- if (err2) {
33820
- if (err2.code === "EINVAL" || err2.code === "UNKNOWN")
33821
- return fs.symlink(resolvedSrc, dest, cb);
33822
- return cb(err2);
33823
- }
33824
- if (opts.dereference) {
33825
- resolvedDest = path.resolve(process.cwd(), resolvedDest);
33826
- }
33827
- if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
33828
- return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
33829
- }
33830
- if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
33831
- return cb(new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`));
33832
- }
33833
- return copyLink(resolvedSrc, dest, cb);
33834
- });
33835
- }
33836
- });
34024
+ const updatedSrcStat = await fs.stat(src);
34025
+ await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
34026
+ }
34027
+ return fs.chmod(dest, srcStat.mode);
34028
+ }
34029
+ function fileIsNotWritable(srcMode) {
34030
+ return (srcMode & 128) === 0;
33837
34031
  }
33838
- function copyLink(resolvedSrc, dest, cb) {
33839
- fs.unlink(dest, (err) => {
33840
- if (err)
33841
- return cb(err);
33842
- return fs.symlink(resolvedSrc, dest, cb);
33843
- });
34032
+ function makeFileWritable(dest, srcMode) {
34033
+ return fs.chmod(dest, srcMode | 128);
34034
+ }
34035
+ async function onDir(srcStat, destStat, src, dest, opts) {
34036
+ if (!destStat) {
34037
+ await fs.mkdir(dest);
34038
+ }
34039
+ const items = await fs.readdir(src);
34040
+ await Promise.all(items.map(async (item) => {
34041
+ const srcItem = path.join(src, item);
34042
+ const destItem = path.join(dest, item);
34043
+ const include = await runFilter(srcItem, destItem, opts);
34044
+ if (!include)
34045
+ return;
34046
+ const { destStat: destStat2 } = await stat.checkPaths(srcItem, destItem, "copy", opts);
34047
+ return getStatsAndPerformCopy(destStat2, srcItem, destItem, opts);
34048
+ }));
34049
+ if (!destStat) {
34050
+ await fs.chmod(dest, srcStat.mode);
34051
+ }
34052
+ }
34053
+ async function onLink(destStat, src, dest, opts) {
34054
+ let resolvedSrc = await fs.readlink(src);
34055
+ if (opts.dereference) {
34056
+ resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
34057
+ }
34058
+ if (!destStat) {
34059
+ return fs.symlink(resolvedSrc, dest);
34060
+ }
34061
+ let resolvedDest = null;
34062
+ try {
34063
+ resolvedDest = await fs.readlink(dest);
34064
+ } catch (e) {
34065
+ if (e.code === "EINVAL" || e.code === "UNKNOWN")
34066
+ return fs.symlink(resolvedSrc, dest);
34067
+ throw e;
34068
+ }
34069
+ if (opts.dereference) {
34070
+ resolvedDest = path.resolve(process.cwd(), resolvedDest);
34071
+ }
34072
+ if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
34073
+ throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
34074
+ }
34075
+ if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
34076
+ throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
34077
+ }
34078
+ await fs.unlink(dest);
34079
+ return fs.symlink(resolvedSrc, dest);
33844
34080
  }
33845
34081
  module2.exports = copy;
33846
34082
  }
33847
34083
  });
33848
34084
 
33849
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/copy/copy-sync.js
34085
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy-sync.js
33850
34086
  var require_copy_sync = __commonJS({
33851
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module2) {
34087
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module2) {
33852
34088
  "use strict";
33853
34089
  var fs = require_graceful_fs();
33854
34090
  var path = require("path");
@@ -33987,11 +34223,11 @@ var require_copy_sync = __commonJS({
33987
34223
  }
33988
34224
  });
33989
34225
 
33990
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/copy/index.js
34226
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/index.js
33991
34227
  var require_copy2 = __commonJS({
33992
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/copy/index.js"(exports, module2) {
34228
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/index.js"(exports, module2) {
33993
34229
  "use strict";
33994
- var u = require_universalify().fromCallback;
34230
+ var u = require_universalify().fromPromise;
33995
34231
  module2.exports = {
33996
34232
  copy: u(require_copy()),
33997
34233
  copySync: require_copy_sync()
@@ -33999,9 +34235,9 @@ var require_copy2 = __commonJS({
33999
34235
  }
34000
34236
  });
34001
34237
 
34002
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/remove/index.js
34238
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/remove/index.js
34003
34239
  var require_remove = __commonJS({
34004
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/remove/index.js"(exports, module2) {
34240
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/remove/index.js"(exports, module2) {
34005
34241
  "use strict";
34006
34242
  var fs = require_graceful_fs();
34007
34243
  var u = require_universalify().fromCallback;
@@ -34018,9 +34254,9 @@ var require_remove = __commonJS({
34018
34254
  }
34019
34255
  });
34020
34256
 
34021
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/empty/index.js
34257
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/empty/index.js
34022
34258
  var require_empty2 = __commonJS({
34023
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/empty/index.js"(exports, module2) {
34259
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/empty/index.js"(exports, module2) {
34024
34260
  "use strict";
34025
34261
  var u = require_universalify().fromPromise;
34026
34262
  var fs = require_fs2();
@@ -34057,47 +34293,40 @@ var require_empty2 = __commonJS({
34057
34293
  }
34058
34294
  });
34059
34295
 
34060
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/file.js
34296
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/file.js
34061
34297
  var require_file = __commonJS({
34062
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
34298
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
34063
34299
  "use strict";
34064
- var u = require_universalify().fromCallback;
34300
+ var u = require_universalify().fromPromise;
34065
34301
  var path = require("path");
34066
- var fs = require_graceful_fs();
34302
+ var fs = require_fs2();
34067
34303
  var mkdir = require_mkdirs();
34068
- function createFile(file, callback) {
34069
- function makeFile() {
34070
- fs.writeFile(file, "", (err) => {
34071
- if (err)
34072
- return callback(err);
34073
- callback();
34074
- });
34304
+ async function createFile(file) {
34305
+ let stats;
34306
+ try {
34307
+ stats = await fs.stat(file);
34308
+ } catch {
34309
+ }
34310
+ if (stats && stats.isFile())
34311
+ return;
34312
+ const dir = path.dirname(file);
34313
+ let dirStats = null;
34314
+ try {
34315
+ dirStats = await fs.stat(dir);
34316
+ } catch (err) {
34317
+ if (err.code === "ENOENT") {
34318
+ await mkdir.mkdirs(dir);
34319
+ await fs.writeFile(file, "");
34320
+ return;
34321
+ } else {
34322
+ throw err;
34323
+ }
34324
+ }
34325
+ if (dirStats.isDirectory()) {
34326
+ await fs.writeFile(file, "");
34327
+ } else {
34328
+ await fs.readdir(dir);
34075
34329
  }
34076
- fs.stat(file, (err, stats) => {
34077
- if (!err && stats.isFile())
34078
- return callback();
34079
- const dir = path.dirname(file);
34080
- fs.stat(dir, (err2, stats2) => {
34081
- if (err2) {
34082
- if (err2.code === "ENOENT") {
34083
- return mkdir.mkdirs(dir, (err3) => {
34084
- if (err3)
34085
- return callback(err3);
34086
- makeFile();
34087
- });
34088
- }
34089
- return callback(err2);
34090
- }
34091
- if (stats2.isDirectory())
34092
- makeFile();
34093
- else {
34094
- fs.readdir(dir, (err3) => {
34095
- if (err3)
34096
- return callback(err3);
34097
- });
34098
- }
34099
- });
34100
- });
34101
34330
  }
34102
34331
  function createFileSync(file) {
34103
34332
  let stats;
@@ -34127,46 +34356,37 @@ var require_file = __commonJS({
34127
34356
  }
34128
34357
  });
34129
34358
 
34130
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/link.js
34359
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/link.js
34131
34360
  var require_link = __commonJS({
34132
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
34361
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
34133
34362
  "use strict";
34134
- var u = require_universalify().fromCallback;
34363
+ var u = require_universalify().fromPromise;
34135
34364
  var path = require("path");
34136
- var fs = require_graceful_fs();
34365
+ var fs = require_fs2();
34137
34366
  var mkdir = require_mkdirs();
34138
- var pathExists = require_path_exists().pathExists;
34367
+ var { pathExists } = require_path_exists();
34139
34368
  var { areIdentical } = require_stat();
34140
- function createLink(srcpath, dstpath, callback) {
34141
- function makeLink(srcpath2, dstpath2) {
34142
- fs.link(srcpath2, dstpath2, (err) => {
34143
- if (err)
34144
- return callback(err);
34145
- callback(null);
34146
- });
34369
+ async function createLink(srcpath, dstpath) {
34370
+ let dstStat;
34371
+ try {
34372
+ dstStat = await fs.lstat(dstpath);
34373
+ } catch {
34147
34374
  }
34148
- fs.lstat(dstpath, (_, dstStat) => {
34149
- fs.lstat(srcpath, (err, srcStat) => {
34150
- if (err) {
34151
- err.message = err.message.replace("lstat", "ensureLink");
34152
- return callback(err);
34153
- }
34154
- if (dstStat && areIdentical(srcStat, dstStat))
34155
- return callback(null);
34156
- const dir = path.dirname(dstpath);
34157
- pathExists(dir, (err2, dirExists) => {
34158
- if (err2)
34159
- return callback(err2);
34160
- if (dirExists)
34161
- return makeLink(srcpath, dstpath);
34162
- mkdir.mkdirs(dir, (err3) => {
34163
- if (err3)
34164
- return callback(err3);
34165
- makeLink(srcpath, dstpath);
34166
- });
34167
- });
34168
- });
34169
- });
34375
+ let srcStat;
34376
+ try {
34377
+ srcStat = await fs.lstat(srcpath);
34378
+ } catch (err) {
34379
+ err.message = err.message.replace("lstat", "ensureLink");
34380
+ throw err;
34381
+ }
34382
+ if (dstStat && areIdentical(srcStat, dstStat))
34383
+ return;
34384
+ const dir = path.dirname(dstpath);
34385
+ const dirExists = await pathExists(dir);
34386
+ if (!dirExists) {
34387
+ await mkdir.mkdirs(dir);
34388
+ }
34389
+ await fs.link(srcpath, dstpath);
34170
34390
  }
34171
34391
  function createLinkSync(srcpath, dstpath) {
34172
34392
  let dstStat;
@@ -34196,109 +34416,102 @@ var require_link = __commonJS({
34196
34416
  }
34197
34417
  });
34198
34418
 
34199
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/symlink-paths.js
34419
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-paths.js
34200
34420
  var require_symlink_paths = __commonJS({
34201
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
34421
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
34202
34422
  "use strict";
34203
34423
  var path = require("path");
34204
- var fs = require_graceful_fs();
34205
- var pathExists = require_path_exists().pathExists;
34206
- function symlinkPaths(srcpath, dstpath, callback) {
34424
+ var fs = require_fs2();
34425
+ var { pathExists } = require_path_exists();
34426
+ var u = require_universalify().fromPromise;
34427
+ async function symlinkPaths(srcpath, dstpath) {
34207
34428
  if (path.isAbsolute(srcpath)) {
34208
- return fs.lstat(srcpath, (err) => {
34209
- if (err) {
34210
- err.message = err.message.replace("lstat", "ensureSymlink");
34211
- return callback(err);
34212
- }
34213
- return callback(null, {
34214
- toCwd: srcpath,
34215
- toDst: srcpath
34216
- });
34217
- });
34218
- } else {
34219
- const dstdir = path.dirname(dstpath);
34220
- const relativeToDst = path.join(dstdir, srcpath);
34221
- return pathExists(relativeToDst, (err, exists) => {
34222
- if (err)
34223
- return callback(err);
34224
- if (exists) {
34225
- return callback(null, {
34226
- toCwd: relativeToDst,
34227
- toDst: srcpath
34228
- });
34229
- } else {
34230
- return fs.lstat(srcpath, (err2) => {
34231
- if (err2) {
34232
- err2.message = err2.message.replace("lstat", "ensureSymlink");
34233
- return callback(err2);
34234
- }
34235
- return callback(null, {
34236
- toCwd: srcpath,
34237
- toDst: path.relative(dstdir, srcpath)
34238
- });
34239
- });
34240
- }
34241
- });
34429
+ try {
34430
+ await fs.lstat(srcpath);
34431
+ } catch (err) {
34432
+ err.message = err.message.replace("lstat", "ensureSymlink");
34433
+ throw err;
34434
+ }
34435
+ return {
34436
+ toCwd: srcpath,
34437
+ toDst: srcpath
34438
+ };
34439
+ }
34440
+ const dstdir = path.dirname(dstpath);
34441
+ const relativeToDst = path.join(dstdir, srcpath);
34442
+ const exists = await pathExists(relativeToDst);
34443
+ if (exists) {
34444
+ return {
34445
+ toCwd: relativeToDst,
34446
+ toDst: srcpath
34447
+ };
34448
+ }
34449
+ try {
34450
+ await fs.lstat(srcpath);
34451
+ } catch (err) {
34452
+ err.message = err.message.replace("lstat", "ensureSymlink");
34453
+ throw err;
34242
34454
  }
34455
+ return {
34456
+ toCwd: srcpath,
34457
+ toDst: path.relative(dstdir, srcpath)
34458
+ };
34243
34459
  }
34244
34460
  function symlinkPathsSync(srcpath, dstpath) {
34245
- let exists;
34246
34461
  if (path.isAbsolute(srcpath)) {
34247
- exists = fs.existsSync(srcpath);
34248
- if (!exists)
34462
+ const exists2 = fs.existsSync(srcpath);
34463
+ if (!exists2)
34249
34464
  throw new Error("absolute srcpath does not exist");
34250
34465
  return {
34251
34466
  toCwd: srcpath,
34252
34467
  toDst: srcpath
34253
34468
  };
34254
- } else {
34255
- const dstdir = path.dirname(dstpath);
34256
- const relativeToDst = path.join(dstdir, srcpath);
34257
- exists = fs.existsSync(relativeToDst);
34258
- if (exists) {
34259
- return {
34260
- toCwd: relativeToDst,
34261
- toDst: srcpath
34262
- };
34263
- } else {
34264
- exists = fs.existsSync(srcpath);
34265
- if (!exists)
34266
- throw new Error("relative srcpath does not exist");
34267
- return {
34268
- toCwd: srcpath,
34269
- toDst: path.relative(dstdir, srcpath)
34270
- };
34271
- }
34272
34469
  }
34470
+ const dstdir = path.dirname(dstpath);
34471
+ const relativeToDst = path.join(dstdir, srcpath);
34472
+ const exists = fs.existsSync(relativeToDst);
34473
+ if (exists) {
34474
+ return {
34475
+ toCwd: relativeToDst,
34476
+ toDst: srcpath
34477
+ };
34478
+ }
34479
+ const srcExists = fs.existsSync(srcpath);
34480
+ if (!srcExists)
34481
+ throw new Error("relative srcpath does not exist");
34482
+ return {
34483
+ toCwd: srcpath,
34484
+ toDst: path.relative(dstdir, srcpath)
34485
+ };
34273
34486
  }
34274
34487
  module2.exports = {
34275
- symlinkPaths,
34488
+ symlinkPaths: u(symlinkPaths),
34276
34489
  symlinkPathsSync
34277
34490
  };
34278
34491
  }
34279
34492
  });
34280
34493
 
34281
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/symlink-type.js
34494
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-type.js
34282
34495
  var require_symlink_type = __commonJS({
34283
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module2) {
34496
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module2) {
34284
34497
  "use strict";
34285
- var fs = require_graceful_fs();
34286
- function symlinkType(srcpath, type, callback) {
34287
- callback = typeof type === "function" ? type : callback;
34288
- type = typeof type === "function" ? false : type;
34498
+ var fs = require_fs2();
34499
+ var u = require_universalify().fromPromise;
34500
+ async function symlinkType(srcpath, type) {
34289
34501
  if (type)
34290
- return callback(null, type);
34291
- fs.lstat(srcpath, (err, stats) => {
34292
- if (err)
34293
- return callback(null, "file");
34294
- type = stats && stats.isDirectory() ? "dir" : "file";
34295
- callback(null, type);
34296
- });
34502
+ return type;
34503
+ let stats;
34504
+ try {
34505
+ stats = await fs.lstat(srcpath);
34506
+ } catch {
34507
+ return "file";
34508
+ }
34509
+ return stats && stats.isDirectory() ? "dir" : "file";
34297
34510
  }
34298
34511
  function symlinkTypeSync(srcpath, type) {
34299
- let stats;
34300
34512
  if (type)
34301
34513
  return type;
34514
+ let stats;
34302
34515
  try {
34303
34516
  stats = fs.lstatSync(srcpath);
34304
34517
  } catch {
@@ -34307,69 +34520,46 @@ var require_symlink_type = __commonJS({
34307
34520
  return stats && stats.isDirectory() ? "dir" : "file";
34308
34521
  }
34309
34522
  module2.exports = {
34310
- symlinkType,
34523
+ symlinkType: u(symlinkType),
34311
34524
  symlinkTypeSync
34312
34525
  };
34313
34526
  }
34314
34527
  });
34315
34528
 
34316
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/symlink.js
34529
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink.js
34317
34530
  var require_symlink = __commonJS({
34318
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
34531
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
34319
34532
  "use strict";
34320
- var u = require_universalify().fromCallback;
34533
+ var u = require_universalify().fromPromise;
34321
34534
  var path = require("path");
34322
34535
  var fs = require_fs2();
34323
- var _mkdirs = require_mkdirs();
34324
- var mkdirs = _mkdirs.mkdirs;
34325
- var mkdirsSync = _mkdirs.mkdirsSync;
34326
- var _symlinkPaths = require_symlink_paths();
34327
- var symlinkPaths = _symlinkPaths.symlinkPaths;
34328
- var symlinkPathsSync = _symlinkPaths.symlinkPathsSync;
34329
- var _symlinkType = require_symlink_type();
34330
- var symlinkType = _symlinkType.symlinkType;
34331
- var symlinkTypeSync = _symlinkType.symlinkTypeSync;
34332
- var pathExists = require_path_exists().pathExists;
34536
+ var { mkdirs, mkdirsSync } = require_mkdirs();
34537
+ var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
34538
+ var { symlinkType, symlinkTypeSync } = require_symlink_type();
34539
+ var { pathExists } = require_path_exists();
34333
34540
  var { areIdentical } = require_stat();
34334
- function createSymlink(srcpath, dstpath, type, callback) {
34335
- callback = typeof type === "function" ? type : callback;
34336
- type = typeof type === "function" ? false : type;
34337
- fs.lstat(dstpath, (err, stats) => {
34338
- if (!err && stats.isSymbolicLink()) {
34339
- Promise.all([
34340
- fs.stat(srcpath),
34341
- fs.stat(dstpath)
34342
- ]).then(([srcStat, dstStat]) => {
34343
- if (areIdentical(srcStat, dstStat))
34344
- return callback(null);
34345
- _createSymlink(srcpath, dstpath, type, callback);
34346
- });
34347
- } else
34348
- _createSymlink(srcpath, dstpath, type, callback);
34349
- });
34350
- }
34351
- function _createSymlink(srcpath, dstpath, type, callback) {
34352
- symlinkPaths(srcpath, dstpath, (err, relative) => {
34353
- if (err)
34354
- return callback(err);
34355
- srcpath = relative.toDst;
34356
- symlinkType(relative.toCwd, type, (err2, type2) => {
34357
- if (err2)
34358
- return callback(err2);
34359
- const dir = path.dirname(dstpath);
34360
- pathExists(dir, (err3, dirExists) => {
34361
- if (err3)
34362
- return callback(err3);
34363
- if (dirExists)
34364
- return fs.symlink(srcpath, dstpath, type2, callback);
34365
- mkdirs(dir, (err4) => {
34366
- if (err4)
34367
- return callback(err4);
34368
- fs.symlink(srcpath, dstpath, type2, callback);
34369
- });
34370
- });
34371
- });
34372
- });
34541
+ async function createSymlink(srcpath, dstpath, type) {
34542
+ let stats;
34543
+ try {
34544
+ stats = await fs.lstat(dstpath);
34545
+ } catch {
34546
+ }
34547
+ if (stats && stats.isSymbolicLink()) {
34548
+ const [srcStat, dstStat] = await Promise.all([
34549
+ fs.stat(srcpath),
34550
+ fs.stat(dstpath)
34551
+ ]);
34552
+ if (areIdentical(srcStat, dstStat))
34553
+ return;
34554
+ }
34555
+ const relative = await symlinkPaths(srcpath, dstpath);
34556
+ srcpath = relative.toDst;
34557
+ const toType = await symlinkType(relative.toCwd, type);
34558
+ const dir = path.dirname(dstpath);
34559
+ if (!await pathExists(dir)) {
34560
+ await mkdirs(dir);
34561
+ }
34562
+ return fs.symlink(srcpath, dstpath, toType);
34373
34563
  }
34374
34564
  function createSymlinkSync(srcpath, dstpath, type) {
34375
34565
  let stats;
@@ -34400,9 +34590,9 @@ var require_symlink = __commonJS({
34400
34590
  }
34401
34591
  });
34402
34592
 
34403
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/index.js
34593
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/index.js
34404
34594
  var require_ensure = __commonJS({
34405
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/index.js"(exports, module2) {
34595
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/index.js"(exports, module2) {
34406
34596
  "use strict";
34407
34597
  var { createFile, createFileSync } = require_file();
34408
34598
  var { createLink, createLinkSync } = require_link();
@@ -34427,6 +34617,37 @@ var require_ensure = __commonJS({
34427
34617
  }
34428
34618
  });
34429
34619
 
34620
+ // node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
34621
+ var require_universalify2 = __commonJS({
34622
+ "node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
34623
+ "use strict";
34624
+ exports.fromCallback = function(fn) {
34625
+ return Object.defineProperty(function(...args) {
34626
+ if (typeof args[args.length - 1] === "function")
34627
+ fn.apply(this, args);
34628
+ else {
34629
+ return new Promise((resolve, reject) => {
34630
+ fn.call(
34631
+ this,
34632
+ ...args,
34633
+ (err, res) => err != null ? reject(err) : resolve(res)
34634
+ );
34635
+ });
34636
+ }
34637
+ }, "name", { value: fn.name });
34638
+ };
34639
+ exports.fromPromise = function(fn) {
34640
+ return Object.defineProperty(function(...args) {
34641
+ const cb = args[args.length - 1];
34642
+ if (typeof cb !== "function")
34643
+ return fn.apply(this, args);
34644
+ else
34645
+ fn.apply(this, args.slice(0, -1)).then((r) => cb(null, r), cb);
34646
+ }, "name", { value: fn.name });
34647
+ };
34648
+ }
34649
+ });
34650
+
34430
34651
  // node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js
34431
34652
  var require_utils4 = __commonJS({
34432
34653
  "node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
@@ -34453,7 +34674,7 @@ var require_jsonfile = __commonJS({
34453
34674
  } catch (_) {
34454
34675
  _fs = require("fs");
34455
34676
  }
34456
- var universalify = require_universalify();
34677
+ var universalify = require_universalify2();
34457
34678
  var { stringify, stripBom } = require_utils4();
34458
34679
  async function _readFile(file, options = {}) {
34459
34680
  if (typeof options === "string") {
@@ -34517,9 +34738,9 @@ var require_jsonfile = __commonJS({
34517
34738
  }
34518
34739
  });
34519
34740
 
34520
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/json/jsonfile.js
34741
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/jsonfile.js
34521
34742
  var require_jsonfile2 = __commonJS({
34522
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/json/jsonfile.js"(exports, module2) {
34743
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/jsonfile.js"(exports, module2) {
34523
34744
  "use strict";
34524
34745
  var jsonFile = require_jsonfile();
34525
34746
  module2.exports = {
@@ -34532,39 +34753,27 @@ var require_jsonfile2 = __commonJS({
34532
34753
  }
34533
34754
  });
34534
34755
 
34535
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/output-file/index.js
34756
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/output-file/index.js
34536
34757
  var require_output_file = __commonJS({
34537
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/output-file/index.js"(exports, module2) {
34758
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/output-file/index.js"(exports, module2) {
34538
34759
  "use strict";
34539
- var u = require_universalify().fromCallback;
34540
- var fs = require_graceful_fs();
34760
+ var u = require_universalify().fromPromise;
34761
+ var fs = require_fs2();
34541
34762
  var path = require("path");
34542
34763
  var mkdir = require_mkdirs();
34543
34764
  var pathExists = require_path_exists().pathExists;
34544
- function outputFile(file, data, encoding, callback) {
34545
- if (typeof encoding === "function") {
34546
- callback = encoding;
34547
- encoding = "utf8";
34548
- }
34765
+ async function outputFile(file, data, encoding = "utf-8") {
34549
34766
  const dir = path.dirname(file);
34550
- pathExists(dir, (err, itDoes) => {
34551
- if (err)
34552
- return callback(err);
34553
- if (itDoes)
34554
- return fs.writeFile(file, data, encoding, callback);
34555
- mkdir.mkdirs(dir, (err2) => {
34556
- if (err2)
34557
- return callback(err2);
34558
- fs.writeFile(file, data, encoding, callback);
34559
- });
34560
- });
34767
+ if (!await pathExists(dir)) {
34768
+ await mkdir.mkdirs(dir);
34769
+ }
34770
+ return fs.writeFile(file, data, encoding);
34561
34771
  }
34562
34772
  function outputFileSync(file, ...args) {
34563
34773
  const dir = path.dirname(file);
34564
- if (fs.existsSync(dir)) {
34565
- return fs.writeFileSync(file, ...args);
34774
+ if (!fs.existsSync(dir)) {
34775
+ mkdir.mkdirsSync(dir);
34566
34776
  }
34567
- mkdir.mkdirsSync(dir);
34568
34777
  fs.writeFileSync(file, ...args);
34569
34778
  }
34570
34779
  module2.exports = {
@@ -34574,9 +34783,9 @@ var require_output_file = __commonJS({
34574
34783
  }
34575
34784
  });
34576
34785
 
34577
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/json/output-json.js
34786
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/output-json.js
34578
34787
  var require_output_json = __commonJS({
34579
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/json/output-json.js"(exports, module2) {
34788
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/output-json.js"(exports, module2) {
34580
34789
  "use strict";
34581
34790
  var { stringify } = require_utils4();
34582
34791
  var { outputFile } = require_output_file();
@@ -34588,9 +34797,9 @@ var require_output_json = __commonJS({
34588
34797
  }
34589
34798
  });
34590
34799
 
34591
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/json/output-json-sync.js
34800
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/output-json-sync.js
34592
34801
  var require_output_json_sync = __commonJS({
34593
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module2) {
34802
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module2) {
34594
34803
  "use strict";
34595
34804
  var { stringify } = require_utils4();
34596
34805
  var { outputFileSync } = require_output_file();
@@ -34602,9 +34811,9 @@ var require_output_json_sync = __commonJS({
34602
34811
  }
34603
34812
  });
34604
34813
 
34605
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/json/index.js
34814
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/index.js
34606
34815
  var require_json2 = __commonJS({
34607
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/json/index.js"(exports, module2) {
34816
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/index.js"(exports, module2) {
34608
34817
  "use strict";
34609
34818
  var u = require_universalify().fromPromise;
34610
34819
  var jsonFile = require_jsonfile2();
@@ -34620,92 +34829,61 @@ var require_json2 = __commonJS({
34620
34829
  }
34621
34830
  });
34622
34831
 
34623
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/move/move.js
34832
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move.js
34624
34833
  var require_move = __commonJS({
34625
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/move/move.js"(exports, module2) {
34834
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move.js"(exports, module2) {
34626
34835
  "use strict";
34627
- var fs = require_graceful_fs();
34836
+ var fs = require_fs2();
34628
34837
  var path = require("path");
34629
- var copy = require_copy2().copy;
34630
- var remove = require_remove().remove;
34631
- var mkdirp = require_mkdirs().mkdirp;
34632
- var pathExists = require_path_exists().pathExists;
34838
+ var { copy } = require_copy2();
34839
+ var { remove } = require_remove();
34840
+ var { mkdirp } = require_mkdirs();
34841
+ var { pathExists } = require_path_exists();
34633
34842
  var stat = require_stat();
34634
- function move(src, dest, opts, cb) {
34635
- if (typeof opts === "function") {
34636
- cb = opts;
34637
- opts = {};
34638
- }
34639
- opts = opts || {};
34843
+ async function move(src, dest, opts = {}) {
34640
34844
  const overwrite = opts.overwrite || opts.clobber || false;
34641
- stat.checkPaths(src, dest, "move", opts, (err, stats) => {
34642
- if (err)
34643
- return cb(err);
34644
- const { srcStat, isChangingCase = false } = stats;
34645
- stat.checkParentPaths(src, srcStat, dest, "move", (err2) => {
34646
- if (err2)
34647
- return cb(err2);
34648
- if (isParentRoot(dest))
34649
- return doRename(src, dest, overwrite, isChangingCase, cb);
34650
- mkdirp(path.dirname(dest), (err3) => {
34651
- if (err3)
34652
- return cb(err3);
34653
- return doRename(src, dest, overwrite, isChangingCase, cb);
34654
- });
34655
- });
34656
- });
34657
- }
34658
- function isParentRoot(dest) {
34659
- const parent = path.dirname(dest);
34660
- const parsedPath = path.parse(parent);
34661
- return parsedPath.root === parent;
34662
- }
34663
- function doRename(src, dest, overwrite, isChangingCase, cb) {
34664
- if (isChangingCase)
34665
- return rename(src, dest, overwrite, cb);
34666
- if (overwrite) {
34667
- return remove(dest, (err) => {
34668
- if (err)
34669
- return cb(err);
34670
- return rename(src, dest, overwrite, cb);
34671
- });
34845
+ const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
34846
+ await stat.checkParentPaths(src, srcStat, dest, "move");
34847
+ const destParent = path.dirname(dest);
34848
+ const parsedParentPath = path.parse(destParent);
34849
+ if (parsedParentPath.root !== destParent) {
34850
+ await mkdirp(destParent);
34672
34851
  }
34673
- pathExists(dest, (err, destExists) => {
34674
- if (err)
34675
- return cb(err);
34676
- if (destExists)
34677
- return cb(new Error("dest already exists."));
34678
- return rename(src, dest, overwrite, cb);
34679
- });
34852
+ return doRename(src, dest, overwrite, isChangingCase);
34680
34853
  }
34681
- function rename(src, dest, overwrite, cb) {
34682
- fs.rename(src, dest, (err) => {
34683
- if (!err)
34684
- return cb();
34685
- if (err.code !== "EXDEV")
34686
- return cb(err);
34687
- return moveAcrossDevice(src, dest, overwrite, cb);
34688
- });
34854
+ async function doRename(src, dest, overwrite, isChangingCase) {
34855
+ if (!isChangingCase) {
34856
+ if (overwrite) {
34857
+ await remove(dest);
34858
+ } else if (await pathExists(dest)) {
34859
+ throw new Error("dest already exists.");
34860
+ }
34861
+ }
34862
+ try {
34863
+ await fs.rename(src, dest);
34864
+ } catch (err) {
34865
+ if (err.code !== "EXDEV") {
34866
+ throw err;
34867
+ }
34868
+ await moveAcrossDevice(src, dest, overwrite);
34869
+ }
34689
34870
  }
34690
- function moveAcrossDevice(src, dest, overwrite, cb) {
34871
+ async function moveAcrossDevice(src, dest, overwrite) {
34691
34872
  const opts = {
34692
34873
  overwrite,
34693
34874
  errorOnExist: true,
34694
34875
  preserveTimestamps: true
34695
34876
  };
34696
- copy(src, dest, opts, (err) => {
34697
- if (err)
34698
- return cb(err);
34699
- return remove(src, cb);
34700
- });
34877
+ await copy(src, dest, opts);
34878
+ return remove(src);
34701
34879
  }
34702
34880
  module2.exports = move;
34703
34881
  }
34704
34882
  });
34705
34883
 
34706
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/move/move-sync.js
34884
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move-sync.js
34707
34885
  var require_move_sync = __commonJS({
34708
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/move/move-sync.js"(exports, module2) {
34886
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move-sync.js"(exports, module2) {
34709
34887
  "use strict";
34710
34888
  var fs = require_graceful_fs();
34711
34889
  var path = require("path");
@@ -34760,11 +34938,11 @@ var require_move_sync = __commonJS({
34760
34938
  }
34761
34939
  });
34762
34940
 
34763
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/move/index.js
34941
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/index.js
34764
34942
  var require_move2 = __commonJS({
34765
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/move/index.js"(exports, module2) {
34943
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/index.js"(exports, module2) {
34766
34944
  "use strict";
34767
- var u = require_universalify().fromCallback;
34945
+ var u = require_universalify().fromPromise;
34768
34946
  module2.exports = {
34769
34947
  move: u(require_move()),
34770
34948
  moveSync: require_move_sync()
@@ -34772,9 +34950,9 @@ var require_move2 = __commonJS({
34772
34950
  }
34773
34951
  });
34774
34952
 
34775
- // node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/index.js
34953
+ // node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/index.js
34776
34954
  var require_lib4 = __commonJS({
34777
- "node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/index.js"(exports, module2) {
34955
+ "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/index.js"(exports, module2) {
34778
34956
  "use strict";
34779
34957
  module2.exports = {
34780
34958
  // Export promiseified graceful-fs: