@vercel/build-utils 14.1.0 → 14.2.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.
package/dist/index.js CHANGED
@@ -341,7 +341,7 @@ var require_BufferList = __commonJS({
341
341
  this.head = this.tail = null;
342
342
  this.length = 0;
343
343
  };
344
- BufferList.prototype.join = function join9(s) {
344
+ BufferList.prototype.join = function join10(s) {
345
345
  if (this.length === 0)
346
346
  return "";
347
347
  var p = this.head;
@@ -2422,56 +2422,56 @@ var require_polyfills = __commonJS({
2422
2422
  }
2423
2423
  var chdir;
2424
2424
  module2.exports = patch;
2425
- function patch(fs12) {
2425
+ function patch(fs11) {
2426
2426
  if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
2427
- patchLchmod(fs12);
2428
- }
2429
- if (!fs12.lutimes) {
2430
- patchLutimes(fs12);
2431
- }
2432
- fs12.chown = chownFix(fs12.chown);
2433
- fs12.fchown = chownFix(fs12.fchown);
2434
- fs12.lchown = chownFix(fs12.lchown);
2435
- fs12.chmod = chmodFix(fs12.chmod);
2436
- fs12.fchmod = chmodFix(fs12.fchmod);
2437
- fs12.lchmod = chmodFix(fs12.lchmod);
2438
- fs12.chownSync = chownFixSync(fs12.chownSync);
2439
- fs12.fchownSync = chownFixSync(fs12.fchownSync);
2440
- fs12.lchownSync = chownFixSync(fs12.lchownSync);
2441
- fs12.chmodSync = chmodFixSync(fs12.chmodSync);
2442
- fs12.fchmodSync = chmodFixSync(fs12.fchmodSync);
2443
- fs12.lchmodSync = chmodFixSync(fs12.lchmodSync);
2444
- fs12.stat = statFix(fs12.stat);
2445
- fs12.fstat = statFix(fs12.fstat);
2446
- fs12.lstat = statFix(fs12.lstat);
2447
- fs12.statSync = statFixSync(fs12.statSync);
2448
- fs12.fstatSync = statFixSync(fs12.fstatSync);
2449
- fs12.lstatSync = statFixSync(fs12.lstatSync);
2450
- if (fs12.chmod && !fs12.lchmod) {
2451
- fs12.lchmod = function(path8, mode, cb) {
2427
+ patchLchmod(fs11);
2428
+ }
2429
+ if (!fs11.lutimes) {
2430
+ patchLutimes(fs11);
2431
+ }
2432
+ fs11.chown = chownFix(fs11.chown);
2433
+ fs11.fchown = chownFix(fs11.fchown);
2434
+ fs11.lchown = chownFix(fs11.lchown);
2435
+ fs11.chmod = chmodFix(fs11.chmod);
2436
+ fs11.fchmod = chmodFix(fs11.fchmod);
2437
+ fs11.lchmod = chmodFix(fs11.lchmod);
2438
+ fs11.chownSync = chownFixSync(fs11.chownSync);
2439
+ fs11.fchownSync = chownFixSync(fs11.fchownSync);
2440
+ fs11.lchownSync = chownFixSync(fs11.lchownSync);
2441
+ fs11.chmodSync = chmodFixSync(fs11.chmodSync);
2442
+ fs11.fchmodSync = chmodFixSync(fs11.fchmodSync);
2443
+ fs11.lchmodSync = chmodFixSync(fs11.lchmodSync);
2444
+ fs11.stat = statFix(fs11.stat);
2445
+ fs11.fstat = statFix(fs11.fstat);
2446
+ fs11.lstat = statFix(fs11.lstat);
2447
+ fs11.statSync = statFixSync(fs11.statSync);
2448
+ fs11.fstatSync = statFixSync(fs11.fstatSync);
2449
+ fs11.lstatSync = statFixSync(fs11.lstatSync);
2450
+ if (fs11.chmod && !fs11.lchmod) {
2451
+ fs11.lchmod = function(path8, mode, cb) {
2452
2452
  if (cb)
2453
2453
  process.nextTick(cb);
2454
2454
  };
2455
- fs12.lchmodSync = function() {
2455
+ fs11.lchmodSync = function() {
2456
2456
  };
2457
2457
  }
2458
- if (fs12.chown && !fs12.lchown) {
2459
- fs12.lchown = function(path8, uid, gid, cb) {
2458
+ if (fs11.chown && !fs11.lchown) {
2459
+ fs11.lchown = function(path8, uid, gid, cb) {
2460
2460
  if (cb)
2461
2461
  process.nextTick(cb);
2462
2462
  };
2463
- fs12.lchownSync = function() {
2463
+ fs11.lchownSync = function() {
2464
2464
  };
2465
2465
  }
2466
2466
  if (platform === "win32") {
2467
- fs12.rename = typeof fs12.rename !== "function" ? fs12.rename : function(fs$rename) {
2467
+ fs11.rename = typeof fs11.rename !== "function" ? fs11.rename : function(fs$rename) {
2468
2468
  function rename2(from, to, cb) {
2469
2469
  var start = Date.now();
2470
2470
  var backoff = 0;
2471
2471
  fs$rename(from, to, function CB(er) {
2472
2472
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
2473
2473
  setTimeout(function() {
2474
- fs12.stat(to, function(stater, st) {
2474
+ fs11.stat(to, function(stater, st) {
2475
2475
  if (stater && stater.code === "ENOENT")
2476
2476
  fs$rename(from, to, CB);
2477
2477
  else
@@ -2489,9 +2489,9 @@ var require_polyfills = __commonJS({
2489
2489
  if (Object.setPrototypeOf)
2490
2490
  Object.setPrototypeOf(rename2, fs$rename);
2491
2491
  return rename2;
2492
- }(fs12.rename);
2492
+ }(fs11.rename);
2493
2493
  }
2494
- fs12.read = typeof fs12.read !== "function" ? fs12.read : function(fs$read) {
2494
+ fs11.read = typeof fs11.read !== "function" ? fs11.read : function(fs$read) {
2495
2495
  function read(fd, buffer, offset, length, position, callback_) {
2496
2496
  var callback;
2497
2497
  if (callback_ && typeof callback_ === "function") {
@@ -2499,23 +2499,23 @@ var require_polyfills = __commonJS({
2499
2499
  callback = function(er, _, __) {
2500
2500
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
2501
2501
  eagCounter++;
2502
- return fs$read.call(fs12, fd, buffer, offset, length, position, callback);
2502
+ return fs$read.call(fs11, fd, buffer, offset, length, position, callback);
2503
2503
  }
2504
2504
  callback_.apply(this, arguments);
2505
2505
  };
2506
2506
  }
2507
- return fs$read.call(fs12, fd, buffer, offset, length, position, callback);
2507
+ return fs$read.call(fs11, fd, buffer, offset, length, position, callback);
2508
2508
  }
2509
2509
  if (Object.setPrototypeOf)
2510
2510
  Object.setPrototypeOf(read, fs$read);
2511
2511
  return read;
2512
- }(fs12.read);
2513
- fs12.readSync = typeof fs12.readSync !== "function" ? fs12.readSync : function(fs$readSync) {
2512
+ }(fs11.read);
2513
+ fs11.readSync = typeof fs11.readSync !== "function" ? fs11.readSync : function(fs$readSync) {
2514
2514
  return function(fd, buffer, offset, length, position) {
2515
2515
  var eagCounter = 0;
2516
2516
  while (true) {
2517
2517
  try {
2518
- return fs$readSync.call(fs12, fd, buffer, offset, length, position);
2518
+ return fs$readSync.call(fs11, fd, buffer, offset, length, position);
2519
2519
  } catch (er) {
2520
2520
  if (er.code === "EAGAIN" && eagCounter < 10) {
2521
2521
  eagCounter++;
@@ -2525,10 +2525,10 @@ var require_polyfills = __commonJS({
2525
2525
  }
2526
2526
  }
2527
2527
  };
2528
- }(fs12.readSync);
2529
- function patchLchmod(fs13) {
2530
- fs13.lchmod = function(path8, mode, callback) {
2531
- fs13.open(
2528
+ }(fs11.readSync);
2529
+ function patchLchmod(fs12) {
2530
+ fs12.lchmod = function(path8, mode, callback) {
2531
+ fs12.open(
2532
2532
  path8,
2533
2533
  constants.O_WRONLY | constants.O_SYMLINK,
2534
2534
  mode,
@@ -2538,8 +2538,8 @@ var require_polyfills = __commonJS({
2538
2538
  callback(err);
2539
2539
  return;
2540
2540
  }
2541
- fs13.fchmod(fd, mode, function(err2) {
2542
- fs13.close(fd, function(err22) {
2541
+ fs12.fchmod(fd, mode, function(err2) {
2542
+ fs12.close(fd, function(err22) {
2543
2543
  if (callback)
2544
2544
  callback(err2 || err22);
2545
2545
  });
@@ -2547,68 +2547,68 @@ var require_polyfills = __commonJS({
2547
2547
  }
2548
2548
  );
2549
2549
  };
2550
- fs13.lchmodSync = function(path8, mode) {
2551
- var fd = fs13.openSync(path8, constants.O_WRONLY | constants.O_SYMLINK, mode);
2550
+ fs12.lchmodSync = function(path8, mode) {
2551
+ var fd = fs12.openSync(path8, constants.O_WRONLY | constants.O_SYMLINK, mode);
2552
2552
  var threw = true;
2553
2553
  var ret;
2554
2554
  try {
2555
- ret = fs13.fchmodSync(fd, mode);
2555
+ ret = fs12.fchmodSync(fd, mode);
2556
2556
  threw = false;
2557
2557
  } finally {
2558
2558
  if (threw) {
2559
2559
  try {
2560
- fs13.closeSync(fd);
2560
+ fs12.closeSync(fd);
2561
2561
  } catch (er) {
2562
2562
  }
2563
2563
  } else {
2564
- fs13.closeSync(fd);
2564
+ fs12.closeSync(fd);
2565
2565
  }
2566
2566
  }
2567
2567
  return ret;
2568
2568
  };
2569
2569
  }
2570
- function patchLutimes(fs13) {
2571
- if (constants.hasOwnProperty("O_SYMLINK") && fs13.futimes) {
2572
- fs13.lutimes = function(path8, at, mt, cb) {
2573
- fs13.open(path8, constants.O_SYMLINK, function(er, fd) {
2570
+ function patchLutimes(fs12) {
2571
+ if (constants.hasOwnProperty("O_SYMLINK") && fs12.futimes) {
2572
+ fs12.lutimes = function(path8, at, mt, cb) {
2573
+ fs12.open(path8, constants.O_SYMLINK, function(er, fd) {
2574
2574
  if (er) {
2575
2575
  if (cb)
2576
2576
  cb(er);
2577
2577
  return;
2578
2578
  }
2579
- fs13.futimes(fd, at, mt, function(er2) {
2580
- fs13.close(fd, function(er22) {
2579
+ fs12.futimes(fd, at, mt, function(er2) {
2580
+ fs12.close(fd, function(er22) {
2581
2581
  if (cb)
2582
2582
  cb(er2 || er22);
2583
2583
  });
2584
2584
  });
2585
2585
  });
2586
2586
  };
2587
- fs13.lutimesSync = function(path8, at, mt) {
2588
- var fd = fs13.openSync(path8, constants.O_SYMLINK);
2587
+ fs12.lutimesSync = function(path8, at, mt) {
2588
+ var fd = fs12.openSync(path8, constants.O_SYMLINK);
2589
2589
  var ret;
2590
2590
  var threw = true;
2591
2591
  try {
2592
- ret = fs13.futimesSync(fd, at, mt);
2592
+ ret = fs12.futimesSync(fd, at, mt);
2593
2593
  threw = false;
2594
2594
  } finally {
2595
2595
  if (threw) {
2596
2596
  try {
2597
- fs13.closeSync(fd);
2597
+ fs12.closeSync(fd);
2598
2598
  } catch (er) {
2599
2599
  }
2600
2600
  } else {
2601
- fs13.closeSync(fd);
2601
+ fs12.closeSync(fd);
2602
2602
  }
2603
2603
  }
2604
2604
  return ret;
2605
2605
  };
2606
- } else if (fs13.futimes) {
2607
- fs13.lutimes = function(_a, _b, _c, cb) {
2606
+ } else if (fs12.futimes) {
2607
+ fs12.lutimes = function(_a, _b, _c, cb) {
2608
2608
  if (cb)
2609
2609
  process.nextTick(cb);
2610
2610
  };
2611
- fs13.lutimesSync = function() {
2611
+ fs12.lutimesSync = function() {
2612
2612
  };
2613
2613
  }
2614
2614
  }
@@ -2616,7 +2616,7 @@ var require_polyfills = __commonJS({
2616
2616
  if (!orig)
2617
2617
  return orig;
2618
2618
  return function(target, mode, cb) {
2619
- return orig.call(fs12, target, mode, function(er) {
2619
+ return orig.call(fs11, target, mode, function(er) {
2620
2620
  if (chownErOk(er))
2621
2621
  er = null;
2622
2622
  if (cb)
@@ -2629,7 +2629,7 @@ var require_polyfills = __commonJS({
2629
2629
  return orig;
2630
2630
  return function(target, mode) {
2631
2631
  try {
2632
- return orig.call(fs12, target, mode);
2632
+ return orig.call(fs11, target, mode);
2633
2633
  } catch (er) {
2634
2634
  if (!chownErOk(er))
2635
2635
  throw er;
@@ -2640,7 +2640,7 @@ var require_polyfills = __commonJS({
2640
2640
  if (!orig)
2641
2641
  return orig;
2642
2642
  return function(target, uid, gid, cb) {
2643
- return orig.call(fs12, target, uid, gid, function(er) {
2643
+ return orig.call(fs11, target, uid, gid, function(er) {
2644
2644
  if (chownErOk(er))
2645
2645
  er = null;
2646
2646
  if (cb)
@@ -2653,7 +2653,7 @@ var require_polyfills = __commonJS({
2653
2653
  return orig;
2654
2654
  return function(target, uid, gid) {
2655
2655
  try {
2656
- return orig.call(fs12, target, uid, gid);
2656
+ return orig.call(fs11, target, uid, gid);
2657
2657
  } catch (er) {
2658
2658
  if (!chownErOk(er))
2659
2659
  throw er;
@@ -2678,14 +2678,14 @@ var require_polyfills = __commonJS({
2678
2678
  if (cb)
2679
2679
  cb.apply(this, arguments);
2680
2680
  }
2681
- return options ? orig.call(fs12, target, options, callback) : orig.call(fs12, target, callback);
2681
+ return options ? orig.call(fs11, target, options, callback) : orig.call(fs11, target, callback);
2682
2682
  };
2683
2683
  }
2684
2684
  function statFixSync(orig) {
2685
2685
  if (!orig)
2686
2686
  return orig;
2687
2687
  return function(target, options) {
2688
- var stats = options ? orig.call(fs12, target, options) : orig.call(fs12, target);
2688
+ var stats = options ? orig.call(fs11, target, options) : orig.call(fs11, target);
2689
2689
  if (stats) {
2690
2690
  if (stats.uid < 0)
2691
2691
  stats.uid += 4294967296;
@@ -2716,7 +2716,7 @@ var require_legacy_streams = __commonJS({
2716
2716
  "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
2717
2717
  var Stream = require("stream").Stream;
2718
2718
  module2.exports = legacy;
2719
- function legacy(fs12) {
2719
+ function legacy(fs11) {
2720
2720
  return {
2721
2721
  ReadStream,
2722
2722
  WriteStream
@@ -2761,7 +2761,7 @@ var require_legacy_streams = __commonJS({
2761
2761
  });
2762
2762
  return;
2763
2763
  }
2764
- fs12.open(this.path, this.flags, this.mode, function(err, fd) {
2764
+ fs11.open(this.path, this.flags, this.mode, function(err, fd) {
2765
2765
  if (err) {
2766
2766
  self2.emit("error", err);
2767
2767
  self2.readable = false;
@@ -2801,7 +2801,7 @@ var require_legacy_streams = __commonJS({
2801
2801
  this.busy = false;
2802
2802
  this._queue = [];
2803
2803
  if (this.fd === null) {
2804
- this._open = fs12.open;
2804
+ this._open = fs11.open;
2805
2805
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
2806
2806
  this.flush();
2807
2807
  }
@@ -2836,7 +2836,7 @@ var require_clone = __commonJS({
2836
2836
  // ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
2837
2837
  var require_graceful_fs = __commonJS({
2838
2838
  "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
2839
- var fs12 = require("fs");
2839
+ var fs11 = require("fs");
2840
2840
  var polyfills = require_polyfills();
2841
2841
  var legacy = require_legacy_streams();
2842
2842
  var clone = require_clone();
@@ -2868,12 +2868,12 @@ var require_graceful_fs = __commonJS({
2868
2868
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
2869
2869
  console.error(m);
2870
2870
  };
2871
- if (!fs12[gracefulQueue]) {
2871
+ if (!fs11[gracefulQueue]) {
2872
2872
  queue = global[gracefulQueue] || [];
2873
- publishQueue(fs12, queue);
2874
- fs12.close = function(fs$close) {
2873
+ publishQueue(fs11, queue);
2874
+ fs11.close = function(fs$close) {
2875
2875
  function close(fd, cb) {
2876
- return fs$close.call(fs12, fd, function(err) {
2876
+ return fs$close.call(fs11, fd, function(err) {
2877
2877
  if (!err) {
2878
2878
  resetQueue();
2879
2879
  }
@@ -2885,40 +2885,40 @@ var require_graceful_fs = __commonJS({
2885
2885
  value: fs$close
2886
2886
  });
2887
2887
  return close;
2888
- }(fs12.close);
2889
- fs12.closeSync = function(fs$closeSync) {
2888
+ }(fs11.close);
2889
+ fs11.closeSync = function(fs$closeSync) {
2890
2890
  function closeSync(fd) {
2891
- fs$closeSync.apply(fs12, arguments);
2891
+ fs$closeSync.apply(fs11, arguments);
2892
2892
  resetQueue();
2893
2893
  }
2894
2894
  Object.defineProperty(closeSync, previousSymbol, {
2895
2895
  value: fs$closeSync
2896
2896
  });
2897
2897
  return closeSync;
2898
- }(fs12.closeSync);
2898
+ }(fs11.closeSync);
2899
2899
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
2900
2900
  process.on("exit", function() {
2901
- debug2(fs12[gracefulQueue]);
2902
- require("assert").equal(fs12[gracefulQueue].length, 0);
2901
+ debug2(fs11[gracefulQueue]);
2902
+ require("assert").equal(fs11[gracefulQueue].length, 0);
2903
2903
  });
2904
2904
  }
2905
2905
  }
2906
2906
  var queue;
2907
2907
  if (!global[gracefulQueue]) {
2908
- publishQueue(global, fs12[gracefulQueue]);
2909
- }
2910
- module2.exports = patch(clone(fs12));
2911
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs12.__patched) {
2912
- module2.exports = patch(fs12);
2913
- fs12.__patched = true;
2914
- }
2915
- function patch(fs13) {
2916
- polyfills(fs13);
2917
- fs13.gracefulify = patch;
2918
- fs13.createReadStream = createReadStream;
2919
- fs13.createWriteStream = createWriteStream;
2920
- var fs$readFile = fs13.readFile;
2921
- fs13.readFile = readFile3;
2908
+ publishQueue(global, fs11[gracefulQueue]);
2909
+ }
2910
+ module2.exports = patch(clone(fs11));
2911
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs11.__patched) {
2912
+ module2.exports = patch(fs11);
2913
+ fs11.__patched = true;
2914
+ }
2915
+ function patch(fs12) {
2916
+ polyfills(fs12);
2917
+ fs12.gracefulify = patch;
2918
+ fs12.createReadStream = createReadStream;
2919
+ fs12.createWriteStream = createWriteStream;
2920
+ var fs$readFile = fs12.readFile;
2921
+ fs12.readFile = readFile3;
2922
2922
  function readFile3(path8, options, cb) {
2923
2923
  if (typeof options === "function")
2924
2924
  cb = options, options = null;
@@ -2934,8 +2934,8 @@ var require_graceful_fs = __commonJS({
2934
2934
  });
2935
2935
  }
2936
2936
  }
2937
- var fs$writeFile = fs13.writeFile;
2938
- fs13.writeFile = writeFile;
2937
+ var fs$writeFile = fs12.writeFile;
2938
+ fs12.writeFile = writeFile;
2939
2939
  function writeFile(path8, data, options, cb) {
2940
2940
  if (typeof options === "function")
2941
2941
  cb = options, options = null;
@@ -2951,9 +2951,9 @@ var require_graceful_fs = __commonJS({
2951
2951
  });
2952
2952
  }
2953
2953
  }
2954
- var fs$appendFile = fs13.appendFile;
2954
+ var fs$appendFile = fs12.appendFile;
2955
2955
  if (fs$appendFile)
2956
- fs13.appendFile = appendFile;
2956
+ fs12.appendFile = appendFile;
2957
2957
  function appendFile(path8, data, options, cb) {
2958
2958
  if (typeof options === "function")
2959
2959
  cb = options, options = null;
@@ -2969,9 +2969,9 @@ var require_graceful_fs = __commonJS({
2969
2969
  });
2970
2970
  }
2971
2971
  }
2972
- var fs$copyFile = fs13.copyFile;
2972
+ var fs$copyFile = fs12.copyFile;
2973
2973
  if (fs$copyFile)
2974
- fs13.copyFile = copyFile;
2974
+ fs12.copyFile = copyFile;
2975
2975
  function copyFile(src, dest, flags, cb) {
2976
2976
  if (typeof flags === "function") {
2977
2977
  cb = flags;
@@ -2989,8 +2989,8 @@ var require_graceful_fs = __commonJS({
2989
2989
  });
2990
2990
  }
2991
2991
  }
2992
- var fs$readdir = fs13.readdir;
2993
- fs13.readdir = readdir2;
2992
+ var fs$readdir = fs12.readdir;
2993
+ fs12.readdir = readdir2;
2994
2994
  var noReaddirOptionVersions = /^v[0-5]\./;
2995
2995
  function readdir2(path8, options, cb) {
2996
2996
  if (typeof options === "function")
@@ -3031,21 +3031,21 @@ var require_graceful_fs = __commonJS({
3031
3031
  }
3032
3032
  }
3033
3033
  if (process.version.substr(0, 4) === "v0.8") {
3034
- var legStreams = legacy(fs13);
3034
+ var legStreams = legacy(fs12);
3035
3035
  ReadStream = legStreams.ReadStream;
3036
3036
  WriteStream = legStreams.WriteStream;
3037
3037
  }
3038
- var fs$ReadStream = fs13.ReadStream;
3038
+ var fs$ReadStream = fs12.ReadStream;
3039
3039
  if (fs$ReadStream) {
3040
3040
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
3041
3041
  ReadStream.prototype.open = ReadStream$open;
3042
3042
  }
3043
- var fs$WriteStream = fs13.WriteStream;
3043
+ var fs$WriteStream = fs12.WriteStream;
3044
3044
  if (fs$WriteStream) {
3045
3045
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
3046
3046
  WriteStream.prototype.open = WriteStream$open;
3047
3047
  }
3048
- Object.defineProperty(fs13, "ReadStream", {
3048
+ Object.defineProperty(fs12, "ReadStream", {
3049
3049
  get: function() {
3050
3050
  return ReadStream;
3051
3051
  },
@@ -3055,7 +3055,7 @@ var require_graceful_fs = __commonJS({
3055
3055
  enumerable: true,
3056
3056
  configurable: true
3057
3057
  });
3058
- Object.defineProperty(fs13, "WriteStream", {
3058
+ Object.defineProperty(fs12, "WriteStream", {
3059
3059
  get: function() {
3060
3060
  return WriteStream;
3061
3061
  },
@@ -3066,7 +3066,7 @@ var require_graceful_fs = __commonJS({
3066
3066
  configurable: true
3067
3067
  });
3068
3068
  var FileReadStream = ReadStream;
3069
- Object.defineProperty(fs13, "FileReadStream", {
3069
+ Object.defineProperty(fs12, "FileReadStream", {
3070
3070
  get: function() {
3071
3071
  return FileReadStream;
3072
3072
  },
@@ -3077,7 +3077,7 @@ var require_graceful_fs = __commonJS({
3077
3077
  configurable: true
3078
3078
  });
3079
3079
  var FileWriteStream = WriteStream;
3080
- Object.defineProperty(fs13, "FileWriteStream", {
3080
+ Object.defineProperty(fs12, "FileWriteStream", {
3081
3081
  get: function() {
3082
3082
  return FileWriteStream;
3083
3083
  },
@@ -3126,13 +3126,13 @@ var require_graceful_fs = __commonJS({
3126
3126
  });
3127
3127
  }
3128
3128
  function createReadStream(path8, options) {
3129
- return new fs13.ReadStream(path8, options);
3129
+ return new fs12.ReadStream(path8, options);
3130
3130
  }
3131
3131
  function createWriteStream(path8, options) {
3132
- return new fs13.WriteStream(path8, options);
3132
+ return new fs12.WriteStream(path8, options);
3133
3133
  }
3134
- var fs$open = fs13.open;
3135
- fs13.open = open;
3134
+ var fs$open = fs12.open;
3135
+ fs12.open = open;
3136
3136
  function open(path8, flags, mode, cb) {
3137
3137
  if (typeof mode === "function")
3138
3138
  cb = mode, mode = null;
@@ -3148,20 +3148,20 @@ var require_graceful_fs = __commonJS({
3148
3148
  });
3149
3149
  }
3150
3150
  }
3151
- return fs13;
3151
+ return fs12;
3152
3152
  }
3153
3153
  function enqueue(elem) {
3154
3154
  debug2("ENQUEUE", elem[0].name, elem[1]);
3155
- fs12[gracefulQueue].push(elem);
3155
+ fs11[gracefulQueue].push(elem);
3156
3156
  retry2();
3157
3157
  }
3158
3158
  var retryTimer;
3159
3159
  function resetQueue() {
3160
3160
  var now = Date.now();
3161
- for (var i = 0; i < fs12[gracefulQueue].length; ++i) {
3162
- if (fs12[gracefulQueue][i].length > 2) {
3163
- fs12[gracefulQueue][i][3] = now;
3164
- fs12[gracefulQueue][i][4] = now;
3161
+ for (var i = 0; i < fs11[gracefulQueue].length; ++i) {
3162
+ if (fs11[gracefulQueue][i].length > 2) {
3163
+ fs11[gracefulQueue][i][3] = now;
3164
+ fs11[gracefulQueue][i][4] = now;
3165
3165
  }
3166
3166
  }
3167
3167
  retry2();
@@ -3169,9 +3169,9 @@ var require_graceful_fs = __commonJS({
3169
3169
  function retry2() {
3170
3170
  clearTimeout(retryTimer);
3171
3171
  retryTimer = void 0;
3172
- if (fs12[gracefulQueue].length === 0)
3172
+ if (fs11[gracefulQueue].length === 0)
3173
3173
  return;
3174
- var elem = fs12[gracefulQueue].shift();
3174
+ var elem = fs11[gracefulQueue].shift();
3175
3175
  var fn = elem[0];
3176
3176
  var args = elem[1];
3177
3177
  var err = elem[2];
@@ -3193,7 +3193,7 @@ var require_graceful_fs = __commonJS({
3193
3193
  debug2("RETRY", fn.name, args);
3194
3194
  fn.apply(null, args.concat([startTime]));
3195
3195
  } else {
3196
- fs12[gracefulQueue].push(elem);
3196
+ fs11[gracefulQueue].push(elem);
3197
3197
  }
3198
3198
  }
3199
3199
  if (retryTimer === void 0) {
@@ -3208,7 +3208,7 @@ var require_fs = __commonJS({
3208
3208
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/fs/index.js"(exports) {
3209
3209
  "use strict";
3210
3210
  var u = require_universalify().fromCallback;
3211
- var fs12 = require_graceful_fs();
3211
+ var fs11 = require_graceful_fs();
3212
3212
  var api = [
3213
3213
  "access",
3214
3214
  "appendFile",
@@ -3245,27 +3245,27 @@ var require_fs = __commonJS({
3245
3245
  "utimes",
3246
3246
  "writeFile"
3247
3247
  ].filter((key) => {
3248
- return typeof fs12[key] === "function";
3248
+ return typeof fs11[key] === "function";
3249
3249
  });
3250
- Object.assign(exports, fs12);
3250
+ Object.assign(exports, fs11);
3251
3251
  api.forEach((method) => {
3252
- exports[method] = u(fs12[method]);
3252
+ exports[method] = u(fs11[method]);
3253
3253
  });
3254
- exports.realpath.native = u(fs12.realpath.native);
3254
+ exports.realpath.native = u(fs11.realpath.native);
3255
3255
  exports.exists = function(filename, callback) {
3256
3256
  if (typeof callback === "function") {
3257
- return fs12.exists(filename, callback);
3257
+ return fs11.exists(filename, callback);
3258
3258
  }
3259
3259
  return new Promise((resolve) => {
3260
- return fs12.exists(filename, resolve);
3260
+ return fs11.exists(filename, resolve);
3261
3261
  });
3262
3262
  };
3263
3263
  exports.read = function(fd, buffer, offset, length, position, callback) {
3264
3264
  if (typeof callback === "function") {
3265
- return fs12.read(fd, buffer, offset, length, position, callback);
3265
+ return fs11.read(fd, buffer, offset, length, position, callback);
3266
3266
  }
3267
3267
  return new Promise((resolve, reject) => {
3268
- fs12.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
3268
+ fs11.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
3269
3269
  if (err)
3270
3270
  return reject(err);
3271
3271
  resolve({ bytesRead, buffer: buffer2 });
@@ -3274,23 +3274,23 @@ var require_fs = __commonJS({
3274
3274
  };
3275
3275
  exports.write = function(fd, buffer, ...args) {
3276
3276
  if (typeof args[args.length - 1] === "function") {
3277
- return fs12.write(fd, buffer, ...args);
3277
+ return fs11.write(fd, buffer, ...args);
3278
3278
  }
3279
3279
  return new Promise((resolve, reject) => {
3280
- fs12.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
3280
+ fs11.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
3281
3281
  if (err)
3282
3282
  return reject(err);
3283
3283
  resolve({ bytesWritten, buffer: buffer2 });
3284
3284
  });
3285
3285
  });
3286
3286
  };
3287
- if (typeof fs12.writev === "function") {
3287
+ if (typeof fs11.writev === "function") {
3288
3288
  exports.writev = function(fd, buffers, ...args) {
3289
3289
  if (typeof args[args.length - 1] === "function") {
3290
- return fs12.writev(fd, buffers, ...args);
3290
+ return fs11.writev(fd, buffers, ...args);
3291
3291
  }
3292
3292
  return new Promise((resolve, reject) => {
3293
- fs12.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
3293
+ fs11.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
3294
3294
  if (err)
3295
3295
  return reject(err);
3296
3296
  resolve({ bytesWritten, buffers: buffers2 });
@@ -3323,7 +3323,7 @@ var require_utils = __commonJS({
3323
3323
  var require_make_dir = __commonJS({
3324
3324
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module2) {
3325
3325
  "use strict";
3326
- var fs12 = require_fs();
3326
+ var fs11 = require_fs();
3327
3327
  var { checkPath } = require_utils();
3328
3328
  var getMode = (options) => {
3329
3329
  const defaults = { mode: 511 };
@@ -3333,14 +3333,14 @@ var require_make_dir = __commonJS({
3333
3333
  };
3334
3334
  module2.exports.makeDir = async (dir, options) => {
3335
3335
  checkPath(dir);
3336
- return fs12.mkdir(dir, {
3336
+ return fs11.mkdir(dir, {
3337
3337
  mode: getMode(options),
3338
3338
  recursive: true
3339
3339
  });
3340
3340
  };
3341
3341
  module2.exports.makeDirSync = (dir, options) => {
3342
3342
  checkPath(dir);
3343
- return fs12.mkdirSync(dir, {
3343
+ return fs11.mkdirSync(dir, {
3344
3344
  mode: getMode(options),
3345
3345
  recursive: true
3346
3346
  });
@@ -3371,13 +3371,13 @@ var require_mkdirs = __commonJS({
3371
3371
  var require_utimes = __commonJS({
3372
3372
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/util/utimes.js"(exports, module2) {
3373
3373
  "use strict";
3374
- var fs12 = require_graceful_fs();
3374
+ var fs11 = require_graceful_fs();
3375
3375
  function utimesMillis(path8, atime, mtime2, callback) {
3376
- fs12.open(path8, "r+", (err, fd) => {
3376
+ fs11.open(path8, "r+", (err, fd) => {
3377
3377
  if (err)
3378
3378
  return callback(err);
3379
- fs12.futimes(fd, atime, mtime2, (futimesErr) => {
3380
- fs12.close(fd, (closeErr) => {
3379
+ fs11.futimes(fd, atime, mtime2, (futimesErr) => {
3380
+ fs11.close(fd, (closeErr) => {
3381
3381
  if (callback)
3382
3382
  callback(futimesErr || closeErr);
3383
3383
  });
@@ -3385,9 +3385,9 @@ var require_utimes = __commonJS({
3385
3385
  });
3386
3386
  }
3387
3387
  function utimesMillisSync(path8, atime, mtime2) {
3388
- const fd = fs12.openSync(path8, "r+");
3389
- fs12.futimesSync(fd, atime, mtime2);
3390
- return fs12.closeSync(fd);
3388
+ const fd = fs11.openSync(path8, "r+");
3389
+ fs11.futimesSync(fd, atime, mtime2);
3390
+ return fs11.closeSync(fd);
3391
3391
  }
3392
3392
  module2.exports = {
3393
3393
  utimesMillis,
@@ -3400,11 +3400,11 @@ var require_utimes = __commonJS({
3400
3400
  var require_stat = __commonJS({
3401
3401
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
3402
3402
  "use strict";
3403
- var fs12 = require_fs();
3403
+ var fs11 = require_fs();
3404
3404
  var path8 = require("path");
3405
3405
  var util = require("util");
3406
3406
  function getStats(src, dest, opts) {
3407
- const statFunc = opts.dereference ? (file) => fs12.stat(file, { bigint: true }) : (file) => fs12.lstat(file, { bigint: true });
3407
+ const statFunc = opts.dereference ? (file) => fs11.stat(file, { bigint: true }) : (file) => fs11.lstat(file, { bigint: true });
3408
3408
  return Promise.all([
3409
3409
  statFunc(src),
3410
3410
  statFunc(dest).catch((err) => {
@@ -3416,7 +3416,7 @@ var require_stat = __commonJS({
3416
3416
  }
3417
3417
  function getStatsSync(src, dest, opts) {
3418
3418
  let destStat;
3419
- const statFunc = opts.dereference ? (file) => fs12.statSync(file, { bigint: true }) : (file) => fs12.lstatSync(file, { bigint: true });
3419
+ const statFunc = opts.dereference ? (file) => fs11.statSync(file, { bigint: true }) : (file) => fs11.lstatSync(file, { bigint: true });
3420
3420
  const srcStat = statFunc(src);
3421
3421
  try {
3422
3422
  destStat = statFunc(dest);
@@ -3482,7 +3482,7 @@ var require_stat = __commonJS({
3482
3482
  const destParent = path8.resolve(path8.dirname(dest));
3483
3483
  if (destParent === srcParent || destParent === path8.parse(destParent).root)
3484
3484
  return cb();
3485
- fs12.stat(destParent, { bigint: true }, (err, destStat) => {
3485
+ fs11.stat(destParent, { bigint: true }, (err, destStat) => {
3486
3486
  if (err) {
3487
3487
  if (err.code === "ENOENT")
3488
3488
  return cb();
@@ -3501,7 +3501,7 @@ var require_stat = __commonJS({
3501
3501
  return;
3502
3502
  let destStat;
3503
3503
  try {
3504
- destStat = fs12.statSync(destParent, { bigint: true });
3504
+ destStat = fs11.statSync(destParent, { bigint: true });
3505
3505
  } catch (err) {
3506
3506
  if (err.code === "ENOENT")
3507
3507
  return;
@@ -3538,7 +3538,7 @@ var require_stat = __commonJS({
3538
3538
  var require_copy_sync = __commonJS({
3539
3539
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports, module2) {
3540
3540
  "use strict";
3541
- var fs12 = require_graceful_fs();
3541
+ var fs11 = require_graceful_fs();
3542
3542
  var path8 = require("path");
3543
3543
  var mkdirsSync = require_mkdirs().mkdirsSync;
3544
3544
  var utimesMillisSync = require_utimes().utimesMillisSync;
@@ -3563,7 +3563,7 @@ var require_copy_sync = __commonJS({
3563
3563
  if (opts.filter && !opts.filter(src, dest))
3564
3564
  return;
3565
3565
  const destParent = path8.dirname(dest);
3566
- if (!fs12.existsSync(destParent))
3566
+ if (!fs11.existsSync(destParent))
3567
3567
  mkdirsSync(destParent);
3568
3568
  return getStats(destStat, src, dest, opts);
3569
3569
  }
@@ -3573,7 +3573,7 @@ var require_copy_sync = __commonJS({
3573
3573
  return getStats(destStat, src, dest, opts);
3574
3574
  }
3575
3575
  function getStats(destStat, src, dest, opts) {
3576
- const statSync2 = opts.dereference ? fs12.statSync : fs12.lstatSync;
3576
+ const statSync2 = opts.dereference ? fs11.statSync : fs11.lstatSync;
3577
3577
  const srcStat = statSync2(src);
3578
3578
  if (srcStat.isDirectory())
3579
3579
  return onDir(srcStat, destStat, src, dest, opts);
@@ -3594,14 +3594,14 @@ var require_copy_sync = __commonJS({
3594
3594
  }
3595
3595
  function mayCopyFile(srcStat, src, dest, opts) {
3596
3596
  if (opts.overwrite) {
3597
- fs12.unlinkSync(dest);
3597
+ fs11.unlinkSync(dest);
3598
3598
  return copyFile(srcStat, src, dest, opts);
3599
3599
  } else if (opts.errorOnExist) {
3600
3600
  throw new Error(`'${dest}' already exists`);
3601
3601
  }
3602
3602
  }
3603
3603
  function copyFile(srcStat, src, dest, opts) {
3604
- fs12.copyFileSync(src, dest);
3604
+ fs11.copyFileSync(src, dest);
3605
3605
  if (opts.preserveTimestamps)
3606
3606
  handleTimestamps(srcStat.mode, src, dest);
3607
3607
  return setDestMode(dest, srcStat.mode);
@@ -3618,10 +3618,10 @@ var require_copy_sync = __commonJS({
3618
3618
  return setDestMode(dest, srcMode | 128);
3619
3619
  }
3620
3620
  function setDestMode(dest, srcMode) {
3621
- return fs12.chmodSync(dest, srcMode);
3621
+ return fs11.chmodSync(dest, srcMode);
3622
3622
  }
3623
3623
  function setDestTimestamps(src, dest) {
3624
- const updatedSrcStat = fs12.statSync(src);
3624
+ const updatedSrcStat = fs11.statSync(src);
3625
3625
  return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
3626
3626
  }
3627
3627
  function onDir(srcStat, destStat, src, dest, opts) {
@@ -3630,12 +3630,12 @@ var require_copy_sync = __commonJS({
3630
3630
  return copyDir(src, dest, opts);
3631
3631
  }
3632
3632
  function mkDirAndCopy(srcMode, src, dest, opts) {
3633
- fs12.mkdirSync(dest);
3633
+ fs11.mkdirSync(dest);
3634
3634
  copyDir(src, dest, opts);
3635
3635
  return setDestMode(dest, srcMode);
3636
3636
  }
3637
3637
  function copyDir(src, dest, opts) {
3638
- fs12.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
3638
+ fs11.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
3639
3639
  }
3640
3640
  function copyDirItem(item, src, dest, opts) {
3641
3641
  const srcItem = path8.join(src, item);
@@ -3644,19 +3644,19 @@ var require_copy_sync = __commonJS({
3644
3644
  return startCopy(destStat, srcItem, destItem, opts);
3645
3645
  }
3646
3646
  function onLink(destStat, src, dest, opts) {
3647
- let resolvedSrc = fs12.readlinkSync(src);
3647
+ let resolvedSrc = fs11.readlinkSync(src);
3648
3648
  if (opts.dereference) {
3649
3649
  resolvedSrc = path8.resolve(process.cwd(), resolvedSrc);
3650
3650
  }
3651
3651
  if (!destStat) {
3652
- return fs12.symlinkSync(resolvedSrc, dest);
3652
+ return fs11.symlinkSync(resolvedSrc, dest);
3653
3653
  } else {
3654
3654
  let resolvedDest;
3655
3655
  try {
3656
- resolvedDest = fs12.readlinkSync(dest);
3656
+ resolvedDest = fs11.readlinkSync(dest);
3657
3657
  } catch (err) {
3658
3658
  if (err.code === "EINVAL" || err.code === "UNKNOWN")
3659
- return fs12.symlinkSync(resolvedSrc, dest);
3659
+ return fs11.symlinkSync(resolvedSrc, dest);
3660
3660
  throw err;
3661
3661
  }
3662
3662
  if (opts.dereference) {
@@ -3665,15 +3665,15 @@ var require_copy_sync = __commonJS({
3665
3665
  if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
3666
3666
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
3667
3667
  }
3668
- if (fs12.statSync(dest).isDirectory() && stat2.isSrcSubdir(resolvedDest, resolvedSrc)) {
3668
+ if (fs11.statSync(dest).isDirectory() && stat2.isSrcSubdir(resolvedDest, resolvedSrc)) {
3669
3669
  throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
3670
3670
  }
3671
3671
  return copyLink(resolvedSrc, dest);
3672
3672
  }
3673
3673
  }
3674
3674
  function copyLink(resolvedSrc, dest) {
3675
- fs12.unlinkSync(dest);
3676
- return fs12.symlinkSync(resolvedSrc, dest);
3675
+ fs11.unlinkSync(dest);
3676
+ return fs11.symlinkSync(resolvedSrc, dest);
3677
3677
  }
3678
3678
  module2.exports = copySync;
3679
3679
  }
@@ -3694,13 +3694,13 @@ var require_path_exists = __commonJS({
3694
3694
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/path-exists/index.js"(exports, module2) {
3695
3695
  "use strict";
3696
3696
  var u = require_universalify().fromPromise;
3697
- var fs12 = require_fs();
3697
+ var fs11 = require_fs();
3698
3698
  function pathExists(path8) {
3699
- return fs12.access(path8).then(() => true).catch(() => false);
3699
+ return fs11.access(path8).then(() => true).catch(() => false);
3700
3700
  }
3701
3701
  module2.exports = {
3702
3702
  pathExists: u(pathExists),
3703
- pathExistsSync: fs12.existsSync
3703
+ pathExistsSync: fs11.existsSync
3704
3704
  };
3705
3705
  }
3706
3706
  });
@@ -3709,7 +3709,7 @@ var require_path_exists = __commonJS({
3709
3709
  var require_copy = __commonJS({
3710
3710
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
3711
3711
  "use strict";
3712
- var fs12 = require_graceful_fs();
3712
+ var fs11 = require_graceful_fs();
3713
3713
  var path8 = require("path");
3714
3714
  var mkdirs = require_mkdirs().mkdirs;
3715
3715
  var pathExists = require_path_exists().pathExists;
@@ -3772,7 +3772,7 @@ var require_copy = __commonJS({
3772
3772
  return getStats(destStat, src, dest, opts, cb);
3773
3773
  }
3774
3774
  function getStats(destStat, src, dest, opts, cb) {
3775
- const stat3 = opts.dereference ? fs12.stat : fs12.lstat;
3775
+ const stat3 = opts.dereference ? fs11.stat : fs11.lstat;
3776
3776
  stat3(src, (err, srcStat) => {
3777
3777
  if (err)
3778
3778
  return cb(err);
@@ -3796,7 +3796,7 @@ var require_copy = __commonJS({
3796
3796
  }
3797
3797
  function mayCopyFile(srcStat, src, dest, opts, cb) {
3798
3798
  if (opts.overwrite) {
3799
- fs12.unlink(dest, (err) => {
3799
+ fs11.unlink(dest, (err) => {
3800
3800
  if (err)
3801
3801
  return cb(err);
3802
3802
  return copyFile(srcStat, src, dest, opts, cb);
@@ -3807,7 +3807,7 @@ var require_copy = __commonJS({
3807
3807
  return cb();
3808
3808
  }
3809
3809
  function copyFile(srcStat, src, dest, opts, cb) {
3810
- fs12.copyFile(src, dest, (err) => {
3810
+ fs11.copyFile(src, dest, (err) => {
3811
3811
  if (err)
3812
3812
  return cb(err);
3813
3813
  if (opts.preserveTimestamps)
@@ -3839,10 +3839,10 @@ var require_copy = __commonJS({
3839
3839
  });
3840
3840
  }
3841
3841
  function setDestMode(dest, srcMode, cb) {
3842
- return fs12.chmod(dest, srcMode, cb);
3842
+ return fs11.chmod(dest, srcMode, cb);
3843
3843
  }
3844
3844
  function setDestTimestamps(src, dest, cb) {
3845
- fs12.stat(src, (err, updatedSrcStat) => {
3845
+ fs11.stat(src, (err, updatedSrcStat) => {
3846
3846
  if (err)
3847
3847
  return cb(err);
3848
3848
  return utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime, cb);
@@ -3854,7 +3854,7 @@ var require_copy = __commonJS({
3854
3854
  return copyDir(src, dest, opts, cb);
3855
3855
  }
3856
3856
  function mkDirAndCopy(srcMode, src, dest, opts, cb) {
3857
- fs12.mkdir(dest, (err) => {
3857
+ fs11.mkdir(dest, (err) => {
3858
3858
  if (err)
3859
3859
  return cb(err);
3860
3860
  copyDir(src, dest, opts, (err2) => {
@@ -3865,7 +3865,7 @@ var require_copy = __commonJS({
3865
3865
  });
3866
3866
  }
3867
3867
  function copyDir(src, dest, opts, cb) {
3868
- fs12.readdir(src, (err, items) => {
3868
+ fs11.readdir(src, (err, items) => {
3869
3869
  if (err)
3870
3870
  return cb(err);
3871
3871
  return copyDirItems(items, src, dest, opts, cb);
@@ -3892,19 +3892,19 @@ var require_copy = __commonJS({
3892
3892
  });
3893
3893
  }
3894
3894
  function onLink(destStat, src, dest, opts, cb) {
3895
- fs12.readlink(src, (err, resolvedSrc) => {
3895
+ fs11.readlink(src, (err, resolvedSrc) => {
3896
3896
  if (err)
3897
3897
  return cb(err);
3898
3898
  if (opts.dereference) {
3899
3899
  resolvedSrc = path8.resolve(process.cwd(), resolvedSrc);
3900
3900
  }
3901
3901
  if (!destStat) {
3902
- return fs12.symlink(resolvedSrc, dest, cb);
3902
+ return fs11.symlink(resolvedSrc, dest, cb);
3903
3903
  } else {
3904
- fs12.readlink(dest, (err2, resolvedDest) => {
3904
+ fs11.readlink(dest, (err2, resolvedDest) => {
3905
3905
  if (err2) {
3906
3906
  if (err2.code === "EINVAL" || err2.code === "UNKNOWN")
3907
- return fs12.symlink(resolvedSrc, dest, cb);
3907
+ return fs11.symlink(resolvedSrc, dest, cb);
3908
3908
  return cb(err2);
3909
3909
  }
3910
3910
  if (opts.dereference) {
@@ -3922,10 +3922,10 @@ var require_copy = __commonJS({
3922
3922
  });
3923
3923
  }
3924
3924
  function copyLink(resolvedSrc, dest, cb) {
3925
- fs12.unlink(dest, (err) => {
3925
+ fs11.unlink(dest, (err) => {
3926
3926
  if (err)
3927
3927
  return cb(err);
3928
- return fs12.symlink(resolvedSrc, dest, cb);
3928
+ return fs11.symlink(resolvedSrc, dest, cb);
3929
3929
  });
3930
3930
  }
3931
3931
  module2.exports = copy;
@@ -3947,7 +3947,7 @@ var require_copy2 = __commonJS({
3947
3947
  var require_rimraf = __commonJS({
3948
3948
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/remove/rimraf.js"(exports, module2) {
3949
3949
  "use strict";
3950
- var fs12 = require_graceful_fs();
3950
+ var fs11 = require_graceful_fs();
3951
3951
  var path8 = require("path");
3952
3952
  var assert7 = require("assert");
3953
3953
  var isWindows = process.platform === "win32";
@@ -3961,9 +3961,9 @@ var require_rimraf = __commonJS({
3961
3961
  "readdir"
3962
3962
  ];
3963
3963
  methods.forEach((m) => {
3964
- options[m] = options[m] || fs12[m];
3964
+ options[m] = options[m] || fs11[m];
3965
3965
  m = m + "Sync";
3966
- options[m] = options[m] || fs12[m];
3966
+ options[m] = options[m] || fs11[m];
3967
3967
  });
3968
3968
  options.maxBusyTries = options.maxBusyTries || 3;
3969
3969
  }
@@ -4186,17 +4186,17 @@ var require_rimraf = __commonJS({
4186
4186
  var require_remove = __commonJS({
4187
4187
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/remove/index.js"(exports, module2) {
4188
4188
  "use strict";
4189
- var fs12 = require_graceful_fs();
4189
+ var fs11 = require_graceful_fs();
4190
4190
  var u = require_universalify().fromCallback;
4191
4191
  var rimraf = require_rimraf();
4192
4192
  function remove2(path8, callback) {
4193
- if (fs12.rm)
4194
- return fs12.rm(path8, { recursive: true, force: true }, callback);
4193
+ if (fs11.rm)
4194
+ return fs11.rm(path8, { recursive: true, force: true }, callback);
4195
4195
  rimraf(path8, callback);
4196
4196
  }
4197
4197
  function removeSync(path8) {
4198
- if (fs12.rmSync)
4199
- return fs12.rmSync(path8, { recursive: true, force: true });
4198
+ if (fs11.rmSync)
4199
+ return fs11.rmSync(path8, { recursive: true, force: true });
4200
4200
  rimraf.sync(path8);
4201
4201
  }
4202
4202
  module2.exports = {
@@ -4211,14 +4211,14 @@ var require_empty = __commonJS({
4211
4211
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/empty/index.js"(exports, module2) {
4212
4212
  "use strict";
4213
4213
  var u = require_universalify().fromPromise;
4214
- var fs12 = require_fs();
4214
+ var fs11 = require_fs();
4215
4215
  var path8 = require("path");
4216
4216
  var mkdir = require_mkdirs();
4217
4217
  var remove2 = require_remove();
4218
4218
  var emptyDir = u(async function emptyDir2(dir) {
4219
4219
  let items;
4220
4220
  try {
4221
- items = await fs12.readdir(dir);
4221
+ items = await fs11.readdir(dir);
4222
4222
  } catch {
4223
4223
  return mkdir.mkdirs(dir);
4224
4224
  }
@@ -4227,7 +4227,7 @@ var require_empty = __commonJS({
4227
4227
  function emptyDirSync(dir) {
4228
4228
  let items;
4229
4229
  try {
4230
- items = fs12.readdirSync(dir);
4230
+ items = fs11.readdirSync(dir);
4231
4231
  } catch {
4232
4232
  return mkdir.mkdirsSync(dir);
4233
4233
  }
@@ -4251,21 +4251,21 @@ var require_file = __commonJS({
4251
4251
  "use strict";
4252
4252
  var u = require_universalify().fromCallback;
4253
4253
  var path8 = require("path");
4254
- var fs12 = require_graceful_fs();
4254
+ var fs11 = require_graceful_fs();
4255
4255
  var mkdir = require_mkdirs();
4256
4256
  function createFile(file, callback) {
4257
4257
  function makeFile() {
4258
- fs12.writeFile(file, "", (err) => {
4258
+ fs11.writeFile(file, "", (err) => {
4259
4259
  if (err)
4260
4260
  return callback(err);
4261
4261
  callback();
4262
4262
  });
4263
4263
  }
4264
- fs12.stat(file, (err, stats) => {
4264
+ fs11.stat(file, (err, stats) => {
4265
4265
  if (!err && stats.isFile())
4266
4266
  return callback();
4267
4267
  const dir = path8.dirname(file);
4268
- fs12.stat(dir, (err2, stats2) => {
4268
+ fs11.stat(dir, (err2, stats2) => {
4269
4269
  if (err2) {
4270
4270
  if (err2.code === "ENOENT") {
4271
4271
  return mkdir.mkdirs(dir, (err3) => {
@@ -4279,7 +4279,7 @@ var require_file = __commonJS({
4279
4279
  if (stats2.isDirectory())
4280
4280
  makeFile();
4281
4281
  else {
4282
- fs12.readdir(dir, (err3) => {
4282
+ fs11.readdir(dir, (err3) => {
4283
4283
  if (err3)
4284
4284
  return callback(err3);
4285
4285
  });
@@ -4290,15 +4290,15 @@ var require_file = __commonJS({
4290
4290
  function createFileSync(file) {
4291
4291
  let stats;
4292
4292
  try {
4293
- stats = fs12.statSync(file);
4293
+ stats = fs11.statSync(file);
4294
4294
  } catch {
4295
4295
  }
4296
4296
  if (stats && stats.isFile())
4297
4297
  return;
4298
4298
  const dir = path8.dirname(file);
4299
4299
  try {
4300
- if (!fs12.statSync(dir).isDirectory()) {
4301
- fs12.readdirSync(dir);
4300
+ if (!fs11.statSync(dir).isDirectory()) {
4301
+ fs11.readdirSync(dir);
4302
4302
  }
4303
4303
  } catch (err) {
4304
4304
  if (err && err.code === "ENOENT")
@@ -4306,7 +4306,7 @@ var require_file = __commonJS({
4306
4306
  else
4307
4307
  throw err;
4308
4308
  }
4309
- fs12.writeFileSync(file, "");
4309
+ fs11.writeFileSync(file, "");
4310
4310
  }
4311
4311
  module2.exports = {
4312
4312
  createFile: u(createFile),
@@ -4321,20 +4321,20 @@ var require_link = __commonJS({
4321
4321
  "use strict";
4322
4322
  var u = require_universalify().fromCallback;
4323
4323
  var path8 = require("path");
4324
- var fs12 = require_graceful_fs();
4324
+ var fs11 = require_graceful_fs();
4325
4325
  var mkdir = require_mkdirs();
4326
4326
  var pathExists = require_path_exists().pathExists;
4327
4327
  var { areIdentical } = require_stat();
4328
4328
  function createLink(srcpath, dstpath, callback) {
4329
4329
  function makeLink(srcpath2, dstpath2) {
4330
- fs12.link(srcpath2, dstpath2, (err) => {
4330
+ fs11.link(srcpath2, dstpath2, (err) => {
4331
4331
  if (err)
4332
4332
  return callback(err);
4333
4333
  callback(null);
4334
4334
  });
4335
4335
  }
4336
- fs12.lstat(dstpath, (_, dstStat) => {
4337
- fs12.lstat(srcpath, (err, srcStat) => {
4336
+ fs11.lstat(dstpath, (_, dstStat) => {
4337
+ fs11.lstat(srcpath, (err, srcStat) => {
4338
4338
  if (err) {
4339
4339
  err.message = err.message.replace("lstat", "ensureLink");
4340
4340
  return callback(err);
@@ -4359,11 +4359,11 @@ var require_link = __commonJS({
4359
4359
  function createLinkSync(srcpath, dstpath) {
4360
4360
  let dstStat;
4361
4361
  try {
4362
- dstStat = fs12.lstatSync(dstpath);
4362
+ dstStat = fs11.lstatSync(dstpath);
4363
4363
  } catch {
4364
4364
  }
4365
4365
  try {
4366
- const srcStat = fs12.lstatSync(srcpath);
4366
+ const srcStat = fs11.lstatSync(srcpath);
4367
4367
  if (dstStat && areIdentical(srcStat, dstStat))
4368
4368
  return;
4369
4369
  } catch (err) {
@@ -4371,11 +4371,11 @@ var require_link = __commonJS({
4371
4371
  throw err;
4372
4372
  }
4373
4373
  const dir = path8.dirname(dstpath);
4374
- const dirExists = fs12.existsSync(dir);
4374
+ const dirExists = fs11.existsSync(dir);
4375
4375
  if (dirExists)
4376
- return fs12.linkSync(srcpath, dstpath);
4376
+ return fs11.linkSync(srcpath, dstpath);
4377
4377
  mkdir.mkdirsSync(dir);
4378
- return fs12.linkSync(srcpath, dstpath);
4378
+ return fs11.linkSync(srcpath, dstpath);
4379
4379
  }
4380
4380
  module2.exports = {
4381
4381
  createLink: u(createLink),
@@ -4389,11 +4389,11 @@ var require_symlink_paths = __commonJS({
4389
4389
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
4390
4390
  "use strict";
4391
4391
  var path8 = require("path");
4392
- var fs12 = require_graceful_fs();
4392
+ var fs11 = require_graceful_fs();
4393
4393
  var pathExists = require_path_exists().pathExists;
4394
4394
  function symlinkPaths(srcpath, dstpath, callback) {
4395
4395
  if (path8.isAbsolute(srcpath)) {
4396
- return fs12.lstat(srcpath, (err) => {
4396
+ return fs11.lstat(srcpath, (err) => {
4397
4397
  if (err) {
4398
4398
  err.message = err.message.replace("lstat", "ensureSymlink");
4399
4399
  return callback(err);
@@ -4415,7 +4415,7 @@ var require_symlink_paths = __commonJS({
4415
4415
  toDst: srcpath
4416
4416
  });
4417
4417
  } else {
4418
- return fs12.lstat(srcpath, (err2) => {
4418
+ return fs11.lstat(srcpath, (err2) => {
4419
4419
  if (err2) {
4420
4420
  err2.message = err2.message.replace("lstat", "ensureSymlink");
4421
4421
  return callback(err2);
@@ -4432,7 +4432,7 @@ var require_symlink_paths = __commonJS({
4432
4432
  function symlinkPathsSync(srcpath, dstpath) {
4433
4433
  let exists;
4434
4434
  if (path8.isAbsolute(srcpath)) {
4435
- exists = fs12.existsSync(srcpath);
4435
+ exists = fs11.existsSync(srcpath);
4436
4436
  if (!exists)
4437
4437
  throw new Error("absolute srcpath does not exist");
4438
4438
  return {
@@ -4442,14 +4442,14 @@ var require_symlink_paths = __commonJS({
4442
4442
  } else {
4443
4443
  const dstdir = path8.dirname(dstpath);
4444
4444
  const relativeToDst = path8.join(dstdir, srcpath);
4445
- exists = fs12.existsSync(relativeToDst);
4445
+ exists = fs11.existsSync(relativeToDst);
4446
4446
  if (exists) {
4447
4447
  return {
4448
4448
  toCwd: relativeToDst,
4449
4449
  toDst: srcpath
4450
4450
  };
4451
4451
  } else {
4452
- exists = fs12.existsSync(srcpath);
4452
+ exists = fs11.existsSync(srcpath);
4453
4453
  if (!exists)
4454
4454
  throw new Error("relative srcpath does not exist");
4455
4455
  return {
@@ -4470,13 +4470,13 @@ var require_symlink_paths = __commonJS({
4470
4470
  var require_symlink_type = __commonJS({
4471
4471
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module2) {
4472
4472
  "use strict";
4473
- var fs12 = require_graceful_fs();
4473
+ var fs11 = require_graceful_fs();
4474
4474
  function symlinkType(srcpath, type, callback) {
4475
4475
  callback = typeof type === "function" ? type : callback;
4476
4476
  type = typeof type === "function" ? false : type;
4477
4477
  if (type)
4478
4478
  return callback(null, type);
4479
- fs12.lstat(srcpath, (err, stats) => {
4479
+ fs11.lstat(srcpath, (err, stats) => {
4480
4480
  if (err)
4481
4481
  return callback(null, "file");
4482
4482
  type = stats && stats.isDirectory() ? "dir" : "file";
@@ -4488,7 +4488,7 @@ var require_symlink_type = __commonJS({
4488
4488
  if (type)
4489
4489
  return type;
4490
4490
  try {
4491
- stats = fs12.lstatSync(srcpath);
4491
+ stats = fs11.lstatSync(srcpath);
4492
4492
  } catch {
4493
4493
  return "file";
4494
4494
  }
@@ -4507,7 +4507,7 @@ var require_symlink = __commonJS({
4507
4507
  "use strict";
4508
4508
  var u = require_universalify().fromCallback;
4509
4509
  var path8 = require("path");
4510
- var fs12 = require_fs();
4510
+ var fs11 = require_fs();
4511
4511
  var _mkdirs = require_mkdirs();
4512
4512
  var mkdirs = _mkdirs.mkdirs;
4513
4513
  var mkdirsSync = _mkdirs.mkdirsSync;
@@ -4522,11 +4522,11 @@ var require_symlink = __commonJS({
4522
4522
  function createSymlink(srcpath, dstpath, type, callback) {
4523
4523
  callback = typeof type === "function" ? type : callback;
4524
4524
  type = typeof type === "function" ? false : type;
4525
- fs12.lstat(dstpath, (err, stats) => {
4525
+ fs11.lstat(dstpath, (err, stats) => {
4526
4526
  if (!err && stats.isSymbolicLink()) {
4527
4527
  Promise.all([
4528
- fs12.stat(srcpath),
4529
- fs12.stat(dstpath)
4528
+ fs11.stat(srcpath),
4529
+ fs11.stat(dstpath)
4530
4530
  ]).then(([srcStat, dstStat]) => {
4531
4531
  if (areIdentical(srcStat, dstStat))
4532
4532
  return callback(null);
@@ -4549,11 +4549,11 @@ var require_symlink = __commonJS({
4549
4549
  if (err3)
4550
4550
  return callback(err3);
4551
4551
  if (dirExists)
4552
- return fs12.symlink(srcpath, dstpath, type2, callback);
4552
+ return fs11.symlink(srcpath, dstpath, type2, callback);
4553
4553
  mkdirs(dir, (err4) => {
4554
4554
  if (err4)
4555
4555
  return callback(err4);
4556
- fs12.symlink(srcpath, dstpath, type2, callback);
4556
+ fs11.symlink(srcpath, dstpath, type2, callback);
4557
4557
  });
4558
4558
  });
4559
4559
  });
@@ -4562,12 +4562,12 @@ var require_symlink = __commonJS({
4562
4562
  function createSymlinkSync(srcpath, dstpath, type) {
4563
4563
  let stats;
4564
4564
  try {
4565
- stats = fs12.lstatSync(dstpath);
4565
+ stats = fs11.lstatSync(dstpath);
4566
4566
  } catch {
4567
4567
  }
4568
4568
  if (stats && stats.isSymbolicLink()) {
4569
- const srcStat = fs12.statSync(srcpath);
4570
- const dstStat = fs12.statSync(dstpath);
4569
+ const srcStat = fs11.statSync(srcpath);
4570
+ const dstStat = fs11.statSync(dstpath);
4571
4571
  if (areIdentical(srcStat, dstStat))
4572
4572
  return;
4573
4573
  }
@@ -4575,11 +4575,11 @@ var require_symlink = __commonJS({
4575
4575
  srcpath = relative2.toDst;
4576
4576
  type = symlinkTypeSync(relative2.toCwd, type);
4577
4577
  const dir = path8.dirname(dstpath);
4578
- const exists = fs12.existsSync(dir);
4578
+ const exists = fs11.existsSync(dir);
4579
4579
  if (exists)
4580
- return fs12.symlinkSync(srcpath, dstpath, type);
4580
+ return fs11.symlinkSync(srcpath, dstpath, type);
4581
4581
  mkdirsSync(dir);
4582
- return fs12.symlinkSync(srcpath, dstpath, type);
4582
+ return fs11.symlinkSync(srcpath, dstpath, type);
4583
4583
  }
4584
4584
  module2.exports = {
4585
4585
  createSymlink: u(createSymlink),
@@ -4650,9 +4650,9 @@ var require_jsonfile = __commonJS({
4650
4650
  if (typeof options === "string") {
4651
4651
  options = { encoding: options };
4652
4652
  }
4653
- const fs12 = options.fs || _fs;
4653
+ const fs11 = options.fs || _fs;
4654
4654
  const shouldThrow = "throws" in options ? options.throws : true;
4655
- let data = await universalify.fromCallback(fs12.readFile)(file, options);
4655
+ let data = await universalify.fromCallback(fs11.readFile)(file, options);
4656
4656
  data = stripBom(data);
4657
4657
  let obj;
4658
4658
  try {
@@ -4672,10 +4672,10 @@ var require_jsonfile = __commonJS({
4672
4672
  if (typeof options === "string") {
4673
4673
  options = { encoding: options };
4674
4674
  }
4675
- const fs12 = options.fs || _fs;
4675
+ const fs11 = options.fs || _fs;
4676
4676
  const shouldThrow = "throws" in options ? options.throws : true;
4677
4677
  try {
4678
- let content = fs12.readFileSync(file, options);
4678
+ let content = fs11.readFileSync(file, options);
4679
4679
  content = stripBom(content);
4680
4680
  return JSON.parse(content, options.reviver);
4681
4681
  } catch (err) {
@@ -4688,15 +4688,15 @@ var require_jsonfile = __commonJS({
4688
4688
  }
4689
4689
  }
4690
4690
  async function _writeFile(file, obj, options = {}) {
4691
- const fs12 = options.fs || _fs;
4691
+ const fs11 = options.fs || _fs;
4692
4692
  const str = stringify2(obj, options);
4693
- await universalify.fromCallback(fs12.writeFile)(file, str, options);
4693
+ await universalify.fromCallback(fs11.writeFile)(file, str, options);
4694
4694
  }
4695
4695
  var writeFile = universalify.fromPromise(_writeFile);
4696
4696
  function writeFileSync(file, obj, options = {}) {
4697
- const fs12 = options.fs || _fs;
4697
+ const fs11 = options.fs || _fs;
4698
4698
  const str = stringify2(obj, options);
4699
- return fs12.writeFileSync(file, str, options);
4699
+ return fs11.writeFileSync(file, str, options);
4700
4700
  }
4701
4701
  module2.exports = {
4702
4702
  readFile: readFile3,
@@ -4727,7 +4727,7 @@ var require_output = __commonJS({
4727
4727
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/output/index.js"(exports, module2) {
4728
4728
  "use strict";
4729
4729
  var u = require_universalify().fromCallback;
4730
- var fs12 = require_graceful_fs();
4730
+ var fs11 = require_graceful_fs();
4731
4731
  var path8 = require("path");
4732
4732
  var mkdir = require_mkdirs();
4733
4733
  var pathExists = require_path_exists().pathExists;
@@ -4741,21 +4741,21 @@ var require_output = __commonJS({
4741
4741
  if (err)
4742
4742
  return callback(err);
4743
4743
  if (itDoes)
4744
- return fs12.writeFile(file, data, encoding, callback);
4744
+ return fs11.writeFile(file, data, encoding, callback);
4745
4745
  mkdir.mkdirs(dir, (err2) => {
4746
4746
  if (err2)
4747
4747
  return callback(err2);
4748
- fs12.writeFile(file, data, encoding, callback);
4748
+ fs11.writeFile(file, data, encoding, callback);
4749
4749
  });
4750
4750
  });
4751
4751
  }
4752
4752
  function outputFileSync(file, ...args) {
4753
4753
  const dir = path8.dirname(file);
4754
- if (fs12.existsSync(dir)) {
4755
- return fs12.writeFileSync(file, ...args);
4754
+ if (fs11.existsSync(dir)) {
4755
+ return fs11.writeFileSync(file, ...args);
4756
4756
  }
4757
4757
  mkdir.mkdirsSync(dir);
4758
- fs12.writeFileSync(file, ...args);
4758
+ fs11.writeFileSync(file, ...args);
4759
4759
  }
4760
4760
  module2.exports = {
4761
4761
  outputFile: u(outputFile),
@@ -4814,7 +4814,7 @@ var require_json = __commonJS({
4814
4814
  var require_move_sync = __commonJS({
4815
4815
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/move-sync/move-sync.js"(exports, module2) {
4816
4816
  "use strict";
4817
- var fs12 = require_graceful_fs();
4817
+ var fs11 = require_graceful_fs();
4818
4818
  var path8 = require("path");
4819
4819
  var copySync = require_copy_sync2().copySync;
4820
4820
  var removeSync = require_remove().removeSync;
@@ -4841,13 +4841,13 @@ var require_move_sync = __commonJS({
4841
4841
  removeSync(dest);
4842
4842
  return rename2(src, dest, overwrite);
4843
4843
  }
4844
- if (fs12.existsSync(dest))
4844
+ if (fs11.existsSync(dest))
4845
4845
  throw new Error("dest already exists.");
4846
4846
  return rename2(src, dest, overwrite);
4847
4847
  }
4848
4848
  function rename2(src, dest, overwrite) {
4849
4849
  try {
4850
- fs12.renameSync(src, dest);
4850
+ fs11.renameSync(src, dest);
4851
4851
  } catch (err) {
4852
4852
  if (err.code !== "EXDEV")
4853
4853
  throw err;
@@ -4880,7 +4880,7 @@ var require_move_sync2 = __commonJS({
4880
4880
  var require_move = __commonJS({
4881
4881
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/move/move.js"(exports, module2) {
4882
4882
  "use strict";
4883
- var fs12 = require_graceful_fs();
4883
+ var fs11 = require_graceful_fs();
4884
4884
  var path8 = require("path");
4885
4885
  var copy = require_copy2().copy;
4886
4886
  var remove2 = require_remove().remove;
@@ -4934,7 +4934,7 @@ var require_move = __commonJS({
4934
4934
  });
4935
4935
  }
4936
4936
  function rename2(src, dest, overwrite, cb) {
4937
- fs12.rename(src, dest, (err) => {
4937
+ fs11.rename(src, dest, (err) => {
4938
4938
  if (!err)
4939
4939
  return cb();
4940
4940
  if (err.code !== "EXDEV")
@@ -6015,7 +6015,7 @@ var require_buffer_crc32 = __commonJS({
6015
6015
  // ../../node_modules/.pnpm/yazl@2.5.1/node_modules/yazl/index.js
6016
6016
  var require_yazl = __commonJS({
6017
6017
  "../../node_modules/.pnpm/yazl@2.5.1/node_modules/yazl/index.js"(exports) {
6018
- var fs12 = require("fs");
6018
+ var fs11 = require("fs");
6019
6019
  var Transform = require("stream").Transform;
6020
6020
  var PassThrough = require("stream").PassThrough;
6021
6021
  var zlib = require("zlib");
@@ -6040,7 +6040,7 @@ var require_yazl = __commonJS({
6040
6040
  options = {};
6041
6041
  var entry = new Entry(metadataPath, false, options);
6042
6042
  self2.entries.push(entry);
6043
- fs12.stat(realPath, function(err, stats) {
6043
+ fs11.stat(realPath, function(err, stats) {
6044
6044
  if (err)
6045
6045
  return self2.emit("error", err);
6046
6046
  if (!stats.isFile())
@@ -6051,7 +6051,7 @@ var require_yazl = __commonJS({
6051
6051
  if (options.mode == null)
6052
6052
  entry.setFileAttributesMode(stats.mode);
6053
6053
  entry.setFileDataPumpFunction(function() {
6054
- var readStream = fs12.createReadStream(realPath);
6054
+ var readStream = fs11.createReadStream(realPath);
6055
6055
  entry.state = Entry.FILE_DATA_IN_PROGRESS;
6056
6056
  readStream.on("error", function(err2) {
6057
6057
  self2.emit("error", err2);
@@ -7623,7 +7623,7 @@ var require_old = __commonJS({
7623
7623
  "../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js"(exports) {
7624
7624
  var pathModule = require("path");
7625
7625
  var isWindows = process.platform === "win32";
7626
- var fs12 = require("fs");
7626
+ var fs11 = require("fs");
7627
7627
  var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
7628
7628
  function rethrow() {
7629
7629
  var callback;
@@ -7688,7 +7688,7 @@ var require_old = __commonJS({
7688
7688
  base = m[0];
7689
7689
  previous = "";
7690
7690
  if (isWindows && !knownHard[base]) {
7691
- fs12.lstatSync(base);
7691
+ fs11.lstatSync(base);
7692
7692
  knownHard[base] = true;
7693
7693
  }
7694
7694
  }
@@ -7706,7 +7706,7 @@ var require_old = __commonJS({
7706
7706
  if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
7707
7707
  resolvedLink = cache[base];
7708
7708
  } else {
7709
- var stat2 = fs12.lstatSync(base);
7709
+ var stat2 = fs11.lstatSync(base);
7710
7710
  if (!stat2.isSymbolicLink()) {
7711
7711
  knownHard[base] = true;
7712
7712
  if (cache)
@@ -7721,8 +7721,8 @@ var require_old = __commonJS({
7721
7721
  }
7722
7722
  }
7723
7723
  if (linkTarget === null) {
7724
- fs12.statSync(base);
7725
- linkTarget = fs12.readlinkSync(base);
7724
+ fs11.statSync(base);
7725
+ linkTarget = fs11.readlinkSync(base);
7726
7726
  }
7727
7727
  resolvedLink = pathModule.resolve(previous, linkTarget);
7728
7728
  if (cache)
@@ -7759,7 +7759,7 @@ var require_old = __commonJS({
7759
7759
  base = m[0];
7760
7760
  previous = "";
7761
7761
  if (isWindows && !knownHard[base]) {
7762
- fs12.lstat(base, function(err) {
7762
+ fs11.lstat(base, function(err) {
7763
7763
  if (err)
7764
7764
  return cb(err);
7765
7765
  knownHard[base] = true;
@@ -7787,7 +7787,7 @@ var require_old = __commonJS({
7787
7787
  if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
7788
7788
  return gotResolvedLink(cache[base]);
7789
7789
  }
7790
- return fs12.lstat(base, gotStat);
7790
+ return fs11.lstat(base, gotStat);
7791
7791
  }
7792
7792
  function gotStat(err, stat2) {
7793
7793
  if (err)
@@ -7804,10 +7804,10 @@ var require_old = __commonJS({
7804
7804
  return gotTarget(null, seenLinks[id], base);
7805
7805
  }
7806
7806
  }
7807
- fs12.stat(base, function(err2) {
7807
+ fs11.stat(base, function(err2) {
7808
7808
  if (err2)
7809
7809
  return cb(err2);
7810
- fs12.readlink(base, function(err3, target) {
7810
+ fs11.readlink(base, function(err3, target) {
7811
7811
  if (!isWindows)
7812
7812
  seenLinks[id] = target;
7813
7813
  gotTarget(err3, target);
@@ -7839,9 +7839,9 @@ var require_fs2 = __commonJS({
7839
7839
  realpath.realpathSync = realpathSync;
7840
7840
  realpath.monkeypatch = monkeypatch;
7841
7841
  realpath.unmonkeypatch = unmonkeypatch;
7842
- var fs12 = require("fs");
7843
- var origRealpath = fs12.realpath;
7844
- var origRealpathSync = fs12.realpathSync;
7842
+ var fs11 = require("fs");
7843
+ var origRealpath = fs11.realpath;
7844
+ var origRealpathSync = fs11.realpathSync;
7845
7845
  var version = process.version;
7846
7846
  var ok = /^v[0-5]\./.test(version);
7847
7847
  var old = require_old();
@@ -7879,12 +7879,12 @@ var require_fs2 = __commonJS({
7879
7879
  }
7880
7880
  }
7881
7881
  function monkeypatch() {
7882
- fs12.realpath = realpath;
7883
- fs12.realpathSync = realpathSync;
7882
+ fs11.realpath = realpath;
7883
+ fs11.realpathSync = realpathSync;
7884
7884
  }
7885
7885
  function unmonkeypatch() {
7886
- fs12.realpath = origRealpath;
7887
- fs12.realpathSync = origRealpathSync;
7886
+ fs11.realpath = origRealpath;
7887
+ fs11.realpathSync = origRealpathSync;
7888
7888
  }
7889
7889
  }
7890
7890
  });
@@ -8606,7 +8606,7 @@ var require_common = __commonJS({
8606
8606
  function ownProp(obj, field) {
8607
8607
  return Object.prototype.hasOwnProperty.call(obj, field);
8608
8608
  }
8609
- var fs12 = require("fs");
8609
+ var fs11 = require("fs");
8610
8610
  var path8 = require("path");
8611
8611
  var minimatch3 = require_minimatch2();
8612
8612
  var isAbsolute = require("path").isAbsolute;
@@ -8661,7 +8661,7 @@ var require_common = __commonJS({
8661
8661
  self2.stat = !!options.stat;
8662
8662
  self2.noprocess = !!options.noprocess;
8663
8663
  self2.absolute = !!options.absolute;
8664
- self2.fs = options.fs || fs12;
8664
+ self2.fs = options.fs || fs11;
8665
8665
  self2.maxLength = options.maxLength || Infinity;
8666
8666
  self2.cache = options.cache || /* @__PURE__ */ Object.create(null);
8667
8667
  self2.statCache = options.statCache || /* @__PURE__ */ Object.create(null);
@@ -9760,7 +9760,7 @@ var require_windows = __commonJS({
9760
9760
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module2) {
9761
9761
  module2.exports = isexe;
9762
9762
  isexe.sync = sync;
9763
- var fs12 = require("fs");
9763
+ var fs11 = require("fs");
9764
9764
  function checkPathExt(path8, options) {
9765
9765
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
9766
9766
  if (!pathext) {
@@ -9785,12 +9785,12 @@ var require_windows = __commonJS({
9785
9785
  return checkPathExt(path8, options);
9786
9786
  }
9787
9787
  function isexe(path8, options, cb) {
9788
- fs12.stat(path8, function(er, stat2) {
9788
+ fs11.stat(path8, function(er, stat2) {
9789
9789
  cb(er, er ? false : checkStat(stat2, path8, options));
9790
9790
  });
9791
9791
  }
9792
9792
  function sync(path8, options) {
9793
- return checkStat(fs12.statSync(path8), path8, options);
9793
+ return checkStat(fs11.statSync(path8), path8, options);
9794
9794
  }
9795
9795
  }
9796
9796
  });
@@ -9800,14 +9800,14 @@ var require_mode = __commonJS({
9800
9800
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module2) {
9801
9801
  module2.exports = isexe;
9802
9802
  isexe.sync = sync;
9803
- var fs12 = require("fs");
9803
+ var fs11 = require("fs");
9804
9804
  function isexe(path8, options, cb) {
9805
- fs12.stat(path8, function(er, stat2) {
9805
+ fs11.stat(path8, function(er, stat2) {
9806
9806
  cb(er, er ? false : checkStat(stat2, options));
9807
9807
  });
9808
9808
  }
9809
9809
  function sync(path8, options) {
9810
- return checkStat(fs12.statSync(path8), options);
9810
+ return checkStat(fs11.statSync(path8), options);
9811
9811
  }
9812
9812
  function checkStat(stat2, options) {
9813
9813
  return stat2.isFile() && checkMode(stat2, options);
@@ -9831,7 +9831,7 @@ var require_mode = __commonJS({
9831
9831
  // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
9832
9832
  var require_isexe = __commonJS({
9833
9833
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module2) {
9834
- var fs12 = require("fs");
9834
+ var fs11 = require("fs");
9835
9835
  var core;
9836
9836
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
9837
9837
  core = require_windows();
@@ -10107,7 +10107,7 @@ var require_shebang_command = __commonJS({
10107
10107
  var require_readShebang = __commonJS({
10108
10108
  "../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
10109
10109
  "use strict";
10110
- var fs12 = require("fs");
10110
+ var fs11 = require("fs");
10111
10111
  var shebangCommand = require_shebang_command();
10112
10112
  function readShebang(command) {
10113
10113
  const size = 150;
@@ -10120,9 +10120,9 @@ var require_readShebang = __commonJS({
10120
10120
  }
10121
10121
  let fd;
10122
10122
  try {
10123
- fd = fs12.openSync(command, "r");
10124
- fs12.readSync(fd, buffer, 0, size, 0);
10125
- fs12.closeSync(fd);
10123
+ fd = fs11.openSync(command, "r");
10124
+ fs11.readSync(fd, buffer, 0, size, 0);
10125
+ fs11.closeSync(fd);
10126
10126
  } catch (e) {
10127
10127
  }
10128
10128
  return shebangCommand(buffer.toString());
@@ -11343,7 +11343,7 @@ var require_cross_spawn = __commonJS({
11343
11343
  var cp = require("child_process");
11344
11344
  var parse6 = require_parse();
11345
11345
  var enoent = require_enoent();
11346
- function spawn2(command, args, options) {
11346
+ function spawn3(command, args, options) {
11347
11347
  const parsed = parse6(command, args, options);
11348
11348
  const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
11349
11349
  enoent.hookChildProcess(spawned, parsed);
@@ -11355,8 +11355,8 @@ var require_cross_spawn = __commonJS({
11355
11355
  result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
11356
11356
  return result;
11357
11357
  }
11358
- module2.exports = spawn2;
11359
- module2.exports.spawn = spawn2;
11358
+ module2.exports = spawn3;
11359
+ module2.exports.spawn = spawn3;
11360
11360
  module2.exports.sync = spawnSync;
11361
11361
  module2.exports._parse = parse6;
11362
11362
  module2.exports._enoent = enoent;
@@ -34386,6 +34386,7 @@ __export(src_exports, {
34386
34386
  getNodeBinPath: () => getNodeBinPath,
34387
34387
  getNodeBinPaths: () => getNodeBinPaths,
34388
34388
  getNodeVersion: () => getNodeVersion,
34389
+ getOrCreateBunBinary: () => getOrCreateBunBinary,
34389
34390
  getPackageJson: () => getPackageJson,
34390
34391
  getPathForPackageManager: () => getPathForPackageManager,
34391
34392
  getPlatformEnv: () => getPlatformEnv,
@@ -34421,7 +34422,6 @@ __export(src_exports, {
34421
34422
  isNodeBackendFramework: () => isNodeBackendFramework,
34422
34423
  isNodeEntrypoint: () => isNodeEntrypoint,
34423
34424
  isPackageInstalled: () => isPackageInstalled,
34424
- isPythonEntrypoint: () => isPythonEntrypoint,
34425
34425
  isPythonFramework: () => isPythonFramework,
34426
34426
  isQueueBackedService: () => isQueueBackedService,
34427
34427
  isQueueTriggeredService: () => isQueueTriggeredService,
@@ -35796,6 +35796,12 @@ var NODE_VERSIONS = [
35796
35796
  })
35797
35797
  ];
35798
35798
  var BUN_VERSIONS = [
35799
+ new BunVersion({
35800
+ major: 1,
35801
+ minor: 4,
35802
+ range: "1.4.x",
35803
+ runtime: "bun1.4.x"
35804
+ }),
35799
35805
  new BunVersion({
35800
35806
  major: 1,
35801
35807
  range: "1.x",
@@ -35885,11 +35891,15 @@ async function getSupportedNodeVersion(engineRange, isAuto = false, availableVer
35885
35891
  function getSupportedBunVersion(engineRange) {
35886
35892
  if ((0, import_semver.validRange)(engineRange)) {
35887
35893
  const selected = BUN_VERSIONS.find((version) => {
35888
- return (0, import_semver.intersects)(version.range, engineRange);
35894
+ if (!(0, import_semver.intersects)(version.range, engineRange)) {
35895
+ return false;
35896
+ }
35897
+ return version.minor === void 0 ? true : !(0, import_semver.intersects)(`<${version.major}.${version.minor}.0`, engineRange);
35889
35898
  });
35890
35899
  if (selected) {
35891
35900
  return new BunVersion({
35892
35901
  major: selected.major,
35902
+ minor: selected.minor,
35893
35903
  range: selected.range,
35894
35904
  runtime: selected.runtime
35895
35905
  });
@@ -37314,6 +37324,7 @@ function getEnvForPackageManager({
37314
37324
  cliType,
37315
37325
  lockfileVersion,
37316
37326
  packageJsonPackageManager,
37327
+ nodeVersion,
37317
37328
  env,
37318
37329
  packageJsonEngines,
37319
37330
  turboSupportsCorepackHome,
@@ -37333,6 +37344,7 @@ function getEnvForPackageManager({
37333
37344
  lockfileVersion,
37334
37345
  corepackPackageManager: packageJsonPackageManager,
37335
37346
  corepackEnabled,
37347
+ nodeVersion,
37336
37348
  packageJsonEngines,
37337
37349
  projectCreatedAt
37338
37350
  });
@@ -37348,14 +37360,23 @@ function getEnvForPackageManager({
37348
37360
  const newEnv = {
37349
37361
  ...env
37350
37362
  };
37363
+ const bunRuntimePath = nodeVersion && isBunVersion(nodeVersion) ? `/bun${nodeVersion.major}${nodeVersion.minor === void 0 ? "" : `.${nodeVersion.minor}`}` : void 0;
37351
37364
  const alreadyInPath = (newPath2) => {
37352
37365
  const oldPath = env.PATH ?? "";
37353
37366
  return oldPath.split(import_path6.default.delimiter).includes(newPath2);
37354
37367
  };
37355
- if (newPath && !alreadyInPath(newPath)) {
37368
+ const hasSelectedBunPath = cliType === "bun" && nodeVersion === void 0 && (env.PATH ?? "").split(import_path6.default.delimiter).some((segment) => /^\/bun\d+(?:\.\d+)?$/.test(segment));
37369
+ const pathsToPrepend = Array.from(
37370
+ new Set(
37371
+ [newPath, bunRuntimePath].filter((value) => !!value)
37372
+ )
37373
+ ).filter(
37374
+ (value) => !alreadyInPath(value) && !(hasSelectedBunPath && value === newPath)
37375
+ );
37376
+ if (pathsToPrepend.length > 0) {
37356
37377
  const oldPath = env.PATH + "";
37357
- newEnv.PATH = `${newPath}${import_path6.default.delimiter}${oldPath}`;
37358
- if (detectedLockfile && detectedPackageManager) {
37378
+ newEnv.PATH = `${pathsToPrepend.join(import_path6.default.delimiter)}${oldPath ? import_path6.default.delimiter : ""}${oldPath}`;
37379
+ if (newPath && pathsToPrepend.includes(newPath) && detectedLockfile && detectedPackageManager) {
37359
37380
  const detectedV9PnpmLockfile = detectedLockfile === "pnpm-lock.yaml" && lockfileVersion === 9;
37360
37381
  const pnpm10UsingPackageJsonPackageManager = detectedPackageManager === "pnpm@10.x" && packageJsonPackageManager;
37361
37382
  if (pnpm10UsingPackageJsonPackageManager) {
@@ -37451,6 +37472,7 @@ function getPathOverrideForPackageManager({
37451
37472
  lockfileVersion,
37452
37473
  corepackPackageManager,
37453
37474
  corepackEnabled = true,
37475
+ nodeVersion,
37454
37476
  packageJsonEngines,
37455
37477
  projectCreatedAt
37456
37478
  }) {
@@ -37478,6 +37500,14 @@ function getPathOverrideForPackageManager({
37478
37500
  );
37479
37501
  }
37480
37502
  }
37503
+ if (cliType === "bun" && detectedPackageManger && nodeVersion && isBunVersion(nodeVersion)) {
37504
+ const minor = nodeVersion.minor;
37505
+ return {
37506
+ ...detectedPackageManger,
37507
+ path: `/bun${nodeVersion.major}${minor === void 0 ? "" : `.${minor}`}`,
37508
+ detectedPackageManager: `bun@${nodeVersion.range}`
37509
+ };
37510
+ }
37481
37511
  return detectedPackageManger ?? NO_OVERRIDE;
37482
37512
  }
37483
37513
  function checkEnginesPnpmAgainstDetected(enginesPnpm, detectedPackageManger) {
@@ -37788,8 +37818,67 @@ var installDependencies = (0, import_util6.deprecate)(
37788
37818
  "installDependencies() is deprecated. Please use runNpmInstall() instead."
37789
37819
  );
37790
37820
 
37821
+ // src/fs/bun-helpers.ts
37822
+ var import_os2 = require("os");
37823
+ var import_path7 = require("path");
37824
+ var import_child_process = require("child_process");
37825
+ function spawnAsync2(command, args, options) {
37826
+ return new Promise((resolve, reject) => {
37827
+ const child = (0, import_child_process.spawn)(command, args, options);
37828
+ child.once("error", reject);
37829
+ child.once("close", resolve);
37830
+ });
37831
+ }
37832
+ async function getOrCreateBunBinary() {
37833
+ const bunCommand = process.platform === "win32" ? "bun.exe" : "bun";
37834
+ const installPath = (0, import_path7.join)((0, import_os2.homedir)(), ".bun", "bin", bunCommand);
37835
+ try {
37836
+ if (await spawnAsync2(bunCommand, ["--version"], { stdio: "ignore" }) === 0) {
37837
+ debug("Bun already installed and available in PATH");
37838
+ return bunCommand;
37839
+ }
37840
+ } catch {
37841
+ debug("Bun not found in PATH");
37842
+ }
37843
+ try {
37844
+ if (await spawnAsync2(installPath, ["--version"], { stdio: "ignore" }) === 0) {
37845
+ debug("Bun already installed in default location");
37846
+ return installPath;
37847
+ }
37848
+ } catch {
37849
+ debug("Bun not found in default location");
37850
+ }
37851
+ console.log("Installing Bun...");
37852
+ try {
37853
+ const exitCode = process.platform === "win32" ? await spawnAsync2(
37854
+ "powershell",
37855
+ ["-c", "irm bun.sh/install.ps1 | iex"],
37856
+ { stdio: "inherit" }
37857
+ ) : await spawnAsync2(
37858
+ "bash",
37859
+ ["-c", "curl -fsSL https://bun.sh/install | bash"],
37860
+ { stdio: "inherit" }
37861
+ );
37862
+ if (exitCode !== 0) {
37863
+ throw new Error(`Installation script exited with code ${exitCode}`);
37864
+ }
37865
+ } catch (error) {
37866
+ throw new Error(`Failed to install Bun: ${error}`);
37867
+ }
37868
+ try {
37869
+ if (await spawnAsync2(installPath, ["--version"], { stdio: "ignore" }) === 0) {
37870
+ debug("Bun was installed successfully");
37871
+ return installPath;
37872
+ }
37873
+ } catch {
37874
+ }
37875
+ throw new Error(
37876
+ "Bun installation failed. Please install manually and try again."
37877
+ );
37878
+ }
37879
+
37791
37880
  // src/get-ignore-filter.ts
37792
- var import_path7 = __toESM(require("path"));
37881
+ var import_path8 = __toESM(require("path"));
37793
37882
  var import_fs_extra8 = __toESM(require_lib());
37794
37883
  var import_ignore = __toESM(require_ignore());
37795
37884
  function isCodedError(error) {
@@ -37809,12 +37898,12 @@ async function get_ignore_filter_default(downloadPath, rootDirectory) {
37809
37898
  throw error;
37810
37899
  }
37811
37900
  };
37812
- const vercelIgnorePath = import_path7.default.join(
37901
+ const vercelIgnorePath = import_path8.default.join(
37813
37902
  downloadPath,
37814
37903
  rootDirectory || "",
37815
37904
  ".vercelignore"
37816
37905
  );
37817
- const nowIgnorePath = import_path7.default.join(
37906
+ const nowIgnorePath = import_path8.default.join(
37818
37907
  downloadPath,
37819
37908
  rootDirectory || "",
37820
37909
  ".nowignore"
@@ -37979,22 +38068,22 @@ function getExperimentalServiceUrlEnvVars(options) {
37979
38068
  }
37980
38069
 
37981
38070
  // src/hard-link-dir.ts
37982
- var import_path8 = __toESM(require("path"));
38071
+ var import_path9 = __toESM(require("path"));
37983
38072
  var import_fs2 = require("fs");
37984
38073
  async function hardLinkDir(src, destDirs) {
37985
38074
  if (destDirs.length === 0)
37986
38075
  return;
37987
- destDirs = destDirs.filter((destDir) => import_path8.default.relative(destDir, src) !== "");
38076
+ destDirs = destDirs.filter((destDir) => import_path9.default.relative(destDir, src) !== "");
37988
38077
  const files = await import_fs2.promises.readdir(src);
37989
38078
  await Promise.all(
37990
38079
  files.map(async (file) => {
37991
38080
  if (file === "node_modules")
37992
38081
  return;
37993
- const srcFile = import_path8.default.join(src, file);
38082
+ const srcFile = import_path9.default.join(src, file);
37994
38083
  if ((await import_fs2.promises.lstat(srcFile)).isDirectory()) {
37995
38084
  const destSubdirs = await Promise.all(
37996
38085
  destDirs.map(async (destDir) => {
37997
- const destSubdir = import_path8.default.join(destDir, file);
38086
+ const destSubdir = import_path9.default.join(destDir, file);
37998
38087
  try {
37999
38088
  await import_fs2.promises.mkdir(destSubdir, { recursive: true });
38000
38089
  } catch (err) {
@@ -38009,7 +38098,7 @@ async function hardLinkDir(src, destDirs) {
38009
38098
  }
38010
38099
  await Promise.all(
38011
38100
  destDirs.map(async (destDir) => {
38012
- const destFile = import_path8.default.join(destDir, file);
38101
+ const destFile = import_path9.default.join(destDir, file);
38013
38102
  try {
38014
38103
  await linkOrCopyFile(srcFile, destFile);
38015
38104
  } catch (err) {
@@ -38028,7 +38117,7 @@ async function linkOrCopyFile(srcFile, destFile) {
38028
38117
  await linkOrCopy(srcFile, destFile);
38029
38118
  } catch (err) {
38030
38119
  if (err.code === "ENOENT") {
38031
- await import_fs2.promises.mkdir(import_path8.default.dirname(destFile), { recursive: true });
38120
+ await import_fs2.promises.mkdir(import_path9.default.dirname(destFile), { recursive: true });
38032
38121
  await linkOrCopy(srcFile, destFile);
38033
38122
  return;
38034
38123
  }
@@ -38048,10 +38137,10 @@ async function linkOrCopy(srcFile, destFile) {
38048
38137
  }
38049
38138
 
38050
38139
  // src/validate-npmrc.ts
38051
- var import_path9 = require("path");
38140
+ var import_path10 = require("path");
38052
38141
  var import_promises = require("fs/promises");
38053
38142
  async function validateNpmrc(cwd) {
38054
- const npmrc = await (0, import_promises.readFile)((0, import_path9.join)(cwd, ".npmrc"), "utf-8").catch((err) => {
38143
+ const npmrc = await (0, import_promises.readFile)((0, import_path10.join)(cwd, ".npmrc"), "utf-8").catch((err) => {
38055
38144
  if (err.code !== "ENOENT")
38056
38145
  throw err;
38057
38146
  });
@@ -38104,7 +38193,7 @@ async function getProvidedRuntime() {
38104
38193
  }
38105
38194
 
38106
38195
  // src/should-serve.ts
38107
- var import_path10 = require("path");
38196
+ var import_path11 = require("path");
38108
38197
  var shouldServe = ({
38109
38198
  entrypoint,
38110
38199
  files,
@@ -38115,7 +38204,7 @@ var shouldServe = ({
38115
38204
  if (entrypoint === requestPath && hasProp2(files, entrypoint)) {
38116
38205
  return true;
38117
38206
  }
38118
- const { dir, name } = (0, import_path10.parse)(entrypoint);
38207
+ const { dir, name } = (0, import_path11.parse)(entrypoint);
38119
38208
  if (name === "index" && dir === requestPath && hasProp2(files, entrypoint)) {
38120
38209
  return true;
38121
38210
  }
@@ -38378,21 +38467,21 @@ var packageManifestSchema = {
38378
38467
 
38379
38468
  // src/package-manifest.ts
38380
38469
  var import_fs3 = __toESM(require("fs"));
38381
- var import_path11 = require("path");
38470
+ var import_path12 = require("path");
38382
38471
  var MANIFEST_VERSION = "20260304";
38383
38472
  var MANIFEST_FILENAME = "package-manifest.json";
38384
38473
  function manifestPath(runtime) {
38385
- return (0, import_path11.join)(".vercel", runtime, MANIFEST_FILENAME);
38474
+ return (0, import_path12.join)(".vercel", runtime, MANIFEST_FILENAME);
38386
38475
  }
38387
38476
  async function writeProjectManifest(manifest, workPath, runtime) {
38388
- const outPath = (0, import_path11.join)(workPath, manifestPath(runtime));
38389
- await import_fs3.default.promises.mkdir((0, import_path11.dirname)(outPath), { recursive: true });
38477
+ const outPath = (0, import_path12.join)(workPath, manifestPath(runtime));
38478
+ await import_fs3.default.promises.mkdir((0, import_path12.dirname)(outPath), { recursive: true });
38390
38479
  await import_fs3.default.promises.writeFile(outPath, JSON.stringify(manifest, null, 2));
38391
38480
  }
38392
38481
  function createDiagnostics(runtime) {
38393
38482
  return async ({ workPath }) => {
38394
38483
  try {
38395
- const filePath = (0, import_path11.join)(workPath, manifestPath(runtime));
38484
+ const filePath = (0, import_path12.join)(workPath, manifestPath(runtime));
38396
38485
  const data = await import_fs3.default.promises.readFile(filePath, "utf-8");
38397
38486
  return {
38398
38487
  [MANIFEST_FILENAME]: new FileBlob({ data })
@@ -38405,7 +38494,7 @@ function createDiagnostics(runtime) {
38405
38494
 
38406
38495
  // src/node-diagnostics.ts
38407
38496
  var import_fs4 = __toESM(require("fs"));
38408
- var import_path12 = __toESM(require("path"));
38497
+ var import_path13 = __toESM(require("path"));
38409
38498
  var import_js_yaml3 = __toESM(require_js_yaml2());
38410
38499
  var import_parsers = __toESM(require_lib4());
38411
38500
  function classifySource(resolvedUrl) {
@@ -38717,12 +38806,12 @@ async function readPackageJson(startDir) {
38717
38806
  for (; ; ) {
38718
38807
  try {
38719
38808
  const content = await import_fs4.default.promises.readFile(
38720
- import_path12.default.join(current, "package.json"),
38809
+ import_path13.default.join(current, "package.json"),
38721
38810
  "utf-8"
38722
38811
  );
38723
38812
  return JSON.parse(content);
38724
38813
  } catch {
38725
- const parent = import_path12.default.dirname(current);
38814
+ const parent = import_path13.default.dirname(current);
38726
38815
  if (parent === current)
38727
38816
  return null;
38728
38817
  current = parent;
@@ -38810,7 +38899,7 @@ async function generateProjectManifest({
38810
38899
  for (const filename of [".node-version", ".nvmrc"]) {
38811
38900
  try {
38812
38901
  const val = await import_fs4.default.promises.readFile(
38813
- import_path12.default.join(workPath, filename),
38902
+ import_path13.default.join(workPath, filename),
38814
38903
  "utf-8"
38815
38904
  );
38816
38905
  const trimmed = val.trim();
@@ -39387,24 +39476,8 @@ function shouldUseExperimentalBackends(framework) {
39387
39476
  return isExperimentalBackendsEnabled() && isBackendFramework(framework);
39388
39477
  }
39389
39478
 
39390
- // src/python.ts
39391
- var import_fs6 = __toESM(require("fs"));
39392
- var import_python_analysis = require("@vercel/python-analysis");
39393
- async function isPythonEntrypoint(file) {
39394
- try {
39395
- const fsPath = file.fsPath;
39396
- if (!fsPath)
39397
- return false;
39398
- const content = await import_fs6.default.promises.readFile(fsPath, "utf-8");
39399
- return await (0, import_python_analysis.findAppOrHandler)(content) !== null;
39400
- } catch (err) {
39401
- debug(`Failed to check Python entrypoint: ${err}`);
39402
- return false;
39403
- }
39404
- }
39405
-
39406
39479
  // src/node-entrypoint.ts
39407
- var import_fs7 = __toESM(require("fs"));
39480
+ var import_fs6 = __toESM(require("fs"));
39408
39481
 
39409
39482
  // ../../node_modules/.pnpm/es-module-lexer@1.5.0/node_modules/es-module-lexer/dist/lexer.js
39410
39483
  var ImportType;
@@ -39583,7 +39656,7 @@ async function isNodeEntrypoint(file) {
39583
39656
  const fsPath = file.fsPath;
39584
39657
  if (!fsPath)
39585
39658
  return true;
39586
- const content = await import_fs7.default.promises.readFile(fsPath, "utf-8");
39659
+ const content = await import_fs6.default.promises.readFile(fsPath, "utf-8");
39587
39660
  if (!content.trim())
39588
39661
  return false;
39589
39662
  const { names, esmUnparsed } = await getHandlerExportNames(content);
@@ -39836,6 +39909,7 @@ var SUPPORTED_AL2023_RUNTIMES = [
39836
39909
  "python3.13",
39837
39910
  "python3.14",
39838
39911
  "ruby3.3",
39912
+ "bun1.4.x",
39839
39913
  "bun1.x",
39840
39914
  "executable"
39841
39915
  ];
@@ -40176,11 +40250,11 @@ function validateFrameworkVersion(framework) {
40176
40250
  }
40177
40251
 
40178
40252
  // src/deserialize/hydrate-files-map.ts
40179
- var import_path13 = require("path");
40253
+ var import_path14 = require("path");
40180
40254
  async function hydrateFilesMap(files, filesMap, repoRootPath, fileFsRefsCache) {
40181
40255
  for (const [funcPath, projectPath] of Object.entries(filesMap)) {
40182
40256
  files[funcPath] = await fileFsRefCached(
40183
- (0, import_path13.join)(repoRootPath, projectPath),
40257
+ (0, import_path14.join)(repoRootPath, projectPath),
40184
40258
  fileFsRefsCache
40185
40259
  );
40186
40260
  }
@@ -40195,7 +40269,7 @@ async function fileFsRefCached(fsPath, cache) {
40195
40269
  }
40196
40270
 
40197
40271
  // src/deserialize/create-functions-iterator.ts
40198
- var import_path14 = require("path");
40272
+ var import_path15 = require("path");
40199
40273
  var import_fs_extra9 = __toESM(require_lib());
40200
40274
  var SUFFIX = ".func";
40201
40275
  async function* createFunctionsIterator(dir, root = dir) {
@@ -40209,11 +40283,11 @@ async function* createFunctionsIterator(dir, root = dir) {
40209
40283
  paths = [];
40210
40284
  }
40211
40285
  for (const path8 of paths) {
40212
- const abs = (0, import_path14.join)(dir, path8);
40286
+ const abs = (0, import_path15.join)(dir, path8);
40213
40287
  const s = await (0, import_fs_extra9.stat)(abs);
40214
40288
  if (s.isDirectory()) {
40215
40289
  if (path8.endsWith(SUFFIX)) {
40216
- yield (0, import_path14.relative)(root, abs.substring(0, abs.length - SUFFIX.length));
40290
+ yield (0, import_path15.relative)(root, abs.substring(0, abs.length - SUFFIX.length));
40217
40291
  } else {
40218
40292
  yield* createFunctionsIterator(abs, root);
40219
40293
  }
@@ -40234,8 +40308,8 @@ async function maybeReadJSON(path8) {
40234
40308
  }
40235
40309
 
40236
40310
  // src/deserialize/deserialize-build-output.ts
40237
- var fs11 = __toESM(require_lib());
40238
- var import_path15 = require("path");
40311
+ var fs10 = __toESM(require_lib());
40312
+ var import_path16 = require("path");
40239
40313
 
40240
40314
  // src/deserialize/deserialize-edge-function.ts
40241
40315
  async function deserializeEdgeFunction(files, config, repoRootPath, fileFsRefsCache) {
@@ -40298,14 +40372,14 @@ function applyOutputOverrides(output, overrides, warn) {
40298
40372
  async function deserializePrerenderFallback(prerenderConfigPath, fallbackConfig) {
40299
40373
  if (typeof fallbackConfig === "string") {
40300
40374
  return file_fs_ref_default.fromFsPath({
40301
- fsPath: (0, import_path15.join)((0, import_path15.dirname)(prerenderConfigPath), fallbackConfig)
40375
+ fsPath: (0, import_path16.join)((0, import_path16.dirname)(prerenderConfigPath), fallbackConfig)
40302
40376
  });
40303
40377
  }
40304
40378
  if (fallbackConfig) {
40305
40379
  return file_fs_ref_default.fromFsPath({
40306
40380
  mode: fallbackConfig.mode,
40307
40381
  contentType: fallbackConfig.contentType,
40308
- fsPath: (0, import_path15.join)((0, import_path15.dirname)(prerenderConfigPath), fallbackConfig.fsPath)
40382
+ fsPath: (0, import_path16.join)((0, import_path16.dirname)(prerenderConfigPath), fallbackConfig.fsPath)
40309
40383
  });
40310
40384
  }
40311
40385
  return null;
@@ -40391,7 +40465,7 @@ async function deserializeBuildOutput(options) {
40391
40465
  getMeta
40392
40466
  } = options;
40393
40467
  let hasServerActions = false;
40394
- const configPath = (0, import_path15.join)(outputDir, "config.json");
40468
+ const configPath = (0, import_path16.join)(outputDir, "config.json");
40395
40469
  const config = await maybeReadJSON(configPath);
40396
40470
  if (!config) {
40397
40471
  throw new Error(`Config file was not found at "${configPath}"`);
@@ -40402,8 +40476,8 @@ async function deserializeBuildOutput(options) {
40402
40476
  );
40403
40477
  }
40404
40478
  validateDeploymentId(config.deploymentId);
40405
- const flags = await maybeReadJSON((0, import_path15.join)(outputDir, "flags.json"));
40406
- const staticDir = (0, import_path15.join)(outputDir, "static");
40479
+ const flags = await maybeReadJSON((0, import_path16.join)(outputDir, "flags.json"));
40480
+ const staticDir = (0, import_path16.join)(outputDir, "static");
40407
40481
  const output = await glob("**", {
40408
40482
  cwd: staticDir,
40409
40483
  follow: true
@@ -40411,19 +40485,19 @@ async function deserializeBuildOutput(options) {
40411
40485
  applyOutputOverrides(output, config.overrides, warn);
40412
40486
  const fileFsRefsCache = /* @__PURE__ */ new Map();
40413
40487
  const prerenders = /* @__PURE__ */ new Map();
40414
- const functionsDir = (0, import_path15.join)(outputDir, "functions");
40488
+ const functionsDir = (0, import_path16.join)(outputDir, "functions");
40415
40489
  const functionSymlinks = /* @__PURE__ */ new Map();
40416
40490
  for await (const path8 of createFunctionsIterator(functionsDir)) {
40417
40491
  let lambda = void 0;
40418
- const fnDir = (0, import_path15.join)(functionsDir, `${path8}.func`);
40492
+ const fnDir = (0, import_path16.join)(functionsDir, `${path8}.func`);
40419
40493
  try {
40420
- const link = await fs11.readlink(fnDir);
40421
- const target = (0, import_path15.join)((0, import_path15.dirname)(path8), link).slice(0, -5);
40494
+ const link = await fs10.readlink(fnDir);
40495
+ const target = (0, import_path16.join)((0, import_path16.dirname)(path8), link).slice(0, -5);
40422
40496
  functionSymlinks.set(path8, target);
40423
40497
  } catch (err) {
40424
40498
  if (err.code !== "EINVAL")
40425
40499
  throw err;
40426
- const funcConfigPath = (0, import_path15.join)(fnDir, ".vc-config.json");
40500
+ const funcConfigPath = (0, import_path16.join)(fnDir, ".vc-config.json");
40427
40501
  const funcConfig = await maybeReadJSON(
40428
40502
  funcConfigPath
40429
40503
  );
@@ -40457,7 +40531,7 @@ async function deserializeBuildOutput(options) {
40457
40531
  );
40458
40532
  }
40459
40533
  }
40460
- const prerenderConfigPath = (0, import_path15.join)(
40534
+ const prerenderConfigPath = (0, import_path16.join)(
40461
40535
  functionsDir,
40462
40536
  `${path8}.prerender-config.json`
40463
40537
  );
@@ -40557,13 +40631,13 @@ function validatePrerender(prerender) {
40557
40631
  }
40558
40632
 
40559
40633
  // src/collect-build-result/get-content-type.ts
40560
- var import_path16 = require("path");
40634
+ var import_path17 = require("path");
40561
40635
  var import_mime_types = __toESM(require_mime_types());
40562
40636
  function getContentType(path8) {
40563
40637
  if (path8.endsWith(".html")) {
40564
40638
  return "text/html; charset=utf-8";
40565
40639
  }
40566
- return import_mime_types.default.contentType((0, import_path16.extname)(path8)) || "application/octet-stream";
40640
+ return import_mime_types.default.contentType((0, import_path17.extname)(path8)) || "application/octet-stream";
40567
40641
  }
40568
40642
 
40569
40643
  // src/collect-build-result/file-to-build-output-file.ts
@@ -40717,6 +40791,7 @@ function getExtendedPayload({
40717
40791
  getNodeBinPath,
40718
40792
  getNodeBinPaths,
40719
40793
  getNodeVersion,
40794
+ getOrCreateBunBinary,
40720
40795
  getPackageJson,
40721
40796
  getPathForPackageManager,
40722
40797
  getPlatformEnv,
@@ -40752,7 +40827,6 @@ function getExtendedPayload({
40752
40827
  isNodeBackendFramework,
40753
40828
  isNodeEntrypoint,
40754
40829
  isPackageInstalled,
40755
- isPythonEntrypoint,
40756
40830
  isPythonFramework,
40757
40831
  isQueueBackedService,
40758
40832
  isQueueTriggeredService,