@modern-js/repo-generator 0.0.0-nightly-20231017172035 → 0.0.0-nightly-20231018172436

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.
Files changed (2) hide show
  1. package/dist/index.js +213 -245
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -4567,7 +4567,7 @@ var require_lodash = __commonJS({
4567
4567
  }
4568
4568
  return baseRandom(lower, upper);
4569
4569
  }
4570
- var camelCase2 = createCompounder(function(result2, word, index) {
4570
+ var camelCase = createCompounder(function(result2, word, index) {
4571
4571
  word = word.toLowerCase();
4572
4572
  return result2 + (index ? capitalize(word) : word);
4573
4573
  });
@@ -4812,7 +4812,7 @@ var require_lodash = __commonJS({
4812
4812
  string = toString5(string);
4813
4813
  return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
4814
4814
  }
4815
- var upperCase2 = createCompounder(function(result2, word, index) {
4815
+ var upperCase = createCompounder(function(result2, word, index) {
4816
4816
  return result2 + (index ? " " : "") + word.toUpperCase();
4817
4817
  });
4818
4818
  var upperFirst = createCaseFirst("toUpperCase");
@@ -5179,7 +5179,7 @@ var require_lodash = __commonJS({
5179
5179
  mixin(lodash2, lodash2);
5180
5180
  lodash2.add = add;
5181
5181
  lodash2.attempt = attempt;
5182
- lodash2.camelCase = camelCase2;
5182
+ lodash2.camelCase = camelCase;
5183
5183
  lodash2.capitalize = capitalize;
5184
5184
  lodash2.ceil = ceil;
5185
5185
  lodash2.clamp = clamp;
@@ -5324,7 +5324,7 @@ var require_lodash = __commonJS({
5324
5324
  lodash2.truncate = truncate;
5325
5325
  lodash2.unescape = unescape2;
5326
5326
  lodash2.uniqueId = uniqueId;
5327
- lodash2.upperCase = upperCase2;
5327
+ lodash2.upperCase = upperCase;
5328
5328
  lodash2.upperFirst = upperFirst;
5329
5329
  lodash2.each = forEach;
5330
5330
  lodash2.eachRight = forEachRight;
@@ -49361,7 +49361,7 @@ var require_write_entry = __commonJS({
49361
49361
  var MiniPass = require_minipass();
49362
49362
  var Pax = require_pax();
49363
49363
  var Header = require_header();
49364
- var fs13 = require("fs");
49364
+ var fs12 = require("fs");
49365
49365
  var path18 = require("path");
49366
49366
  var normPath = require_normalize_windows_path();
49367
49367
  var stripSlash = require_strip_trailing_slashes();
@@ -49464,7 +49464,7 @@ var require_write_entry = __commonJS({
49464
49464
  return super.emit(ev, ...data);
49465
49465
  }
49466
49466
  [LSTAT]() {
49467
- fs13.lstat(this.absolute, (er, stat) => {
49467
+ fs12.lstat(this.absolute, (er, stat) => {
49468
49468
  if (er) {
49469
49469
  return this.emit("error", er);
49470
49470
  }
@@ -49546,7 +49546,7 @@ var require_write_entry = __commonJS({
49546
49546
  this.end();
49547
49547
  }
49548
49548
  [SYMLINK]() {
49549
- fs13.readlink(this.absolute, (er, linkpath) => {
49549
+ fs12.readlink(this.absolute, (er, linkpath) => {
49550
49550
  if (er) {
49551
49551
  return this.emit("error", er);
49552
49552
  }
@@ -49583,7 +49583,7 @@ var require_write_entry = __commonJS({
49583
49583
  this[OPENFILE]();
49584
49584
  }
49585
49585
  [OPENFILE]() {
49586
- fs13.open(this.absolute, "r", (er, fd) => {
49586
+ fs12.open(this.absolute, "r", (er, fd) => {
49587
49587
  if (er) {
49588
49588
  return this.emit("error", er);
49589
49589
  }
@@ -49607,7 +49607,7 @@ var require_write_entry = __commonJS({
49607
49607
  }
49608
49608
  [READ]() {
49609
49609
  const { fd, buf, offset, length, pos } = this;
49610
- fs13.read(fd, buf, offset, length, pos, (er, bytesRead) => {
49610
+ fs12.read(fd, buf, offset, length, pos, (er, bytesRead) => {
49611
49611
  if (er) {
49612
49612
  return this[CLOSE](() => this.emit("error", er));
49613
49613
  }
@@ -49615,7 +49615,7 @@ var require_write_entry = __commonJS({
49615
49615
  });
49616
49616
  }
49617
49617
  [CLOSE](cb) {
49618
- fs13.close(this.fd, cb);
49618
+ fs12.close(this.fd, cb);
49619
49619
  }
49620
49620
  [ONREAD](bytesRead) {
49621
49621
  if (bytesRead <= 0 && this.remain > 0) {
@@ -49679,19 +49679,19 @@ var require_write_entry = __commonJS({
49679
49679
  });
49680
49680
  var WriteEntrySync = class extends WriteEntry {
49681
49681
  [LSTAT]() {
49682
- this[ONLSTAT](fs13.lstatSync(this.absolute));
49682
+ this[ONLSTAT](fs12.lstatSync(this.absolute));
49683
49683
  }
49684
49684
  [SYMLINK]() {
49685
- this[ONREADLINK](fs13.readlinkSync(this.absolute));
49685
+ this[ONREADLINK](fs12.readlinkSync(this.absolute));
49686
49686
  }
49687
49687
  [OPENFILE]() {
49688
- this[ONOPENFILE](fs13.openSync(this.absolute, "r"));
49688
+ this[ONOPENFILE](fs12.openSync(this.absolute, "r"));
49689
49689
  }
49690
49690
  [READ]() {
49691
49691
  let threw = true;
49692
49692
  try {
49693
49693
  const { fd, buf, offset, length, pos } = this;
49694
- const bytesRead = fs13.readSync(fd, buf, offset, length, pos);
49694
+ const bytesRead = fs12.readSync(fd, buf, offset, length, pos);
49695
49695
  this[ONREAD](bytesRead);
49696
49696
  threw = false;
49697
49697
  } finally {
@@ -49708,7 +49708,7 @@ var require_write_entry = __commonJS({
49708
49708
  cb();
49709
49709
  }
49710
49710
  [CLOSE](cb) {
49711
- fs13.closeSync(this.fd);
49711
+ fs12.closeSync(this.fd);
49712
49712
  cb();
49713
49713
  }
49714
49714
  };
@@ -50246,7 +50246,7 @@ var require_pack = __commonJS({
50246
50246
  var WRITEENTRYCLASS = Symbol("writeEntryClass");
50247
50247
  var WRITE = Symbol("write");
50248
50248
  var ONDRAIN = Symbol("ondrain");
50249
- var fs13 = require("fs");
50249
+ var fs12 = require("fs");
50250
50250
  var path18 = require("path");
50251
50251
  var warner = require_warn_mixin();
50252
50252
  var normPath = require_normalize_windows_path();
@@ -50345,7 +50345,7 @@ var require_pack = __commonJS({
50345
50345
  job.pending = true;
50346
50346
  this[JOBS] += 1;
50347
50347
  const stat = this.follow ? "stat" : "lstat";
50348
- fs13[stat](job.absolute, (er, stat2) => {
50348
+ fs12[stat](job.absolute, (er, stat2) => {
50349
50349
  job.pending = false;
50350
50350
  this[JOBS] -= 1;
50351
50351
  if (er) {
@@ -50366,7 +50366,7 @@ var require_pack = __commonJS({
50366
50366
  [READDIR](job) {
50367
50367
  job.pending = true;
50368
50368
  this[JOBS] += 1;
50369
- fs13.readdir(job.absolute, (er, entries) => {
50369
+ fs12.readdir(job.absolute, (er, entries) => {
50370
50370
  job.pending = false;
50371
50371
  this[JOBS] -= 1;
50372
50372
  if (er) {
@@ -50528,10 +50528,10 @@ var require_pack = __commonJS({
50528
50528
  }
50529
50529
  [STAT](job) {
50530
50530
  const stat = this.follow ? "statSync" : "lstatSync";
50531
- this[ONSTAT](job, fs13[stat](job.absolute));
50531
+ this[ONSTAT](job, fs12[stat](job.absolute));
50532
50532
  }
50533
50533
  [READDIR](job, stat) {
50534
- this[ONREADDIR](job, fs13.readdirSync(job.absolute));
50534
+ this[ONREADDIR](job, fs12.readdirSync(job.absolute));
50535
50535
  }
50536
50536
  // gotta get it all in this tick
50537
50537
  [PIPE](job) {
@@ -50566,8 +50566,8 @@ var require_fs_minipass = __commonJS({
50566
50566
  "use strict";
50567
50567
  var MiniPass = require_minipass2();
50568
50568
  var EE = require("events").EventEmitter;
50569
- var fs13 = require("fs");
50570
- var writev = fs13.writev;
50569
+ var fs12 = require("fs");
50570
+ var writev = fs12.writev;
50571
50571
  if (!writev) {
50572
50572
  const binding = process.binding("fs");
50573
50573
  const FSReqWrap = binding.FSReqWrap || binding.FSReqCallback;
@@ -50640,7 +50640,7 @@ var require_fs_minipass = __commonJS({
50640
50640
  throw new TypeError("this is a readable stream");
50641
50641
  }
50642
50642
  [_open]() {
50643
- fs13.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
50643
+ fs12.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
50644
50644
  }
50645
50645
  [_onopen](er, fd) {
50646
50646
  if (er)
@@ -50660,7 +50660,7 @@ var require_fs_minipass = __commonJS({
50660
50660
  const buf = this[_makeBuf]();
50661
50661
  if (buf.length === 0)
50662
50662
  return process.nextTick(() => this[_onread](null, 0, buf));
50663
- fs13.read(this[_fd], buf, 0, buf.length, null, (er, br, buf2) => this[_onread](er, br, buf2));
50663
+ fs12.read(this[_fd], buf, 0, buf.length, null, (er, br, buf2) => this[_onread](er, br, buf2));
50664
50664
  }
50665
50665
  }
50666
50666
  [_onread](er, br, buf) {
@@ -50674,7 +50674,7 @@ var require_fs_minipass = __commonJS({
50674
50674
  if (this[_autoClose] && typeof this[_fd] === "number") {
50675
50675
  const fd = this[_fd];
50676
50676
  this[_fd] = null;
50677
- fs13.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
50677
+ fs12.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
50678
50678
  }
50679
50679
  }
50680
50680
  [_onerror](er) {
@@ -50717,7 +50717,7 @@ var require_fs_minipass = __commonJS({
50717
50717
  [_open]() {
50718
50718
  let threw = true;
50719
50719
  try {
50720
- this[_onopen](null, fs13.openSync(this[_path], "r"));
50720
+ this[_onopen](null, fs12.openSync(this[_path], "r"));
50721
50721
  threw = false;
50722
50722
  } finally {
50723
50723
  if (threw)
@@ -50731,7 +50731,7 @@ var require_fs_minipass = __commonJS({
50731
50731
  this[_reading] = true;
50732
50732
  do {
50733
50733
  const buf = this[_makeBuf]();
50734
- const br = buf.length === 0 ? 0 : fs13.readSync(this[_fd], buf, 0, buf.length, null);
50734
+ const br = buf.length === 0 ? 0 : fs12.readSync(this[_fd], buf, 0, buf.length, null);
50735
50735
  if (!this[_handleChunk](br, buf))
50736
50736
  break;
50737
50737
  } while (true);
@@ -50747,7 +50747,7 @@ var require_fs_minipass = __commonJS({
50747
50747
  if (this[_autoClose] && typeof this[_fd] === "number") {
50748
50748
  const fd = this[_fd];
50749
50749
  this[_fd] = null;
50750
- fs13.closeSync(fd);
50750
+ fs12.closeSync(fd);
50751
50751
  this.emit("close");
50752
50752
  }
50753
50753
  }
@@ -50794,7 +50794,7 @@ var require_fs_minipass = __commonJS({
50794
50794
  this.emit("error", er);
50795
50795
  }
50796
50796
  [_open]() {
50797
- fs13.open(
50797
+ fs12.open(
50798
50798
  this[_path],
50799
50799
  this[_flags],
50800
50800
  this[_mode],
@@ -50838,7 +50838,7 @@ var require_fs_minipass = __commonJS({
50838
50838
  return true;
50839
50839
  }
50840
50840
  [_write](buf) {
50841
- fs13.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
50841
+ fs12.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
50842
50842
  }
50843
50843
  [_onwrite](er, bw) {
50844
50844
  if (er)
@@ -50882,7 +50882,7 @@ var require_fs_minipass = __commonJS({
50882
50882
  if (this[_autoClose] && typeof this[_fd] === "number") {
50883
50883
  const fd = this[_fd];
50884
50884
  this[_fd] = null;
50885
- fs13.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
50885
+ fs12.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
50886
50886
  }
50887
50887
  }
50888
50888
  };
@@ -50891,7 +50891,7 @@ var require_fs_minipass = __commonJS({
50891
50891
  let fd;
50892
50892
  if (this[_defaultFlag] && this[_flags] === "r+") {
50893
50893
  try {
50894
- fd = fs13.openSync(this[_path], this[_flags], this[_mode]);
50894
+ fd = fs12.openSync(this[_path], this[_flags], this[_mode]);
50895
50895
  } catch (er) {
50896
50896
  if (er.code === "ENOENT") {
50897
50897
  this[_flags] = "w";
@@ -50900,14 +50900,14 @@ var require_fs_minipass = __commonJS({
50900
50900
  throw er;
50901
50901
  }
50902
50902
  } else
50903
- fd = fs13.openSync(this[_path], this[_flags], this[_mode]);
50903
+ fd = fs12.openSync(this[_path], this[_flags], this[_mode]);
50904
50904
  this[_onopen](null, fd);
50905
50905
  }
50906
50906
  [_close]() {
50907
50907
  if (this[_autoClose] && typeof this[_fd] === "number") {
50908
50908
  const fd = this[_fd];
50909
50909
  this[_fd] = null;
50910
- fs13.closeSync(fd);
50910
+ fs12.closeSync(fd);
50911
50911
  this.emit("close");
50912
50912
  }
50913
50913
  }
@@ -50916,7 +50916,7 @@ var require_fs_minipass = __commonJS({
50916
50916
  try {
50917
50917
  this[_onwrite](
50918
50918
  null,
50919
- fs13.writeSync(this[_fd], buf, 0, buf.length, this[_pos])
50919
+ fs12.writeSync(this[_fd], buf, 0, buf.length, this[_pos])
50920
50920
  );
50921
50921
  threw = false;
50922
50922
  } finally {
@@ -51342,7 +51342,7 @@ var require_list = __commonJS({
51342
51342
  "use strict";
51343
51343
  var hlo = require_high_level_opt();
51344
51344
  var Parser2 = require_parse2();
51345
- var fs13 = require("fs");
51345
+ var fs12 = require("fs");
51346
51346
  var fsm = require_fs_minipass();
51347
51347
  var path18 = require("path");
51348
51348
  var stripSlash = require_strip_trailing_slashes();
@@ -51399,16 +51399,16 @@ var require_list = __commonJS({
51399
51399
  let threw = true;
51400
51400
  let fd;
51401
51401
  try {
51402
- const stat = fs13.statSync(file);
51402
+ const stat = fs12.statSync(file);
51403
51403
  const readSize = opt.maxReadSize || 16 * 1024 * 1024;
51404
51404
  if (stat.size < readSize) {
51405
- p.end(fs13.readFileSync(file));
51405
+ p.end(fs12.readFileSync(file));
51406
51406
  } else {
51407
51407
  let pos = 0;
51408
51408
  const buf = Buffer.allocUnsafe(readSize);
51409
- fd = fs13.openSync(file, "r");
51409
+ fd = fs12.openSync(file, "r");
51410
51410
  while (pos < stat.size) {
51411
- const bytesRead = fs13.readSync(fd, buf, 0, readSize, pos);
51411
+ const bytesRead = fs12.readSync(fd, buf, 0, readSize, pos);
51412
51412
  pos += bytesRead;
51413
51413
  p.write(buf.slice(0, bytesRead));
51414
51414
  }
@@ -51418,7 +51418,7 @@ var require_list = __commonJS({
51418
51418
  } finally {
51419
51419
  if (threw && fd) {
51420
51420
  try {
51421
- fs13.closeSync(fd);
51421
+ fs12.closeSync(fd);
51422
51422
  } catch (er) {
51423
51423
  }
51424
51424
  }
@@ -51431,7 +51431,7 @@ var require_list = __commonJS({
51431
51431
  const p = new Promise((resolve, reject) => {
51432
51432
  parse3.on("error", reject);
51433
51433
  parse3.on("end", resolve);
51434
- fs13.stat(file, (er, stat) => {
51434
+ fs12.stat(file, (er, stat) => {
51435
51435
  if (er) {
51436
51436
  reject(er);
51437
51437
  } else {
@@ -51550,7 +51550,7 @@ var require_replace = __commonJS({
51550
51550
  "use strict";
51551
51551
  var hlo = require_high_level_opt();
51552
51552
  var Pack = require_pack();
51553
- var fs13 = require("fs");
51553
+ var fs12 = require("fs");
51554
51554
  var fsm = require_fs_minipass();
51555
51555
  var t = require_list();
51556
51556
  var path18 = require("path");
@@ -51576,20 +51576,20 @@ var require_replace = __commonJS({
51576
51576
  let position;
51577
51577
  try {
51578
51578
  try {
51579
- fd = fs13.openSync(opt.file, "r+");
51579
+ fd = fs12.openSync(opt.file, "r+");
51580
51580
  } catch (er) {
51581
51581
  if (er.code === "ENOENT") {
51582
- fd = fs13.openSync(opt.file, "w+");
51582
+ fd = fs12.openSync(opt.file, "w+");
51583
51583
  } else {
51584
51584
  throw er;
51585
51585
  }
51586
51586
  }
51587
- const st = fs13.fstatSync(fd);
51587
+ const st = fs12.fstatSync(fd);
51588
51588
  const headBuf = Buffer.alloc(512);
51589
51589
  POSITION:
51590
51590
  for (position = 0; position < st.size; position += 512) {
51591
51591
  for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
51592
- bytes = fs13.readSync(
51592
+ bytes = fs12.readSync(
51593
51593
  fd,
51594
51594
  headBuf,
51595
51595
  bufPos,
@@ -51621,7 +51621,7 @@ var require_replace = __commonJS({
51621
51621
  } finally {
51622
51622
  if (threw) {
51623
51623
  try {
51624
- fs13.closeSync(fd);
51624
+ fs12.closeSync(fd);
51625
51625
  } catch (er) {
51626
51626
  }
51627
51627
  }
@@ -51641,7 +51641,7 @@ var require_replace = __commonJS({
51641
51641
  const getPos = (fd, size, cb_) => {
51642
51642
  const cb2 = (er, pos) => {
51643
51643
  if (er) {
51644
- fs13.close(fd, (_) => cb_(er));
51644
+ fs12.close(fd, (_) => cb_(er));
51645
51645
  } else {
51646
51646
  cb_(null, pos);
51647
51647
  }
@@ -51658,7 +51658,7 @@ var require_replace = __commonJS({
51658
51658
  }
51659
51659
  bufPos += bytes;
51660
51660
  if (bufPos < 512 && bytes) {
51661
- return fs13.read(
51661
+ return fs12.read(
51662
51662
  fd,
51663
51663
  headBuf,
51664
51664
  bufPos,
@@ -51689,9 +51689,9 @@ var require_replace = __commonJS({
51689
51689
  opt.mtimeCache.set(h.path, h.mtime);
51690
51690
  }
51691
51691
  bufPos = 0;
51692
- fs13.read(fd, headBuf, 0, 512, position, onread);
51692
+ fs12.read(fd, headBuf, 0, 512, position, onread);
51693
51693
  };
51694
- fs13.read(fd, headBuf, 0, 512, position, onread);
51694
+ fs12.read(fd, headBuf, 0, 512, position, onread);
51695
51695
  };
51696
51696
  const promise = new Promise((resolve, reject) => {
51697
51697
  p.on("error", reject);
@@ -51699,14 +51699,14 @@ var require_replace = __commonJS({
51699
51699
  const onopen = (er, fd) => {
51700
51700
  if (er && er.code === "ENOENT" && flag === "r+") {
51701
51701
  flag = "w+";
51702
- return fs13.open(opt.file, flag, onopen);
51702
+ return fs12.open(opt.file, flag, onopen);
51703
51703
  }
51704
51704
  if (er) {
51705
51705
  return reject(er);
51706
51706
  }
51707
- fs13.fstat(fd, (er2, st) => {
51707
+ fs12.fstat(fd, (er2, st) => {
51708
51708
  if (er2) {
51709
- return fs13.close(fd, () => reject(er2));
51709
+ return fs12.close(fd, () => reject(er2));
51710
51710
  }
51711
51711
  getPos(fd, st.size, (er3, position) => {
51712
51712
  if (er3) {
@@ -51723,7 +51723,7 @@ var require_replace = __commonJS({
51723
51723
  });
51724
51724
  });
51725
51725
  };
51726
- fs13.open(opt.file, flag, onopen);
51726
+ fs12.open(opt.file, flag, onopen);
51727
51727
  });
51728
51728
  return cb ? promise.then(cb, cb) : promise;
51729
51729
  };
@@ -51796,24 +51796,24 @@ var require_opts_arg = __commonJS({
51796
51796
  "../../../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/opts-arg.js"(exports, module2) {
51797
51797
  "use strict";
51798
51798
  var { promisify } = require("util");
51799
- var fs13 = require("fs");
51799
+ var fs12 = require("fs");
51800
51800
  var optsArg = (opts) => {
51801
51801
  if (!opts)
51802
- opts = { mode: 511, fs: fs13 };
51802
+ opts = { mode: 511, fs: fs12 };
51803
51803
  else if (typeof opts === "object")
51804
- opts = { mode: 511, fs: fs13, ...opts };
51804
+ opts = { mode: 511, fs: fs12, ...opts };
51805
51805
  else if (typeof opts === "number")
51806
- opts = { mode: opts, fs: fs13 };
51806
+ opts = { mode: opts, fs: fs12 };
51807
51807
  else if (typeof opts === "string")
51808
- opts = { mode: parseInt(opts, 8), fs: fs13 };
51808
+ opts = { mode: parseInt(opts, 8), fs: fs12 };
51809
51809
  else
51810
51810
  throw new TypeError("invalid options argument");
51811
- opts.mkdir = opts.mkdir || opts.fs.mkdir || fs13.mkdir;
51811
+ opts.mkdir = opts.mkdir || opts.fs.mkdir || fs12.mkdir;
51812
51812
  opts.mkdirAsync = promisify(opts.mkdir);
51813
- opts.stat = opts.stat || opts.fs.stat || fs13.stat;
51813
+ opts.stat = opts.stat || opts.fs.stat || fs12.stat;
51814
51814
  opts.statAsync = promisify(opts.stat);
51815
- opts.statSync = opts.statSync || opts.fs.statSync || fs13.statSync;
51816
- opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs13.mkdirSync;
51815
+ opts.statSync = opts.statSync || opts.fs.statSync || fs12.statSync;
51816
+ opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs12.mkdirSync;
51817
51817
  return opts;
51818
51818
  };
51819
51819
  module2.exports = optsArg;
@@ -51985,12 +51985,12 @@ var require_mkdirp_native = __commonJS({
51985
51985
  var require_use_native = __commonJS({
51986
51986
  "../../../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/use-native.js"(exports, module2) {
51987
51987
  "use strict";
51988
- var fs13 = require("fs");
51988
+ var fs12 = require("fs");
51989
51989
  var version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version;
51990
51990
  var versArr = version.replace(/^v/, "").split(".");
51991
51991
  var hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
51992
- var useNative = !hasNative ? () => false : (opts) => opts.mkdir === fs13.mkdir;
51993
- var useNativeSync = !hasNative ? () => false : (opts) => opts.mkdirSync === fs13.mkdirSync;
51992
+ var useNative = !hasNative ? () => false : (opts) => opts.mkdir === fs12.mkdir;
51993
+ var useNativeSync = !hasNative ? () => false : (opts) => opts.mkdirSync === fs12.mkdirSync;
51994
51994
  module2.exports = { useNative, useNativeSync };
51995
51995
  }
51996
51996
  });
@@ -52027,14 +52027,14 @@ var require_mkdirp = __commonJS({
52027
52027
  var require_chownr = __commonJS({
52028
52028
  "../../../../node_modules/.pnpm/chownr@2.0.0/node_modules/chownr/chownr.js"(exports, module2) {
52029
52029
  "use strict";
52030
- var fs13 = require("fs");
52030
+ var fs12 = require("fs");
52031
52031
  var path18 = require("path");
52032
- var LCHOWN = fs13.lchown ? "lchown" : "chown";
52033
- var LCHOWNSYNC = fs13.lchownSync ? "lchownSync" : "chownSync";
52034
- var needEISDIRHandled = fs13.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
52032
+ var LCHOWN = fs12.lchown ? "lchown" : "chown";
52033
+ var LCHOWNSYNC = fs12.lchownSync ? "lchownSync" : "chownSync";
52034
+ var needEISDIRHandled = fs12.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
52035
52035
  var lchownSync = (path19, uid2, gid) => {
52036
52036
  try {
52037
- return fs13[LCHOWNSYNC](path19, uid2, gid);
52037
+ return fs12[LCHOWNSYNC](path19, uid2, gid);
52038
52038
  } catch (er) {
52039
52039
  if (er.code !== "ENOENT")
52040
52040
  throw er;
@@ -52042,7 +52042,7 @@ var require_chownr = __commonJS({
52042
52042
  };
52043
52043
  var chownSync = (path19, uid2, gid) => {
52044
52044
  try {
52045
- return fs13.chownSync(path19, uid2, gid);
52045
+ return fs12.chownSync(path19, uid2, gid);
52046
52046
  } catch (er) {
52047
52047
  if (er.code !== "ENOENT")
52048
52048
  throw er;
@@ -52052,7 +52052,7 @@ var require_chownr = __commonJS({
52052
52052
  if (!er || er.code !== "EISDIR")
52053
52053
  cb(er);
52054
52054
  else
52055
- fs13.chown(path19, uid2, gid, cb);
52055
+ fs12.chown(path19, uid2, gid, cb);
52056
52056
  } : (_, __, ___, cb) => cb;
52057
52057
  var handleEISDirSync = needEISDIRHandled ? (path19, uid2, gid) => {
52058
52058
  try {
@@ -52064,18 +52064,18 @@ var require_chownr = __commonJS({
52064
52064
  }
52065
52065
  } : (path19, uid2, gid) => lchownSync(path19, uid2, gid);
52066
52066
  var nodeVersion = process.version;
52067
- var readdir = (path19, options, cb) => fs13.readdir(path19, options, cb);
52068
- var readdirSync = (path19, options) => fs13.readdirSync(path19, options);
52067
+ var readdir = (path19, options, cb) => fs12.readdir(path19, options, cb);
52068
+ var readdirSync = (path19, options) => fs12.readdirSync(path19, options);
52069
52069
  if (/^v4\./.test(nodeVersion))
52070
- readdir = (path19, options, cb) => fs13.readdir(path19, cb);
52070
+ readdir = (path19, options, cb) => fs12.readdir(path19, cb);
52071
52071
  var chown = (cpath, uid2, gid, cb) => {
52072
- fs13[LCHOWN](cpath, uid2, gid, handleEISDIR(cpath, uid2, gid, (er) => {
52072
+ fs12[LCHOWN](cpath, uid2, gid, handleEISDIR(cpath, uid2, gid, (er) => {
52073
52073
  cb(er && er.code !== "ENOENT" ? er : null);
52074
52074
  }));
52075
52075
  };
52076
52076
  var chownrKid = (p, child, uid2, gid, cb) => {
52077
52077
  if (typeof child === "string")
52078
- return fs13.lstat(path18.resolve(p, child), (er, stats) => {
52078
+ return fs12.lstat(path18.resolve(p, child), (er, stats) => {
52079
52079
  if (er)
52080
52080
  return cb(er.code !== "ENOENT" ? er : null);
52081
52081
  stats.name = child;
@@ -52119,7 +52119,7 @@ var require_chownr = __commonJS({
52119
52119
  var chownrKidSync = (p, child, uid2, gid) => {
52120
52120
  if (typeof child === "string") {
52121
52121
  try {
52122
- const stats = fs13.lstatSync(path18.resolve(p, child));
52122
+ const stats = fs12.lstatSync(path18.resolve(p, child));
52123
52123
  stats.name = child;
52124
52124
  child = stats;
52125
52125
  } catch (er) {
@@ -52159,7 +52159,7 @@ var require_mkdir = __commonJS({
52159
52159
  "../../../../node_modules/.pnpm/tar@6.1.13/node_modules/tar/lib/mkdir.js"(exports, module2) {
52160
52160
  "use strict";
52161
52161
  var mkdirp = require_mkdirp();
52162
- var fs13 = require("fs");
52162
+ var fs12 = require("fs");
52163
52163
  var path18 = require("path");
52164
52164
  var chownr = require_chownr();
52165
52165
  var normPath = require_normalize_windows_path();
@@ -52186,7 +52186,7 @@ var require_mkdir = __commonJS({
52186
52186
  var cGet = (cache, key) => cache.get(normPath(key));
52187
52187
  var cSet = (cache, key, val) => cache.set(normPath(key), val);
52188
52188
  var checkCwd = (dir, cb) => {
52189
- fs13.stat(dir, (er, st) => {
52189
+ fs12.stat(dir, (er, st) => {
52190
52190
  if (er || !st.isDirectory()) {
52191
52191
  er = new CwdError(dir, er && er.code || "ENOTDIR");
52192
52192
  }
@@ -52213,7 +52213,7 @@ var require_mkdir = __commonJS({
52213
52213
  if (created && doChown) {
52214
52214
  chownr(created, uid2, gid, (er2) => done(er2));
52215
52215
  } else if (needChmod) {
52216
- fs13.chmod(dir, mode, cb);
52216
+ fs12.chmod(dir, mode, cb);
52217
52217
  } else {
52218
52218
  cb();
52219
52219
  }
@@ -52241,22 +52241,22 @@ var require_mkdir = __commonJS({
52241
52241
  if (cGet(cache, part)) {
52242
52242
  return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
52243
52243
  }
52244
- fs13.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
52244
+ fs12.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
52245
52245
  };
52246
52246
  var onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
52247
52247
  if (er) {
52248
- fs13.lstat(part, (statEr, st) => {
52248
+ fs12.lstat(part, (statEr, st) => {
52249
52249
  if (statEr) {
52250
52250
  statEr.path = statEr.path && normPath(statEr.path);
52251
52251
  cb(statEr);
52252
52252
  } else if (st.isDirectory()) {
52253
52253
  mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
52254
52254
  } else if (unlink) {
52255
- fs13.unlink(part, (er2) => {
52255
+ fs12.unlink(part, (er2) => {
52256
52256
  if (er2) {
52257
52257
  return cb(er2);
52258
52258
  }
52259
- fs13.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
52259
+ fs12.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
52260
52260
  });
52261
52261
  } else if (st.isSymbolicLink()) {
52262
52262
  return cb(new SymlinkError(part, part + "/" + parts.join("/")));
@@ -52273,7 +52273,7 @@ var require_mkdir = __commonJS({
52273
52273
  let ok = false;
52274
52274
  let code = "ENOTDIR";
52275
52275
  try {
52276
- ok = fs13.statSync(dir).isDirectory();
52276
+ ok = fs12.statSync(dir).isDirectory();
52277
52277
  } catch (er) {
52278
52278
  code = er.code;
52279
52279
  } finally {
@@ -52300,7 +52300,7 @@ var require_mkdir = __commonJS({
52300
52300
  chownr.sync(created2, uid2, gid);
52301
52301
  }
52302
52302
  if (needChmod) {
52303
- fs13.chmodSync(dir, mode);
52303
+ fs12.chmodSync(dir, mode);
52304
52304
  }
52305
52305
  };
52306
52306
  if (cache && cGet(cache, dir) === true) {
@@ -52322,17 +52322,17 @@ var require_mkdir = __commonJS({
52322
52322
  continue;
52323
52323
  }
52324
52324
  try {
52325
- fs13.mkdirSync(part, mode);
52325
+ fs12.mkdirSync(part, mode);
52326
52326
  created = created || part;
52327
52327
  cSet(cache, part, true);
52328
52328
  } catch (er) {
52329
- const st = fs13.lstatSync(part);
52329
+ const st = fs12.lstatSync(part);
52330
52330
  if (st.isDirectory()) {
52331
52331
  cSet(cache, part, true);
52332
52332
  continue;
52333
52333
  } else if (unlink) {
52334
- fs13.unlinkSync(part);
52335
- fs13.mkdirSync(part, mode);
52334
+ fs12.unlinkSync(part);
52335
+ fs12.mkdirSync(part, mode);
52336
52336
  created = created || part;
52337
52337
  cSet(cache, part, true);
52338
52338
  continue;
@@ -52482,8 +52482,8 @@ var require_get_write_flag = __commonJS({
52482
52482
  "use strict";
52483
52483
  var platform = process.env.__FAKE_PLATFORM__ || process.platform;
52484
52484
  var isWindows = platform === "win32";
52485
- var fs13 = global.__FAKE_TESTING_FS__ || require("fs");
52486
- var { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } = fs13.constants;
52485
+ var fs12 = global.__FAKE_TESTING_FS__ || require("fs");
52486
+ var { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } = fs12.constants;
52487
52487
  var fMapEnabled = isWindows && !!UV_FS_O_FILEMAP;
52488
52488
  var fMapLimit = 512 * 1024;
52489
52489
  var fMapFlag = UV_FS_O_FILEMAP | O_TRUNC | O_CREAT | O_WRONLY;
@@ -52497,7 +52497,7 @@ var require_unpack = __commonJS({
52497
52497
  "use strict";
52498
52498
  var assert = require("assert");
52499
52499
  var Parser2 = require_parse2();
52500
- var fs13 = require("fs");
52500
+ var fs12 = require("fs");
52501
52501
  var fsm = require_fs_minipass();
52502
52502
  var path18 = require("path");
52503
52503
  var mkdir = require_mkdir();
@@ -52538,23 +52538,23 @@ var require_unpack = __commonJS({
52538
52538
  var isWindows = platform === "win32";
52539
52539
  var unlinkFile = (path19, cb) => {
52540
52540
  if (!isWindows) {
52541
- return fs13.unlink(path19, cb);
52541
+ return fs12.unlink(path19, cb);
52542
52542
  }
52543
52543
  const name = path19 + ".DELETE." + crypto.randomBytes(16).toString("hex");
52544
- fs13.rename(path19, name, (er) => {
52544
+ fs12.rename(path19, name, (er) => {
52545
52545
  if (er) {
52546
52546
  return cb(er);
52547
52547
  }
52548
- fs13.unlink(name, cb);
52548
+ fs12.unlink(name, cb);
52549
52549
  });
52550
52550
  };
52551
52551
  var unlinkFileSync = (path19) => {
52552
52552
  if (!isWindows) {
52553
- return fs13.unlinkSync(path19);
52553
+ return fs12.unlinkSync(path19);
52554
52554
  }
52555
52555
  const name = path19 + ".DELETE." + crypto.randomBytes(16).toString("hex");
52556
- fs13.renameSync(path19, name);
52557
- fs13.unlinkSync(name);
52556
+ fs12.renameSync(path19, name);
52557
+ fs12.unlinkSync(name);
52558
52558
  };
52559
52559
  var uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
52560
52560
  var cacheKeyNormalize = (path19) => normalize(stripSlash(normPath(path19))).toLowerCase();
@@ -52771,7 +52771,7 @@ var require_unpack = __commonJS({
52771
52771
  });
52772
52772
  stream.on("error", (er) => {
52773
52773
  if (stream.fd) {
52774
- fs13.close(stream.fd, () => {
52774
+ fs12.close(stream.fd, () => {
52775
52775
  });
52776
52776
  }
52777
52777
  stream.write = () => true;
@@ -52782,7 +52782,7 @@ var require_unpack = __commonJS({
52782
52782
  const done = (er) => {
52783
52783
  if (er) {
52784
52784
  if (stream.fd) {
52785
- fs13.close(stream.fd, () => {
52785
+ fs12.close(stream.fd, () => {
52786
52786
  });
52787
52787
  }
52788
52788
  this[ONERROR](er, entry);
@@ -52790,7 +52790,7 @@ var require_unpack = __commonJS({
52790
52790
  return;
52791
52791
  }
52792
52792
  if (--actions === 0) {
52793
- fs13.close(stream.fd, (er2) => {
52793
+ fs12.close(stream.fd, (er2) => {
52794
52794
  if (er2) {
52795
52795
  this[ONERROR](er2, entry);
52796
52796
  } else {
@@ -52807,13 +52807,13 @@ var require_unpack = __commonJS({
52807
52807
  actions++;
52808
52808
  const atime = entry.atime || /* @__PURE__ */ new Date();
52809
52809
  const mtime = entry.mtime;
52810
- fs13.futimes(fd, atime, mtime, (er) => er ? fs13.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
52810
+ fs12.futimes(fd, atime, mtime, (er) => er ? fs12.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
52811
52811
  }
52812
52812
  if (this[DOCHOWN](entry)) {
52813
52813
  actions++;
52814
52814
  const uid2 = this[UID](entry);
52815
52815
  const gid = this[GID](entry);
52816
- fs13.fchown(fd, uid2, gid, (er) => er ? fs13.chown(abs, uid2, gid, (er2) => done(er2 && er)) : done());
52816
+ fs12.fchown(fd, uid2, gid, (er) => er ? fs12.chown(abs, uid2, gid, (er2) => done(er2 && er)) : done());
52817
52817
  }
52818
52818
  done();
52819
52819
  });
@@ -52845,11 +52845,11 @@ var require_unpack = __commonJS({
52845
52845
  };
52846
52846
  if (entry.mtime && !this.noMtime) {
52847
52847
  actions++;
52848
- fs13.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
52848
+ fs12.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
52849
52849
  }
52850
52850
  if (this[DOCHOWN](entry)) {
52851
52851
  actions++;
52852
- fs13.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
52852
+ fs12.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
52853
52853
  }
52854
52854
  done();
52855
52855
  });
@@ -52937,7 +52937,7 @@ var require_unpack = __commonJS({
52937
52937
  afterMakeParent();
52938
52938
  };
52939
52939
  const afterMakeParent = () => {
52940
- fs13.lstat(entry.absolute, (lstatEr, st) => {
52940
+ fs12.lstat(entry.absolute, (lstatEr, st) => {
52941
52941
  if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
52942
52942
  this[SKIP](entry);
52943
52943
  done();
@@ -52953,10 +52953,10 @@ var require_unpack = __commonJS({
52953
52953
  if (!needChmod) {
52954
52954
  return afterChmod();
52955
52955
  }
52956
- return fs13.chmod(entry.absolute, entry.mode, afterChmod);
52956
+ return fs12.chmod(entry.absolute, entry.mode, afterChmod);
52957
52957
  }
52958
52958
  if (entry.absolute !== this.cwd) {
52959
- return fs13.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
52959
+ return fs12.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
52960
52960
  }
52961
52961
  }
52962
52962
  if (entry.absolute === this.cwd) {
@@ -52992,7 +52992,7 @@ var require_unpack = __commonJS({
52992
52992
  }
52993
52993
  }
52994
52994
  [LINK](entry, linkpath, link, done) {
52995
- fs13[link](linkpath, entry.absolute, (er) => {
52995
+ fs12[link](linkpath, entry.absolute, (er) => {
52996
52996
  if (er) {
52997
52997
  this[ONERROR](er, entry);
52998
52998
  } else {
@@ -53033,7 +53033,7 @@ var require_unpack = __commonJS({
53033
53033
  }
53034
53034
  }
53035
53035
  }
53036
- const [lstatEr, st] = callSync(() => fs13.lstatSync(entry.absolute));
53036
+ const [lstatEr, st] = callSync(() => fs12.lstatSync(entry.absolute));
53037
53037
  if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
53038
53038
  return this[SKIP](entry);
53039
53039
  }
@@ -53044,11 +53044,11 @@ var require_unpack = __commonJS({
53044
53044
  if (entry.type === "Directory") {
53045
53045
  const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
53046
53046
  const [er3] = needChmod ? callSync(() => {
53047
- fs13.chmodSync(entry.absolute, entry.mode);
53047
+ fs12.chmodSync(entry.absolute, entry.mode);
53048
53048
  }) : [];
53049
53049
  return this[MAKEFS](er3, entry);
53050
53050
  }
53051
- const [er2] = callSync(() => fs13.rmdirSync(entry.absolute));
53051
+ const [er2] = callSync(() => fs12.rmdirSync(entry.absolute));
53052
53052
  this[MAKEFS](er2, entry);
53053
53053
  }
53054
53054
  const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
@@ -53059,7 +53059,7 @@ var require_unpack = __commonJS({
53059
53059
  const oner = (er) => {
53060
53060
  let closeError;
53061
53061
  try {
53062
- fs13.closeSync(fd);
53062
+ fs12.closeSync(fd);
53063
53063
  } catch (e) {
53064
53064
  closeError = e;
53065
53065
  }
@@ -53070,7 +53070,7 @@ var require_unpack = __commonJS({
53070
53070
  };
53071
53071
  let fd;
53072
53072
  try {
53073
- fd = fs13.openSync(entry.absolute, getFlag(entry.size), mode);
53073
+ fd = fs12.openSync(entry.absolute, getFlag(entry.size), mode);
53074
53074
  } catch (er) {
53075
53075
  return oner(er);
53076
53076
  }
@@ -53081,7 +53081,7 @@ var require_unpack = __commonJS({
53081
53081
  }
53082
53082
  tx.on("data", (chunk) => {
53083
53083
  try {
53084
- fs13.writeSync(fd, chunk, 0, chunk.length);
53084
+ fs12.writeSync(fd, chunk, 0, chunk.length);
53085
53085
  } catch (er) {
53086
53086
  oner(er);
53087
53087
  }
@@ -53092,10 +53092,10 @@ var require_unpack = __commonJS({
53092
53092
  const atime = entry.atime || /* @__PURE__ */ new Date();
53093
53093
  const mtime = entry.mtime;
53094
53094
  try {
53095
- fs13.futimesSync(fd, atime, mtime);
53095
+ fs12.futimesSync(fd, atime, mtime);
53096
53096
  } catch (futimeser) {
53097
53097
  try {
53098
- fs13.utimesSync(entry.absolute, atime, mtime);
53098
+ fs12.utimesSync(entry.absolute, atime, mtime);
53099
53099
  } catch (utimeser) {
53100
53100
  er = futimeser;
53101
53101
  }
@@ -53105,10 +53105,10 @@ var require_unpack = __commonJS({
53105
53105
  const uid2 = this[UID](entry);
53106
53106
  const gid = this[GID](entry);
53107
53107
  try {
53108
- fs13.fchownSync(fd, uid2, gid);
53108
+ fs12.fchownSync(fd, uid2, gid);
53109
53109
  } catch (fchowner) {
53110
53110
  try {
53111
- fs13.chownSync(entry.absolute, uid2, gid);
53111
+ fs12.chownSync(entry.absolute, uid2, gid);
53112
53112
  } catch (chowner) {
53113
53113
  er = er || fchowner;
53114
53114
  }
@@ -53127,13 +53127,13 @@ var require_unpack = __commonJS({
53127
53127
  }
53128
53128
  if (entry.mtime && !this.noMtime) {
53129
53129
  try {
53130
- fs13.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
53130
+ fs12.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
53131
53131
  } catch (er2) {
53132
53132
  }
53133
53133
  }
53134
53134
  if (this[DOCHOWN](entry)) {
53135
53135
  try {
53136
- fs13.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
53136
+ fs12.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
53137
53137
  } catch (er2) {
53138
53138
  }
53139
53139
  }
@@ -53160,7 +53160,7 @@ var require_unpack = __commonJS({
53160
53160
  }
53161
53161
  [LINK](entry, linkpath, link, done) {
53162
53162
  try {
53163
- fs13[link + "Sync"](linkpath, entry.absolute);
53163
+ fs12[link + "Sync"](linkpath, entry.absolute);
53164
53164
  done();
53165
53165
  entry.resume();
53166
53166
  } catch (er) {
@@ -53179,7 +53179,7 @@ var require_extract = __commonJS({
53179
53179
  "use strict";
53180
53180
  var hlo = require_high_level_opt();
53181
53181
  var Unpack = require_unpack();
53182
- var fs13 = require("fs");
53182
+ var fs12 = require("fs");
53183
53183
  var fsm = require_fs_minipass();
53184
53184
  var path18 = require("path");
53185
53185
  var stripSlash = require_strip_trailing_slashes();
@@ -53223,7 +53223,7 @@ var require_extract = __commonJS({
53223
53223
  var extractFileSync = (opt) => {
53224
53224
  const u = new Unpack.Sync(opt);
53225
53225
  const file = opt.file;
53226
- const stat = fs13.statSync(file);
53226
+ const stat = fs12.statSync(file);
53227
53227
  const readSize = opt.maxReadSize || 16 * 1024 * 1024;
53228
53228
  const stream = new fsm.ReadStreamSync(file, {
53229
53229
  readSize,
@@ -53238,7 +53238,7 @@ var require_extract = __commonJS({
53238
53238
  const p = new Promise((resolve, reject) => {
53239
53239
  u.on("error", reject);
53240
53240
  u.on("close", resolve);
53241
- fs13.stat(file, (er, stat) => {
53241
+ fs12.stat(file, (er, stat) => {
53242
53242
  if (er) {
53243
53243
  reject(er);
53244
53244
  } else {
@@ -59138,8 +59138,8 @@ var require_lib = __commonJS({
59138
59138
  handlebars3.print = printer.print;
59139
59139
  module2.exports = handlebars3;
59140
59140
  function extension(module3, filename) {
59141
- var fs13 = require("fs");
59142
- var templateString = fs13.readFileSync(filename, "utf8");
59141
+ var fs12 = require("fs");
59142
+ var templateString = fs12.readFileSync(filename, "utf8");
59143
59143
  module3.exports = handlebars3.compile(templateString);
59144
59144
  }
59145
59145
  if (typeof require !== "undefined" && require.extensions) {
@@ -59326,7 +59326,7 @@ var require_package4 = __commonJS({
59326
59326
  var require_ejs = __commonJS({
59327
59327
  "../../../../node_modules/.pnpm/ejs@3.1.9/node_modules/ejs/lib/ejs.js"(exports) {
59328
59328
  "use strict";
59329
- var fs13 = require("fs");
59329
+ var fs12 = require("fs");
59330
59330
  var path18 = require("path");
59331
59331
  var utils = require_utils3();
59332
59332
  var scopeOptionWarned = false;
@@ -59354,7 +59354,7 @@ var require_ejs = __commonJS({
59354
59354
  var _BOM = /^\uFEFF/;
59355
59355
  var _JS_IDENTIFIER = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/;
59356
59356
  exports.cache = utils.cache;
59357
- exports.fileLoader = fs13.readFileSync;
59357
+ exports.fileLoader = fs12.readFileSync;
59358
59358
  exports.localsName = _DEFAULT_LOCALS_NAME;
59359
59359
  exports.promiseImpl = new Function("return this;")().Promise;
59360
59360
  exports.resolveInclude = function(name, filename, isDir) {
@@ -59372,7 +59372,7 @@ var require_ejs = __commonJS({
59372
59372
  var filePath;
59373
59373
  if (paths.some(function(v) {
59374
59374
  filePath = exports.resolveInclude(name, v, true);
59375
- return fs13.existsSync(filePath);
59375
+ return fs12.existsSync(filePath);
59376
59376
  })) {
59377
59377
  return filePath;
59378
59378
  }
@@ -59392,7 +59392,7 @@ var require_ejs = __commonJS({
59392
59392
  } else {
59393
59393
  if (options.filename) {
59394
59394
  filePath = exports.resolveInclude(path19, options.filename);
59395
- if (fs13.existsSync(filePath)) {
59395
+ if (fs12.existsSync(filePath)) {
59396
59396
  includePath = filePath;
59397
59397
  }
59398
59398
  }
@@ -88078,7 +88078,7 @@ var require_iso2022 = __commonJS({
88078
88078
  var require_chardet = __commonJS({
88079
88079
  "../../../../node_modules/.pnpm/chardet@0.7.0/node_modules/chardet/index.js"(exports, module2) {
88080
88080
  "use strict";
88081
- var fs13 = require("fs");
88081
+ var fs12 = require("fs");
88082
88082
  var utf8 = require_utf8();
88083
88083
  var unicode = require_unicode();
88084
88084
  var mbcs = require_mbcs();
@@ -88152,29 +88152,29 @@ var require_chardet = __commonJS({
88152
88152
  var fd;
88153
88153
  var handler = function(err, buffer) {
88154
88154
  if (fd) {
88155
- fs13.closeSync(fd);
88155
+ fs12.closeSync(fd);
88156
88156
  }
88157
88157
  if (err)
88158
88158
  return cb(err, null);
88159
88159
  cb(null, self3.detect(buffer, opts));
88160
88160
  };
88161
88161
  if (opts && opts.sampleSize) {
88162
- fd = fs13.openSync(filepath, "r"), sample = Buffer.allocUnsafe(opts.sampleSize);
88163
- fs13.read(fd, sample, 0, opts.sampleSize, null, function(err) {
88162
+ fd = fs12.openSync(filepath, "r"), sample = Buffer.allocUnsafe(opts.sampleSize);
88163
+ fs12.read(fd, sample, 0, opts.sampleSize, null, function(err) {
88164
88164
  handler(err, sample);
88165
88165
  });
88166
88166
  return;
88167
88167
  }
88168
- fs13.readFile(filepath, handler);
88168
+ fs12.readFile(filepath, handler);
88169
88169
  };
88170
88170
  module2.exports.detectFileSync = function(filepath, opts) {
88171
88171
  if (opts && opts.sampleSize) {
88172
- var fd = fs13.openSync(filepath, "r"), sample2 = Buffer.allocUnsafe(opts.sampleSize);
88173
- fs13.readSync(fd, sample2, 0, opts.sampleSize);
88174
- fs13.closeSync(fd);
88172
+ var fd = fs12.openSync(filepath, "r"), sample2 = Buffer.allocUnsafe(opts.sampleSize);
88173
+ fs12.readSync(fd, sample2, 0, opts.sampleSize);
88174
+ fs12.closeSync(fd);
88175
88175
  return self3.detect(sample2, opts);
88176
88176
  }
88177
- return self3.detect(fs13.readFileSync(filepath), opts);
88177
+ return self3.detect(fs12.readFileSync(filepath), opts);
88178
88178
  };
88179
88179
  module2.exports.detectAll = function(buffer, opts) {
88180
88180
  if (typeof opts !== "object") {
@@ -91678,7 +91678,7 @@ var require_os_tmpdir = __commonJS({
91678
91678
  var require_tmp = __commonJS({
91679
91679
  "../../../../node_modules/.pnpm/tmp@0.0.33/node_modules/tmp/lib/tmp.js"(exports, module2) {
91680
91680
  "use strict";
91681
- var fs13 = require("fs");
91681
+ var fs12 = require("fs");
91682
91682
  var path18 = require("path");
91683
91683
  var crypto = require("crypto");
91684
91684
  var osTmpDir = require_os_tmpdir();
@@ -91742,7 +91742,7 @@ var require_tmp = __commonJS({
91742
91742
  return cb(new Error("Invalid template provided"));
91743
91743
  (function _getUniqueName() {
91744
91744
  const name = _generateTmpName(opts);
91745
- fs13.stat(name, function(err) {
91745
+ fs12.stat(name, function(err) {
91746
91746
  if (!err) {
91747
91747
  if (tries-- > 0)
91748
91748
  return _getUniqueName();
@@ -91761,7 +91761,7 @@ var require_tmp = __commonJS({
91761
91761
  do {
91762
91762
  const name = _generateTmpName(opts);
91763
91763
  try {
91764
- fs13.statSync(name);
91764
+ fs12.statSync(name);
91765
91765
  } catch (e) {
91766
91766
  return name;
91767
91767
  }
@@ -91774,14 +91774,14 @@ var require_tmp = __commonJS({
91774
91774
  tmpName(opts, function _tmpNameCreated(err, name) {
91775
91775
  if (err)
91776
91776
  return cb(err);
91777
- fs13.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) {
91777
+ fs12.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) {
91778
91778
  if (err2)
91779
91779
  return cb(err2);
91780
91780
  if (opts.discardDescriptor) {
91781
- return fs13.close(fd, function _discardCallback(err3) {
91781
+ return fs12.close(fd, function _discardCallback(err3) {
91782
91782
  if (err3) {
91783
91783
  try {
91784
- fs13.unlinkSync(name);
91784
+ fs12.unlinkSync(name);
91785
91785
  } catch (e) {
91786
91786
  if (!isENOENT(e)) {
91787
91787
  err3 = e;
@@ -91804,9 +91804,9 @@ var require_tmp = __commonJS({
91804
91804
  opts.postfix = opts.postfix || ".tmp";
91805
91805
  const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
91806
91806
  const name = tmpNameSync(opts);
91807
- var fd = fs13.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
91807
+ var fd = fs12.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
91808
91808
  if (opts.discardDescriptor) {
91809
- fs13.closeSync(fd);
91809
+ fs12.closeSync(fd);
91810
91810
  fd = void 0;
91811
91811
  }
91812
91812
  return {
@@ -91818,9 +91818,9 @@ var require_tmp = __commonJS({
91818
91818
  function _rmdirRecursiveSync(root) {
91819
91819
  const dirs = [root];
91820
91820
  do {
91821
- var dir2 = dirs.pop(), deferred = false, files = fs13.readdirSync(dir2);
91821
+ var dir2 = dirs.pop(), deferred = false, files = fs12.readdirSync(dir2);
91822
91822
  for (var i = 0, length = files.length; i < length; i++) {
91823
- var file2 = path18.join(dir2, files[i]), stat = fs13.lstatSync(file2);
91823
+ var file2 = path18.join(dir2, files[i]), stat = fs12.lstatSync(file2);
91824
91824
  if (stat.isDirectory()) {
91825
91825
  if (!deferred) {
91826
91826
  deferred = true;
@@ -91828,11 +91828,11 @@ var require_tmp = __commonJS({
91828
91828
  }
91829
91829
  dirs.push(file2);
91830
91830
  } else {
91831
- fs13.unlinkSync(file2);
91831
+ fs12.unlinkSync(file2);
91832
91832
  }
91833
91833
  }
91834
91834
  if (!deferred) {
91835
- fs13.rmdirSync(dir2);
91835
+ fs12.rmdirSync(dir2);
91836
91836
  }
91837
91837
  } while (dirs.length !== 0);
91838
91838
  }
@@ -91841,7 +91841,7 @@ var require_tmp = __commonJS({
91841
91841
  tmpName(opts, function _tmpNameCreated(err, name) {
91842
91842
  if (err)
91843
91843
  return cb(err);
91844
- fs13.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) {
91844
+ fs12.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) {
91845
91845
  if (err2)
91846
91846
  return cb(err2);
91847
91847
  cb(null, name, _prepareTmpDirRemoveCallback(name, opts));
@@ -91851,7 +91851,7 @@ var require_tmp = __commonJS({
91851
91851
  function dirSync(options) {
91852
91852
  var args = _parseArguments(options), opts = args[0];
91853
91853
  const name = tmpNameSync(opts);
91854
- fs13.mkdirSync(name, opts.mode || DIR_MODE);
91854
+ fs12.mkdirSync(name, opts.mode || DIR_MODE);
91855
91855
  return {
91856
91856
  name,
91857
91857
  removeCallback: _prepareTmpDirRemoveCallback(name, opts)
@@ -91861,7 +91861,7 @@ var require_tmp = __commonJS({
91861
91861
  const removeCallback = _prepareRemoveCallback(function _removeCallback(fdPath) {
91862
91862
  try {
91863
91863
  if (0 <= fdPath[0]) {
91864
- fs13.closeSync(fdPath[0]);
91864
+ fs12.closeSync(fdPath[0]);
91865
91865
  }
91866
91866
  } catch (e) {
91867
91867
  if (!isEBADF(e) && !isENOENT(e)) {
@@ -91869,7 +91869,7 @@ var require_tmp = __commonJS({
91869
91869
  }
91870
91870
  }
91871
91871
  try {
91872
- fs13.unlinkSync(fdPath[1]);
91872
+ fs12.unlinkSync(fdPath[1]);
91873
91873
  } catch (e) {
91874
91874
  if (!isENOENT(e)) {
91875
91875
  throw e;
@@ -91882,7 +91882,7 @@ var require_tmp = __commonJS({
91882
91882
  return removeCallback;
91883
91883
  }
91884
91884
  function _prepareTmpDirRemoveCallback(name, opts) {
91885
- const removeFunction = opts.unsafeCleanup ? _rmdirRecursiveSync : fs13.rmdirSync.bind(fs13);
91885
+ const removeFunction = opts.unsafeCleanup ? _rmdirRecursiveSync : fs12.rmdirSync.bind(fs12);
91886
91886
  const removeCallback = _prepareRemoveCallback(removeFunction, name);
91887
91887
  if (!opts.keep) {
91888
91888
  _removeObjects.unshift(removeCallback);
@@ -124051,7 +124051,7 @@ var require_config5 = __commonJS({
124051
124051
  isUseSSRBundle: () => isUseSSRBundle
124052
124052
  });
124053
124053
  module2.exports = __toCommonJS2(config_exports);
124054
- var import_constants10 = require_constants3();
124054
+ var import_constants9 = require_constants3();
124055
124055
  var import_type = require_type2();
124056
124056
  var isSSR = (config) => {
124057
124057
  const { server } = config;
@@ -124092,7 +124092,7 @@ var require_config5 = __commonJS({
124092
124092
  const useSSG = isSingleEntry(entrypoints, (_config_source = config.source) === null || _config_source === void 0 ? void 0 : _config_source.mainEntryName) ? Boolean(ssgConfig) : ssgConfig === true || typeof (ssgConfig === null || ssgConfig === void 0 ? void 0 : ssgConfig[0]) === "function" || Boolean(ssgConfig === null || ssgConfig === void 0 ? void 0 : ssgConfig[entryName]);
124093
124093
  return useSSG;
124094
124094
  };
124095
- var isSingleEntry = (entrypoints, mainEntryName = import_constants10.MAIN_ENTRY_NAME) => entrypoints.length === 1 && entrypoints[0].entryName === mainEntryName;
124095
+ var isSingleEntry = (entrypoints, mainEntryName = import_constants9.MAIN_ENTRY_NAME) => entrypoints.length === 1 && entrypoints[0].entryName === mainEntryName;
124096
124096
  }
124097
124097
  });
124098
124098
 
@@ -124281,9 +124281,9 @@ var require_project2 = __commonJS({
124281
124281
  var import_pkg_up = __toESM2(require_pkg_up2());
124282
124282
  var import_commands = require_commands2();
124283
124283
  var import_compiled = require_compiled2();
124284
- var import_common14 = require_common4();
124284
+ var import_common11 = require_common4();
124285
124285
  var import_ensure = require_ensure2();
124286
- var debug2 = (0, import_common14.createDebugger)("judge-depExists");
124286
+ var debug2 = (0, import_common11.createDebugger)("judge-depExists");
124287
124287
  var isDepExists = (appDirectory, name) => {
124288
124288
  const pkgPath = import_path19.default.resolve(appDirectory, "./package.json");
124289
124289
  if (!import_compiled.fs.existsSync(pkgPath)) {
@@ -124501,7 +124501,7 @@ var require_data2 = __commonJS({
124501
124501
  var import_os2 = __toESM2(require("os"));
124502
124502
  var import_path19 = __toESM2(require("path"));
124503
124503
  var import_compiled = require_compiled2();
124504
- var import_constants10 = require_constants3();
124504
+ var import_constants9 = require_constants3();
124505
124505
  var import_is = require_is2();
124506
124506
  var import_package2 = require_package6();
124507
124507
  var MAX_TIMES = 5;
@@ -124559,7 +124559,7 @@ var require_data2 = __commonJS({
124559
124559
  var getBrowserslist = (appDirectory) => import_compiled.browserslist.loadConfig({
124560
124560
  path: appDirectory
124561
124561
  }) || defaults;
124562
- function getInternalPlugins(appDirectory, internalPlugins = import_constants10.INTERNAL_CLI_PLUGINS) {
124562
+ function getInternalPlugins(appDirectory, internalPlugins = import_constants9.INTERNAL_CLI_PLUGINS) {
124563
124563
  return [
124564
124564
  ...Object.keys(internalPlugins).filter((name) => {
124565
124565
  const config = internalPlugins[name];
@@ -124671,12 +124671,12 @@ var require_get3 = __commonJS({
124671
124671
  });
124672
124672
  module2.exports = __toCommonJS2(get_exports);
124673
124673
  var import_path19 = __toESM2(require("path"));
124674
- var import_constants10 = require_constants3();
124674
+ var import_constants9 = require_constants3();
124675
124675
  var import_fs = require_fs2();
124676
124676
  __reExport(get_exports, require_data2(), module2.exports);
124677
124677
  __reExport(get_exports, require_config6(), module2.exports);
124678
124678
  var getServerConfig = async (appDirectory, configFile) => {
124679
- const configFilePath = (0, import_fs.findExists)(import_constants10.CONFIG_FILE_EXTENSIONS.map((extension) => import_path19.default.resolve(appDirectory, `${configFile}${extension}`)));
124679
+ const configFilePath = (0, import_fs.findExists)(import_constants9.CONFIG_FILE_EXTENSIONS.map((extension) => import_path19.default.resolve(appDirectory, `${configFile}${extension}`)));
124680
124680
  return configFilePath;
124681
124681
  };
124682
124682
  var getTargetDir = (from, baseDir, targetBaseDir) => {
@@ -124894,7 +124894,7 @@ var require_applyOptionsChain2 = __commonJS({
124894
124894
  });
124895
124895
  module2.exports = __toCommonJS2(applyOptionsChain_exports);
124896
124896
  var import_is = require_is2();
124897
- var import_logger3 = require_logger3();
124897
+ var import_logger2 = require_logger3();
124898
124898
  function applyOptionsChain(defaults, options, utils, mergeFn = Object.assign) {
124899
124899
  if (!options) {
124900
124900
  return defaults;
@@ -124905,7 +124905,7 @@ var require_applyOptionsChain2 = __commonJS({
124905
124905
  const ret = options(defaults, utils);
124906
124906
  if (ret) {
124907
124907
  if (!(0, import_is.isPlainObject)(ret)) {
124908
- import_logger3.logger.warn(`${options.name}: Function should mutate the config and return nothing, Or return a cloned or merged version of config object.`);
124908
+ import_logger2.logger.warn(`${options.name}: Function should mutate the config and return nothing, Or return a cloned or merged version of config object.`);
124909
124909
  }
124910
124910
  return ret;
124911
124911
  }
@@ -125353,7 +125353,7 @@ var require_port2 = __commonJS({
125353
125353
  module2.exports = __toCommonJS2(port_exports);
125354
125354
  var import_net = __toESM2(require("net"));
125355
125355
  var import_compiled = require_compiled2();
125356
- var import_logger3 = require_logger3();
125356
+ var import_logger2 = require_logger3();
125357
125357
  var getPort = async (port, { tryLimits = 20, strictPort = false, slient = false } = {}) => {
125358
125358
  if (typeof port === "string") {
125359
125359
  port = parseInt(port, 10);
@@ -125390,7 +125390,7 @@ var require_port2 = __commonJS({
125390
125390
  if (strictPort) {
125391
125391
  throw new Error(`Port "${original}" is occupied, please choose another one.`);
125392
125392
  } else if (!slient) {
125393
- import_logger3.logger.info(`Port ${original} is in use. ${import_compiled.chalk.yellow(`using port ${port}.`)}`);
125393
+ import_logger2.logger.info(`Port ${original} is in use. ${import_compiled.chalk.yellow(`using port ${port}.`)}`);
125394
125394
  }
125395
125395
  }
125396
125396
  return port;
@@ -125438,7 +125438,7 @@ var require_prettyInstructions2 = __commonJS({
125438
125438
  var import_os2 = __toESM2(require("os"));
125439
125439
  var import_compiled = require_compiled2();
125440
125440
  var import_is = require_is2();
125441
- var import_constants10 = require_constants3();
125441
+ var import_constants9 = require_constants3();
125442
125442
  var normalizeUrl = (url) => url.replace(/([^:]\/)\/+/g, "$1");
125443
125443
  var getIpv4Interfaces = () => {
125444
125444
  const interfaces = import_os2.default.networkInterfaces();
@@ -125457,7 +125457,7 @@ var require_prettyInstructions2 = __commonJS({
125457
125457
  const LOCAL_LABEL = "Local: ";
125458
125458
  const NETWORK_LABEL = "Network: ";
125459
125459
  const isLocalhost = (url) => url === null || url === void 0 ? void 0 : url.includes("localhost");
125460
- if (host && host !== import_constants10.DEFAULT_DEV_HOST) {
125460
+ if (host && host !== import_constants9.DEFAULT_DEV_HOST) {
125461
125461
  return [
125462
125462
  {
125463
125463
  label: isLocalhost(host) ? LOCAL_LABEL : NETWORK_LABEL,
@@ -145648,22 +145648,6 @@ var FrameworkAppendTypeContent = {
145648
145648
  [Framework.Koa]: `/// <reference types='@modern-js/plugin-koa/types' />`
145649
145649
  };
145650
145650
 
145651
- // ../../generator-common/dist/esm-node/mwa/entry.js
145652
- var MWADefaultEntryConfig = {
145653
- needModifyMWAConfig: BooleanConfig.NO
145654
- };
145655
-
145656
- // ../../generator-common/dist/esm-node/mwa/bff.js
145657
- var BFFType;
145658
- (function(BFFType2) {
145659
- BFFType2["Func"] = "func";
145660
- BFFType2["Framework"] = "framework";
145661
- })(BFFType || (BFFType = {}));
145662
- var MWADefaultBffConfig = {
145663
- bffType: BFFType.Func,
145664
- frameWork: Framework.Express
145665
- };
145666
-
145667
145651
  // ../../generator-common/dist/esm-node/mwa/project.js
145668
145652
  var getMWASchemaProperties = (extra) => {
145669
145653
  return {
@@ -146067,12 +146051,6 @@ var MonorepoNewActionConfig = {
146067
146051
  }
146068
146052
  };
146069
146053
 
146070
- // ../../generator-common/dist/esm-node/expand/generator.js
146071
- var GeneratorDefaultConfig = {
146072
- packageManager: PackageManager.Pnpm,
146073
- language: Language.TS
146074
- };
146075
-
146076
146054
  // ../../generator-common/dist/esm-node/index.js
146077
146055
  var SolutionDefaultConfig = {
146078
146056
  [Solution.MWA]: MWADefaultConfig,
@@ -146274,7 +146252,7 @@ var import_path17 = __toESM(require("path"));
146274
146252
 
146275
146253
  // ../../generator-utils/dist/esm/index.js
146276
146254
  var import_path11 = __toESM(require("path"));
146277
- var import_utils27 = __toESM(require_cjs3());
146255
+ var import_utils26 = __toESM(require_cjs3());
146278
146256
 
146279
146257
  // ../../generator-utils/dist/esm/utils/stripAnsi.js
146280
146258
  function ansiRegex2({ onlyFirst = false } = {}) {
@@ -146394,17 +146372,14 @@ async function getAvailableVersion(packageName, currentVersion, registry2) {
146394
146372
  return currentVersion;
146395
146373
  }
146396
146374
 
146397
- // ../../generator-utils/dist/esm/utils/fsExist.js
146398
- var import_utils26 = __toESM(require_cjs3());
146399
-
146400
146375
  // ../../generator-utils/dist/esm/index.js
146401
- var import_utils28 = __toESM(require_cjs3());
146376
+ var import_utils27 = __toESM(require_cjs3());
146402
146377
  async function getPackageVersion(packageName, registry2) {
146403
- const spinner = (0, import_utils27.ora)({
146378
+ const spinner = (0, import_utils26.ora)({
146404
146379
  text: "Load Generator...",
146405
146380
  spinner: "runner"
146406
146381
  }).start();
146407
- if (await (0, import_utils27.canUsePnpm)()) {
146382
+ if (await (0, import_utils26.canUsePnpm)()) {
146408
146383
  const args = [
146409
146384
  "info",
146410
146385
  packageName,
@@ -146413,11 +146388,11 @@ async function getPackageVersion(packageName, registry2) {
146413
146388
  if (registry2) {
146414
146389
  args.push(`--registry=${registry2}`);
146415
146390
  }
146416
- const result = await (0, import_utils27.execa)("pnpm", args);
146391
+ const result = await (0, import_utils26.execa)("pnpm", args);
146417
146392
  spinner.stop();
146418
146393
  return stripAnsi3(result.stdout);
146419
146394
  }
146420
- if (await (0, import_utils27.canUseNpm)()) {
146395
+ if (await (0, import_utils26.canUseNpm)()) {
146421
146396
  const args = [
146422
146397
  "view",
146423
146398
  packageName,
@@ -146426,7 +146401,7 @@ async function getPackageVersion(packageName, registry2) {
146426
146401
  if (registry2) {
146427
146402
  args.push(`--registry=${registry2}`);
146428
146403
  }
146429
- const result = await (0, import_utils27.execa)("npm", args);
146404
+ const result = await (0, import_utils26.execa)("npm", args);
146430
146405
  spinner.stop();
146431
146406
  return stripAnsi3(result.stdout);
146432
146407
  }
@@ -146456,8 +146431,8 @@ async function getModernPluginVersion(solution, packageName, options = {
146456
146431
  ]
146457
146432
  }), "../..", "package.json");
146458
146433
  }
146459
- if (import_utils27.fs.existsSync(pkgPath)) {
146460
- const pkgInfo = import_utils27.fs.readJSONSync(pkgPath);
146434
+ if (import_utils26.fs.existsSync(pkgPath)) {
146435
+ const pkgInfo = import_utils26.fs.readJSONSync(pkgPath);
146461
146436
  const modernVersion = pkgInfo.version;
146462
146437
  if (typeof modernVersion !== "string") {
146463
146438
  return getLatetPluginVersion();
@@ -146947,7 +146922,7 @@ var JsonAPI = /* @__PURE__ */ function() {
146947
146922
 
146948
146923
  // ../../generator-plugin/dist/esm/utils/file.js
146949
146924
  var import_path12 = __toESM(require("path"));
146950
- var import_utils30 = __toESM(require_cjs3());
146925
+ var import_utils29 = __toESM(require_cjs3());
146951
146926
  var FileType;
146952
146927
  (function(FileType22) {
146953
146928
  FileType22["Text"] = "text";
@@ -146972,7 +146947,7 @@ function _fileExists() {
146972
146947
  ]);
146973
146948
  return [
146974
146949
  4,
146975
- import_utils28.fs.access(filePath)
146950
+ import_utils27.fs.access(filePath)
146976
146951
  ];
146977
146952
  case 1:
146978
146953
  _state.sent();
@@ -147006,7 +146981,7 @@ function dropFileRootPath(file, rootPath) {
147006
146981
  }
147007
146982
  function isAbsoluteOrRelativeFileTo(relativePath) {
147008
146983
  var isFile = function(file) {
147009
- return import_utils28.fs.existsSync(file) && import_utils28.fs.lstatSync(file).isFile();
146984
+ return import_utils27.fs.existsSync(file) && import_utils27.fs.lstatSync(file).isFile();
147010
146985
  };
147011
146986
  return function(fileName) {
147012
146987
  return isFile(fileName) || isFile(import_path12.default.join(relativePath, fileName));
@@ -147033,7 +147008,7 @@ function _addFile() {
147033
147008
  }
147034
147009
  return [
147035
147010
  4,
147036
- import_utils28.fs.mkdir(import_path12.default.dirname(fileDestPath), {
147011
+ import_utils27.fs.mkdir(import_path12.default.dirname(fileDestPath), {
147037
147012
  recursive: true
147038
147013
  })
147039
147014
  ];
@@ -147047,13 +147022,13 @@ function _addFile() {
147047
147022
  ];
147048
147023
  return [
147049
147024
  4,
147050
- import_utils28.fs.readFile(absTemplatePath)
147025
+ import_utils27.fs.readFile(absTemplatePath)
147051
147026
  ];
147052
147027
  case 3:
147053
147028
  rawTemplate = _state.sent();
147054
147029
  return [
147055
147030
  4,
147056
- import_utils28.fs.writeFile(fileDestPath, rawTemplate)
147031
+ import_utils27.fs.writeFile(fileDestPath, rawTemplate)
147057
147032
  ];
147058
147033
  case 4:
147059
147034
  _state.sent();
@@ -147070,7 +147045,7 @@ function _addFile() {
147070
147045
  ];
147071
147046
  return [
147072
147047
  4,
147073
- import_utils28.fs.readFile(absTemplatePath, "utf8")
147048
+ import_utils27.fs.readFile(absTemplatePath, "utf8")
147074
147049
  ];
147075
147050
  case 6:
147076
147051
  template = _state.sent();
@@ -147078,7 +147053,7 @@ function _addFile() {
147078
147053
  case 7:
147079
147054
  return [
147080
147055
  4,
147081
- import_utils28.fs.writeFile(fileDestPath, renderString3(template, config.data || {}, ((_config_templateFile = config.templateFile) === null || _config_templateFile === void 0 ? void 0 : _config_templateFile.endsWith(".ejs")) ? "ejs" : "handlebars"), "utf8")
147056
+ import_utils27.fs.writeFile(fileDestPath, renderString3(template, config.data || {}, ((_config_templateFile = config.templateFile) === null || _config_templateFile === void 0 ? void 0 : _config_templateFile.endsWith(".ejs")) ? "ejs" : "handlebars"), "utf8")
147082
147057
  ];
147083
147058
  case 8:
147084
147059
  _state.sent();
@@ -147112,7 +147087,7 @@ function _addManyFiles() {
147112
147087
  return import_path12.default.join(templatePath, templateFile2);
147113
147088
  });
147114
147089
  config.templateBase = ((_config_templateBase = config.templateBase) === null || _config_templateBase === void 0 ? void 0 : _config_templateBase.startsWith(import_path12.default.sep)) ? config.templateBase : "".concat(import_path12.default.sep).concat(config.templateBase || "");
147115
- templateFiles = import_utils30.globby.sync(config.templateFiles, {
147090
+ templateFiles = import_utils29.globby.sync(config.templateFiles, {
147116
147091
  braceExpansion: false
147117
147092
  }).map(function(filePath) {
147118
147093
  return dropFileRootPath(filePath, templatePath);
@@ -147436,14 +147411,14 @@ var PluginFileAPI = /* @__PURE__ */ function() {
147436
147411
  case 0:
147437
147412
  return [
147438
147413
  4,
147439
- import_utils28.fs.readFile(import_path13.default.join(_this.projectPath, fileName), "utf-8")
147414
+ import_utils27.fs.readFile(import_path13.default.join(_this.projectPath, fileName), "utf-8")
147440
147415
  ];
147441
147416
  case 1:
147442
147417
  content = _state.sent();
147443
147418
  newContent = update(content.split("\n"));
147444
147419
  return [
147445
147420
  4,
147446
- import_utils28.fs.writeFile(import_path13.default.join(_this.projectPath, fileName), newContent.join("\n"), "utf-8")
147421
+ import_utils27.fs.writeFile(import_path13.default.join(_this.projectPath, fileName), newContent.join("\n"), "utf-8")
147447
147422
  ];
147448
147423
  case 2:
147449
147424
  _state.sent();
@@ -147477,7 +147452,7 @@ var PluginFileAPI = /* @__PURE__ */ function() {
147477
147452
  ];
147478
147453
  return [
147479
147454
  4,
147480
- import_utils28.fs.rm(file)
147455
+ import_utils27.fs.rm(file)
147481
147456
  ];
147482
147457
  case 2:
147483
147458
  _state.sent();
@@ -147511,7 +147486,7 @@ var PluginFileAPI = /* @__PURE__ */ function() {
147511
147486
  ]);
147512
147487
  return [
147513
147488
  4,
147514
- import_utils28.fs.stat(dir)
147489
+ import_utils27.fs.stat(dir)
147515
147490
  ];
147516
147491
  case 2:
147517
147492
  stat = _state.sent();
@@ -147522,7 +147497,7 @@ var PluginFileAPI = /* @__PURE__ */ function() {
147522
147497
  ];
147523
147498
  return [
147524
147499
  4,
147525
- import_utils28.fs.rm(dir, {
147500
+ import_utils27.fs.rm(dir, {
147526
147501
  recursive: true
147527
147502
  })
147528
147503
  ];
@@ -147571,7 +147546,7 @@ var PluginFileAPI = /* @__PURE__ */ function() {
147571
147546
  return __generator20(this, function(_state) {
147572
147547
  return [
147573
147548
  2,
147574
- import_utils28.fs.readdir(import_path13.default.join(_this.projectPath, dir))
147549
+ import_utils27.fs.readdir(import_path13.default.join(_this.projectPath, dir))
147575
147550
  ];
147576
147551
  });
147577
147552
  })();
@@ -147978,23 +147953,23 @@ var PluginNpmAPI = /* @__PURE__ */ function() {
147978
147953
 
147979
147954
  // ../../new-action/dist/esm/utils/index.js
147980
147955
  var import_path14 = __toESM(require("path"));
147981
- var import_utils31 = __toESM(require_cjs3());
147956
+ var import_utils30 = __toESM(require_cjs3());
147982
147957
  function alreadyRepo(cwd = process.cwd()) {
147983
147958
  try {
147984
- return import_utils28.fs.existsSync(import_path14.default.resolve(cwd, "package.json"));
147959
+ return import_utils27.fs.existsSync(import_path14.default.resolve(cwd, "package.json"));
147985
147960
  } catch (e) {
147986
147961
  return false;
147987
147962
  }
147988
147963
  }
147989
147964
  var readJson = (jsonPath) => {
147990
- if (!import_utils28.fs.existsSync(jsonPath)) {
147965
+ if (!import_utils27.fs.existsSync(jsonPath)) {
147991
147966
  return {};
147992
147967
  }
147993
- const jsonStr = import_utils28.fs.readFileSync(jsonPath, {
147968
+ const jsonStr = import_utils27.fs.readFileSync(jsonPath, {
147994
147969
  encoding: "utf8"
147995
147970
  });
147996
147971
  try {
147997
- return import_utils31.json5.parse(jsonStr);
147972
+ return import_utils30.json5.parse(jsonStr);
147998
147973
  } catch (error) {
147999
147974
  throw Error(`${jsonPath} is not a valid json, please check and try again.`);
148000
147975
  }
@@ -148029,8 +148004,8 @@ function getGeneratorPath(generator, distTag) {
148029
148004
  }
148030
148005
  async function usePluginNameExport(solution, options) {
148031
148006
  const solutionVersion = await getModernPluginVersion(solution, SolutionToolsMap[Solution.MWA], options);
148032
- if (import_utils31.semver.valid(solutionVersion) && import_utils31.semver.gte(solutionVersion, "2.0.0")) {
148033
- return import_utils31.semver.gt(solutionVersion, "2.24.0");
148007
+ if (import_utils30.semver.valid(solutionVersion) && import_utils30.semver.gte(solutionVersion, "2.0.0")) {
148008
+ return import_utils30.semver.gt(solutionVersion, "2.24.0");
148034
148009
  }
148035
148010
  return true;
148036
148011
  }
@@ -148100,7 +148075,7 @@ var MWANewAction = async (options) => {
148100
148075
  noNeedInstall: !needInstall
148101
148076
  }, ans, {
148102
148077
  locale: UserConfig.locale || locale,
148103
- packageManager: UserConfig.packageManager || await (0, import_utils28.getPackageManager)(cwd),
148078
+ packageManager: UserConfig.packageManager || await (0, import_utils27.getPackageManager)(cwd),
148104
148079
  distTag
148105
148080
  }, {
148106
148081
  devDependencies: devDependency ? {
@@ -148197,7 +148172,7 @@ var ModuleNewAction = async (options) => {
148197
148172
  noNeedInstall: !needInstall
148198
148173
  }, ans, {
148199
148174
  locale: UserConfig.locale || locale,
148200
- packageManager: UserConfig.packageManager || await (0, import_utils28.getPackageManager)(cwd),
148175
+ packageManager: UserConfig.packageManager || await (0, import_utils27.getPackageManager)(cwd),
148201
148176
  distTag
148202
148177
  }, {
148203
148178
  devDependencies: devDependency ? {
@@ -148263,7 +148238,7 @@ var MonorepoNewAction = async (options) => {
148263
148238
  });
148264
148239
  const finalConfig = (0, import_lodash12.merge)(UserConfig, {
148265
148240
  locale: UserConfig.locale || locale,
148266
- packageManager: UserConfig.packageManager || await (0, import_utils28.getPackageManager)(cwd),
148241
+ packageManager: UserConfig.packageManager || await (0, import_utils27.getPackageManager)(cwd),
148267
148242
  isMonorepo: true,
148268
148243
  distTag,
148269
148244
  plugins,
@@ -148566,7 +148541,7 @@ function _getPackageMeta() {
148566
148541
  params.push("--registry");
148567
148542
  params.push(registryUrl);
148568
148543
  }
148569
- getPkgInfoPromise = (0, import_utils28.execa)("npm", params);
148544
+ getPkgInfoPromise = (0, import_utils27.execa)("npm", params);
148570
148545
  return [
148571
148546
  4,
148572
148547
  timeoutPromise(getPkgInfoPromise, NPM_API_TIMEOUT2, "Get npm version of '".concat(packageName, "'"))
@@ -148688,13 +148663,6 @@ var localeKeys4 = i18n4.init("en", {
148688
148663
  en: EN_LOCALE4
148689
148664
  });
148690
148665
 
148691
- // ../../generator-plugin/dist/esm/common.js
148692
- var PluginType;
148693
- (function(PluginType2) {
148694
- PluginType2["Extend"] = "extend";
148695
- PluginType2["Custom"] = "custom";
148696
- })(PluginType || (PluginType = {}));
148697
-
148698
148666
  // ../../generator-plugin/dist/esm/index.js
148699
148667
  var GeneratorPlugin = /* @__PURE__ */ function() {
148700
148668
  "use strict";
@@ -148745,7 +148713,7 @@ var GeneratorPlugin = /* @__PURE__ */ function() {
148745
148713
  ];
148746
148714
  return [
148747
148715
  4,
148748
- import_utils28.fs.readJSON(import_path17.default.join(process.cwd(), plugin.slice(5), "package.json"))
148716
+ import_utils27.fs.readJSON(import_path17.default.join(process.cwd(), plugin.slice(5), "package.json"))
148749
148717
  ];
148750
148718
  case 1:
148751
148719
  pkgJSON = _state2.sent();
@@ -148761,7 +148729,7 @@ var GeneratorPlugin = /* @__PURE__ */ function() {
148761
148729
  ];
148762
148730
  return [
148763
148731
  4,
148764
- import_utils28.fs.readJSON(import_path17.default.join(plugin, "package.json"))
148732
+ import_utils27.fs.readJSON(import_path17.default.join(plugin, "package.json"))
148765
148733
  ];
148766
148734
  case 3:
148767
148735
  pkgJSON = _state2.sent();