@modern-js/repo-generator 0.0.0-next-20231016112821 → 0.0.0-next-20231018090040

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 +216 -261
  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);
@@ -123631,9 +123631,7 @@ var require_chainId2 = __commonJS({
123631
123631
  /** builder-plugin-image-compress svgo-loader */
123632
123632
  SVGO: "svgo",
123633
123633
  /** builder-plugin-imagex */
123634
- IMAGEX: "imagex",
123635
- /** storybook-react-docgen */
123636
- REACT_DOCGEN: "react-docgen"
123634
+ IMAGEX: "imagex"
123637
123635
  },
123638
123636
  /** Predefined plugins */
123639
123637
  PLUGIN: {
@@ -124053,7 +124051,7 @@ var require_config5 = __commonJS({
124053
124051
  isUseSSRBundle: () => isUseSSRBundle
124054
124052
  });
124055
124053
  module2.exports = __toCommonJS2(config_exports);
124056
- var import_constants10 = require_constants3();
124054
+ var import_constants9 = require_constants3();
124057
124055
  var import_type = require_type2();
124058
124056
  var isSSR = (config) => {
124059
124057
  const { server } = config;
@@ -124094,7 +124092,7 @@ var require_config5 = __commonJS({
124094
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]);
124095
124093
  return useSSG;
124096
124094
  };
124097
- 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;
124098
124096
  }
124099
124097
  });
124100
124098
 
@@ -124283,9 +124281,9 @@ var require_project2 = __commonJS({
124283
124281
  var import_pkg_up = __toESM2(require_pkg_up2());
124284
124282
  var import_commands = require_commands2();
124285
124283
  var import_compiled = require_compiled2();
124286
- var import_common14 = require_common4();
124284
+ var import_common11 = require_common4();
124287
124285
  var import_ensure = require_ensure2();
124288
- var debug2 = (0, import_common14.createDebugger)("judge-depExists");
124286
+ var debug2 = (0, import_common11.createDebugger)("judge-depExists");
124289
124287
  var isDepExists = (appDirectory, name) => {
124290
124288
  const pkgPath = import_path19.default.resolve(appDirectory, "./package.json");
124291
124289
  if (!import_compiled.fs.existsSync(pkgPath)) {
@@ -124503,7 +124501,7 @@ var require_data2 = __commonJS({
124503
124501
  var import_os2 = __toESM2(require("os"));
124504
124502
  var import_path19 = __toESM2(require("path"));
124505
124503
  var import_compiled = require_compiled2();
124506
- var import_constants10 = require_constants3();
124504
+ var import_constants9 = require_constants3();
124507
124505
  var import_is = require_is2();
124508
124506
  var import_package2 = require_package6();
124509
124507
  var MAX_TIMES = 5;
@@ -124561,7 +124559,7 @@ var require_data2 = __commonJS({
124561
124559
  var getBrowserslist = (appDirectory) => import_compiled.browserslist.loadConfig({
124562
124560
  path: appDirectory
124563
124561
  }) || defaults;
124564
- function getInternalPlugins(appDirectory, internalPlugins = import_constants10.INTERNAL_CLI_PLUGINS) {
124562
+ function getInternalPlugins(appDirectory, internalPlugins = import_constants9.INTERNAL_CLI_PLUGINS) {
124565
124563
  return [
124566
124564
  ...Object.keys(internalPlugins).filter((name) => {
124567
124565
  const config = internalPlugins[name];
@@ -124673,12 +124671,12 @@ var require_get3 = __commonJS({
124673
124671
  });
124674
124672
  module2.exports = __toCommonJS2(get_exports);
124675
124673
  var import_path19 = __toESM2(require("path"));
124676
- var import_constants10 = require_constants3();
124674
+ var import_constants9 = require_constants3();
124677
124675
  var import_fs = require_fs2();
124678
124676
  __reExport(get_exports, require_data2(), module2.exports);
124679
124677
  __reExport(get_exports, require_config6(), module2.exports);
124680
124678
  var getServerConfig = async (appDirectory, configFile) => {
124681
- 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}`)));
124682
124680
  return configFilePath;
124683
124681
  };
124684
124682
  var getTargetDir = (from, baseDir, targetBaseDir) => {
@@ -124896,7 +124894,7 @@ var require_applyOptionsChain2 = __commonJS({
124896
124894
  });
124897
124895
  module2.exports = __toCommonJS2(applyOptionsChain_exports);
124898
124896
  var import_is = require_is2();
124899
- var import_logger3 = require_logger3();
124897
+ var import_logger2 = require_logger3();
124900
124898
  function applyOptionsChain(defaults, options, utils, mergeFn = Object.assign) {
124901
124899
  if (!options) {
124902
124900
  return defaults;
@@ -124907,7 +124905,7 @@ var require_applyOptionsChain2 = __commonJS({
124907
124905
  const ret = options(defaults, utils);
124908
124906
  if (ret) {
124909
124907
  if (!(0, import_is.isPlainObject)(ret)) {
124910
- 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.`);
124911
124909
  }
124912
124910
  return ret;
124913
124911
  }
@@ -125355,7 +125353,7 @@ var require_port2 = __commonJS({
125355
125353
  module2.exports = __toCommonJS2(port_exports);
125356
125354
  var import_net = __toESM2(require("net"));
125357
125355
  var import_compiled = require_compiled2();
125358
- var import_logger3 = require_logger3();
125356
+ var import_logger2 = require_logger3();
125359
125357
  var getPort = async (port, { tryLimits = 20, strictPort = false, slient = false } = {}) => {
125360
125358
  if (typeof port === "string") {
125361
125359
  port = parseInt(port, 10);
@@ -125392,7 +125390,7 @@ var require_port2 = __commonJS({
125392
125390
  if (strictPort) {
125393
125391
  throw new Error(`Port "${original}" is occupied, please choose another one.`);
125394
125392
  } else if (!slient) {
125395
- 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}.`)}`);
125396
125394
  }
125397
125395
  }
125398
125396
  return port;
@@ -125440,7 +125438,7 @@ var require_prettyInstructions2 = __commonJS({
125440
125438
  var import_os2 = __toESM2(require("os"));
125441
125439
  var import_compiled = require_compiled2();
125442
125440
  var import_is = require_is2();
125443
- var import_constants10 = require_constants3();
125441
+ var import_constants9 = require_constants3();
125444
125442
  var normalizeUrl = (url) => url.replace(/([^:]\/)\/+/g, "$1");
125445
125443
  var getIpv4Interfaces = () => {
125446
125444
  const interfaces = import_os2.default.networkInterfaces();
@@ -125459,7 +125457,7 @@ var require_prettyInstructions2 = __commonJS({
125459
125457
  const LOCAL_LABEL = "Local: ";
125460
125458
  const NETWORK_LABEL = "Network: ";
125461
125459
  const isLocalhost = (url) => url === null || url === void 0 ? void 0 : url.includes("localhost");
125462
- if (host && host !== import_constants10.DEFAULT_DEV_HOST) {
125460
+ if (host && host !== import_constants9.DEFAULT_DEV_HOST) {
125463
125461
  return [
125464
125462
  {
125465
125463
  label: isLocalhost(host) ? LOCAL_LABEL : NETWORK_LABEL,
@@ -145197,7 +145195,6 @@ var ZH_LOCALE2 = {
145197
145195
  test: "启用「单元测试 / 集成测试」功能",
145198
145196
  e2e_test: "启用「E2E 测试」功能",
145199
145197
  storybook: "启用「Storybook」",
145200
- storybookV7: "启用「Storybook」V7",
145201
145198
  runtime_api: "启用「Runtime API」",
145202
145199
  mwa_storybook: "启用「Visual Testing (Storybook)」模式",
145203
145200
  ssg: "启用「SSG」功能",
@@ -145295,7 +145292,6 @@ var EN_LOCALE2 = {
145295
145292
  test: "Enable Unit Test / Integration Test",
145296
145293
  e2e_test: "Enable E2E Test",
145297
145294
  storybook: "Enable Storybook",
145298
- storybookV7: "Enable Storybook V7",
145299
145295
  runtime_api: "Enable Runtime API",
145300
145296
  mwa_storybook: "Enable Visual Testing (Storybook)",
145301
145297
  ssg: "Enable SSG",
@@ -145652,22 +145648,6 @@ var FrameworkAppendTypeContent = {
145652
145648
  [Framework.Koa]: `/// <reference types='@modern-js/plugin-koa/types' />`
145653
145649
  };
145654
145650
 
145655
- // ../../generator-common/dist/esm-node/mwa/entry.js
145656
- var MWADefaultEntryConfig = {
145657
- needModifyMWAConfig: BooleanConfig.NO
145658
- };
145659
-
145660
- // ../../generator-common/dist/esm-node/mwa/bff.js
145661
- var BFFType;
145662
- (function(BFFType2) {
145663
- BFFType2["Func"] = "func";
145664
- BFFType2["Framework"] = "framework";
145665
- })(BFFType || (BFFType = {}));
145666
- var MWADefaultBffConfig = {
145667
- bffType: BFFType.Func,
145668
- frameWork: Framework.Express
145669
- };
145670
-
145671
145651
  // ../../generator-common/dist/esm-node/mwa/project.js
145672
145652
  var getMWASchemaProperties = (extra) => {
145673
145653
  return {
@@ -145712,7 +145692,6 @@ var ActionFunction;
145712
145692
  ActionFunction2["Test"] = "test";
145713
145693
  ActionFunction2["E2ETest"] = "e2e_test";
145714
145694
  ActionFunction2["Storybook"] = "storybook";
145715
- ActionFunction2["StorybookV7"] = "storybookV7";
145716
145695
  ActionFunction2["RuntimeApi"] = "runtimeApi";
145717
145696
  ActionFunction2["SSG"] = "ssg";
145718
145697
  ActionFunction2["Polyfill"] = "polyfill";
@@ -145746,7 +145725,6 @@ var ActionFunctionText = {
145746
145725
  [ActionFunction.Test]: () => i18n2.t(localeKeys2.action.function.test),
145747
145726
  [ActionFunction.E2ETest]: () => i18n2.t(localeKeys2.action.function.e2e_test),
145748
145727
  [ActionFunction.Storybook]: () => i18n2.t(localeKeys2.action.function.storybook),
145749
- [ActionFunction.StorybookV7]: () => i18n2.t(localeKeys2.action.function.storybookV7),
145750
145728
  [ActionFunction.RuntimeApi]: () => i18n2.t(localeKeys2.action.function.runtime_api),
145751
145729
  [ActionFunction.SSG]: () => i18n2.t(localeKeys2.action.function.ssg),
145752
145730
  [ActionFunction.Polyfill]: () => i18n2.t(localeKeys2.action.function.polyfill),
@@ -145779,8 +145757,7 @@ var MWAActionFunctions = [
145779
145757
  ActionFunction.Test,
145780
145758
  ActionFunction.Polyfill,
145781
145759
  ActionFunction.Proxy,
145782
- ActionFunction.Storybook,
145783
- ActionFunction.StorybookV7
145760
+ ActionFunction.Storybook
145784
145761
  ];
145785
145762
  var MWAActionElements = [
145786
145763
  ActionElement.Entry,
@@ -145879,7 +145856,6 @@ var MWAActionFunctionsDevDependencies = {
145879
145856
  [ActionFunction.SSG]: "@modern-js/plugin-ssg",
145880
145857
  [ActionFunction.Test]: "@modern-js/plugin-testing",
145881
145858
  [ActionFunction.Storybook]: "@modern-js/plugin-storybook",
145882
- [ActionFunction.StorybookV7]: "@modern-js/storybook",
145883
145859
  [ActionFunction.Proxy]: "@modern-js/plugin-proxy",
145884
145860
  [ActionFunction.TailwindCSS]: "tailwindcss",
145885
145861
  [ActionFunction.SWC]: "@modern-js/plugin-swc",
@@ -145912,7 +145888,6 @@ var MWANewActionGenerators = {
145912
145888
  [ActionFunction.MicroFrontend]: "@modern-js/dependence-generator",
145913
145889
  [ActionFunction.Test]: "@modern-js/test-generator",
145914
145890
  [ActionFunction.Storybook]: "@modern-js/dependence-generator",
145915
- [ActionFunction.StorybookV7]: "@modern-js/storybook-generator-next",
145916
145891
  [ActionFunction.SSG]: "@modern-js/ssg-generator",
145917
145892
  [ActionFunction.Polyfill]: "@modern-js/dependence-generator",
145918
145893
  [ActionFunction.Proxy]: "@modern-js/dependence-generator",
@@ -145952,7 +145927,6 @@ var MWANewActionPluginDependence = {
145952
145927
  [ActionFunction.MicroFrontend]: "@modern-js/plugin-garfish",
145953
145928
  [ActionFunction.Test]: "@modern-js/plugin-testing",
145954
145929
  [ActionFunction.Storybook]: "@modern-js/plugin-storybook",
145955
- [ActionFunction.StorybookV7]: "@modern-js/storybook",
145956
145930
  [ActionFunction.SSG]: "@modern-js/plugin-ssg",
145957
145931
  [ActionFunction.Polyfill]: "@modern-js/plugin-polyfill",
145958
145932
  [ActionFunction.Proxy]: "@modern-js/plugin-proxy",
@@ -146041,7 +146015,6 @@ var ModuleNewActionGenerators = {
146041
146015
  [ActionFunction.Test]: "@modern-js/module-test-generator",
146042
146016
  [ActionFunction.TailwindCSS]: "@modern-js/tailwindcss-generator",
146043
146017
  [ActionFunction.Storybook]: "@modern-js/storybook-generator",
146044
- [ActionFunction.StorybookV7]: "@modern-js/storybook-generator-next",
146045
146018
  [ActionFunction.RuntimeApi]: "@modern-js/dependence-generator"
146046
146019
  }
146047
146020
  };
@@ -146049,7 +146022,6 @@ var ModuleNewActionPluginName = {
146049
146022
  [ActionType.Function]: {
146050
146023
  [ActionFunction.TailwindCSS]: "tailwindcssPlugin",
146051
146024
  [ActionFunction.Storybook]: "storybookPlugin",
146052
- [ActionFunction.StorybookV7]: "storybookFramework",
146053
146025
  [ActionFunction.Test]: "testPlugin"
146054
146026
  }
146055
146027
  };
@@ -146057,8 +146029,7 @@ var ModuleNewActionPluginDependence = {
146057
146029
  [ActionType.Function]: {
146058
146030
  [ActionFunction.Test]: "@modern-js/plugin-testing",
146059
146031
  [ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss",
146060
- [ActionFunction.Storybook]: "@modern-js/plugin-storybook",
146061
- [ActionFunction.StorybookV7]: "@modern-js/storybook"
146032
+ [ActionFunction.Storybook]: "@modern-js/plugin-storybook"
146062
146033
  }
146063
146034
  };
146064
146035
 
@@ -146080,12 +146051,6 @@ var MonorepoNewActionConfig = {
146080
146051
  }
146081
146052
  };
146082
146053
 
146083
- // ../../generator-common/dist/esm-node/expand/generator.js
146084
- var GeneratorDefaultConfig = {
146085
- packageManager: PackageManager.Pnpm,
146086
- language: Language.TS
146087
- };
146088
-
146089
146054
  // ../../generator-common/dist/esm-node/index.js
146090
146055
  var SolutionDefaultConfig = {
146091
146056
  [Solution.MWA]: MWADefaultConfig,
@@ -146287,7 +146252,7 @@ var import_path17 = __toESM(require("path"));
146287
146252
 
146288
146253
  // ../../generator-utils/dist/esm/index.js
146289
146254
  var import_path11 = __toESM(require("path"));
146290
- var import_utils27 = __toESM(require_cjs3());
146255
+ var import_utils26 = __toESM(require_cjs3());
146291
146256
 
146292
146257
  // ../../generator-utils/dist/esm/utils/stripAnsi.js
146293
146258
  function ansiRegex2({ onlyFirst = false } = {}) {
@@ -146407,17 +146372,14 @@ async function getAvailableVersion(packageName, currentVersion, registry2) {
146407
146372
  return currentVersion;
146408
146373
  }
146409
146374
 
146410
- // ../../generator-utils/dist/esm/utils/fsExist.js
146411
- var import_utils26 = __toESM(require_cjs3());
146412
-
146413
146375
  // ../../generator-utils/dist/esm/index.js
146414
- var import_utils28 = __toESM(require_cjs3());
146376
+ var import_utils27 = __toESM(require_cjs3());
146415
146377
  async function getPackageVersion(packageName, registry2) {
146416
- const spinner = (0, import_utils27.ora)({
146378
+ const spinner = (0, import_utils26.ora)({
146417
146379
  text: "Load Generator...",
146418
146380
  spinner: "runner"
146419
146381
  }).start();
146420
- if (await (0, import_utils27.canUsePnpm)()) {
146382
+ if (await (0, import_utils26.canUsePnpm)()) {
146421
146383
  const args = [
146422
146384
  "info",
146423
146385
  packageName,
@@ -146426,11 +146388,11 @@ async function getPackageVersion(packageName, registry2) {
146426
146388
  if (registry2) {
146427
146389
  args.push(`--registry=${registry2}`);
146428
146390
  }
146429
- const result = await (0, import_utils27.execa)("pnpm", args);
146391
+ const result = await (0, import_utils26.execa)("pnpm", args);
146430
146392
  spinner.stop();
146431
146393
  return stripAnsi3(result.stdout);
146432
146394
  }
146433
- if (await (0, import_utils27.canUseNpm)()) {
146395
+ if (await (0, import_utils26.canUseNpm)()) {
146434
146396
  const args = [
146435
146397
  "view",
146436
146398
  packageName,
@@ -146439,7 +146401,7 @@ async function getPackageVersion(packageName, registry2) {
146439
146401
  if (registry2) {
146440
146402
  args.push(`--registry=${registry2}`);
146441
146403
  }
146442
- const result = await (0, import_utils27.execa)("npm", args);
146404
+ const result = await (0, import_utils26.execa)("npm", args);
146443
146405
  spinner.stop();
146444
146406
  return stripAnsi3(result.stdout);
146445
146407
  }
@@ -146469,8 +146431,8 @@ async function getModernPluginVersion(solution, packageName, options = {
146469
146431
  ]
146470
146432
  }), "../..", "package.json");
146471
146433
  }
146472
- if (import_utils27.fs.existsSync(pkgPath)) {
146473
- const pkgInfo = import_utils27.fs.readJSONSync(pkgPath);
146434
+ if (import_utils26.fs.existsSync(pkgPath)) {
146435
+ const pkgInfo = import_utils26.fs.readJSONSync(pkgPath);
146474
146436
  const modernVersion = pkgInfo.version;
146475
146437
  if (typeof modernVersion !== "string") {
146476
146438
  return getLatetPluginVersion();
@@ -146960,7 +146922,7 @@ var JsonAPI = /* @__PURE__ */ function() {
146960
146922
 
146961
146923
  // ../../generator-plugin/dist/esm/utils/file.js
146962
146924
  var import_path12 = __toESM(require("path"));
146963
- var import_utils30 = __toESM(require_cjs3());
146925
+ var import_utils29 = __toESM(require_cjs3());
146964
146926
  var FileType;
146965
146927
  (function(FileType22) {
146966
146928
  FileType22["Text"] = "text";
@@ -146985,7 +146947,7 @@ function _fileExists() {
146985
146947
  ]);
146986
146948
  return [
146987
146949
  4,
146988
- import_utils28.fs.access(filePath)
146950
+ import_utils27.fs.access(filePath)
146989
146951
  ];
146990
146952
  case 1:
146991
146953
  _state.sent();
@@ -147019,7 +146981,7 @@ function dropFileRootPath(file, rootPath) {
147019
146981
  }
147020
146982
  function isAbsoluteOrRelativeFileTo(relativePath) {
147021
146983
  var isFile = function(file) {
147022
- 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();
147023
146985
  };
147024
146986
  return function(fileName) {
147025
146987
  return isFile(fileName) || isFile(import_path12.default.join(relativePath, fileName));
@@ -147046,7 +147008,7 @@ function _addFile() {
147046
147008
  }
147047
147009
  return [
147048
147010
  4,
147049
- import_utils28.fs.mkdir(import_path12.default.dirname(fileDestPath), {
147011
+ import_utils27.fs.mkdir(import_path12.default.dirname(fileDestPath), {
147050
147012
  recursive: true
147051
147013
  })
147052
147014
  ];
@@ -147060,13 +147022,13 @@ function _addFile() {
147060
147022
  ];
147061
147023
  return [
147062
147024
  4,
147063
- import_utils28.fs.readFile(absTemplatePath)
147025
+ import_utils27.fs.readFile(absTemplatePath)
147064
147026
  ];
147065
147027
  case 3:
147066
147028
  rawTemplate = _state.sent();
147067
147029
  return [
147068
147030
  4,
147069
- import_utils28.fs.writeFile(fileDestPath, rawTemplate)
147031
+ import_utils27.fs.writeFile(fileDestPath, rawTemplate)
147070
147032
  ];
147071
147033
  case 4:
147072
147034
  _state.sent();
@@ -147083,7 +147045,7 @@ function _addFile() {
147083
147045
  ];
147084
147046
  return [
147085
147047
  4,
147086
- import_utils28.fs.readFile(absTemplatePath, "utf8")
147048
+ import_utils27.fs.readFile(absTemplatePath, "utf8")
147087
147049
  ];
147088
147050
  case 6:
147089
147051
  template = _state.sent();
@@ -147091,7 +147053,7 @@ function _addFile() {
147091
147053
  case 7:
147092
147054
  return [
147093
147055
  4,
147094
- 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")
147095
147057
  ];
147096
147058
  case 8:
147097
147059
  _state.sent();
@@ -147125,7 +147087,7 @@ function _addManyFiles() {
147125
147087
  return import_path12.default.join(templatePath, templateFile2);
147126
147088
  });
147127
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 || "");
147128
- templateFiles = import_utils30.globby.sync(config.templateFiles, {
147090
+ templateFiles = import_utils29.globby.sync(config.templateFiles, {
147129
147091
  braceExpansion: false
147130
147092
  }).map(function(filePath) {
147131
147093
  return dropFileRootPath(filePath, templatePath);
@@ -147449,14 +147411,14 @@ var PluginFileAPI = /* @__PURE__ */ function() {
147449
147411
  case 0:
147450
147412
  return [
147451
147413
  4,
147452
- 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")
147453
147415
  ];
147454
147416
  case 1:
147455
147417
  content = _state.sent();
147456
147418
  newContent = update(content.split("\n"));
147457
147419
  return [
147458
147420
  4,
147459
- 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")
147460
147422
  ];
147461
147423
  case 2:
147462
147424
  _state.sent();
@@ -147490,7 +147452,7 @@ var PluginFileAPI = /* @__PURE__ */ function() {
147490
147452
  ];
147491
147453
  return [
147492
147454
  4,
147493
- import_utils28.fs.rm(file)
147455
+ import_utils27.fs.rm(file)
147494
147456
  ];
147495
147457
  case 2:
147496
147458
  _state.sent();
@@ -147524,7 +147486,7 @@ var PluginFileAPI = /* @__PURE__ */ function() {
147524
147486
  ]);
147525
147487
  return [
147526
147488
  4,
147527
- import_utils28.fs.stat(dir)
147489
+ import_utils27.fs.stat(dir)
147528
147490
  ];
147529
147491
  case 2:
147530
147492
  stat = _state.sent();
@@ -147535,7 +147497,7 @@ var PluginFileAPI = /* @__PURE__ */ function() {
147535
147497
  ];
147536
147498
  return [
147537
147499
  4,
147538
- import_utils28.fs.rm(dir, {
147500
+ import_utils27.fs.rm(dir, {
147539
147501
  recursive: true
147540
147502
  })
147541
147503
  ];
@@ -147584,7 +147546,7 @@ var PluginFileAPI = /* @__PURE__ */ function() {
147584
147546
  return __generator20(this, function(_state) {
147585
147547
  return [
147586
147548
  2,
147587
- import_utils28.fs.readdir(import_path13.default.join(_this.projectPath, dir))
147549
+ import_utils27.fs.readdir(import_path13.default.join(_this.projectPath, dir))
147588
147550
  ];
147589
147551
  });
147590
147552
  })();
@@ -147991,23 +147953,23 @@ var PluginNpmAPI = /* @__PURE__ */ function() {
147991
147953
 
147992
147954
  // ../../new-action/dist/esm/utils/index.js
147993
147955
  var import_path14 = __toESM(require("path"));
147994
- var import_utils31 = __toESM(require_cjs3());
147956
+ var import_utils30 = __toESM(require_cjs3());
147995
147957
  function alreadyRepo(cwd = process.cwd()) {
147996
147958
  try {
147997
- 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"));
147998
147960
  } catch (e) {
147999
147961
  return false;
148000
147962
  }
148001
147963
  }
148002
147964
  var readJson = (jsonPath) => {
148003
- if (!import_utils28.fs.existsSync(jsonPath)) {
147965
+ if (!import_utils27.fs.existsSync(jsonPath)) {
148004
147966
  return {};
148005
147967
  }
148006
- const jsonStr = import_utils28.fs.readFileSync(jsonPath, {
147968
+ const jsonStr = import_utils27.fs.readFileSync(jsonPath, {
148007
147969
  encoding: "utf8"
148008
147970
  });
148009
147971
  try {
148010
- return import_utils31.json5.parse(jsonStr);
147972
+ return import_utils30.json5.parse(jsonStr);
148011
147973
  } catch (error) {
148012
147974
  throw Error(`${jsonPath} is not a valid json, please check and try again.`);
148013
147975
  }
@@ -148042,8 +148004,8 @@ function getGeneratorPath(generator, distTag) {
148042
148004
  }
148043
148005
  async function usePluginNameExport(solution, options) {
148044
148006
  const solutionVersion = await getModernPluginVersion(solution, SolutionToolsMap[Solution.MWA], options);
148045
- if (import_utils31.semver.valid(solutionVersion) && import_utils31.semver.gte(solutionVersion, "2.0.0")) {
148046
- 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");
148047
148009
  }
148048
148010
  return true;
148049
148011
  }
@@ -148113,7 +148075,7 @@ var MWANewAction = async (options) => {
148113
148075
  noNeedInstall: !needInstall
148114
148076
  }, ans, {
148115
148077
  locale: UserConfig.locale || locale,
148116
- packageManager: UserConfig.packageManager || await (0, import_utils28.getPackageManager)(cwd),
148078
+ packageManager: UserConfig.packageManager || await (0, import_utils27.getPackageManager)(cwd),
148117
148079
  distTag
148118
148080
  }, {
148119
148081
  devDependencies: devDependency ? {
@@ -148210,7 +148172,7 @@ var ModuleNewAction = async (options) => {
148210
148172
  noNeedInstall: !needInstall
148211
148173
  }, ans, {
148212
148174
  locale: UserConfig.locale || locale,
148213
- packageManager: UserConfig.packageManager || await (0, import_utils28.getPackageManager)(cwd),
148175
+ packageManager: UserConfig.packageManager || await (0, import_utils27.getPackageManager)(cwd),
148214
148176
  distTag
148215
148177
  }, {
148216
148178
  devDependencies: devDependency ? {
@@ -148276,7 +148238,7 @@ var MonorepoNewAction = async (options) => {
148276
148238
  });
148277
148239
  const finalConfig = (0, import_lodash12.merge)(UserConfig, {
148278
148240
  locale: UserConfig.locale || locale,
148279
- packageManager: UserConfig.packageManager || await (0, import_utils28.getPackageManager)(cwd),
148241
+ packageManager: UserConfig.packageManager || await (0, import_utils27.getPackageManager)(cwd),
148280
148242
  isMonorepo: true,
148281
148243
  distTag,
148282
148244
  plugins,
@@ -148579,7 +148541,7 @@ function _getPackageMeta() {
148579
148541
  params.push("--registry");
148580
148542
  params.push(registryUrl);
148581
148543
  }
148582
- getPkgInfoPromise = (0, import_utils28.execa)("npm", params);
148544
+ getPkgInfoPromise = (0, import_utils27.execa)("npm", params);
148583
148545
  return [
148584
148546
  4,
148585
148547
  timeoutPromise(getPkgInfoPromise, NPM_API_TIMEOUT2, "Get npm version of '".concat(packageName, "'"))
@@ -148701,13 +148663,6 @@ var localeKeys4 = i18n4.init("en", {
148701
148663
  en: EN_LOCALE4
148702
148664
  });
148703
148665
 
148704
- // ../../generator-plugin/dist/esm/common.js
148705
- var PluginType;
148706
- (function(PluginType2) {
148707
- PluginType2["Extend"] = "extend";
148708
- PluginType2["Custom"] = "custom";
148709
- })(PluginType || (PluginType = {}));
148710
-
148711
148666
  // ../../generator-plugin/dist/esm/index.js
148712
148667
  var GeneratorPlugin = /* @__PURE__ */ function() {
148713
148668
  "use strict";
@@ -148758,7 +148713,7 @@ var GeneratorPlugin = /* @__PURE__ */ function() {
148758
148713
  ];
148759
148714
  return [
148760
148715
  4,
148761
- 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"))
148762
148717
  ];
148763
148718
  case 1:
148764
148719
  pkgJSON = _state2.sent();
@@ -148774,7 +148729,7 @@ var GeneratorPlugin = /* @__PURE__ */ function() {
148774
148729
  ];
148775
148730
  return [
148776
148731
  4,
148777
- import_utils28.fs.readJSON(import_path17.default.join(plugin, "package.json"))
148732
+ import_utils27.fs.readJSON(import_path17.default.join(plugin, "package.json"))
148778
148733
  ];
148779
148734
  case 3:
148780
148735
  pkgJSON = _state2.sent();