@apps-in-toss/plugins 0.0.26 → 0.0.27

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
@@ -108,7 +108,7 @@ var require_fd_slicer = __commonJS({
108
108
  "../../.yarn/cache/yauzl-npm-3.2.0-b1af038bc6-7b40b3dc46.zip/node_modules/yauzl/fd-slicer.js"(exports) {
109
109
  "use strict";
110
110
  init_esm_shims();
111
- var fs6 = __require("fs");
111
+ var fs7 = __require("fs");
112
112
  var util = __require("util");
113
113
  var stream = __require("stream");
114
114
  var Readable = stream.Readable;
@@ -133,7 +133,7 @@ var require_fd_slicer = __commonJS({
133
133
  FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
134
134
  var self2 = this;
135
135
  self2.pend.go(function(cb) {
136
- fs6.read(self2.fd, buffer, offset, length, position, function(err, bytesRead, buffer2) {
136
+ fs7.read(self2.fd, buffer, offset, length, position, function(err, bytesRead, buffer2) {
137
137
  cb();
138
138
  callback(err, bytesRead, buffer2);
139
139
  });
@@ -142,7 +142,7 @@ var require_fd_slicer = __commonJS({
142
142
  FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
143
143
  var self2 = this;
144
144
  self2.pend.go(function(cb) {
145
- fs6.write(self2.fd, buffer, offset, length, position, function(err, written, buffer2) {
145
+ fs7.write(self2.fd, buffer, offset, length, position, function(err, written, buffer2) {
146
146
  cb();
147
147
  callback(err, written, buffer2);
148
148
  });
@@ -163,7 +163,7 @@ var require_fd_slicer = __commonJS({
163
163
  if (self2.refCount > 0) return;
164
164
  if (self2.refCount < 0) throw new Error("invalid unref");
165
165
  if (self2.autoClose) {
166
- fs6.close(self2.fd, onCloseDone);
166
+ fs7.close(self2.fd, onCloseDone);
167
167
  }
168
168
  function onCloseDone(err) {
169
169
  if (err) {
@@ -200,7 +200,7 @@ var require_fd_slicer = __commonJS({
200
200
  self2.context.pend.go(function(cb) {
201
201
  if (self2.destroyed) return cb();
202
202
  var buffer = Buffer.allocUnsafe(toRead);
203
- fs6.read(self2.context.fd, buffer, 0, toRead, self2.pos, function(err, bytesRead) {
203
+ fs7.read(self2.context.fd, buffer, 0, toRead, self2.pos, function(err, bytesRead) {
204
204
  if (err) {
205
205
  self2.destroy(err);
206
206
  } else if (bytesRead === 0) {
@@ -247,7 +247,7 @@ var require_fd_slicer = __commonJS({
247
247
  }
248
248
  self2.context.pend.go(function(cb) {
249
249
  if (self2.destroyed) return cb();
250
- fs6.write(self2.context.fd, buffer, 0, buffer.length, self2.pos, function(err2, bytes) {
250
+ fs7.write(self2.context.fd, buffer, 0, buffer.length, self2.pos, function(err2, bytes) {
251
251
  if (err2) {
252
252
  self2.destroy();
253
253
  cb();
@@ -689,7 +689,7 @@ var require_yauzl = __commonJS({
689
689
  "../../.yarn/cache/yauzl-npm-3.2.0-b1af038bc6-7b40b3dc46.zip/node_modules/yauzl/index.js"(exports) {
690
690
  "use strict";
691
691
  init_esm_shims();
692
- var fs6 = __require("fs");
692
+ var fs7 = __require("fs");
693
693
  var zlib = __require("zlib");
694
694
  var fd_slicer = require_fd_slicer();
695
695
  var crc32 = require_buffer_crc32();
@@ -710,7 +710,7 @@ var require_yauzl = __commonJS({
710
710
  exports.Entry = Entry;
711
711
  exports.LocalFileHeader = LocalFileHeader;
712
712
  exports.RandomAccessReader = RandomAccessReader;
713
- function open(path7, options2, callback) {
713
+ function open(path8, options2, callback) {
714
714
  if (typeof options2 === "function") {
715
715
  callback = options2;
716
716
  options2 = null;
@@ -722,10 +722,10 @@ var require_yauzl = __commonJS({
722
722
  if (options2.validateEntrySizes == null) options2.validateEntrySizes = true;
723
723
  if (options2.strictFileNames == null) options2.strictFileNames = false;
724
724
  if (callback == null) callback = defaultCallback;
725
- fs6.open(path7, "r", function(err, fd) {
725
+ fs7.open(path8, "r", function(err, fd) {
726
726
  if (err) return callback(err);
727
727
  fromFd(fd, options2, function(err2, zipfile) {
728
- if (err2) fs6.close(fd, defaultCallback);
728
+ if (err2) fs7.close(fd, defaultCallback);
729
729
  callback(err2, zipfile);
730
730
  });
731
731
  });
@@ -742,7 +742,7 @@ var require_yauzl = __commonJS({
742
742
  if (options2.validateEntrySizes == null) options2.validateEntrySizes = true;
743
743
  if (options2.strictFileNames == null) options2.strictFileNames = false;
744
744
  if (callback == null) callback = defaultCallback;
745
- fs6.fstat(fd, function(err, stats) {
745
+ fs7.fstat(fd, function(err, stats) {
746
746
  if (err) return callback(err);
747
747
  var reader = fd_slicer.createFromFd(fd, { autoClose: true });
748
748
  fromRandomAccessReader(reader, stats.size, options2, callback);
@@ -1735,8 +1735,8 @@ var require_minimatch = __commonJS({
1735
1735
  return new Minimatch(pattern, options2).match(p);
1736
1736
  };
1737
1737
  module.exports = minimatch;
1738
- var path7 = require_path();
1739
- minimatch.sep = path7.sep;
1738
+ var path8 = require_path();
1739
+ minimatch.sep = path8.sep;
1740
1740
  var GLOBSTAR = Symbol("globstar **");
1741
1741
  minimatch.GLOBSTAR = GLOBSTAR;
1742
1742
  var expand = require_brace_expansion();
@@ -2245,8 +2245,8 @@ var require_minimatch = __commonJS({
2245
2245
  if (this.empty) return f === "";
2246
2246
  if (f === "/" && partial) return true;
2247
2247
  const options2 = this.options;
2248
- if (path7.sep !== "/") {
2249
- f = f.split(path7.sep).join("/");
2248
+ if (path8.sep !== "/") {
2249
+ f = f.split(path8.sep).join("/");
2250
2250
  }
2251
2251
  f = f.split(slashSplit);
2252
2252
  this.debug(this.pattern, "split", f);
@@ -2286,13 +2286,13 @@ var require_readdir_glob = __commonJS({
2286
2286
  "use strict";
2287
2287
  init_esm_shims();
2288
2288
  module.exports = readdirGlob;
2289
- var fs6 = __require("fs");
2289
+ var fs7 = __require("fs");
2290
2290
  var { EventEmitter } = __require("events");
2291
2291
  var { Minimatch } = require_minimatch();
2292
2292
  var { resolve } = __require("path");
2293
2293
  function readdir(dir2, strict) {
2294
2294
  return new Promise((resolve2, reject2) => {
2295
- fs6.readdir(dir2, { withFileTypes: true }, (err, files) => {
2295
+ fs7.readdir(dir2, { withFileTypes: true }, (err, files) => {
2296
2296
  if (err) {
2297
2297
  switch (err.code) {
2298
2298
  case "ENOTDIR":
@@ -2325,7 +2325,7 @@ var require_readdir_glob = __commonJS({
2325
2325
  }
2326
2326
  function stat(file, followSymlinks) {
2327
2327
  return new Promise((resolve2, reject2) => {
2328
- const statFunc = followSymlinks ? fs6.stat : fs6.lstat;
2328
+ const statFunc = followSymlinks ? fs7.stat : fs7.lstat;
2329
2329
  statFunc(file, (err, stats) => {
2330
2330
  if (err) {
2331
2331
  switch (err.code) {
@@ -2346,8 +2346,8 @@ var require_readdir_glob = __commonJS({
2346
2346
  });
2347
2347
  });
2348
2348
  }
2349
- async function* exploreWalkAsync(dir2, path7, followSymlinks, useStat, shouldSkip, strict) {
2350
- let files = await readdir(path7 + dir2, strict);
2349
+ async function* exploreWalkAsync(dir2, path8, followSymlinks, useStat, shouldSkip, strict) {
2350
+ let files = await readdir(path8 + dir2, strict);
2351
2351
  for (const file of files) {
2352
2352
  let name = file.name;
2353
2353
  if (name === void 0) {
@@ -2356,7 +2356,7 @@ var require_readdir_glob = __commonJS({
2356
2356
  }
2357
2357
  const filename = dir2 + "/" + name;
2358
2358
  const relative = filename.slice(1);
2359
- const absolute = path7 + "/" + relative;
2359
+ const absolute = path8 + "/" + relative;
2360
2360
  let stats = null;
2361
2361
  if (useStat || followSymlinks) {
2362
2362
  stats = await stat(absolute, followSymlinks);
@@ -2370,15 +2370,15 @@ var require_readdir_glob = __commonJS({
2370
2370
  if (stats.isDirectory()) {
2371
2371
  if (!shouldSkip(relative)) {
2372
2372
  yield { relative, absolute, stats };
2373
- yield* exploreWalkAsync(filename, path7, followSymlinks, useStat, shouldSkip, false);
2373
+ yield* exploreWalkAsync(filename, path8, followSymlinks, useStat, shouldSkip, false);
2374
2374
  }
2375
2375
  } else {
2376
2376
  yield { relative, absolute, stats };
2377
2377
  }
2378
2378
  }
2379
2379
  }
2380
- async function* explore(path7, followSymlinks, useStat, shouldSkip) {
2381
- yield* exploreWalkAsync("", path7, followSymlinks, useStat, shouldSkip, true);
2380
+ async function* explore(path8, followSymlinks, useStat, shouldSkip) {
2381
+ yield* exploreWalkAsync("", path8, followSymlinks, useStat, shouldSkip, true);
2382
2382
  }
2383
2383
  function readOptions(options2) {
2384
2384
  return {
@@ -4391,54 +4391,54 @@ var require_polyfills = __commonJS({
4391
4391
  }
4392
4392
  var chdir;
4393
4393
  module.exports = patch;
4394
- function patch(fs6) {
4394
+ function patch(fs7) {
4395
4395
  if (constants2.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
4396
- patchLchmod(fs6);
4397
- }
4398
- if (!fs6.lutimes) {
4399
- patchLutimes(fs6);
4400
- }
4401
- fs6.chown = chownFix(fs6.chown);
4402
- fs6.fchown = chownFix(fs6.fchown);
4403
- fs6.lchown = chownFix(fs6.lchown);
4404
- fs6.chmod = chmodFix(fs6.chmod);
4405
- fs6.fchmod = chmodFix(fs6.fchmod);
4406
- fs6.lchmod = chmodFix(fs6.lchmod);
4407
- fs6.chownSync = chownFixSync(fs6.chownSync);
4408
- fs6.fchownSync = chownFixSync(fs6.fchownSync);
4409
- fs6.lchownSync = chownFixSync(fs6.lchownSync);
4410
- fs6.chmodSync = chmodFixSync(fs6.chmodSync);
4411
- fs6.fchmodSync = chmodFixSync(fs6.fchmodSync);
4412
- fs6.lchmodSync = chmodFixSync(fs6.lchmodSync);
4413
- fs6.stat = statFix(fs6.stat);
4414
- fs6.fstat = statFix(fs6.fstat);
4415
- fs6.lstat = statFix(fs6.lstat);
4416
- fs6.statSync = statFixSync(fs6.statSync);
4417
- fs6.fstatSync = statFixSync(fs6.fstatSync);
4418
- fs6.lstatSync = statFixSync(fs6.lstatSync);
4419
- if (fs6.chmod && !fs6.lchmod) {
4420
- fs6.lchmod = function(path7, mode, cb) {
4396
+ patchLchmod(fs7);
4397
+ }
4398
+ if (!fs7.lutimes) {
4399
+ patchLutimes(fs7);
4400
+ }
4401
+ fs7.chown = chownFix(fs7.chown);
4402
+ fs7.fchown = chownFix(fs7.fchown);
4403
+ fs7.lchown = chownFix(fs7.lchown);
4404
+ fs7.chmod = chmodFix(fs7.chmod);
4405
+ fs7.fchmod = chmodFix(fs7.fchmod);
4406
+ fs7.lchmod = chmodFix(fs7.lchmod);
4407
+ fs7.chownSync = chownFixSync(fs7.chownSync);
4408
+ fs7.fchownSync = chownFixSync(fs7.fchownSync);
4409
+ fs7.lchownSync = chownFixSync(fs7.lchownSync);
4410
+ fs7.chmodSync = chmodFixSync(fs7.chmodSync);
4411
+ fs7.fchmodSync = chmodFixSync(fs7.fchmodSync);
4412
+ fs7.lchmodSync = chmodFixSync(fs7.lchmodSync);
4413
+ fs7.stat = statFix(fs7.stat);
4414
+ fs7.fstat = statFix(fs7.fstat);
4415
+ fs7.lstat = statFix(fs7.lstat);
4416
+ fs7.statSync = statFixSync(fs7.statSync);
4417
+ fs7.fstatSync = statFixSync(fs7.fstatSync);
4418
+ fs7.lstatSync = statFixSync(fs7.lstatSync);
4419
+ if (fs7.chmod && !fs7.lchmod) {
4420
+ fs7.lchmod = function(path8, mode, cb) {
4421
4421
  if (cb) process.nextTick(cb);
4422
4422
  };
4423
- fs6.lchmodSync = function() {
4423
+ fs7.lchmodSync = function() {
4424
4424
  };
4425
4425
  }
4426
- if (fs6.chown && !fs6.lchown) {
4427
- fs6.lchown = function(path7, uid, gid, cb) {
4426
+ if (fs7.chown && !fs7.lchown) {
4427
+ fs7.lchown = function(path8, uid, gid, cb) {
4428
4428
  if (cb) process.nextTick(cb);
4429
4429
  };
4430
- fs6.lchownSync = function() {
4430
+ fs7.lchownSync = function() {
4431
4431
  };
4432
4432
  }
4433
4433
  if (platform === "win32") {
4434
- fs6.rename = typeof fs6.rename !== "function" ? fs6.rename : function(fs$rename) {
4434
+ fs7.rename = typeof fs7.rename !== "function" ? fs7.rename : function(fs$rename) {
4435
4435
  function rename(from, to, cb) {
4436
4436
  var start = Date.now();
4437
4437
  var backoff = 0;
4438
4438
  fs$rename(from, to, function CB(er) {
4439
4439
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
4440
4440
  setTimeout(function() {
4441
- fs6.stat(to, function(stater, st) {
4441
+ fs7.stat(to, function(stater, st) {
4442
4442
  if (stater && stater.code === "ENOENT")
4443
4443
  fs$rename(from, to, CB);
4444
4444
  else
@@ -4454,9 +4454,9 @@ var require_polyfills = __commonJS({
4454
4454
  }
4455
4455
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
4456
4456
  return rename;
4457
- }(fs6.rename);
4457
+ }(fs7.rename);
4458
4458
  }
4459
- fs6.read = typeof fs6.read !== "function" ? fs6.read : function(fs$read) {
4459
+ fs7.read = typeof fs7.read !== "function" ? fs7.read : function(fs$read) {
4460
4460
  function read(fd, buffer, offset, length, position, callback_) {
4461
4461
  var callback;
4462
4462
  if (callback_ && typeof callback_ === "function") {
@@ -4464,22 +4464,22 @@ var require_polyfills = __commonJS({
4464
4464
  callback = function(er, _2, __) {
4465
4465
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
4466
4466
  eagCounter++;
4467
- return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
4467
+ return fs$read.call(fs7, fd, buffer, offset, length, position, callback);
4468
4468
  }
4469
4469
  callback_.apply(this, arguments);
4470
4470
  };
4471
4471
  }
4472
- return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
4472
+ return fs$read.call(fs7, fd, buffer, offset, length, position, callback);
4473
4473
  }
4474
4474
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
4475
4475
  return read;
4476
- }(fs6.read);
4477
- fs6.readSync = typeof fs6.readSync !== "function" ? fs6.readSync : /* @__PURE__ */ function(fs$readSync) {
4476
+ }(fs7.read);
4477
+ fs7.readSync = typeof fs7.readSync !== "function" ? fs7.readSync : /* @__PURE__ */ function(fs$readSync) {
4478
4478
  return function(fd, buffer, offset, length, position) {
4479
4479
  var eagCounter = 0;
4480
4480
  while (true) {
4481
4481
  try {
4482
- return fs$readSync.call(fs6, fd, buffer, offset, length, position);
4482
+ return fs$readSync.call(fs7, fd, buffer, offset, length, position);
4483
4483
  } catch (er) {
4484
4484
  if (er.code === "EAGAIN" && eagCounter < 10) {
4485
4485
  eagCounter++;
@@ -4489,11 +4489,11 @@ var require_polyfills = __commonJS({
4489
4489
  }
4490
4490
  }
4491
4491
  };
4492
- }(fs6.readSync);
4493
- function patchLchmod(fs7) {
4494
- fs7.lchmod = function(path7, mode, callback) {
4495
- fs7.open(
4496
- path7,
4492
+ }(fs7.readSync);
4493
+ function patchLchmod(fs8) {
4494
+ fs8.lchmod = function(path8, mode, callback) {
4495
+ fs8.open(
4496
+ path8,
4497
4497
  constants2.O_WRONLY | constants2.O_SYMLINK,
4498
4498
  mode,
4499
4499
  function(err, fd) {
@@ -4501,80 +4501,80 @@ var require_polyfills = __commonJS({
4501
4501
  if (callback) callback(err);
4502
4502
  return;
4503
4503
  }
4504
- fs7.fchmod(fd, mode, function(err2) {
4505
- fs7.close(fd, function(err22) {
4504
+ fs8.fchmod(fd, mode, function(err2) {
4505
+ fs8.close(fd, function(err22) {
4506
4506
  if (callback) callback(err2 || err22);
4507
4507
  });
4508
4508
  });
4509
4509
  }
4510
4510
  );
4511
4511
  };
4512
- fs7.lchmodSync = function(path7, mode) {
4513
- var fd = fs7.openSync(path7, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
4512
+ fs8.lchmodSync = function(path8, mode) {
4513
+ var fd = fs8.openSync(path8, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
4514
4514
  var threw = true;
4515
4515
  var ret;
4516
4516
  try {
4517
- ret = fs7.fchmodSync(fd, mode);
4517
+ ret = fs8.fchmodSync(fd, mode);
4518
4518
  threw = false;
4519
4519
  } finally {
4520
4520
  if (threw) {
4521
4521
  try {
4522
- fs7.closeSync(fd);
4522
+ fs8.closeSync(fd);
4523
4523
  } catch (er) {
4524
4524
  }
4525
4525
  } else {
4526
- fs7.closeSync(fd);
4526
+ fs8.closeSync(fd);
4527
4527
  }
4528
4528
  }
4529
4529
  return ret;
4530
4530
  };
4531
4531
  }
4532
- function patchLutimes(fs7) {
4533
- if (constants2.hasOwnProperty("O_SYMLINK") && fs7.futimes) {
4534
- fs7.lutimes = function(path7, at, mt, cb) {
4535
- fs7.open(path7, constants2.O_SYMLINK, function(er, fd) {
4532
+ function patchLutimes(fs8) {
4533
+ if (constants2.hasOwnProperty("O_SYMLINK") && fs8.futimes) {
4534
+ fs8.lutimes = function(path8, at, mt, cb) {
4535
+ fs8.open(path8, constants2.O_SYMLINK, function(er, fd) {
4536
4536
  if (er) {
4537
4537
  if (cb) cb(er);
4538
4538
  return;
4539
4539
  }
4540
- fs7.futimes(fd, at, mt, function(er2) {
4541
- fs7.close(fd, function(er22) {
4540
+ fs8.futimes(fd, at, mt, function(er2) {
4541
+ fs8.close(fd, function(er22) {
4542
4542
  if (cb) cb(er2 || er22);
4543
4543
  });
4544
4544
  });
4545
4545
  });
4546
4546
  };
4547
- fs7.lutimesSync = function(path7, at, mt) {
4548
- var fd = fs7.openSync(path7, constants2.O_SYMLINK);
4547
+ fs8.lutimesSync = function(path8, at, mt) {
4548
+ var fd = fs8.openSync(path8, constants2.O_SYMLINK);
4549
4549
  var ret;
4550
4550
  var threw = true;
4551
4551
  try {
4552
- ret = fs7.futimesSync(fd, at, mt);
4552
+ ret = fs8.futimesSync(fd, at, mt);
4553
4553
  threw = false;
4554
4554
  } finally {
4555
4555
  if (threw) {
4556
4556
  try {
4557
- fs7.closeSync(fd);
4557
+ fs8.closeSync(fd);
4558
4558
  } catch (er) {
4559
4559
  }
4560
4560
  } else {
4561
- fs7.closeSync(fd);
4561
+ fs8.closeSync(fd);
4562
4562
  }
4563
4563
  }
4564
4564
  return ret;
4565
4565
  };
4566
- } else if (fs7.futimes) {
4567
- fs7.lutimes = function(_a, _b, _c, cb) {
4566
+ } else if (fs8.futimes) {
4567
+ fs8.lutimes = function(_a, _b, _c, cb) {
4568
4568
  if (cb) process.nextTick(cb);
4569
4569
  };
4570
- fs7.lutimesSync = function() {
4570
+ fs8.lutimesSync = function() {
4571
4571
  };
4572
4572
  }
4573
4573
  }
4574
4574
  function chmodFix(orig) {
4575
4575
  if (!orig) return orig;
4576
4576
  return function(target, mode, cb) {
4577
- return orig.call(fs6, target, mode, function(er) {
4577
+ return orig.call(fs7, target, mode, function(er) {
4578
4578
  if (chownErOk(er)) er = null;
4579
4579
  if (cb) cb.apply(this, arguments);
4580
4580
  });
@@ -4584,7 +4584,7 @@ var require_polyfills = __commonJS({
4584
4584
  if (!orig) return orig;
4585
4585
  return function(target, mode) {
4586
4586
  try {
4587
- return orig.call(fs6, target, mode);
4587
+ return orig.call(fs7, target, mode);
4588
4588
  } catch (er) {
4589
4589
  if (!chownErOk(er)) throw er;
4590
4590
  }
@@ -4593,7 +4593,7 @@ var require_polyfills = __commonJS({
4593
4593
  function chownFix(orig) {
4594
4594
  if (!orig) return orig;
4595
4595
  return function(target, uid, gid, cb) {
4596
- return orig.call(fs6, target, uid, gid, function(er) {
4596
+ return orig.call(fs7, target, uid, gid, function(er) {
4597
4597
  if (chownErOk(er)) er = null;
4598
4598
  if (cb) cb.apply(this, arguments);
4599
4599
  });
@@ -4603,7 +4603,7 @@ var require_polyfills = __commonJS({
4603
4603
  if (!orig) return orig;
4604
4604
  return function(target, uid, gid) {
4605
4605
  try {
4606
- return orig.call(fs6, target, uid, gid);
4606
+ return orig.call(fs7, target, uid, gid);
4607
4607
  } catch (er) {
4608
4608
  if (!chownErOk(er)) throw er;
4609
4609
  }
@@ -4623,13 +4623,13 @@ var require_polyfills = __commonJS({
4623
4623
  }
4624
4624
  if (cb) cb.apply(this, arguments);
4625
4625
  }
4626
- return options2 ? orig.call(fs6, target, options2, callback) : orig.call(fs6, target, callback);
4626
+ return options2 ? orig.call(fs7, target, options2, callback) : orig.call(fs7, target, callback);
4627
4627
  };
4628
4628
  }
4629
4629
  function statFixSync(orig) {
4630
4630
  if (!orig) return orig;
4631
4631
  return function(target, options2) {
4632
- var stats = options2 ? orig.call(fs6, target, options2) : orig.call(fs6, target);
4632
+ var stats = options2 ? orig.call(fs7, target, options2) : orig.call(fs7, target);
4633
4633
  if (stats) {
4634
4634
  if (stats.uid < 0) stats.uid += 4294967296;
4635
4635
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -4660,16 +4660,16 @@ var require_legacy_streams = __commonJS({
4660
4660
  init_esm_shims();
4661
4661
  var Stream = __require("stream").Stream;
4662
4662
  module.exports = legacy;
4663
- function legacy(fs6) {
4663
+ function legacy(fs7) {
4664
4664
  return {
4665
4665
  ReadStream,
4666
4666
  WriteStream
4667
4667
  };
4668
- function ReadStream(path7, options2) {
4669
- if (!(this instanceof ReadStream)) return new ReadStream(path7, options2);
4668
+ function ReadStream(path8, options2) {
4669
+ if (!(this instanceof ReadStream)) return new ReadStream(path8, options2);
4670
4670
  Stream.call(this);
4671
4671
  var self2 = this;
4672
- this.path = path7;
4672
+ this.path = path8;
4673
4673
  this.fd = null;
4674
4674
  this.readable = true;
4675
4675
  this.paused = false;
@@ -4703,7 +4703,7 @@ var require_legacy_streams = __commonJS({
4703
4703
  });
4704
4704
  return;
4705
4705
  }
4706
- fs6.open(this.path, this.flags, this.mode, function(err, fd) {
4706
+ fs7.open(this.path, this.flags, this.mode, function(err, fd) {
4707
4707
  if (err) {
4708
4708
  self2.emit("error", err);
4709
4709
  self2.readable = false;
@@ -4714,10 +4714,10 @@ var require_legacy_streams = __commonJS({
4714
4714
  self2._read();
4715
4715
  });
4716
4716
  }
4717
- function WriteStream(path7, options2) {
4718
- if (!(this instanceof WriteStream)) return new WriteStream(path7, options2);
4717
+ function WriteStream(path8, options2) {
4718
+ if (!(this instanceof WriteStream)) return new WriteStream(path8, options2);
4719
4719
  Stream.call(this);
4720
- this.path = path7;
4720
+ this.path = path8;
4721
4721
  this.fd = null;
4722
4722
  this.writable = true;
4723
4723
  this.flags = "w";
@@ -4742,7 +4742,7 @@ var require_legacy_streams = __commonJS({
4742
4742
  this.busy = false;
4743
4743
  this._queue = [];
4744
4744
  if (this.fd === null) {
4745
- this._open = fs6.open;
4745
+ this._open = fs7.open;
4746
4746
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
4747
4747
  this.flush();
4748
4748
  }
@@ -4780,7 +4780,7 @@ var require_graceful_fs = __commonJS({
4780
4780
  "../../.yarn/cache/graceful-fs-npm-4.2.11-b94d8104d4-386d011a55.zip/node_modules/graceful-fs/graceful-fs.js"(exports, module) {
4781
4781
  "use strict";
4782
4782
  init_esm_shims();
4783
- var fs6 = __require("fs");
4783
+ var fs7 = __require("fs");
4784
4784
  var polyfills = require_polyfills();
4785
4785
  var legacy = require_legacy_streams();
4786
4786
  var clone = require_clone();
@@ -4812,12 +4812,12 @@ var require_graceful_fs = __commonJS({
4812
4812
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
4813
4813
  console.error(m);
4814
4814
  };
4815
- if (!fs6[gracefulQueue]) {
4815
+ if (!fs7[gracefulQueue]) {
4816
4816
  queue2 = global[gracefulQueue] || [];
4817
- publishQueue(fs6, queue2);
4818
- fs6.close = function(fs$close) {
4817
+ publishQueue(fs7, queue2);
4818
+ fs7.close = function(fs$close) {
4819
4819
  function close(fd, cb) {
4820
- return fs$close.call(fs6, fd, function(err) {
4820
+ return fs$close.call(fs7, fd, function(err) {
4821
4821
  if (!err) {
4822
4822
  resetQueue();
4823
4823
  }
@@ -4829,48 +4829,48 @@ var require_graceful_fs = __commonJS({
4829
4829
  value: fs$close
4830
4830
  });
4831
4831
  return close;
4832
- }(fs6.close);
4833
- fs6.closeSync = function(fs$closeSync) {
4832
+ }(fs7.close);
4833
+ fs7.closeSync = function(fs$closeSync) {
4834
4834
  function closeSync(fd) {
4835
- fs$closeSync.apply(fs6, arguments);
4835
+ fs$closeSync.apply(fs7, arguments);
4836
4836
  resetQueue();
4837
4837
  }
4838
4838
  Object.defineProperty(closeSync, previousSymbol, {
4839
4839
  value: fs$closeSync
4840
4840
  });
4841
4841
  return closeSync;
4842
- }(fs6.closeSync);
4842
+ }(fs7.closeSync);
4843
4843
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
4844
4844
  process.on("exit", function() {
4845
- debug(fs6[gracefulQueue]);
4846
- __require("assert").equal(fs6[gracefulQueue].length, 0);
4845
+ debug(fs7[gracefulQueue]);
4846
+ __require("assert").equal(fs7[gracefulQueue].length, 0);
4847
4847
  });
4848
4848
  }
4849
4849
  }
4850
4850
  var queue2;
4851
4851
  if (!global[gracefulQueue]) {
4852
- publishQueue(global, fs6[gracefulQueue]);
4853
- }
4854
- module.exports = patch(clone(fs6));
4855
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs6.__patched) {
4856
- module.exports = patch(fs6);
4857
- fs6.__patched = true;
4858
- }
4859
- function patch(fs7) {
4860
- polyfills(fs7);
4861
- fs7.gracefulify = patch;
4862
- fs7.createReadStream = createReadStream2;
4863
- fs7.createWriteStream = createWriteStream2;
4864
- var fs$readFile = fs7.readFile;
4865
- fs7.readFile = readFile2;
4866
- function readFile2(path7, options2, cb) {
4852
+ publishQueue(global, fs7[gracefulQueue]);
4853
+ }
4854
+ module.exports = patch(clone(fs7));
4855
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs7.__patched) {
4856
+ module.exports = patch(fs7);
4857
+ fs7.__patched = true;
4858
+ }
4859
+ function patch(fs8) {
4860
+ polyfills(fs8);
4861
+ fs8.gracefulify = patch;
4862
+ fs8.createReadStream = createReadStream2;
4863
+ fs8.createWriteStream = createWriteStream2;
4864
+ var fs$readFile = fs8.readFile;
4865
+ fs8.readFile = readFile3;
4866
+ function readFile3(path8, options2, cb) {
4867
4867
  if (typeof options2 === "function")
4868
4868
  cb = options2, options2 = null;
4869
- return go$readFile(path7, options2, cb);
4870
- function go$readFile(path8, options3, cb2, startTime) {
4871
- return fs$readFile(path8, options3, function(err) {
4869
+ return go$readFile(path8, options2, cb);
4870
+ function go$readFile(path9, options3, cb2, startTime) {
4871
+ return fs$readFile(path9, options3, function(err) {
4872
4872
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4873
- enqueue([go$readFile, [path8, options3, cb2], err, startTime || Date.now(), Date.now()]);
4873
+ enqueue([go$readFile, [path9, options3, cb2], err, startTime || Date.now(), Date.now()]);
4874
4874
  else {
4875
4875
  if (typeof cb2 === "function")
4876
4876
  cb2.apply(this, arguments);
@@ -4878,16 +4878,16 @@ var require_graceful_fs = __commonJS({
4878
4878
  });
4879
4879
  }
4880
4880
  }
4881
- var fs$writeFile = fs7.writeFile;
4882
- fs7.writeFile = writeFile2;
4883
- function writeFile2(path7, data, options2, cb) {
4881
+ var fs$writeFile = fs8.writeFile;
4882
+ fs8.writeFile = writeFile2;
4883
+ function writeFile2(path8, data, options2, cb) {
4884
4884
  if (typeof options2 === "function")
4885
4885
  cb = options2, options2 = null;
4886
- return go$writeFile(path7, data, options2, cb);
4887
- function go$writeFile(path8, data2, options3, cb2, startTime) {
4888
- return fs$writeFile(path8, data2, options3, function(err) {
4886
+ return go$writeFile(path8, data, options2, cb);
4887
+ function go$writeFile(path9, data2, options3, cb2, startTime) {
4888
+ return fs$writeFile(path9, data2, options3, function(err) {
4889
4889
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4890
- enqueue([go$writeFile, [path8, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
4890
+ enqueue([go$writeFile, [path9, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
4891
4891
  else {
4892
4892
  if (typeof cb2 === "function")
4893
4893
  cb2.apply(this, arguments);
@@ -4895,17 +4895,17 @@ var require_graceful_fs = __commonJS({
4895
4895
  });
4896
4896
  }
4897
4897
  }
4898
- var fs$appendFile = fs7.appendFile;
4898
+ var fs$appendFile = fs8.appendFile;
4899
4899
  if (fs$appendFile)
4900
- fs7.appendFile = appendFile;
4901
- function appendFile(path7, data, options2, cb) {
4900
+ fs8.appendFile = appendFile;
4901
+ function appendFile(path8, data, options2, cb) {
4902
4902
  if (typeof options2 === "function")
4903
4903
  cb = options2, options2 = null;
4904
- return go$appendFile(path7, data, options2, cb);
4905
- function go$appendFile(path8, data2, options3, cb2, startTime) {
4906
- return fs$appendFile(path8, data2, options3, function(err) {
4904
+ return go$appendFile(path8, data, options2, cb);
4905
+ function go$appendFile(path9, data2, options3, cb2, startTime) {
4906
+ return fs$appendFile(path9, data2, options3, function(err) {
4907
4907
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4908
- enqueue([go$appendFile, [path8, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
4908
+ enqueue([go$appendFile, [path9, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
4909
4909
  else {
4910
4910
  if (typeof cb2 === "function")
4911
4911
  cb2.apply(this, arguments);
@@ -4913,9 +4913,9 @@ var require_graceful_fs = __commonJS({
4913
4913
  });
4914
4914
  }
4915
4915
  }
4916
- var fs$copyFile = fs7.copyFile;
4916
+ var fs$copyFile = fs8.copyFile;
4917
4917
  if (fs$copyFile)
4918
- fs7.copyFile = copyFile;
4918
+ fs8.copyFile = copyFile;
4919
4919
  function copyFile(src, dest, flags, cb) {
4920
4920
  if (typeof flags === "function") {
4921
4921
  cb = flags;
@@ -4933,34 +4933,34 @@ var require_graceful_fs = __commonJS({
4933
4933
  });
4934
4934
  }
4935
4935
  }
4936
- var fs$readdir = fs7.readdir;
4937
- fs7.readdir = readdir;
4936
+ var fs$readdir = fs8.readdir;
4937
+ fs8.readdir = readdir;
4938
4938
  var noReaddirOptionVersions = /^v[0-5]\./;
4939
- function readdir(path7, options2, cb) {
4939
+ function readdir(path8, options2, cb) {
4940
4940
  if (typeof options2 === "function")
4941
4941
  cb = options2, options2 = null;
4942
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path8, options3, cb2, startTime) {
4943
- return fs$readdir(path8, fs$readdirCallback(
4944
- path8,
4942
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path9, options3, cb2, startTime) {
4943
+ return fs$readdir(path9, fs$readdirCallback(
4944
+ path9,
4945
4945
  options3,
4946
4946
  cb2,
4947
4947
  startTime
4948
4948
  ));
4949
- } : function go$readdir2(path8, options3, cb2, startTime) {
4950
- return fs$readdir(path8, options3, fs$readdirCallback(
4951
- path8,
4949
+ } : function go$readdir2(path9, options3, cb2, startTime) {
4950
+ return fs$readdir(path9, options3, fs$readdirCallback(
4951
+ path9,
4952
4952
  options3,
4953
4953
  cb2,
4954
4954
  startTime
4955
4955
  ));
4956
4956
  };
4957
- return go$readdir(path7, options2, cb);
4958
- function fs$readdirCallback(path8, options3, cb2, startTime) {
4957
+ return go$readdir(path8, options2, cb);
4958
+ function fs$readdirCallback(path9, options3, cb2, startTime) {
4959
4959
  return function(err, files) {
4960
4960
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4961
4961
  enqueue([
4962
4962
  go$readdir,
4963
- [path8, options3, cb2],
4963
+ [path9, options3, cb2],
4964
4964
  err,
4965
4965
  startTime || Date.now(),
4966
4966
  Date.now()
@@ -4975,21 +4975,21 @@ var require_graceful_fs = __commonJS({
4975
4975
  }
4976
4976
  }
4977
4977
  if (process.version.substr(0, 4) === "v0.8") {
4978
- var legStreams = legacy(fs7);
4978
+ var legStreams = legacy(fs8);
4979
4979
  ReadStream = legStreams.ReadStream;
4980
4980
  WriteStream = legStreams.WriteStream;
4981
4981
  }
4982
- var fs$ReadStream = fs7.ReadStream;
4982
+ var fs$ReadStream = fs8.ReadStream;
4983
4983
  if (fs$ReadStream) {
4984
4984
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
4985
4985
  ReadStream.prototype.open = ReadStream$open;
4986
4986
  }
4987
- var fs$WriteStream = fs7.WriteStream;
4987
+ var fs$WriteStream = fs8.WriteStream;
4988
4988
  if (fs$WriteStream) {
4989
4989
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
4990
4990
  WriteStream.prototype.open = WriteStream$open;
4991
4991
  }
4992
- Object.defineProperty(fs7, "ReadStream", {
4992
+ Object.defineProperty(fs8, "ReadStream", {
4993
4993
  get: function() {
4994
4994
  return ReadStream;
4995
4995
  },
@@ -4999,7 +4999,7 @@ var require_graceful_fs = __commonJS({
4999
4999
  enumerable: true,
5000
5000
  configurable: true
5001
5001
  });
5002
- Object.defineProperty(fs7, "WriteStream", {
5002
+ Object.defineProperty(fs8, "WriteStream", {
5003
5003
  get: function() {
5004
5004
  return WriteStream;
5005
5005
  },
@@ -5010,7 +5010,7 @@ var require_graceful_fs = __commonJS({
5010
5010
  configurable: true
5011
5011
  });
5012
5012
  var FileReadStream = ReadStream;
5013
- Object.defineProperty(fs7, "FileReadStream", {
5013
+ Object.defineProperty(fs8, "FileReadStream", {
5014
5014
  get: function() {
5015
5015
  return FileReadStream;
5016
5016
  },
@@ -5021,7 +5021,7 @@ var require_graceful_fs = __commonJS({
5021
5021
  configurable: true
5022
5022
  });
5023
5023
  var FileWriteStream = WriteStream;
5024
- Object.defineProperty(fs7, "FileWriteStream", {
5024
+ Object.defineProperty(fs8, "FileWriteStream", {
5025
5025
  get: function() {
5026
5026
  return FileWriteStream;
5027
5027
  },
@@ -5031,7 +5031,7 @@ var require_graceful_fs = __commonJS({
5031
5031
  enumerable: true,
5032
5032
  configurable: true
5033
5033
  });
5034
- function ReadStream(path7, options2) {
5034
+ function ReadStream(path8, options2) {
5035
5035
  if (this instanceof ReadStream)
5036
5036
  return fs$ReadStream.apply(this, arguments), this;
5037
5037
  else
@@ -5051,7 +5051,7 @@ var require_graceful_fs = __commonJS({
5051
5051
  }
5052
5052
  });
5053
5053
  }
5054
- function WriteStream(path7, options2) {
5054
+ function WriteStream(path8, options2) {
5055
5055
  if (this instanceof WriteStream)
5056
5056
  return fs$WriteStream.apply(this, arguments), this;
5057
5057
  else
@@ -5069,22 +5069,22 @@ var require_graceful_fs = __commonJS({
5069
5069
  }
5070
5070
  });
5071
5071
  }
5072
- function createReadStream2(path7, options2) {
5073
- return new fs7.ReadStream(path7, options2);
5072
+ function createReadStream2(path8, options2) {
5073
+ return new fs8.ReadStream(path8, options2);
5074
5074
  }
5075
- function createWriteStream2(path7, options2) {
5076
- return new fs7.WriteStream(path7, options2);
5075
+ function createWriteStream2(path8, options2) {
5076
+ return new fs8.WriteStream(path8, options2);
5077
5077
  }
5078
- var fs$open = fs7.open;
5079
- fs7.open = open;
5080
- function open(path7, flags, mode, cb) {
5078
+ var fs$open = fs8.open;
5079
+ fs8.open = open;
5080
+ function open(path8, flags, mode, cb) {
5081
5081
  if (typeof mode === "function")
5082
5082
  cb = mode, mode = null;
5083
- return go$open(path7, flags, mode, cb);
5084
- function go$open(path8, flags2, mode2, cb2, startTime) {
5085
- return fs$open(path8, flags2, mode2, function(err, fd) {
5083
+ return go$open(path8, flags, mode, cb);
5084
+ function go$open(path9, flags2, mode2, cb2, startTime) {
5085
+ return fs$open(path9, flags2, mode2, function(err, fd) {
5086
5086
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5087
- enqueue([go$open, [path8, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
5087
+ enqueue([go$open, [path9, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
5088
5088
  else {
5089
5089
  if (typeof cb2 === "function")
5090
5090
  cb2.apply(this, arguments);
@@ -5092,20 +5092,20 @@ var require_graceful_fs = __commonJS({
5092
5092
  });
5093
5093
  }
5094
5094
  }
5095
- return fs7;
5095
+ return fs8;
5096
5096
  }
5097
5097
  function enqueue(elem) {
5098
5098
  debug("ENQUEUE", elem[0].name, elem[1]);
5099
- fs6[gracefulQueue].push(elem);
5099
+ fs7[gracefulQueue].push(elem);
5100
5100
  retry2();
5101
5101
  }
5102
5102
  var retryTimer;
5103
5103
  function resetQueue() {
5104
5104
  var now = Date.now();
5105
- for (var i = 0; i < fs6[gracefulQueue].length; ++i) {
5106
- if (fs6[gracefulQueue][i].length > 2) {
5107
- fs6[gracefulQueue][i][3] = now;
5108
- fs6[gracefulQueue][i][4] = now;
5105
+ for (var i = 0; i < fs7[gracefulQueue].length; ++i) {
5106
+ if (fs7[gracefulQueue][i].length > 2) {
5107
+ fs7[gracefulQueue][i][3] = now;
5108
+ fs7[gracefulQueue][i][4] = now;
5109
5109
  }
5110
5110
  }
5111
5111
  retry2();
@@ -5113,9 +5113,9 @@ var require_graceful_fs = __commonJS({
5113
5113
  function retry2() {
5114
5114
  clearTimeout(retryTimer);
5115
5115
  retryTimer = void 0;
5116
- if (fs6[gracefulQueue].length === 0)
5116
+ if (fs7[gracefulQueue].length === 0)
5117
5117
  return;
5118
- var elem = fs6[gracefulQueue].shift();
5118
+ var elem = fs7[gracefulQueue].shift();
5119
5119
  var fn = elem[0];
5120
5120
  var args = elem[1];
5121
5121
  var err = elem[2];
@@ -5137,7 +5137,7 @@ var require_graceful_fs = __commonJS({
5137
5137
  debug("RETRY", fn.name, args);
5138
5138
  fn.apply(null, args.concat([startTime]));
5139
5139
  } else {
5140
- fs6[gracefulQueue].push(elem);
5140
+ fs7[gracefulQueue].push(elem);
5141
5141
  }
5142
5142
  }
5143
5143
  if (retryTimer === void 0) {
@@ -5456,7 +5456,7 @@ var require_BufferList = __commonJS({
5456
5456
  this.head = this.tail = null;
5457
5457
  this.length = 0;
5458
5458
  };
5459
- BufferList.prototype.join = function join2(s) {
5459
+ BufferList.prototype.join = function join3(s) {
5460
5460
  if (this.length === 0) return "";
5461
5461
  var p = this.head;
5462
5462
  var ret = "" + p.data;
@@ -7221,22 +7221,22 @@ var require_normalize_path = __commonJS({
7221
7221
  "../../.yarn/cache/normalize-path-npm-3.0.0-a747cc5237-e008c8142b.zip/node_modules/normalize-path/index.js"(exports, module) {
7222
7222
  "use strict";
7223
7223
  init_esm_shims();
7224
- module.exports = function(path7, stripTrailing) {
7225
- if (typeof path7 !== "string") {
7224
+ module.exports = function(path8, stripTrailing) {
7225
+ if (typeof path8 !== "string") {
7226
7226
  throw new TypeError("expected path to be a string");
7227
7227
  }
7228
- if (path7 === "\\" || path7 === "/") return "/";
7229
- var len = path7.length;
7230
- if (len <= 1) return path7;
7228
+ if (path8 === "\\" || path8 === "/") return "/";
7229
+ var len = path8.length;
7230
+ if (len <= 1) return path8;
7231
7231
  var prefix = "";
7232
- if (len > 4 && path7[3] === "\\") {
7233
- var ch = path7[2];
7234
- if ((ch === "?" || ch === ".") && path7.slice(0, 2) === "\\\\") {
7235
- path7 = path7.slice(2);
7232
+ if (len > 4 && path8[3] === "\\") {
7233
+ var ch = path8[2];
7234
+ if ((ch === "?" || ch === ".") && path8.slice(0, 2) === "\\\\") {
7235
+ path8 = path8.slice(2);
7236
7236
  prefix = "//";
7237
7237
  }
7238
7238
  }
7239
- var segs = path7.split(/[/\\]+/);
7239
+ var segs = path8.split(/[/\\]+/);
7240
7240
  if (stripTrailing !== false && segs[segs.length - 1] === "") {
7241
7241
  segs.pop();
7242
7242
  }
@@ -15851,11 +15851,11 @@ var require_commonjs = __commonJS({
15851
15851
  return (f) => f.length === len && f !== "." && f !== "..";
15852
15852
  };
15853
15853
  var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
15854
- var path7 = {
15854
+ var path8 = {
15855
15855
  win32: { sep: "\\" },
15856
15856
  posix: { sep: "/" }
15857
15857
  };
15858
- exports.sep = defaultPlatform === "win32" ? path7.win32.sep : path7.posix.sep;
15858
+ exports.sep = defaultPlatform === "win32" ? path8.win32.sep : path8.posix.sep;
15859
15859
  exports.minimatch.sep = exports.sep;
15860
15860
  exports.GLOBSTAR = Symbol("globstar **");
15861
15861
  exports.minimatch.GLOBSTAR = exports.GLOBSTAR;
@@ -19106,12 +19106,12 @@ var require_commonjs4 = __commonJS({
19106
19106
  /**
19107
19107
  * Get the Path object referenced by the string path, resolved from this Path
19108
19108
  */
19109
- resolve(path7) {
19110
- if (!path7) {
19109
+ resolve(path8) {
19110
+ if (!path8) {
19111
19111
  return this;
19112
19112
  }
19113
- const rootPath = this.getRootString(path7);
19114
- const dir2 = path7.substring(rootPath.length);
19113
+ const rootPath = this.getRootString(path8);
19114
+ const dir2 = path8.substring(rootPath.length);
19115
19115
  const dirParts = dir2.split(this.splitSep);
19116
19116
  const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
19117
19117
  return result;
@@ -19864,8 +19864,8 @@ var require_commonjs4 = __commonJS({
19864
19864
  /**
19865
19865
  * @internal
19866
19866
  */
19867
- getRootString(path7) {
19868
- return node_path_1.win32.parse(path7).root;
19867
+ getRootString(path8) {
19868
+ return node_path_1.win32.parse(path8).root;
19869
19869
  }
19870
19870
  /**
19871
19871
  * @internal
@@ -19912,8 +19912,8 @@ var require_commonjs4 = __commonJS({
19912
19912
  /**
19913
19913
  * @internal
19914
19914
  */
19915
- getRootString(path7) {
19916
- return path7.startsWith("/") ? "/" : "";
19915
+ getRootString(path8) {
19916
+ return path8.startsWith("/") ? "/" : "";
19917
19917
  }
19918
19918
  /**
19919
19919
  * @internal
@@ -19963,8 +19963,8 @@ var require_commonjs4 = __commonJS({
19963
19963
  *
19964
19964
  * @internal
19965
19965
  */
19966
- constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs: fs6 = defaultFS } = {}) {
19967
- this.#fs = fsFromOption(fs6);
19966
+ constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs: fs7 = defaultFS } = {}) {
19967
+ this.#fs = fsFromOption(fs7);
19968
19968
  if (cwd instanceof URL || cwd.startsWith("file://")) {
19969
19969
  cwd = (0, node_url_1.fileURLToPath)(cwd);
19970
19970
  }
@@ -20003,11 +20003,11 @@ var require_commonjs4 = __commonJS({
20003
20003
  /**
20004
20004
  * Get the depth of a provided path, string, or the cwd
20005
20005
  */
20006
- depth(path7 = this.cwd) {
20007
- if (typeof path7 === "string") {
20008
- path7 = this.cwd.resolve(path7);
20006
+ depth(path8 = this.cwd) {
20007
+ if (typeof path8 === "string") {
20008
+ path8 = this.cwd.resolve(path8);
20009
20009
  }
20010
- return path7.depth();
20010
+ return path8.depth();
20011
20011
  }
20012
20012
  /**
20013
20013
  * Return the cache of child entries. Exposed so subclasses can create
@@ -20494,9 +20494,9 @@ var require_commonjs4 = __commonJS({
20494
20494
  process2();
20495
20495
  return results;
20496
20496
  }
20497
- chdir(path7 = this.cwd) {
20497
+ chdir(path8 = this.cwd) {
20498
20498
  const oldCwd = this.cwd;
20499
- this.cwd = typeof path7 === "string" ? this.cwd.resolve(path7) : path7;
20499
+ this.cwd = typeof path8 === "string" ? this.cwd.resolve(path8) : path8;
20500
20500
  this.cwd[setAsCwd](oldCwd);
20501
20501
  }
20502
20502
  };
@@ -20523,8 +20523,8 @@ var require_commonjs4 = __commonJS({
20523
20523
  /**
20524
20524
  * @internal
20525
20525
  */
20526
- newRoot(fs6) {
20527
- return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs6 });
20526
+ newRoot(fs7) {
20527
+ return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs7 });
20528
20528
  }
20529
20529
  /**
20530
20530
  * Return true if the provided path string is an absolute path
@@ -20553,8 +20553,8 @@ var require_commonjs4 = __commonJS({
20553
20553
  /**
20554
20554
  * @internal
20555
20555
  */
20556
- newRoot(fs6) {
20557
- return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs6 });
20556
+ newRoot(fs7) {
20557
+ return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs7 });
20558
20558
  }
20559
20559
  /**
20560
20560
  * Return true if the provided path string is an absolute path
@@ -20887,8 +20887,8 @@ var require_processor = __commonJS({
20887
20887
  }
20888
20888
  // match, absolute, ifdir
20889
20889
  entries() {
20890
- return [...this.store.entries()].map(([path7, n]) => [
20891
- path7,
20890
+ return [...this.store.entries()].map(([path8, n]) => [
20891
+ path8,
20892
20892
  !!(n & 2),
20893
20893
  !!(n & 1)
20894
20894
  ]);
@@ -21107,9 +21107,9 @@ var require_walker = __commonJS({
21107
21107
  signal;
21108
21108
  maxDepth;
21109
21109
  includeChildMatches;
21110
- constructor(patterns, path7, opts) {
21110
+ constructor(patterns, path8, opts) {
21111
21111
  this.patterns = patterns;
21112
- this.path = path7;
21112
+ this.path = path8;
21113
21113
  this.opts = opts;
21114
21114
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
21115
21115
  this.includeChildMatches = opts.includeChildMatches !== false;
@@ -21128,11 +21128,11 @@ var require_walker = __commonJS({
21128
21128
  });
21129
21129
  }
21130
21130
  }
21131
- #ignored(path7) {
21132
- return this.seen.has(path7) || !!this.#ignore?.ignored?.(path7);
21131
+ #ignored(path8) {
21132
+ return this.seen.has(path8) || !!this.#ignore?.ignored?.(path8);
21133
21133
  }
21134
- #childrenIgnored(path7) {
21135
- return !!this.#ignore?.childrenIgnored?.(path7);
21134
+ #childrenIgnored(path8) {
21135
+ return !!this.#ignore?.childrenIgnored?.(path8);
21136
21136
  }
21137
21137
  // backpressure mechanism
21138
21138
  pause() {
@@ -21348,8 +21348,8 @@ var require_walker = __commonJS({
21348
21348
  exports.GlobUtil = GlobUtil;
21349
21349
  var GlobWalker = class extends GlobUtil {
21350
21350
  matches = /* @__PURE__ */ new Set();
21351
- constructor(patterns, path7, opts) {
21352
- super(patterns, path7, opts);
21351
+ constructor(patterns, path8, opts) {
21352
+ super(patterns, path8, opts);
21353
21353
  }
21354
21354
  matchEmit(e) {
21355
21355
  this.matches.add(e);
@@ -21387,8 +21387,8 @@ var require_walker = __commonJS({
21387
21387
  exports.GlobWalker = GlobWalker;
21388
21388
  var GlobStream = class extends GlobUtil {
21389
21389
  results;
21390
- constructor(patterns, path7, opts) {
21391
- super(patterns, path7, opts);
21390
+ constructor(patterns, path8, opts) {
21391
+ super(patterns, path8, opts);
21392
21392
  this.results = new minipass_1.Minipass({
21393
21393
  signal: this.signal,
21394
21394
  objectMode: true
@@ -21748,8 +21748,8 @@ var require_file = __commonJS({
21748
21748
  "../../.yarn/cache/archiver-utils-npm-5.0.2-c2e6f595a7-3782c5fa99.zip/node_modules/archiver-utils/file.js"(exports, module) {
21749
21749
  "use strict";
21750
21750
  init_esm_shims();
21751
- var fs6 = require_graceful_fs();
21752
- var path7 = __require("path");
21751
+ var fs7 = require_graceful_fs();
21752
+ var path8 = __require("path");
21753
21753
  var flatten = require_flatten();
21754
21754
  var difference = require_difference();
21755
21755
  var union = require_union();
@@ -21774,8 +21774,8 @@ var require_file = __commonJS({
21774
21774
  return result;
21775
21775
  };
21776
21776
  file.exists = function() {
21777
- var filepath = path7.join.apply(path7, arguments);
21778
- return fs6.existsSync(filepath);
21777
+ var filepath = path8.join.apply(path8, arguments);
21778
+ return fs7.existsSync(filepath);
21779
21779
  };
21780
21780
  file.expand = function(...args) {
21781
21781
  var options2 = isPlainObject(args[0]) ? args.shift() : {};
@@ -21788,12 +21788,12 @@ var require_file = __commonJS({
21788
21788
  });
21789
21789
  if (options2.filter) {
21790
21790
  matches = matches.filter(function(filepath) {
21791
- filepath = path7.join(options2.cwd || "", filepath);
21791
+ filepath = path8.join(options2.cwd || "", filepath);
21792
21792
  try {
21793
21793
  if (typeof options2.filter === "function") {
21794
21794
  return options2.filter(filepath);
21795
21795
  } else {
21796
- return fs6.statSync(filepath)[options2.filter]();
21796
+ return fs7.statSync(filepath)[options2.filter]();
21797
21797
  }
21798
21798
  } catch (e) {
21799
21799
  return false;
@@ -21805,7 +21805,7 @@ var require_file = __commonJS({
21805
21805
  file.expandMapping = function(patterns, destBase, options2) {
21806
21806
  options2 = Object.assign({
21807
21807
  rename: function(destBase2, destPath) {
21808
- return path7.join(destBase2 || "", destPath);
21808
+ return path8.join(destBase2 || "", destPath);
21809
21809
  }
21810
21810
  }, options2);
21811
21811
  var files = [];
@@ -21813,14 +21813,14 @@ var require_file = __commonJS({
21813
21813
  file.expand(options2, patterns).forEach(function(src) {
21814
21814
  var destPath = src;
21815
21815
  if (options2.flatten) {
21816
- destPath = path7.basename(destPath);
21816
+ destPath = path8.basename(destPath);
21817
21817
  }
21818
21818
  if (options2.ext) {
21819
21819
  destPath = destPath.replace(/(\.[^\/]*)?$/, options2.ext);
21820
21820
  }
21821
21821
  var dest = options2.rename(destBase, destPath, options2);
21822
21822
  if (options2.cwd) {
21823
- src = path7.join(options2.cwd, src);
21823
+ src = path8.join(options2.cwd, src);
21824
21824
  }
21825
21825
  dest = dest.replace(pathSeparatorRe, "/");
21826
21826
  src = src.replace(pathSeparatorRe, "/");
@@ -21903,11 +21903,11 @@ var require_archiver_utils = __commonJS({
21903
21903
  "../../.yarn/cache/archiver-utils-npm-5.0.2-c2e6f595a7-3782c5fa99.zip/node_modules/archiver-utils/index.js"(exports, module) {
21904
21904
  "use strict";
21905
21905
  init_esm_shims();
21906
- var fs6 = require_graceful_fs();
21907
- var path7 = __require("path");
21906
+ var fs7 = require_graceful_fs();
21907
+ var path8 = __require("path");
21908
21908
  var isStream = require_is_stream();
21909
21909
  var lazystream = require_lazystream();
21910
- var normalizePath = require_normalize_path();
21910
+ var normalizePath2 = require_normalize_path();
21911
21911
  var defaults = require_defaults();
21912
21912
  var Stream = __require("stream").Stream;
21913
21913
  var PassThrough = require_ours().PassThrough;
@@ -21952,7 +21952,7 @@ var require_archiver_utils = __commonJS({
21952
21952
  };
21953
21953
  utils.lazyReadStream = function(filepath) {
21954
21954
  return new lazystream.Readable(function() {
21955
- return fs6.createReadStream(filepath);
21955
+ return fs7.createReadStream(filepath);
21956
21956
  });
21957
21957
  };
21958
21958
  utils.normalizeInputSource = function(source) {
@@ -21966,13 +21966,13 @@ var require_archiver_utils = __commonJS({
21966
21966
  return source;
21967
21967
  };
21968
21968
  utils.sanitizePath = function(filepath) {
21969
- return normalizePath(filepath, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, "");
21969
+ return normalizePath2(filepath, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, "");
21970
21970
  };
21971
21971
  utils.trailingSlashIt = function(str) {
21972
21972
  return str.slice(-1) !== "/" ? str + "/" : str;
21973
21973
  };
21974
21974
  utils.unixifyPath = function(filepath) {
21975
- return normalizePath(filepath, false).replace(/^\w+:/, "");
21975
+ return normalizePath2(filepath, false).replace(/^\w+:/, "");
21976
21976
  };
21977
21977
  utils.walkdir = function(dirpath, base, callback) {
21978
21978
  var results = [];
@@ -21980,7 +21980,7 @@ var require_archiver_utils = __commonJS({
21980
21980
  callback = base;
21981
21981
  base = dirpath;
21982
21982
  }
21983
- fs6.readdir(dirpath, function(err, list) {
21983
+ fs7.readdir(dirpath, function(err, list) {
21984
21984
  var i = 0;
21985
21985
  var file;
21986
21986
  var filepath;
@@ -21992,11 +21992,11 @@ var require_archiver_utils = __commonJS({
21992
21992
  if (!file) {
21993
21993
  return callback(null, results);
21994
21994
  }
21995
- filepath = path7.join(dirpath, file);
21996
- fs6.stat(filepath, function(err2, stats) {
21995
+ filepath = path8.join(dirpath, file);
21996
+ fs7.stat(filepath, function(err2, stats) {
21997
21997
  results.push({
21998
21998
  path: filepath,
21999
- relative: path7.relative(base, filepath).replace(/\\/g, "/"),
21999
+ relative: path8.relative(base, filepath).replace(/\\/g, "/"),
22000
22000
  stats
22001
22001
  });
22002
22002
  if (stats && stats.isDirectory()) {
@@ -22059,10 +22059,10 @@ var require_core = __commonJS({
22059
22059
  "../../.yarn/cache/archiver-npm-7.0.1-dc24339f78-02afd87ca1.zip/node_modules/archiver/lib/core.js"(exports, module) {
22060
22060
  "use strict";
22061
22061
  init_esm_shims();
22062
- var fs6 = __require("fs");
22062
+ var fs7 = __require("fs");
22063
22063
  var glob = require_readdir_glob();
22064
22064
  var async = (init_async(), __toCommonJS(async_exports));
22065
- var path7 = __require("path");
22065
+ var path8 = __require("path");
22066
22066
  var util = require_archiver_utils();
22067
22067
  var inherits = __require("util").inherits;
22068
22068
  var ArchiverError = require_error();
@@ -22123,7 +22123,7 @@ var require_core = __commonJS({
22123
22123
  data.sourcePath = filepath;
22124
22124
  task.data = data;
22125
22125
  this._entriesCount++;
22126
- if (data.stats && data.stats instanceof fs6.Stats) {
22126
+ if (data.stats && data.stats instanceof fs7.Stats) {
22127
22127
  task = this._updateQueueTaskWithStats(task, data.stats);
22128
22128
  if (task) {
22129
22129
  if (data.stats.size) {
@@ -22294,7 +22294,7 @@ var require_core = __commonJS({
22294
22294
  callback();
22295
22295
  return;
22296
22296
  }
22297
- fs6.lstat(task.filepath, function(err, stats) {
22297
+ fs7.lstat(task.filepath, function(err, stats) {
22298
22298
  if (this._state.aborted) {
22299
22299
  setImmediate(callback);
22300
22300
  return;
@@ -22337,10 +22337,10 @@ var require_core = __commonJS({
22337
22337
  task.data.sourceType = "buffer";
22338
22338
  task.source = Buffer.concat([]);
22339
22339
  } else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
22340
- var linkPath = fs6.readlinkSync(task.filepath);
22341
- var dirName = path7.dirname(task.filepath);
22340
+ var linkPath = fs7.readlinkSync(task.filepath);
22341
+ var dirName = path8.dirname(task.filepath);
22342
22342
  task.data.type = "symlink";
22343
- task.data.linkname = path7.relative(dirName, path7.resolve(dirName, linkPath));
22343
+ task.data.linkname = path8.relative(dirName, path8.resolve(dirName, linkPath));
22344
22344
  task.data.sourceType = "buffer";
22345
22345
  task.source = Buffer.concat([]);
22346
22346
  } else {
@@ -22885,7 +22885,7 @@ var require_zip_archive_entry = __commonJS({
22885
22885
  "use strict";
22886
22886
  init_esm_shims();
22887
22887
  var inherits = __require("util").inherits;
22888
- var normalizePath = require_normalize_path();
22888
+ var normalizePath2 = require_normalize_path();
22889
22889
  var ArchiveEntry = require_archive_entry();
22890
22890
  var GeneralPurposeBit = require_general_purpose_bit();
22891
22891
  var UnixStat = require_unix_stat();
@@ -23009,7 +23009,7 @@ var require_zip_archive_entry = __commonJS({
23009
23009
  this.method = method;
23010
23010
  };
23011
23011
  ZipArchiveEntry.prototype.setName = function(name, prependSlash = false) {
23012
- name = normalizePath(name, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, "");
23012
+ name = normalizePath2(name, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, "");
23013
23013
  if (prependSlash) {
23014
23014
  name = `/${name}`;
23015
23015
  }
@@ -26528,11 +26528,11 @@ var require_validateReport = __commonJS({
26528
26528
  Object.defineProperty(exports, "__esModule", { value: true });
26529
26529
  exports._validateReport = void 0;
26530
26530
  var _validateReport2 = (array) => {
26531
- const reportable = (path7) => {
26531
+ const reportable = (path8) => {
26532
26532
  if (array.length === 0)
26533
26533
  return true;
26534
26534
  const last = array[array.length - 1].path;
26535
- return path7.length > last.length || last.substring(0, path7.length) !== path7;
26535
+ return path8.length > last.length || last.substring(0, path8.length) !== path8;
26536
26536
  };
26537
26537
  return (exceptable, error) => {
26538
26538
  if (exceptable && reportable(error.path))
@@ -26549,14 +26549,15 @@ init_esm_shims();
26549
26549
 
26550
26550
  // src/appsInToss.ts
26551
26551
  init_esm_shims();
26552
- import fs5 from "fs";
26553
- import path6 from "path";
26552
+ import fs6 from "fs";
26553
+ import path7 from "path";
26554
26554
 
26555
- // ../../.yarn/cache/@react-native-bedrock-utils-npm-0.0.24-86d1e7a92c-ff04765188.zip/node_modules/@react-native-bedrock/utils/dist/index.js
26555
+ // ../../packages/utils/dist/index.js
26556
26556
  init_esm_shims();
26557
26557
  var import_yauzl = __toESM(require_yauzl(), 1);
26558
26558
  import fs from "fs";
26559
26559
  import path from "path";
26560
+ import os from "os";
26560
26561
  function getPackageRoot() {
26561
26562
  let cwd = process.cwd();
26562
26563
  const root = path.parse(cwd).root;
@@ -26601,6 +26602,13 @@ function readZipContent(zipPath, fileName) {
26601
26602
  });
26602
26603
  });
26603
26604
  }
26605
+ var win32Impl = {
26606
+ normalizePath: (path22) => path22.replace(/\\/g, "/")
26607
+ };
26608
+ var posixImpl = {
26609
+ normalizePath: (path22) => path22
26610
+ };
26611
+ var { normalizePath } = os.type() === "Windows_NT" ? win32Impl : posixImpl;
26604
26612
 
26605
26613
  // src/appsInToss.ts
26606
26614
  var import_picocolors = __toESM(require_picocolors(), 1);
@@ -26610,26 +26618,102 @@ init_esm_shims();
26610
26618
  var REACT_NATIVE_VERSION = "0.72.6";
26611
26619
  var APP_MANIFEST_NAME = "app.json";
26612
26620
 
26621
+ // src/utils/collectDependencyVersions.ts
26622
+ init_esm_shims();
26623
+ import * as fs2 from "fs/promises";
26624
+ import * as path2 from "path";
26625
+ import * as esbuild from "esbuild";
26626
+ async function collectDependencyVersions(rootDir) {
26627
+ const packageJsonPath = path2.join(rootDir, "package.json");
26628
+ const packageJson = JSON.parse(await fs2.readFile(packageJsonPath, "utf8"));
26629
+ const [dependencies, devDependencies] = await Promise.all([
26630
+ resolvePackageVersions(rootDir, Object.keys(packageJson.dependencies)),
26631
+ resolvePackageVersions(rootDir, Object.keys(packageJson.devDependencies))
26632
+ ]);
26633
+ return { dependencies, devDependencies };
26634
+ }
26635
+ async function resolvePackageVersions(rootDir, packageNames) {
26636
+ const results = {};
26637
+ await esbuild.build({
26638
+ stdin: { contents: createVirtualEntry(packageNames) },
26639
+ bundle: true,
26640
+ write: false,
26641
+ logLevel: "silent",
26642
+ plugins: [
26643
+ {
26644
+ name: "collect-package-version",
26645
+ setup(build2) {
26646
+ const RESOLVING = Symbol();
26647
+ build2.onResolve({ filter: /.*/ }, async (args) => {
26648
+ if (args.pluginData === RESOLVING) {
26649
+ return null;
26650
+ }
26651
+ const resolveOptions = {
26652
+ importer: args.importer,
26653
+ kind: args.kind,
26654
+ resolveDir: rootDir,
26655
+ pluginData: RESOLVING
26656
+ };
26657
+ let result = await build2.resolve(path2.join(args.path, "package.json"), resolveOptions);
26658
+ if (result.errors.length) {
26659
+ result = await build2.resolve(args.path, resolveOptions);
26660
+ }
26661
+ if (result.errors.length) {
26662
+ return result;
26663
+ }
26664
+ const packageName = args.path;
26665
+ const packagePath = extractPackagePath(result.path, packageName);
26666
+ if (packagePath) {
26667
+ results[packageName] = await getPackageVersion(packagePath);
26668
+ }
26669
+ return result;
26670
+ });
26671
+ build2.onLoad({ filter: /.*/ }, () => ({ contents: "// empty source" }));
26672
+ }
26673
+ }
26674
+ ]
26675
+ });
26676
+ return results;
26677
+ }
26678
+ function createVirtualEntry(packageNames) {
26679
+ return packageNames.map((packageName) => `import '${packageName}';`).join("\n");
26680
+ }
26681
+ function extractPackagePath(path8, packageName) {
26682
+ const normalizedPath = normalizePath(path8);
26683
+ if (normalizedPath.endsWith("/package.json")) {
26684
+ return normalizedPath.replace(/\/package\.json$/, "");
26685
+ }
26686
+ const match = normalizedPath.match(new RegExp(`(.*?node_modules/${packageName})/.*$`));
26687
+ if (match) {
26688
+ return match[1];
26689
+ }
26690
+ throw new Error(`Failed to extract path: ${packageName}`);
26691
+ }
26692
+ async function getPackageVersion(packagePath) {
26693
+ const packageJson = JSON.parse(await fs2.readFile(path2.join(packagePath, "package.json"), "utf-8"));
26694
+ return packageJson.version;
26695
+ }
26696
+
26613
26697
  // src/utils/createArtifact.ts
26614
26698
  init_esm_shims();
26615
- import path4 from "path";
26699
+ import path5 from "path";
26616
26700
 
26617
26701
  // src/utils/compressToZip.ts
26618
26702
  init_esm_shims();
26619
26703
  var import_archiver = __toESM(require_archiver(), 1);
26620
- import * as fs2 from "fs";
26621
- import * as path2 from "path";
26704
+ import * as fs3 from "fs";
26705
+ import * as path3 from "path";
26622
26706
  async function compressToZip(config) {
26623
26707
  const { files, outfile } = config;
26624
26708
  return new Promise((resolve, reject2) => {
26625
- const outputStream = fs2.createWriteStream(outfile);
26709
+ const outputStream = fs3.createWriteStream(outfile);
26626
26710
  const archive = (0, import_archiver.default)("zip", { zlib: { level: 9 } });
26627
26711
  outputStream.on("close", () => resolve(outfile));
26628
26712
  outputStream.on("error", (error) => reject2(error));
26629
26713
  archive.on("error", (error) => reject2(error)).pipe(outputStream);
26630
26714
  files.forEach(({ path: filePath, name }) => {
26631
- const fileName = name ?? path2.basename(filePath);
26632
- archive.append(fs2.createReadStream(filePath), { name: fileName });
26715
+ const fileName = name ?? path3.basename(filePath);
26716
+ archive.append(fs3.createReadStream(filePath), { name: fileName });
26633
26717
  });
26634
26718
  archive.finalize();
26635
26719
  });
@@ -26637,20 +26721,20 @@ async function compressToZip(config) {
26637
26721
 
26638
26722
  // src/utils/updateAppJsonMetadata.ts
26639
26723
  init_esm_shims();
26640
- import * as fs3 from "fs/promises";
26641
- import * as path3 from "path";
26724
+ import * as fs4 from "fs/promises";
26725
+ import * as path4 from "path";
26642
26726
  async function resolveAppManifestPath() {
26643
26727
  const cwd = getPackageRoot();
26644
- const appManifestPath = path3.join(cwd, ".bedrock", APP_MANIFEST_NAME);
26645
- await fs3.access(appManifestPath, fs3.constants.F_OK);
26728
+ const appManifestPath = path4.join(cwd, ".bedrock", APP_MANIFEST_NAME);
26729
+ await fs4.access(appManifestPath, fs4.constants.F_OK);
26646
26730
  return appManifestPath;
26647
26731
  }
26648
26732
  async function readAppJson(appJsonPath) {
26649
- const appJson = await fs3.readFile(appJsonPath, "utf8");
26733
+ const appJson = await fs4.readFile(appJsonPath, "utf8");
26650
26734
  return JSON.parse(appJson);
26651
26735
  }
26652
26736
  async function writeAppJson(appJsonPath, content) {
26653
- await fs3.writeFile(appJsonPath, JSON.stringify(content));
26737
+ await fs4.writeFile(appJsonPath, JSON.stringify(content));
26654
26738
  }
26655
26739
  async function updateAppJsonMetadata(metadata) {
26656
26740
  const appJsonPath = await resolveAppManifestPath();
@@ -26845,8 +26929,8 @@ async function validateZip(zipPath) {
26845
26929
  async function createArtifact(options2) {
26846
26930
  const { bundleFiles, outfile, appJsonPath, reactNativeVersion } = options2;
26847
26931
  const namedBundleFiles = bundleFiles.map((bundle) => {
26848
- const originalName = path4.basename(bundle.path);
26849
- const extension = path4.extname(originalName);
26932
+ const originalName = path5.basename(bundle.path);
26933
+ const extension = path5.extname(originalName);
26850
26934
  const runtime = reactNativeVersion.replace(new RegExp(/\./g), "_");
26851
26935
  return {
26852
26936
  path: bundle.path,
@@ -26857,7 +26941,8 @@ async function createArtifact(options2) {
26857
26941
  await updateAppJsonMetadata({
26858
26942
  runtimeVersion: reactNativeVersion,
26859
26943
  bundleFiles: namedBundleFiles.map(({ name }) => name),
26860
- deploymentId: options2.deploymentId
26944
+ deploymentId: options2.deploymentId,
26945
+ packageJson: options2.packageJson
26861
26946
  });
26862
26947
  await compressToZip({
26863
26948
  files: [{ path: appJsonPath, name: "app.json" }, ...namedBundleFiles, ...options2.additionalFilesToZip ?? []],
@@ -27248,17 +27333,17 @@ function generateDeploymentId() {
27248
27333
 
27249
27334
  // src/utils/setupRuntimeSetupScript.ts
27250
27335
  init_esm_shims();
27251
- import fs4 from "node:fs";
27252
- import path5 from "node:path";
27336
+ import fs5 from "node:fs";
27337
+ import path6 from "node:path";
27253
27338
  function setupRuntimeSetupScript(config) {
27254
27339
  const packageRoot = getPackageRoot();
27255
- const bedrockPath = path5.join(packageRoot, ".bedrock");
27340
+ const bedrockPath = path6.join(packageRoot, ".bedrock");
27256
27341
  try {
27257
- fs4.accessSync(bedrockPath);
27342
+ fs5.accessSync(bedrockPath);
27258
27343
  } catch {
27259
- fs4.mkdirSync(bedrockPath, { recursive: true });
27344
+ fs5.mkdirSync(bedrockPath, { recursive: true });
27260
27345
  }
27261
- const envFilePath = path5.join(bedrockPath, ".apps-in-toss.env.js");
27346
+ const envFilePath = path6.join(bedrockPath, ".apps-in-toss.env.js");
27262
27347
  const script = `
27263
27348
  (function (global) {
27264
27349
  global.__appsInToss = ${JSON.stringify({
@@ -27278,7 +27363,7 @@ function setupRuntimeSetupScript(config) {
27278
27363
  : this
27279
27364
  );
27280
27365
  `;
27281
- fs4.writeFileSync(envFilePath, script, "utf-8");
27366
+ fs5.writeFileSync(envFilePath, script, "utf-8");
27282
27367
  return { contents: script, path: envFilePath };
27283
27368
  }
27284
27369
 
@@ -27290,9 +27375,11 @@ function appsInTossCreateArtifact(deploymentId) {
27290
27375
  build: {
27291
27376
  order: "post",
27292
27377
  handler: async ({ buildResults, appName, cwd }) => {
27378
+ const { dependencies, devDependencies } = await collectDependencyVersions(cwd);
27293
27379
  const artifactOutfile = await createArtifact({
27294
27380
  reactNativeVersion: REACT_NATIVE_VERSION,
27295
27381
  deploymentId,
27382
+ packageJson: { dependencies, devDependencies },
27296
27383
  bundleFiles: buildResults.map(({ outfile, sourcemapOutfile, platform }) => [
27297
27384
  {
27298
27385
  path: outfile,
@@ -27303,13 +27390,13 @@ function appsInTossCreateArtifact(deploymentId) {
27303
27390
  platform
27304
27391
  }
27305
27392
  ]).flat(),
27306
- outfile: path6.join(cwd, `${appName}.ait`),
27307
- appJsonPath: path6.join(packageRoot, ".bedrock", APP_MANIFEST_NAME)
27393
+ outfile: path7.join(cwd, `${appName}.ait`),
27394
+ appJsonPath: path7.join(packageRoot, ".bedrock", APP_MANIFEST_NAME)
27308
27395
  });
27309
27396
  if (!artifactOutfile) {
27310
27397
  throw new Error("\uC544\uD2F0\uD329\uD2B8 \uC0DD\uC131\uC5D0 \uC2E4\uD328\uD588\uC5B4\uC694.");
27311
27398
  }
27312
- const filename = path6.basename(artifactOutfile);
27399
+ const filename = path7.basename(artifactOutfile);
27313
27400
  console.log(`\u2705 ${import_picocolors.default.green(`${filename}`)} \uBE4C\uB4DC \uC644\uB8CC`);
27314
27401
  }
27315
27402
  }
@@ -27354,14 +27441,14 @@ function appsInTossDevServer(options2) {
27354
27441
  async function appsInTossAppJson(options2) {
27355
27442
  const packageRoot = getPackageRoot();
27356
27443
  const handleAppJson = async (appName) => {
27357
- const appJsonPath = path6.join(packageRoot, ".bedrock", APP_MANIFEST_NAME);
27444
+ const appJsonPath = path7.join(packageRoot, ".bedrock", APP_MANIFEST_NAME);
27358
27445
  const appJsonObject = {
27359
27446
  appName,
27360
27447
  permissions: options2.permissions
27361
27448
  };
27362
- await fs5.promises.mkdir(path6.dirname(appJsonPath), { recursive: true });
27449
+ await fs6.promises.mkdir(path7.dirname(appJsonPath), { recursive: true });
27363
27450
  try {
27364
- const existingAppJson = await fs5.promises.readFile(appJsonPath, "utf8");
27451
+ const existingAppJson = await fs6.promises.readFile(appJsonPath, "utf8");
27365
27452
  const existingAppJsonObject = JSON.parse(existingAppJson);
27366
27453
  Object.assign(appJsonObject, existingAppJsonObject, {
27367
27454
  appName,
@@ -27369,7 +27456,7 @@ async function appsInTossAppJson(options2) {
27369
27456
  });
27370
27457
  } catch {
27371
27458
  }
27372
- await fs5.promises.writeFile(appJsonPath, JSON.stringify(appJsonObject, null, 2), "utf8");
27459
+ await fs6.promises.writeFile(appJsonPath, JSON.stringify(appJsonObject, null, 2), "utf8");
27373
27460
  };
27374
27461
  return {
27375
27462
  name: "apps-in-toss:app-json",
@@ -27464,6 +27551,7 @@ export {
27464
27551
  appsInTossAppJson,
27465
27552
  appsInTossEsbuildConfig,
27466
27553
  appsInTossMetroConfig,
27554
+ collectDependencyVersions,
27467
27555
  createArtifact,
27468
27556
  setupRuntimeSetupScript,
27469
27557
  validateAppManifest,