@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.cjs CHANGED
@@ -102,7 +102,7 @@ var require_fd_slicer = __commonJS({
102
102
  "../../.yarn/cache/yauzl-npm-3.2.0-b1af038bc6-7b40b3dc46.zip/node_modules/yauzl/fd-slicer.js"(exports2) {
103
103
  "use strict";
104
104
  init_cjs_shims();
105
- var fs6 = require("fs");
105
+ var fs7 = require("fs");
106
106
  var util = require("util");
107
107
  var stream = require("stream");
108
108
  var Readable = stream.Readable;
@@ -127,7 +127,7 @@ var require_fd_slicer = __commonJS({
127
127
  FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
128
128
  var self2 = this;
129
129
  self2.pend.go(function(cb) {
130
- fs6.read(self2.fd, buffer, offset, length, position, function(err, bytesRead, buffer2) {
130
+ fs7.read(self2.fd, buffer, offset, length, position, function(err, bytesRead, buffer2) {
131
131
  cb();
132
132
  callback(err, bytesRead, buffer2);
133
133
  });
@@ -136,7 +136,7 @@ var require_fd_slicer = __commonJS({
136
136
  FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
137
137
  var self2 = this;
138
138
  self2.pend.go(function(cb) {
139
- fs6.write(self2.fd, buffer, offset, length, position, function(err, written, buffer2) {
139
+ fs7.write(self2.fd, buffer, offset, length, position, function(err, written, buffer2) {
140
140
  cb();
141
141
  callback(err, written, buffer2);
142
142
  });
@@ -157,7 +157,7 @@ var require_fd_slicer = __commonJS({
157
157
  if (self2.refCount > 0) return;
158
158
  if (self2.refCount < 0) throw new Error("invalid unref");
159
159
  if (self2.autoClose) {
160
- fs6.close(self2.fd, onCloseDone);
160
+ fs7.close(self2.fd, onCloseDone);
161
161
  }
162
162
  function onCloseDone(err) {
163
163
  if (err) {
@@ -194,7 +194,7 @@ var require_fd_slicer = __commonJS({
194
194
  self2.context.pend.go(function(cb) {
195
195
  if (self2.destroyed) return cb();
196
196
  var buffer = Buffer.allocUnsafe(toRead);
197
- fs6.read(self2.context.fd, buffer, 0, toRead, self2.pos, function(err, bytesRead) {
197
+ fs7.read(self2.context.fd, buffer, 0, toRead, self2.pos, function(err, bytesRead) {
198
198
  if (err) {
199
199
  self2.destroy(err);
200
200
  } else if (bytesRead === 0) {
@@ -241,7 +241,7 @@ var require_fd_slicer = __commonJS({
241
241
  }
242
242
  self2.context.pend.go(function(cb) {
243
243
  if (self2.destroyed) return cb();
244
- fs6.write(self2.context.fd, buffer, 0, buffer.length, self2.pos, function(err2, bytes) {
244
+ fs7.write(self2.context.fd, buffer, 0, buffer.length, self2.pos, function(err2, bytes) {
245
245
  if (err2) {
246
246
  self2.destroy();
247
247
  cb();
@@ -683,7 +683,7 @@ var require_yauzl = __commonJS({
683
683
  "../../.yarn/cache/yauzl-npm-3.2.0-b1af038bc6-7b40b3dc46.zip/node_modules/yauzl/index.js"(exports2) {
684
684
  "use strict";
685
685
  init_cjs_shims();
686
- var fs6 = require("fs");
686
+ var fs7 = require("fs");
687
687
  var zlib = require("zlib");
688
688
  var fd_slicer = require_fd_slicer();
689
689
  var crc32 = require_buffer_crc32();
@@ -704,7 +704,7 @@ var require_yauzl = __commonJS({
704
704
  exports2.Entry = Entry;
705
705
  exports2.LocalFileHeader = LocalFileHeader;
706
706
  exports2.RandomAccessReader = RandomAccessReader;
707
- function open(path7, options2, callback) {
707
+ function open(path8, options2, callback) {
708
708
  if (typeof options2 === "function") {
709
709
  callback = options2;
710
710
  options2 = null;
@@ -716,10 +716,10 @@ var require_yauzl = __commonJS({
716
716
  if (options2.validateEntrySizes == null) options2.validateEntrySizes = true;
717
717
  if (options2.strictFileNames == null) options2.strictFileNames = false;
718
718
  if (callback == null) callback = defaultCallback;
719
- fs6.open(path7, "r", function(err, fd) {
719
+ fs7.open(path8, "r", function(err, fd) {
720
720
  if (err) return callback(err);
721
721
  fromFd(fd, options2, function(err2, zipfile) {
722
- if (err2) fs6.close(fd, defaultCallback);
722
+ if (err2) fs7.close(fd, defaultCallback);
723
723
  callback(err2, zipfile);
724
724
  });
725
725
  });
@@ -736,7 +736,7 @@ var require_yauzl = __commonJS({
736
736
  if (options2.validateEntrySizes == null) options2.validateEntrySizes = true;
737
737
  if (options2.strictFileNames == null) options2.strictFileNames = false;
738
738
  if (callback == null) callback = defaultCallback;
739
- fs6.fstat(fd, function(err, stats) {
739
+ fs7.fstat(fd, function(err, stats) {
740
740
  if (err) return callback(err);
741
741
  var reader = fd_slicer.createFromFd(fd, { autoClose: true });
742
742
  fromRandomAccessReader(reader, stats.size, options2, callback);
@@ -1729,8 +1729,8 @@ var require_minimatch = __commonJS({
1729
1729
  return new Minimatch(pattern, options2).match(p);
1730
1730
  };
1731
1731
  module2.exports = minimatch;
1732
- var path7 = require_path();
1733
- minimatch.sep = path7.sep;
1732
+ var path8 = require_path();
1733
+ minimatch.sep = path8.sep;
1734
1734
  var GLOBSTAR = Symbol("globstar **");
1735
1735
  minimatch.GLOBSTAR = GLOBSTAR;
1736
1736
  var expand = require_brace_expansion();
@@ -2239,8 +2239,8 @@ var require_minimatch = __commonJS({
2239
2239
  if (this.empty) return f === "";
2240
2240
  if (f === "/" && partial) return true;
2241
2241
  const options2 = this.options;
2242
- if (path7.sep !== "/") {
2243
- f = f.split(path7.sep).join("/");
2242
+ if (path8.sep !== "/") {
2243
+ f = f.split(path8.sep).join("/");
2244
2244
  }
2245
2245
  f = f.split(slashSplit);
2246
2246
  this.debug(this.pattern, "split", f);
@@ -2280,13 +2280,13 @@ var require_readdir_glob = __commonJS({
2280
2280
  "use strict";
2281
2281
  init_cjs_shims();
2282
2282
  module2.exports = readdirGlob;
2283
- var fs6 = require("fs");
2283
+ var fs7 = require("fs");
2284
2284
  var { EventEmitter } = require("events");
2285
2285
  var { Minimatch } = require_minimatch();
2286
2286
  var { resolve } = require("path");
2287
2287
  function readdir(dir2, strict) {
2288
2288
  return new Promise((resolve2, reject2) => {
2289
- fs6.readdir(dir2, { withFileTypes: true }, (err, files) => {
2289
+ fs7.readdir(dir2, { withFileTypes: true }, (err, files) => {
2290
2290
  if (err) {
2291
2291
  switch (err.code) {
2292
2292
  case "ENOTDIR":
@@ -2319,7 +2319,7 @@ var require_readdir_glob = __commonJS({
2319
2319
  }
2320
2320
  function stat(file, followSymlinks) {
2321
2321
  return new Promise((resolve2, reject2) => {
2322
- const statFunc = followSymlinks ? fs6.stat : fs6.lstat;
2322
+ const statFunc = followSymlinks ? fs7.stat : fs7.lstat;
2323
2323
  statFunc(file, (err, stats) => {
2324
2324
  if (err) {
2325
2325
  switch (err.code) {
@@ -2340,8 +2340,8 @@ var require_readdir_glob = __commonJS({
2340
2340
  });
2341
2341
  });
2342
2342
  }
2343
- async function* exploreWalkAsync(dir2, path7, followSymlinks, useStat, shouldSkip, strict) {
2344
- let files = await readdir(path7 + dir2, strict);
2343
+ async function* exploreWalkAsync(dir2, path8, followSymlinks, useStat, shouldSkip, strict) {
2344
+ let files = await readdir(path8 + dir2, strict);
2345
2345
  for (const file of files) {
2346
2346
  let name = file.name;
2347
2347
  if (name === void 0) {
@@ -2350,7 +2350,7 @@ var require_readdir_glob = __commonJS({
2350
2350
  }
2351
2351
  const filename = dir2 + "/" + name;
2352
2352
  const relative = filename.slice(1);
2353
- const absolute = path7 + "/" + relative;
2353
+ const absolute = path8 + "/" + relative;
2354
2354
  let stats = null;
2355
2355
  if (useStat || followSymlinks) {
2356
2356
  stats = await stat(absolute, followSymlinks);
@@ -2364,15 +2364,15 @@ var require_readdir_glob = __commonJS({
2364
2364
  if (stats.isDirectory()) {
2365
2365
  if (!shouldSkip(relative)) {
2366
2366
  yield { relative, absolute, stats };
2367
- yield* exploreWalkAsync(filename, path7, followSymlinks, useStat, shouldSkip, false);
2367
+ yield* exploreWalkAsync(filename, path8, followSymlinks, useStat, shouldSkip, false);
2368
2368
  }
2369
2369
  } else {
2370
2370
  yield { relative, absolute, stats };
2371
2371
  }
2372
2372
  }
2373
2373
  }
2374
- async function* explore(path7, followSymlinks, useStat, shouldSkip) {
2375
- yield* exploreWalkAsync("", path7, followSymlinks, useStat, shouldSkip, true);
2374
+ async function* explore(path8, followSymlinks, useStat, shouldSkip) {
2375
+ yield* exploreWalkAsync("", path8, followSymlinks, useStat, shouldSkip, true);
2376
2376
  }
2377
2377
  function readOptions(options2) {
2378
2378
  return {
@@ -4385,54 +4385,54 @@ var require_polyfills = __commonJS({
4385
4385
  }
4386
4386
  var chdir;
4387
4387
  module2.exports = patch;
4388
- function patch(fs6) {
4388
+ function patch(fs7) {
4389
4389
  if (constants2.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
4390
- patchLchmod(fs6);
4391
- }
4392
- if (!fs6.lutimes) {
4393
- patchLutimes(fs6);
4394
- }
4395
- fs6.chown = chownFix(fs6.chown);
4396
- fs6.fchown = chownFix(fs6.fchown);
4397
- fs6.lchown = chownFix(fs6.lchown);
4398
- fs6.chmod = chmodFix(fs6.chmod);
4399
- fs6.fchmod = chmodFix(fs6.fchmod);
4400
- fs6.lchmod = chmodFix(fs6.lchmod);
4401
- fs6.chownSync = chownFixSync(fs6.chownSync);
4402
- fs6.fchownSync = chownFixSync(fs6.fchownSync);
4403
- fs6.lchownSync = chownFixSync(fs6.lchownSync);
4404
- fs6.chmodSync = chmodFixSync(fs6.chmodSync);
4405
- fs6.fchmodSync = chmodFixSync(fs6.fchmodSync);
4406
- fs6.lchmodSync = chmodFixSync(fs6.lchmodSync);
4407
- fs6.stat = statFix(fs6.stat);
4408
- fs6.fstat = statFix(fs6.fstat);
4409
- fs6.lstat = statFix(fs6.lstat);
4410
- fs6.statSync = statFixSync(fs6.statSync);
4411
- fs6.fstatSync = statFixSync(fs6.fstatSync);
4412
- fs6.lstatSync = statFixSync(fs6.lstatSync);
4413
- if (fs6.chmod && !fs6.lchmod) {
4414
- fs6.lchmod = function(path7, mode, cb) {
4390
+ patchLchmod(fs7);
4391
+ }
4392
+ if (!fs7.lutimes) {
4393
+ patchLutimes(fs7);
4394
+ }
4395
+ fs7.chown = chownFix(fs7.chown);
4396
+ fs7.fchown = chownFix(fs7.fchown);
4397
+ fs7.lchown = chownFix(fs7.lchown);
4398
+ fs7.chmod = chmodFix(fs7.chmod);
4399
+ fs7.fchmod = chmodFix(fs7.fchmod);
4400
+ fs7.lchmod = chmodFix(fs7.lchmod);
4401
+ fs7.chownSync = chownFixSync(fs7.chownSync);
4402
+ fs7.fchownSync = chownFixSync(fs7.fchownSync);
4403
+ fs7.lchownSync = chownFixSync(fs7.lchownSync);
4404
+ fs7.chmodSync = chmodFixSync(fs7.chmodSync);
4405
+ fs7.fchmodSync = chmodFixSync(fs7.fchmodSync);
4406
+ fs7.lchmodSync = chmodFixSync(fs7.lchmodSync);
4407
+ fs7.stat = statFix(fs7.stat);
4408
+ fs7.fstat = statFix(fs7.fstat);
4409
+ fs7.lstat = statFix(fs7.lstat);
4410
+ fs7.statSync = statFixSync(fs7.statSync);
4411
+ fs7.fstatSync = statFixSync(fs7.fstatSync);
4412
+ fs7.lstatSync = statFixSync(fs7.lstatSync);
4413
+ if (fs7.chmod && !fs7.lchmod) {
4414
+ fs7.lchmod = function(path8, mode, cb) {
4415
4415
  if (cb) process.nextTick(cb);
4416
4416
  };
4417
- fs6.lchmodSync = function() {
4417
+ fs7.lchmodSync = function() {
4418
4418
  };
4419
4419
  }
4420
- if (fs6.chown && !fs6.lchown) {
4421
- fs6.lchown = function(path7, uid, gid, cb) {
4420
+ if (fs7.chown && !fs7.lchown) {
4421
+ fs7.lchown = function(path8, uid, gid, cb) {
4422
4422
  if (cb) process.nextTick(cb);
4423
4423
  };
4424
- fs6.lchownSync = function() {
4424
+ fs7.lchownSync = function() {
4425
4425
  };
4426
4426
  }
4427
4427
  if (platform === "win32") {
4428
- fs6.rename = typeof fs6.rename !== "function" ? fs6.rename : function(fs$rename) {
4428
+ fs7.rename = typeof fs7.rename !== "function" ? fs7.rename : function(fs$rename) {
4429
4429
  function rename(from, to, cb) {
4430
4430
  var start = Date.now();
4431
4431
  var backoff = 0;
4432
4432
  fs$rename(from, to, function CB(er) {
4433
4433
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
4434
4434
  setTimeout(function() {
4435
- fs6.stat(to, function(stater, st) {
4435
+ fs7.stat(to, function(stater, st) {
4436
4436
  if (stater && stater.code === "ENOENT")
4437
4437
  fs$rename(from, to, CB);
4438
4438
  else
@@ -4448,9 +4448,9 @@ var require_polyfills = __commonJS({
4448
4448
  }
4449
4449
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
4450
4450
  return rename;
4451
- }(fs6.rename);
4451
+ }(fs7.rename);
4452
4452
  }
4453
- fs6.read = typeof fs6.read !== "function" ? fs6.read : function(fs$read) {
4453
+ fs7.read = typeof fs7.read !== "function" ? fs7.read : function(fs$read) {
4454
4454
  function read(fd, buffer, offset, length, position, callback_) {
4455
4455
  var callback;
4456
4456
  if (callback_ && typeof callback_ === "function") {
@@ -4458,22 +4458,22 @@ var require_polyfills = __commonJS({
4458
4458
  callback = function(er, _2, __) {
4459
4459
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
4460
4460
  eagCounter++;
4461
- return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
4461
+ return fs$read.call(fs7, fd, buffer, offset, length, position, callback);
4462
4462
  }
4463
4463
  callback_.apply(this, arguments);
4464
4464
  };
4465
4465
  }
4466
- return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
4466
+ return fs$read.call(fs7, fd, buffer, offset, length, position, callback);
4467
4467
  }
4468
4468
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
4469
4469
  return read;
4470
- }(fs6.read);
4471
- fs6.readSync = typeof fs6.readSync !== "function" ? fs6.readSync : /* @__PURE__ */ function(fs$readSync) {
4470
+ }(fs7.read);
4471
+ fs7.readSync = typeof fs7.readSync !== "function" ? fs7.readSync : /* @__PURE__ */ function(fs$readSync) {
4472
4472
  return function(fd, buffer, offset, length, position) {
4473
4473
  var eagCounter = 0;
4474
4474
  while (true) {
4475
4475
  try {
4476
- return fs$readSync.call(fs6, fd, buffer, offset, length, position);
4476
+ return fs$readSync.call(fs7, fd, buffer, offset, length, position);
4477
4477
  } catch (er) {
4478
4478
  if (er.code === "EAGAIN" && eagCounter < 10) {
4479
4479
  eagCounter++;
@@ -4483,11 +4483,11 @@ var require_polyfills = __commonJS({
4483
4483
  }
4484
4484
  }
4485
4485
  };
4486
- }(fs6.readSync);
4487
- function patchLchmod(fs7) {
4488
- fs7.lchmod = function(path7, mode, callback) {
4489
- fs7.open(
4490
- path7,
4486
+ }(fs7.readSync);
4487
+ function patchLchmod(fs8) {
4488
+ fs8.lchmod = function(path8, mode, callback) {
4489
+ fs8.open(
4490
+ path8,
4491
4491
  constants2.O_WRONLY | constants2.O_SYMLINK,
4492
4492
  mode,
4493
4493
  function(err, fd) {
@@ -4495,80 +4495,80 @@ var require_polyfills = __commonJS({
4495
4495
  if (callback) callback(err);
4496
4496
  return;
4497
4497
  }
4498
- fs7.fchmod(fd, mode, function(err2) {
4499
- fs7.close(fd, function(err22) {
4498
+ fs8.fchmod(fd, mode, function(err2) {
4499
+ fs8.close(fd, function(err22) {
4500
4500
  if (callback) callback(err2 || err22);
4501
4501
  });
4502
4502
  });
4503
4503
  }
4504
4504
  );
4505
4505
  };
4506
- fs7.lchmodSync = function(path7, mode) {
4507
- var fd = fs7.openSync(path7, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
4506
+ fs8.lchmodSync = function(path8, mode) {
4507
+ var fd = fs8.openSync(path8, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
4508
4508
  var threw = true;
4509
4509
  var ret;
4510
4510
  try {
4511
- ret = fs7.fchmodSync(fd, mode);
4511
+ ret = fs8.fchmodSync(fd, mode);
4512
4512
  threw = false;
4513
4513
  } finally {
4514
4514
  if (threw) {
4515
4515
  try {
4516
- fs7.closeSync(fd);
4516
+ fs8.closeSync(fd);
4517
4517
  } catch (er) {
4518
4518
  }
4519
4519
  } else {
4520
- fs7.closeSync(fd);
4520
+ fs8.closeSync(fd);
4521
4521
  }
4522
4522
  }
4523
4523
  return ret;
4524
4524
  };
4525
4525
  }
4526
- function patchLutimes(fs7) {
4527
- if (constants2.hasOwnProperty("O_SYMLINK") && fs7.futimes) {
4528
- fs7.lutimes = function(path7, at, mt, cb) {
4529
- fs7.open(path7, constants2.O_SYMLINK, function(er, fd) {
4526
+ function patchLutimes(fs8) {
4527
+ if (constants2.hasOwnProperty("O_SYMLINK") && fs8.futimes) {
4528
+ fs8.lutimes = function(path8, at, mt, cb) {
4529
+ fs8.open(path8, constants2.O_SYMLINK, function(er, fd) {
4530
4530
  if (er) {
4531
4531
  if (cb) cb(er);
4532
4532
  return;
4533
4533
  }
4534
- fs7.futimes(fd, at, mt, function(er2) {
4535
- fs7.close(fd, function(er22) {
4534
+ fs8.futimes(fd, at, mt, function(er2) {
4535
+ fs8.close(fd, function(er22) {
4536
4536
  if (cb) cb(er2 || er22);
4537
4537
  });
4538
4538
  });
4539
4539
  });
4540
4540
  };
4541
- fs7.lutimesSync = function(path7, at, mt) {
4542
- var fd = fs7.openSync(path7, constants2.O_SYMLINK);
4541
+ fs8.lutimesSync = function(path8, at, mt) {
4542
+ var fd = fs8.openSync(path8, constants2.O_SYMLINK);
4543
4543
  var ret;
4544
4544
  var threw = true;
4545
4545
  try {
4546
- ret = fs7.futimesSync(fd, at, mt);
4546
+ ret = fs8.futimesSync(fd, at, mt);
4547
4547
  threw = false;
4548
4548
  } finally {
4549
4549
  if (threw) {
4550
4550
  try {
4551
- fs7.closeSync(fd);
4551
+ fs8.closeSync(fd);
4552
4552
  } catch (er) {
4553
4553
  }
4554
4554
  } else {
4555
- fs7.closeSync(fd);
4555
+ fs8.closeSync(fd);
4556
4556
  }
4557
4557
  }
4558
4558
  return ret;
4559
4559
  };
4560
- } else if (fs7.futimes) {
4561
- fs7.lutimes = function(_a, _b, _c, cb) {
4560
+ } else if (fs8.futimes) {
4561
+ fs8.lutimes = function(_a, _b, _c, cb) {
4562
4562
  if (cb) process.nextTick(cb);
4563
4563
  };
4564
- fs7.lutimesSync = function() {
4564
+ fs8.lutimesSync = function() {
4565
4565
  };
4566
4566
  }
4567
4567
  }
4568
4568
  function chmodFix(orig) {
4569
4569
  if (!orig) return orig;
4570
4570
  return function(target, mode, cb) {
4571
- return orig.call(fs6, target, mode, function(er) {
4571
+ return orig.call(fs7, target, mode, function(er) {
4572
4572
  if (chownErOk(er)) er = null;
4573
4573
  if (cb) cb.apply(this, arguments);
4574
4574
  });
@@ -4578,7 +4578,7 @@ var require_polyfills = __commonJS({
4578
4578
  if (!orig) return orig;
4579
4579
  return function(target, mode) {
4580
4580
  try {
4581
- return orig.call(fs6, target, mode);
4581
+ return orig.call(fs7, target, mode);
4582
4582
  } catch (er) {
4583
4583
  if (!chownErOk(er)) throw er;
4584
4584
  }
@@ -4587,7 +4587,7 @@ var require_polyfills = __commonJS({
4587
4587
  function chownFix(orig) {
4588
4588
  if (!orig) return orig;
4589
4589
  return function(target, uid, gid, cb) {
4590
- return orig.call(fs6, target, uid, gid, function(er) {
4590
+ return orig.call(fs7, target, uid, gid, function(er) {
4591
4591
  if (chownErOk(er)) er = null;
4592
4592
  if (cb) cb.apply(this, arguments);
4593
4593
  });
@@ -4597,7 +4597,7 @@ var require_polyfills = __commonJS({
4597
4597
  if (!orig) return orig;
4598
4598
  return function(target, uid, gid) {
4599
4599
  try {
4600
- return orig.call(fs6, target, uid, gid);
4600
+ return orig.call(fs7, target, uid, gid);
4601
4601
  } catch (er) {
4602
4602
  if (!chownErOk(er)) throw er;
4603
4603
  }
@@ -4617,13 +4617,13 @@ var require_polyfills = __commonJS({
4617
4617
  }
4618
4618
  if (cb) cb.apply(this, arguments);
4619
4619
  }
4620
- return options2 ? orig.call(fs6, target, options2, callback) : orig.call(fs6, target, callback);
4620
+ return options2 ? orig.call(fs7, target, options2, callback) : orig.call(fs7, target, callback);
4621
4621
  };
4622
4622
  }
4623
4623
  function statFixSync(orig) {
4624
4624
  if (!orig) return orig;
4625
4625
  return function(target, options2) {
4626
- var stats = options2 ? orig.call(fs6, target, options2) : orig.call(fs6, target);
4626
+ var stats = options2 ? orig.call(fs7, target, options2) : orig.call(fs7, target);
4627
4627
  if (stats) {
4628
4628
  if (stats.uid < 0) stats.uid += 4294967296;
4629
4629
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -4654,16 +4654,16 @@ var require_legacy_streams = __commonJS({
4654
4654
  init_cjs_shims();
4655
4655
  var Stream = require("stream").Stream;
4656
4656
  module2.exports = legacy;
4657
- function legacy(fs6) {
4657
+ function legacy(fs7) {
4658
4658
  return {
4659
4659
  ReadStream,
4660
4660
  WriteStream
4661
4661
  };
4662
- function ReadStream(path7, options2) {
4663
- if (!(this instanceof ReadStream)) return new ReadStream(path7, options2);
4662
+ function ReadStream(path8, options2) {
4663
+ if (!(this instanceof ReadStream)) return new ReadStream(path8, options2);
4664
4664
  Stream.call(this);
4665
4665
  var self2 = this;
4666
- this.path = path7;
4666
+ this.path = path8;
4667
4667
  this.fd = null;
4668
4668
  this.readable = true;
4669
4669
  this.paused = false;
@@ -4697,7 +4697,7 @@ var require_legacy_streams = __commonJS({
4697
4697
  });
4698
4698
  return;
4699
4699
  }
4700
- fs6.open(this.path, this.flags, this.mode, function(err, fd) {
4700
+ fs7.open(this.path, this.flags, this.mode, function(err, fd) {
4701
4701
  if (err) {
4702
4702
  self2.emit("error", err);
4703
4703
  self2.readable = false;
@@ -4708,10 +4708,10 @@ var require_legacy_streams = __commonJS({
4708
4708
  self2._read();
4709
4709
  });
4710
4710
  }
4711
- function WriteStream(path7, options2) {
4712
- if (!(this instanceof WriteStream)) return new WriteStream(path7, options2);
4711
+ function WriteStream(path8, options2) {
4712
+ if (!(this instanceof WriteStream)) return new WriteStream(path8, options2);
4713
4713
  Stream.call(this);
4714
- this.path = path7;
4714
+ this.path = path8;
4715
4715
  this.fd = null;
4716
4716
  this.writable = true;
4717
4717
  this.flags = "w";
@@ -4736,7 +4736,7 @@ var require_legacy_streams = __commonJS({
4736
4736
  this.busy = false;
4737
4737
  this._queue = [];
4738
4738
  if (this.fd === null) {
4739
- this._open = fs6.open;
4739
+ this._open = fs7.open;
4740
4740
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
4741
4741
  this.flush();
4742
4742
  }
@@ -4774,7 +4774,7 @@ var require_graceful_fs = __commonJS({
4774
4774
  "../../.yarn/cache/graceful-fs-npm-4.2.11-b94d8104d4-386d011a55.zip/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
4775
4775
  "use strict";
4776
4776
  init_cjs_shims();
4777
- var fs6 = require("fs");
4777
+ var fs7 = require("fs");
4778
4778
  var polyfills = require_polyfills();
4779
4779
  var legacy = require_legacy_streams();
4780
4780
  var clone = require_clone();
@@ -4806,12 +4806,12 @@ var require_graceful_fs = __commonJS({
4806
4806
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
4807
4807
  console.error(m);
4808
4808
  };
4809
- if (!fs6[gracefulQueue]) {
4809
+ if (!fs7[gracefulQueue]) {
4810
4810
  queue2 = global[gracefulQueue] || [];
4811
- publishQueue(fs6, queue2);
4812
- fs6.close = function(fs$close) {
4811
+ publishQueue(fs7, queue2);
4812
+ fs7.close = function(fs$close) {
4813
4813
  function close(fd, cb) {
4814
- return fs$close.call(fs6, fd, function(err) {
4814
+ return fs$close.call(fs7, fd, function(err) {
4815
4815
  if (!err) {
4816
4816
  resetQueue();
4817
4817
  }
@@ -4823,48 +4823,48 @@ var require_graceful_fs = __commonJS({
4823
4823
  value: fs$close
4824
4824
  });
4825
4825
  return close;
4826
- }(fs6.close);
4827
- fs6.closeSync = function(fs$closeSync) {
4826
+ }(fs7.close);
4827
+ fs7.closeSync = function(fs$closeSync) {
4828
4828
  function closeSync(fd) {
4829
- fs$closeSync.apply(fs6, arguments);
4829
+ fs$closeSync.apply(fs7, arguments);
4830
4830
  resetQueue();
4831
4831
  }
4832
4832
  Object.defineProperty(closeSync, previousSymbol, {
4833
4833
  value: fs$closeSync
4834
4834
  });
4835
4835
  return closeSync;
4836
- }(fs6.closeSync);
4836
+ }(fs7.closeSync);
4837
4837
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
4838
4838
  process.on("exit", function() {
4839
- debug(fs6[gracefulQueue]);
4840
- require("assert").equal(fs6[gracefulQueue].length, 0);
4839
+ debug(fs7[gracefulQueue]);
4840
+ require("assert").equal(fs7[gracefulQueue].length, 0);
4841
4841
  });
4842
4842
  }
4843
4843
  }
4844
4844
  var queue2;
4845
4845
  if (!global[gracefulQueue]) {
4846
- publishQueue(global, fs6[gracefulQueue]);
4847
- }
4848
- module2.exports = patch(clone(fs6));
4849
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs6.__patched) {
4850
- module2.exports = patch(fs6);
4851
- fs6.__patched = true;
4852
- }
4853
- function patch(fs7) {
4854
- polyfills(fs7);
4855
- fs7.gracefulify = patch;
4856
- fs7.createReadStream = createReadStream2;
4857
- fs7.createWriteStream = createWriteStream2;
4858
- var fs$readFile = fs7.readFile;
4859
- fs7.readFile = readFile2;
4860
- function readFile2(path7, options2, cb) {
4846
+ publishQueue(global, fs7[gracefulQueue]);
4847
+ }
4848
+ module2.exports = patch(clone(fs7));
4849
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs7.__patched) {
4850
+ module2.exports = patch(fs7);
4851
+ fs7.__patched = true;
4852
+ }
4853
+ function patch(fs8) {
4854
+ polyfills(fs8);
4855
+ fs8.gracefulify = patch;
4856
+ fs8.createReadStream = createReadStream2;
4857
+ fs8.createWriteStream = createWriteStream2;
4858
+ var fs$readFile = fs8.readFile;
4859
+ fs8.readFile = readFile3;
4860
+ function readFile3(path8, options2, cb) {
4861
4861
  if (typeof options2 === "function")
4862
4862
  cb = options2, options2 = null;
4863
- return go$readFile(path7, options2, cb);
4864
- function go$readFile(path8, options3, cb2, startTime) {
4865
- return fs$readFile(path8, options3, function(err) {
4863
+ return go$readFile(path8, options2, cb);
4864
+ function go$readFile(path9, options3, cb2, startTime) {
4865
+ return fs$readFile(path9, options3, function(err) {
4866
4866
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4867
- enqueue([go$readFile, [path8, options3, cb2], err, startTime || Date.now(), Date.now()]);
4867
+ enqueue([go$readFile, [path9, options3, cb2], err, startTime || Date.now(), Date.now()]);
4868
4868
  else {
4869
4869
  if (typeof cb2 === "function")
4870
4870
  cb2.apply(this, arguments);
@@ -4872,16 +4872,16 @@ var require_graceful_fs = __commonJS({
4872
4872
  });
4873
4873
  }
4874
4874
  }
4875
- var fs$writeFile = fs7.writeFile;
4876
- fs7.writeFile = writeFile2;
4877
- function writeFile2(path7, data, options2, cb) {
4875
+ var fs$writeFile = fs8.writeFile;
4876
+ fs8.writeFile = writeFile2;
4877
+ function writeFile2(path8, data, options2, cb) {
4878
4878
  if (typeof options2 === "function")
4879
4879
  cb = options2, options2 = null;
4880
- return go$writeFile(path7, data, options2, cb);
4881
- function go$writeFile(path8, data2, options3, cb2, startTime) {
4882
- return fs$writeFile(path8, data2, options3, function(err) {
4880
+ return go$writeFile(path8, data, options2, cb);
4881
+ function go$writeFile(path9, data2, options3, cb2, startTime) {
4882
+ return fs$writeFile(path9, data2, options3, function(err) {
4883
4883
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4884
- enqueue([go$writeFile, [path8, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
4884
+ enqueue([go$writeFile, [path9, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
4885
4885
  else {
4886
4886
  if (typeof cb2 === "function")
4887
4887
  cb2.apply(this, arguments);
@@ -4889,17 +4889,17 @@ var require_graceful_fs = __commonJS({
4889
4889
  });
4890
4890
  }
4891
4891
  }
4892
- var fs$appendFile = fs7.appendFile;
4892
+ var fs$appendFile = fs8.appendFile;
4893
4893
  if (fs$appendFile)
4894
- fs7.appendFile = appendFile;
4895
- function appendFile(path7, data, options2, cb) {
4894
+ fs8.appendFile = appendFile;
4895
+ function appendFile(path8, data, options2, cb) {
4896
4896
  if (typeof options2 === "function")
4897
4897
  cb = options2, options2 = null;
4898
- return go$appendFile(path7, data, options2, cb);
4899
- function go$appendFile(path8, data2, options3, cb2, startTime) {
4900
- return fs$appendFile(path8, data2, options3, function(err) {
4898
+ return go$appendFile(path8, data, options2, cb);
4899
+ function go$appendFile(path9, data2, options3, cb2, startTime) {
4900
+ return fs$appendFile(path9, data2, options3, function(err) {
4901
4901
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4902
- enqueue([go$appendFile, [path8, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
4902
+ enqueue([go$appendFile, [path9, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
4903
4903
  else {
4904
4904
  if (typeof cb2 === "function")
4905
4905
  cb2.apply(this, arguments);
@@ -4907,9 +4907,9 @@ var require_graceful_fs = __commonJS({
4907
4907
  });
4908
4908
  }
4909
4909
  }
4910
- var fs$copyFile = fs7.copyFile;
4910
+ var fs$copyFile = fs8.copyFile;
4911
4911
  if (fs$copyFile)
4912
- fs7.copyFile = copyFile;
4912
+ fs8.copyFile = copyFile;
4913
4913
  function copyFile(src, dest, flags, cb) {
4914
4914
  if (typeof flags === "function") {
4915
4915
  cb = flags;
@@ -4927,34 +4927,34 @@ var require_graceful_fs = __commonJS({
4927
4927
  });
4928
4928
  }
4929
4929
  }
4930
- var fs$readdir = fs7.readdir;
4931
- fs7.readdir = readdir;
4930
+ var fs$readdir = fs8.readdir;
4931
+ fs8.readdir = readdir;
4932
4932
  var noReaddirOptionVersions = /^v[0-5]\./;
4933
- function readdir(path7, options2, cb) {
4933
+ function readdir(path8, options2, cb) {
4934
4934
  if (typeof options2 === "function")
4935
4935
  cb = options2, options2 = null;
4936
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path8, options3, cb2, startTime) {
4937
- return fs$readdir(path8, fs$readdirCallback(
4938
- path8,
4936
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path9, options3, cb2, startTime) {
4937
+ return fs$readdir(path9, fs$readdirCallback(
4938
+ path9,
4939
4939
  options3,
4940
4940
  cb2,
4941
4941
  startTime
4942
4942
  ));
4943
- } : function go$readdir2(path8, options3, cb2, startTime) {
4944
- return fs$readdir(path8, options3, fs$readdirCallback(
4945
- path8,
4943
+ } : function go$readdir2(path9, options3, cb2, startTime) {
4944
+ return fs$readdir(path9, options3, fs$readdirCallback(
4945
+ path9,
4946
4946
  options3,
4947
4947
  cb2,
4948
4948
  startTime
4949
4949
  ));
4950
4950
  };
4951
- return go$readdir(path7, options2, cb);
4952
- function fs$readdirCallback(path8, options3, cb2, startTime) {
4951
+ return go$readdir(path8, options2, cb);
4952
+ function fs$readdirCallback(path9, options3, cb2, startTime) {
4953
4953
  return function(err, files) {
4954
4954
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4955
4955
  enqueue([
4956
4956
  go$readdir,
4957
- [path8, options3, cb2],
4957
+ [path9, options3, cb2],
4958
4958
  err,
4959
4959
  startTime || Date.now(),
4960
4960
  Date.now()
@@ -4969,21 +4969,21 @@ var require_graceful_fs = __commonJS({
4969
4969
  }
4970
4970
  }
4971
4971
  if (process.version.substr(0, 4) === "v0.8") {
4972
- var legStreams = legacy(fs7);
4972
+ var legStreams = legacy(fs8);
4973
4973
  ReadStream = legStreams.ReadStream;
4974
4974
  WriteStream = legStreams.WriteStream;
4975
4975
  }
4976
- var fs$ReadStream = fs7.ReadStream;
4976
+ var fs$ReadStream = fs8.ReadStream;
4977
4977
  if (fs$ReadStream) {
4978
4978
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
4979
4979
  ReadStream.prototype.open = ReadStream$open;
4980
4980
  }
4981
- var fs$WriteStream = fs7.WriteStream;
4981
+ var fs$WriteStream = fs8.WriteStream;
4982
4982
  if (fs$WriteStream) {
4983
4983
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
4984
4984
  WriteStream.prototype.open = WriteStream$open;
4985
4985
  }
4986
- Object.defineProperty(fs7, "ReadStream", {
4986
+ Object.defineProperty(fs8, "ReadStream", {
4987
4987
  get: function() {
4988
4988
  return ReadStream;
4989
4989
  },
@@ -4993,7 +4993,7 @@ var require_graceful_fs = __commonJS({
4993
4993
  enumerable: true,
4994
4994
  configurable: true
4995
4995
  });
4996
- Object.defineProperty(fs7, "WriteStream", {
4996
+ Object.defineProperty(fs8, "WriteStream", {
4997
4997
  get: function() {
4998
4998
  return WriteStream;
4999
4999
  },
@@ -5004,7 +5004,7 @@ var require_graceful_fs = __commonJS({
5004
5004
  configurable: true
5005
5005
  });
5006
5006
  var FileReadStream = ReadStream;
5007
- Object.defineProperty(fs7, "FileReadStream", {
5007
+ Object.defineProperty(fs8, "FileReadStream", {
5008
5008
  get: function() {
5009
5009
  return FileReadStream;
5010
5010
  },
@@ -5015,7 +5015,7 @@ var require_graceful_fs = __commonJS({
5015
5015
  configurable: true
5016
5016
  });
5017
5017
  var FileWriteStream = WriteStream;
5018
- Object.defineProperty(fs7, "FileWriteStream", {
5018
+ Object.defineProperty(fs8, "FileWriteStream", {
5019
5019
  get: function() {
5020
5020
  return FileWriteStream;
5021
5021
  },
@@ -5025,7 +5025,7 @@ var require_graceful_fs = __commonJS({
5025
5025
  enumerable: true,
5026
5026
  configurable: true
5027
5027
  });
5028
- function ReadStream(path7, options2) {
5028
+ function ReadStream(path8, options2) {
5029
5029
  if (this instanceof ReadStream)
5030
5030
  return fs$ReadStream.apply(this, arguments), this;
5031
5031
  else
@@ -5045,7 +5045,7 @@ var require_graceful_fs = __commonJS({
5045
5045
  }
5046
5046
  });
5047
5047
  }
5048
- function WriteStream(path7, options2) {
5048
+ function WriteStream(path8, options2) {
5049
5049
  if (this instanceof WriteStream)
5050
5050
  return fs$WriteStream.apply(this, arguments), this;
5051
5051
  else
@@ -5063,22 +5063,22 @@ var require_graceful_fs = __commonJS({
5063
5063
  }
5064
5064
  });
5065
5065
  }
5066
- function createReadStream2(path7, options2) {
5067
- return new fs7.ReadStream(path7, options2);
5066
+ function createReadStream2(path8, options2) {
5067
+ return new fs8.ReadStream(path8, options2);
5068
5068
  }
5069
- function createWriteStream2(path7, options2) {
5070
- return new fs7.WriteStream(path7, options2);
5069
+ function createWriteStream2(path8, options2) {
5070
+ return new fs8.WriteStream(path8, options2);
5071
5071
  }
5072
- var fs$open = fs7.open;
5073
- fs7.open = open;
5074
- function open(path7, flags, mode, cb) {
5072
+ var fs$open = fs8.open;
5073
+ fs8.open = open;
5074
+ function open(path8, flags, mode, cb) {
5075
5075
  if (typeof mode === "function")
5076
5076
  cb = mode, mode = null;
5077
- return go$open(path7, flags, mode, cb);
5078
- function go$open(path8, flags2, mode2, cb2, startTime) {
5079
- return fs$open(path8, flags2, mode2, function(err, fd) {
5077
+ return go$open(path8, flags, mode, cb);
5078
+ function go$open(path9, flags2, mode2, cb2, startTime) {
5079
+ return fs$open(path9, flags2, mode2, function(err, fd) {
5080
5080
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5081
- enqueue([go$open, [path8, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
5081
+ enqueue([go$open, [path9, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
5082
5082
  else {
5083
5083
  if (typeof cb2 === "function")
5084
5084
  cb2.apply(this, arguments);
@@ -5086,20 +5086,20 @@ var require_graceful_fs = __commonJS({
5086
5086
  });
5087
5087
  }
5088
5088
  }
5089
- return fs7;
5089
+ return fs8;
5090
5090
  }
5091
5091
  function enqueue(elem) {
5092
5092
  debug("ENQUEUE", elem[0].name, elem[1]);
5093
- fs6[gracefulQueue].push(elem);
5093
+ fs7[gracefulQueue].push(elem);
5094
5094
  retry2();
5095
5095
  }
5096
5096
  var retryTimer;
5097
5097
  function resetQueue() {
5098
5098
  var now = Date.now();
5099
- for (var i = 0; i < fs6[gracefulQueue].length; ++i) {
5100
- if (fs6[gracefulQueue][i].length > 2) {
5101
- fs6[gracefulQueue][i][3] = now;
5102
- fs6[gracefulQueue][i][4] = now;
5099
+ for (var i = 0; i < fs7[gracefulQueue].length; ++i) {
5100
+ if (fs7[gracefulQueue][i].length > 2) {
5101
+ fs7[gracefulQueue][i][3] = now;
5102
+ fs7[gracefulQueue][i][4] = now;
5103
5103
  }
5104
5104
  }
5105
5105
  retry2();
@@ -5107,9 +5107,9 @@ var require_graceful_fs = __commonJS({
5107
5107
  function retry2() {
5108
5108
  clearTimeout(retryTimer);
5109
5109
  retryTimer = void 0;
5110
- if (fs6[gracefulQueue].length === 0)
5110
+ if (fs7[gracefulQueue].length === 0)
5111
5111
  return;
5112
- var elem = fs6[gracefulQueue].shift();
5112
+ var elem = fs7[gracefulQueue].shift();
5113
5113
  var fn = elem[0];
5114
5114
  var args = elem[1];
5115
5115
  var err = elem[2];
@@ -5131,7 +5131,7 @@ var require_graceful_fs = __commonJS({
5131
5131
  debug("RETRY", fn.name, args);
5132
5132
  fn.apply(null, args.concat([startTime]));
5133
5133
  } else {
5134
- fs6[gracefulQueue].push(elem);
5134
+ fs7[gracefulQueue].push(elem);
5135
5135
  }
5136
5136
  }
5137
5137
  if (retryTimer === void 0) {
@@ -5450,7 +5450,7 @@ var require_BufferList = __commonJS({
5450
5450
  this.head = this.tail = null;
5451
5451
  this.length = 0;
5452
5452
  };
5453
- BufferList.prototype.join = function join2(s) {
5453
+ BufferList.prototype.join = function join3(s) {
5454
5454
  if (this.length === 0) return "";
5455
5455
  var p = this.head;
5456
5456
  var ret = "" + p.data;
@@ -7215,22 +7215,22 @@ var require_normalize_path = __commonJS({
7215
7215
  "../../.yarn/cache/normalize-path-npm-3.0.0-a747cc5237-e008c8142b.zip/node_modules/normalize-path/index.js"(exports2, module2) {
7216
7216
  "use strict";
7217
7217
  init_cjs_shims();
7218
- module2.exports = function(path7, stripTrailing) {
7219
- if (typeof path7 !== "string") {
7218
+ module2.exports = function(path8, stripTrailing) {
7219
+ if (typeof path8 !== "string") {
7220
7220
  throw new TypeError("expected path to be a string");
7221
7221
  }
7222
- if (path7 === "\\" || path7 === "/") return "/";
7223
- var len = path7.length;
7224
- if (len <= 1) return path7;
7222
+ if (path8 === "\\" || path8 === "/") return "/";
7223
+ var len = path8.length;
7224
+ if (len <= 1) return path8;
7225
7225
  var prefix = "";
7226
- if (len > 4 && path7[3] === "\\") {
7227
- var ch = path7[2];
7228
- if ((ch === "?" || ch === ".") && path7.slice(0, 2) === "\\\\") {
7229
- path7 = path7.slice(2);
7226
+ if (len > 4 && path8[3] === "\\") {
7227
+ var ch = path8[2];
7228
+ if ((ch === "?" || ch === ".") && path8.slice(0, 2) === "\\\\") {
7229
+ path8 = path8.slice(2);
7230
7230
  prefix = "//";
7231
7231
  }
7232
7232
  }
7233
- var segs = path7.split(/[/\\]+/);
7233
+ var segs = path8.split(/[/\\]+/);
7234
7234
  if (stripTrailing !== false && segs[segs.length - 1] === "") {
7235
7235
  segs.pop();
7236
7236
  }
@@ -15845,11 +15845,11 @@ var require_commonjs = __commonJS({
15845
15845
  return (f) => f.length === len && f !== "." && f !== "..";
15846
15846
  };
15847
15847
  var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
15848
- var path7 = {
15848
+ var path8 = {
15849
15849
  win32: { sep: "\\" },
15850
15850
  posix: { sep: "/" }
15851
15851
  };
15852
- exports2.sep = defaultPlatform === "win32" ? path7.win32.sep : path7.posix.sep;
15852
+ exports2.sep = defaultPlatform === "win32" ? path8.win32.sep : path8.posix.sep;
15853
15853
  exports2.minimatch.sep = exports2.sep;
15854
15854
  exports2.GLOBSTAR = Symbol("globstar **");
15855
15855
  exports2.minimatch.GLOBSTAR = exports2.GLOBSTAR;
@@ -19100,12 +19100,12 @@ var require_commonjs4 = __commonJS({
19100
19100
  /**
19101
19101
  * Get the Path object referenced by the string path, resolved from this Path
19102
19102
  */
19103
- resolve(path7) {
19104
- if (!path7) {
19103
+ resolve(path8) {
19104
+ if (!path8) {
19105
19105
  return this;
19106
19106
  }
19107
- const rootPath = this.getRootString(path7);
19108
- const dir2 = path7.substring(rootPath.length);
19107
+ const rootPath = this.getRootString(path8);
19108
+ const dir2 = path8.substring(rootPath.length);
19109
19109
  const dirParts = dir2.split(this.splitSep);
19110
19110
  const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
19111
19111
  return result;
@@ -19858,8 +19858,8 @@ var require_commonjs4 = __commonJS({
19858
19858
  /**
19859
19859
  * @internal
19860
19860
  */
19861
- getRootString(path7) {
19862
- return node_path_1.win32.parse(path7).root;
19861
+ getRootString(path8) {
19862
+ return node_path_1.win32.parse(path8).root;
19863
19863
  }
19864
19864
  /**
19865
19865
  * @internal
@@ -19906,8 +19906,8 @@ var require_commonjs4 = __commonJS({
19906
19906
  /**
19907
19907
  * @internal
19908
19908
  */
19909
- getRootString(path7) {
19910
- return path7.startsWith("/") ? "/" : "";
19909
+ getRootString(path8) {
19910
+ return path8.startsWith("/") ? "/" : "";
19911
19911
  }
19912
19912
  /**
19913
19913
  * @internal
@@ -19957,8 +19957,8 @@ var require_commonjs4 = __commonJS({
19957
19957
  *
19958
19958
  * @internal
19959
19959
  */
19960
- constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs: fs6 = defaultFS } = {}) {
19961
- this.#fs = fsFromOption(fs6);
19960
+ constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs: fs7 = defaultFS } = {}) {
19961
+ this.#fs = fsFromOption(fs7);
19962
19962
  if (cwd instanceof URL || cwd.startsWith("file://")) {
19963
19963
  cwd = (0, node_url_1.fileURLToPath)(cwd);
19964
19964
  }
@@ -19997,11 +19997,11 @@ var require_commonjs4 = __commonJS({
19997
19997
  /**
19998
19998
  * Get the depth of a provided path, string, or the cwd
19999
19999
  */
20000
- depth(path7 = this.cwd) {
20001
- if (typeof path7 === "string") {
20002
- path7 = this.cwd.resolve(path7);
20000
+ depth(path8 = this.cwd) {
20001
+ if (typeof path8 === "string") {
20002
+ path8 = this.cwd.resolve(path8);
20003
20003
  }
20004
- return path7.depth();
20004
+ return path8.depth();
20005
20005
  }
20006
20006
  /**
20007
20007
  * Return the cache of child entries. Exposed so subclasses can create
@@ -20488,9 +20488,9 @@ var require_commonjs4 = __commonJS({
20488
20488
  process2();
20489
20489
  return results;
20490
20490
  }
20491
- chdir(path7 = this.cwd) {
20491
+ chdir(path8 = this.cwd) {
20492
20492
  const oldCwd = this.cwd;
20493
- this.cwd = typeof path7 === "string" ? this.cwd.resolve(path7) : path7;
20493
+ this.cwd = typeof path8 === "string" ? this.cwd.resolve(path8) : path8;
20494
20494
  this.cwd[setAsCwd](oldCwd);
20495
20495
  }
20496
20496
  };
@@ -20517,8 +20517,8 @@ var require_commonjs4 = __commonJS({
20517
20517
  /**
20518
20518
  * @internal
20519
20519
  */
20520
- newRoot(fs6) {
20521
- return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs6 });
20520
+ newRoot(fs7) {
20521
+ return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs7 });
20522
20522
  }
20523
20523
  /**
20524
20524
  * Return true if the provided path string is an absolute path
@@ -20547,8 +20547,8 @@ var require_commonjs4 = __commonJS({
20547
20547
  /**
20548
20548
  * @internal
20549
20549
  */
20550
- newRoot(fs6) {
20551
- return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs6 });
20550
+ newRoot(fs7) {
20551
+ return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs7 });
20552
20552
  }
20553
20553
  /**
20554
20554
  * Return true if the provided path string is an absolute path
@@ -20881,8 +20881,8 @@ var require_processor = __commonJS({
20881
20881
  }
20882
20882
  // match, absolute, ifdir
20883
20883
  entries() {
20884
- return [...this.store.entries()].map(([path7, n]) => [
20885
- path7,
20884
+ return [...this.store.entries()].map(([path8, n]) => [
20885
+ path8,
20886
20886
  !!(n & 2),
20887
20887
  !!(n & 1)
20888
20888
  ]);
@@ -21101,9 +21101,9 @@ var require_walker = __commonJS({
21101
21101
  signal;
21102
21102
  maxDepth;
21103
21103
  includeChildMatches;
21104
- constructor(patterns, path7, opts) {
21104
+ constructor(patterns, path8, opts) {
21105
21105
  this.patterns = patterns;
21106
- this.path = path7;
21106
+ this.path = path8;
21107
21107
  this.opts = opts;
21108
21108
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
21109
21109
  this.includeChildMatches = opts.includeChildMatches !== false;
@@ -21122,11 +21122,11 @@ var require_walker = __commonJS({
21122
21122
  });
21123
21123
  }
21124
21124
  }
21125
- #ignored(path7) {
21126
- return this.seen.has(path7) || !!this.#ignore?.ignored?.(path7);
21125
+ #ignored(path8) {
21126
+ return this.seen.has(path8) || !!this.#ignore?.ignored?.(path8);
21127
21127
  }
21128
- #childrenIgnored(path7) {
21129
- return !!this.#ignore?.childrenIgnored?.(path7);
21128
+ #childrenIgnored(path8) {
21129
+ return !!this.#ignore?.childrenIgnored?.(path8);
21130
21130
  }
21131
21131
  // backpressure mechanism
21132
21132
  pause() {
@@ -21342,8 +21342,8 @@ var require_walker = __commonJS({
21342
21342
  exports2.GlobUtil = GlobUtil;
21343
21343
  var GlobWalker = class extends GlobUtil {
21344
21344
  matches = /* @__PURE__ */ new Set();
21345
- constructor(patterns, path7, opts) {
21346
- super(patterns, path7, opts);
21345
+ constructor(patterns, path8, opts) {
21346
+ super(patterns, path8, opts);
21347
21347
  }
21348
21348
  matchEmit(e) {
21349
21349
  this.matches.add(e);
@@ -21381,8 +21381,8 @@ var require_walker = __commonJS({
21381
21381
  exports2.GlobWalker = GlobWalker;
21382
21382
  var GlobStream = class extends GlobUtil {
21383
21383
  results;
21384
- constructor(patterns, path7, opts) {
21385
- super(patterns, path7, opts);
21384
+ constructor(patterns, path8, opts) {
21385
+ super(patterns, path8, opts);
21386
21386
  this.results = new minipass_1.Minipass({
21387
21387
  signal: this.signal,
21388
21388
  objectMode: true
@@ -21742,8 +21742,8 @@ var require_file = __commonJS({
21742
21742
  "../../.yarn/cache/archiver-utils-npm-5.0.2-c2e6f595a7-3782c5fa99.zip/node_modules/archiver-utils/file.js"(exports2, module2) {
21743
21743
  "use strict";
21744
21744
  init_cjs_shims();
21745
- var fs6 = require_graceful_fs();
21746
- var path7 = require("path");
21745
+ var fs7 = require_graceful_fs();
21746
+ var path8 = require("path");
21747
21747
  var flatten = require_flatten();
21748
21748
  var difference = require_difference();
21749
21749
  var union = require_union();
@@ -21768,8 +21768,8 @@ var require_file = __commonJS({
21768
21768
  return result;
21769
21769
  };
21770
21770
  file.exists = function() {
21771
- var filepath = path7.join.apply(path7, arguments);
21772
- return fs6.existsSync(filepath);
21771
+ var filepath = path8.join.apply(path8, arguments);
21772
+ return fs7.existsSync(filepath);
21773
21773
  };
21774
21774
  file.expand = function(...args) {
21775
21775
  var options2 = isPlainObject(args[0]) ? args.shift() : {};
@@ -21782,12 +21782,12 @@ var require_file = __commonJS({
21782
21782
  });
21783
21783
  if (options2.filter) {
21784
21784
  matches = matches.filter(function(filepath) {
21785
- filepath = path7.join(options2.cwd || "", filepath);
21785
+ filepath = path8.join(options2.cwd || "", filepath);
21786
21786
  try {
21787
21787
  if (typeof options2.filter === "function") {
21788
21788
  return options2.filter(filepath);
21789
21789
  } else {
21790
- return fs6.statSync(filepath)[options2.filter]();
21790
+ return fs7.statSync(filepath)[options2.filter]();
21791
21791
  }
21792
21792
  } catch (e) {
21793
21793
  return false;
@@ -21799,7 +21799,7 @@ var require_file = __commonJS({
21799
21799
  file.expandMapping = function(patterns, destBase, options2) {
21800
21800
  options2 = Object.assign({
21801
21801
  rename: function(destBase2, destPath) {
21802
- return path7.join(destBase2 || "", destPath);
21802
+ return path8.join(destBase2 || "", destPath);
21803
21803
  }
21804
21804
  }, options2);
21805
21805
  var files = [];
@@ -21807,14 +21807,14 @@ var require_file = __commonJS({
21807
21807
  file.expand(options2, patterns).forEach(function(src) {
21808
21808
  var destPath = src;
21809
21809
  if (options2.flatten) {
21810
- destPath = path7.basename(destPath);
21810
+ destPath = path8.basename(destPath);
21811
21811
  }
21812
21812
  if (options2.ext) {
21813
21813
  destPath = destPath.replace(/(\.[^\/]*)?$/, options2.ext);
21814
21814
  }
21815
21815
  var dest = options2.rename(destBase, destPath, options2);
21816
21816
  if (options2.cwd) {
21817
- src = path7.join(options2.cwd, src);
21817
+ src = path8.join(options2.cwd, src);
21818
21818
  }
21819
21819
  dest = dest.replace(pathSeparatorRe, "/");
21820
21820
  src = src.replace(pathSeparatorRe, "/");
@@ -21897,11 +21897,11 @@ var require_archiver_utils = __commonJS({
21897
21897
  "../../.yarn/cache/archiver-utils-npm-5.0.2-c2e6f595a7-3782c5fa99.zip/node_modules/archiver-utils/index.js"(exports2, module2) {
21898
21898
  "use strict";
21899
21899
  init_cjs_shims();
21900
- var fs6 = require_graceful_fs();
21901
- var path7 = require("path");
21900
+ var fs7 = require_graceful_fs();
21901
+ var path8 = require("path");
21902
21902
  var isStream = require_is_stream();
21903
21903
  var lazystream = require_lazystream();
21904
- var normalizePath = require_normalize_path();
21904
+ var normalizePath2 = require_normalize_path();
21905
21905
  var defaults = require_defaults();
21906
21906
  var Stream = require("stream").Stream;
21907
21907
  var PassThrough = require_ours().PassThrough;
@@ -21946,7 +21946,7 @@ var require_archiver_utils = __commonJS({
21946
21946
  };
21947
21947
  utils.lazyReadStream = function(filepath) {
21948
21948
  return new lazystream.Readable(function() {
21949
- return fs6.createReadStream(filepath);
21949
+ return fs7.createReadStream(filepath);
21950
21950
  });
21951
21951
  };
21952
21952
  utils.normalizeInputSource = function(source) {
@@ -21960,13 +21960,13 @@ var require_archiver_utils = __commonJS({
21960
21960
  return source;
21961
21961
  };
21962
21962
  utils.sanitizePath = function(filepath) {
21963
- return normalizePath(filepath, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, "");
21963
+ return normalizePath2(filepath, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, "");
21964
21964
  };
21965
21965
  utils.trailingSlashIt = function(str) {
21966
21966
  return str.slice(-1) !== "/" ? str + "/" : str;
21967
21967
  };
21968
21968
  utils.unixifyPath = function(filepath) {
21969
- return normalizePath(filepath, false).replace(/^\w+:/, "");
21969
+ return normalizePath2(filepath, false).replace(/^\w+:/, "");
21970
21970
  };
21971
21971
  utils.walkdir = function(dirpath, base, callback) {
21972
21972
  var results = [];
@@ -21974,7 +21974,7 @@ var require_archiver_utils = __commonJS({
21974
21974
  callback = base;
21975
21975
  base = dirpath;
21976
21976
  }
21977
- fs6.readdir(dirpath, function(err, list) {
21977
+ fs7.readdir(dirpath, function(err, list) {
21978
21978
  var i = 0;
21979
21979
  var file;
21980
21980
  var filepath;
@@ -21986,11 +21986,11 @@ var require_archiver_utils = __commonJS({
21986
21986
  if (!file) {
21987
21987
  return callback(null, results);
21988
21988
  }
21989
- filepath = path7.join(dirpath, file);
21990
- fs6.stat(filepath, function(err2, stats) {
21989
+ filepath = path8.join(dirpath, file);
21990
+ fs7.stat(filepath, function(err2, stats) {
21991
21991
  results.push({
21992
21992
  path: filepath,
21993
- relative: path7.relative(base, filepath).replace(/\\/g, "/"),
21993
+ relative: path8.relative(base, filepath).replace(/\\/g, "/"),
21994
21994
  stats
21995
21995
  });
21996
21996
  if (stats && stats.isDirectory()) {
@@ -22053,10 +22053,10 @@ var require_core = __commonJS({
22053
22053
  "../../.yarn/cache/archiver-npm-7.0.1-dc24339f78-02afd87ca1.zip/node_modules/archiver/lib/core.js"(exports2, module2) {
22054
22054
  "use strict";
22055
22055
  init_cjs_shims();
22056
- var fs6 = require("fs");
22056
+ var fs7 = require("fs");
22057
22057
  var glob = require_readdir_glob();
22058
22058
  var async = (init_async(), __toCommonJS(async_exports));
22059
- var path7 = require("path");
22059
+ var path8 = require("path");
22060
22060
  var util = require_archiver_utils();
22061
22061
  var inherits = require("util").inherits;
22062
22062
  var ArchiverError = require_error();
@@ -22117,7 +22117,7 @@ var require_core = __commonJS({
22117
22117
  data.sourcePath = filepath;
22118
22118
  task.data = data;
22119
22119
  this._entriesCount++;
22120
- if (data.stats && data.stats instanceof fs6.Stats) {
22120
+ if (data.stats && data.stats instanceof fs7.Stats) {
22121
22121
  task = this._updateQueueTaskWithStats(task, data.stats);
22122
22122
  if (task) {
22123
22123
  if (data.stats.size) {
@@ -22288,7 +22288,7 @@ var require_core = __commonJS({
22288
22288
  callback();
22289
22289
  return;
22290
22290
  }
22291
- fs6.lstat(task.filepath, function(err, stats) {
22291
+ fs7.lstat(task.filepath, function(err, stats) {
22292
22292
  if (this._state.aborted) {
22293
22293
  setImmediate(callback);
22294
22294
  return;
@@ -22331,10 +22331,10 @@ var require_core = __commonJS({
22331
22331
  task.data.sourceType = "buffer";
22332
22332
  task.source = Buffer.concat([]);
22333
22333
  } else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
22334
- var linkPath = fs6.readlinkSync(task.filepath);
22335
- var dirName = path7.dirname(task.filepath);
22334
+ var linkPath = fs7.readlinkSync(task.filepath);
22335
+ var dirName = path8.dirname(task.filepath);
22336
22336
  task.data.type = "symlink";
22337
- task.data.linkname = path7.relative(dirName, path7.resolve(dirName, linkPath));
22337
+ task.data.linkname = path8.relative(dirName, path8.resolve(dirName, linkPath));
22338
22338
  task.data.sourceType = "buffer";
22339
22339
  task.source = Buffer.concat([]);
22340
22340
  } else {
@@ -22879,7 +22879,7 @@ var require_zip_archive_entry = __commonJS({
22879
22879
  "use strict";
22880
22880
  init_cjs_shims();
22881
22881
  var inherits = require("util").inherits;
22882
- var normalizePath = require_normalize_path();
22882
+ var normalizePath2 = require_normalize_path();
22883
22883
  var ArchiveEntry = require_archive_entry();
22884
22884
  var GeneralPurposeBit = require_general_purpose_bit();
22885
22885
  var UnixStat = require_unix_stat();
@@ -23003,7 +23003,7 @@ var require_zip_archive_entry = __commonJS({
23003
23003
  this.method = method;
23004
23004
  };
23005
23005
  ZipArchiveEntry.prototype.setName = function(name, prependSlash = false) {
23006
- name = normalizePath(name, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, "");
23006
+ name = normalizePath2(name, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, "");
23007
23007
  if (prependSlash) {
23008
23008
  name = `/${name}`;
23009
23009
  }
@@ -26522,11 +26522,11 @@ var require_validateReport = __commonJS({
26522
26522
  Object.defineProperty(exports2, "__esModule", { value: true });
26523
26523
  exports2._validateReport = void 0;
26524
26524
  var _validateReport2 = (array) => {
26525
- const reportable = (path7) => {
26525
+ const reportable = (path8) => {
26526
26526
  if (array.length === 0)
26527
26527
  return true;
26528
26528
  const last = array[array.length - 1].path;
26529
- return path7.length > last.length || last.substring(0, path7.length) !== path7;
26529
+ return path8.length > last.length || last.substring(0, path8.length) !== path8;
26530
26530
  };
26531
26531
  return (exceptable, error) => {
26532
26532
  if (exceptable && reportable(error.path))
@@ -26546,6 +26546,7 @@ __export(index_exports, {
26546
26546
  appsInTossAppJson: () => appsInTossAppJson,
26547
26547
  appsInTossEsbuildConfig: () => appsInTossEsbuildConfig,
26548
26548
  appsInTossMetroConfig: () => appsInTossMetroConfig,
26549
+ collectDependencyVersions: () => collectDependencyVersions,
26549
26550
  createArtifact: () => createArtifact,
26550
26551
  setupRuntimeSetupScript: () => setupRuntimeSetupScript,
26551
26552
  validateAppManifest: () => validateAppManifest,
@@ -26559,11 +26560,12 @@ init_cjs_shims();
26559
26560
  var import_fs2 = __toESM(require("fs"), 1);
26560
26561
  var import_path3 = __toESM(require("path"), 1);
26561
26562
 
26562
- // ../../.yarn/cache/@react-native-bedrock-utils-npm-0.0.24-86d1e7a92c-ff04765188.zip/node_modules/@react-native-bedrock/utils/dist/index.js
26563
+ // ../../packages/utils/dist/index.js
26563
26564
  init_cjs_shims();
26564
26565
  var import_fs = __toESM(require("fs"), 1);
26565
26566
  var import_path = __toESM(require("path"), 1);
26566
26567
  var import_yauzl = __toESM(require_yauzl(), 1);
26568
+ var import_os = __toESM(require("os"), 1);
26567
26569
  function getPackageRoot() {
26568
26570
  let cwd = process.cwd();
26569
26571
  const root = import_path.default.parse(cwd).root;
@@ -26608,6 +26610,13 @@ function readZipContent(zipPath, fileName) {
26608
26610
  });
26609
26611
  });
26610
26612
  }
26613
+ var win32Impl = {
26614
+ normalizePath: (path22) => path22.replace(/\\/g, "/")
26615
+ };
26616
+ var posixImpl = {
26617
+ normalizePath: (path22) => path22
26618
+ };
26619
+ var { normalizePath } = import_os.default.type() === "Windows_NT" ? win32Impl : posixImpl;
26611
26620
 
26612
26621
  // src/appsInToss.ts
26613
26622
  var import_picocolors = __toESM(require_picocolors(), 1);
@@ -26617,26 +26626,102 @@ init_cjs_shims();
26617
26626
  var REACT_NATIVE_VERSION = "0.72.6";
26618
26627
  var APP_MANIFEST_NAME = "app.json";
26619
26628
 
26629
+ // src/utils/collectDependencyVersions.ts
26630
+ init_cjs_shims();
26631
+ var fs2 = __toESM(require("fs/promises"), 1);
26632
+ var path2 = __toESM(require("path"), 1);
26633
+ var esbuild = __toESM(require("esbuild"), 1);
26634
+ async function collectDependencyVersions(rootDir) {
26635
+ const packageJsonPath = path2.join(rootDir, "package.json");
26636
+ const packageJson = JSON.parse(await fs2.readFile(packageJsonPath, "utf8"));
26637
+ const [dependencies, devDependencies] = await Promise.all([
26638
+ resolvePackageVersions(rootDir, Object.keys(packageJson.dependencies)),
26639
+ resolvePackageVersions(rootDir, Object.keys(packageJson.devDependencies))
26640
+ ]);
26641
+ return { dependencies, devDependencies };
26642
+ }
26643
+ async function resolvePackageVersions(rootDir, packageNames) {
26644
+ const results = {};
26645
+ await esbuild.build({
26646
+ stdin: { contents: createVirtualEntry(packageNames) },
26647
+ bundle: true,
26648
+ write: false,
26649
+ logLevel: "silent",
26650
+ plugins: [
26651
+ {
26652
+ name: "collect-package-version",
26653
+ setup(build2) {
26654
+ const RESOLVING = Symbol();
26655
+ build2.onResolve({ filter: /.*/ }, async (args) => {
26656
+ if (args.pluginData === RESOLVING) {
26657
+ return null;
26658
+ }
26659
+ const resolveOptions = {
26660
+ importer: args.importer,
26661
+ kind: args.kind,
26662
+ resolveDir: rootDir,
26663
+ pluginData: RESOLVING
26664
+ };
26665
+ let result = await build2.resolve(path2.join(args.path, "package.json"), resolveOptions);
26666
+ if (result.errors.length) {
26667
+ result = await build2.resolve(args.path, resolveOptions);
26668
+ }
26669
+ if (result.errors.length) {
26670
+ return result;
26671
+ }
26672
+ const packageName = args.path;
26673
+ const packagePath = extractPackagePath(result.path, packageName);
26674
+ if (packagePath) {
26675
+ results[packageName] = await getPackageVersion(packagePath);
26676
+ }
26677
+ return result;
26678
+ });
26679
+ build2.onLoad({ filter: /.*/ }, () => ({ contents: "// empty source" }));
26680
+ }
26681
+ }
26682
+ ]
26683
+ });
26684
+ return results;
26685
+ }
26686
+ function createVirtualEntry(packageNames) {
26687
+ return packageNames.map((packageName) => `import '${packageName}';`).join("\n");
26688
+ }
26689
+ function extractPackagePath(path8, packageName) {
26690
+ const normalizedPath = normalizePath(path8);
26691
+ if (normalizedPath.endsWith("/package.json")) {
26692
+ return normalizedPath.replace(/\/package\.json$/, "");
26693
+ }
26694
+ const match = normalizedPath.match(new RegExp(`(.*?node_modules/${packageName})/.*$`));
26695
+ if (match) {
26696
+ return match[1];
26697
+ }
26698
+ throw new Error(`Failed to extract path: ${packageName}`);
26699
+ }
26700
+ async function getPackageVersion(packagePath) {
26701
+ const packageJson = JSON.parse(await fs2.readFile(path2.join(packagePath, "package.json"), "utf-8"));
26702
+ return packageJson.version;
26703
+ }
26704
+
26620
26705
  // src/utils/createArtifact.ts
26621
26706
  init_cjs_shims();
26622
26707
  var import_path2 = __toESM(require("path"), 1);
26623
26708
 
26624
26709
  // src/utils/compressToZip.ts
26625
26710
  init_cjs_shims();
26626
- var fs2 = __toESM(require("fs"), 1);
26627
- var path2 = __toESM(require("path"), 1);
26711
+ var fs3 = __toESM(require("fs"), 1);
26712
+ var path3 = __toESM(require("path"), 1);
26628
26713
  var import_archiver = __toESM(require_archiver(), 1);
26629
26714
  async function compressToZip(config) {
26630
26715
  const { files, outfile } = config;
26631
26716
  return new Promise((resolve, reject2) => {
26632
- const outputStream = fs2.createWriteStream(outfile);
26717
+ const outputStream = fs3.createWriteStream(outfile);
26633
26718
  const archive = (0, import_archiver.default)("zip", { zlib: { level: 9 } });
26634
26719
  outputStream.on("close", () => resolve(outfile));
26635
26720
  outputStream.on("error", (error) => reject2(error));
26636
26721
  archive.on("error", (error) => reject2(error)).pipe(outputStream);
26637
26722
  files.forEach(({ path: filePath, name }) => {
26638
- const fileName = name ?? path2.basename(filePath);
26639
- archive.append(fs2.createReadStream(filePath), { name: fileName });
26723
+ const fileName = name ?? path3.basename(filePath);
26724
+ archive.append(fs3.createReadStream(filePath), { name: fileName });
26640
26725
  });
26641
26726
  archive.finalize();
26642
26727
  });
@@ -26644,20 +26729,20 @@ async function compressToZip(config) {
26644
26729
 
26645
26730
  // src/utils/updateAppJsonMetadata.ts
26646
26731
  init_cjs_shims();
26647
- var fs3 = __toESM(require("fs/promises"), 1);
26648
- var path3 = __toESM(require("path"), 1);
26732
+ var fs4 = __toESM(require("fs/promises"), 1);
26733
+ var path4 = __toESM(require("path"), 1);
26649
26734
  async function resolveAppManifestPath() {
26650
26735
  const cwd = getPackageRoot();
26651
- const appManifestPath = path3.join(cwd, ".bedrock", APP_MANIFEST_NAME);
26652
- await fs3.access(appManifestPath, fs3.constants.F_OK);
26736
+ const appManifestPath = path4.join(cwd, ".bedrock", APP_MANIFEST_NAME);
26737
+ await fs4.access(appManifestPath, fs4.constants.F_OK);
26653
26738
  return appManifestPath;
26654
26739
  }
26655
26740
  async function readAppJson(appJsonPath) {
26656
- const appJson = await fs3.readFile(appJsonPath, "utf8");
26741
+ const appJson = await fs4.readFile(appJsonPath, "utf8");
26657
26742
  return JSON.parse(appJson);
26658
26743
  }
26659
26744
  async function writeAppJson(appJsonPath, content) {
26660
- await fs3.writeFile(appJsonPath, JSON.stringify(content));
26745
+ await fs4.writeFile(appJsonPath, JSON.stringify(content));
26661
26746
  }
26662
26747
  async function updateAppJsonMetadata(metadata) {
26663
26748
  const appJsonPath = await resolveAppManifestPath();
@@ -26864,7 +26949,8 @@ async function createArtifact(options2) {
26864
26949
  await updateAppJsonMetadata({
26865
26950
  runtimeVersion: reactNativeVersion,
26866
26951
  bundleFiles: namedBundleFiles.map(({ name }) => name),
26867
- deploymentId: options2.deploymentId
26952
+ deploymentId: options2.deploymentId,
26953
+ packageJson: options2.packageJson
26868
26954
  });
26869
26955
  await compressToZip({
26870
26956
  files: [{ path: appJsonPath, name: "app.json" }, ...namedBundleFiles, ...options2.additionalFilesToZip ?? []],
@@ -27297,9 +27383,11 @@ function appsInTossCreateArtifact(deploymentId) {
27297
27383
  build: {
27298
27384
  order: "post",
27299
27385
  handler: async ({ buildResults, appName, cwd }) => {
27386
+ const { dependencies, devDependencies } = await collectDependencyVersions(cwd);
27300
27387
  const artifactOutfile = await createArtifact({
27301
27388
  reactNativeVersion: REACT_NATIVE_VERSION,
27302
27389
  deploymentId,
27390
+ packageJson: { dependencies, devDependencies },
27303
27391
  bundleFiles: buildResults.map(({ outfile, sourcemapOutfile, platform }) => [
27304
27392
  {
27305
27393
  path: outfile,
@@ -27472,6 +27560,7 @@ function analytics() {
27472
27560
  appsInTossAppJson,
27473
27561
  appsInTossEsbuildConfig,
27474
27562
  appsInTossMetroConfig,
27563
+ collectDependencyVersions,
27475
27564
  createArtifact,
27476
27565
  setupRuntimeSetupScript,
27477
27566
  validateAppManifest,