@rg-dev/dts-inline 1.0.0 → 1.0.2

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/compiled/index.cjs +183 -222
  2. package/package.json +7 -7
@@ -114,7 +114,7 @@ var require_polyfills = __commonJS({
114
114
  fs3.fstatSync = statFixSync(fs3.fstatSync);
115
115
  fs3.lstatSync = statFixSync(fs3.lstatSync);
116
116
  if (fs3.chmod && !fs3.lchmod) {
117
- fs3.lchmod = function(path2, mode, cb) {
117
+ fs3.lchmod = function(path, mode, cb) {
118
118
  if (cb)
119
119
  process.nextTick(cb);
120
120
  };
@@ -122,7 +122,7 @@ var require_polyfills = __commonJS({
122
122
  };
123
123
  }
124
124
  if (fs3.chown && !fs3.lchown) {
125
- fs3.lchown = function(path2, uid, gid, cb) {
125
+ fs3.lchown = function(path, uid, gid, cb) {
126
126
  if (cb)
127
127
  process.nextTick(cb);
128
128
  };
@@ -193,9 +193,9 @@ var require_polyfills = __commonJS({
193
193
  };
194
194
  }(fs3.readSync);
195
195
  function patchLchmod(fs4) {
196
- fs4.lchmod = function(path2, mode, callback) {
196
+ fs4.lchmod = function(path, mode, callback) {
197
197
  fs4.open(
198
- path2,
198
+ path,
199
199
  constants.O_WRONLY | constants.O_SYMLINK,
200
200
  mode,
201
201
  function(err, fd) {
@@ -213,8 +213,8 @@ var require_polyfills = __commonJS({
213
213
  }
214
214
  );
215
215
  };
216
- fs4.lchmodSync = function(path2, mode) {
217
- var fd = fs4.openSync(path2, constants.O_WRONLY | constants.O_SYMLINK, mode);
216
+ fs4.lchmodSync = function(path, mode) {
217
+ var fd = fs4.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
218
218
  var threw = true;
219
219
  var ret;
220
220
  try {
@@ -235,8 +235,8 @@ var require_polyfills = __commonJS({
235
235
  }
236
236
  function patchLutimes(fs4) {
237
237
  if (constants.hasOwnProperty("O_SYMLINK") && fs4.futimes) {
238
- fs4.lutimes = function(path2, at, mt, cb) {
239
- fs4.open(path2, constants.O_SYMLINK, function(er, fd) {
238
+ fs4.lutimes = function(path, at, mt, cb) {
239
+ fs4.open(path, constants.O_SYMLINK, function(er, fd) {
240
240
  if (er) {
241
241
  if (cb)
242
242
  cb(er);
@@ -250,8 +250,8 @@ var require_polyfills = __commonJS({
250
250
  });
251
251
  });
252
252
  };
253
- fs4.lutimesSync = function(path2, at, mt) {
254
- var fd = fs4.openSync(path2, constants.O_SYMLINK);
253
+ fs4.lutimesSync = function(path, at, mt) {
254
+ var fd = fs4.openSync(path, constants.O_SYMLINK);
255
255
  var ret;
256
256
  var threw = true;
257
257
  try {
@@ -387,12 +387,12 @@ var require_legacy_streams = __commonJS({
387
387
  ReadStream,
388
388
  WriteStream
389
389
  };
390
- function ReadStream(path2, options) {
390
+ function ReadStream(path, options) {
391
391
  if (!(this instanceof ReadStream))
392
- return new ReadStream(path2, options);
392
+ return new ReadStream(path, options);
393
393
  Stream.call(this);
394
394
  var self = this;
395
- this.path = path2;
395
+ this.path = path;
396
396
  this.fd = null;
397
397
  this.readable = true;
398
398
  this.paused = false;
@@ -438,11 +438,11 @@ var require_legacy_streams = __commonJS({
438
438
  self._read();
439
439
  });
440
440
  }
441
- function WriteStream(path2, options) {
441
+ function WriteStream(path, options) {
442
442
  if (!(this instanceof WriteStream))
443
- return new WriteStream(path2, options);
443
+ return new WriteStream(path, options);
444
444
  Stream.call(this);
445
- this.path = path2;
445
+ this.path = path;
446
446
  this.fd = null;
447
447
  this.writable = true;
448
448
  this.flags = "w";
@@ -585,14 +585,14 @@ var require_graceful_fs = __commonJS({
585
585
  fs4.createWriteStream = createWriteStream;
586
586
  var fs$readFile = fs4.readFile;
587
587
  fs4.readFile = readFile;
588
- function readFile(path2, options, cb) {
588
+ function readFile(path, options, cb) {
589
589
  if (typeof options === "function")
590
590
  cb = options, options = null;
591
- return go$readFile(path2, options, cb);
592
- function go$readFile(path3, options2, cb2, startTime) {
593
- return fs$readFile(path3, options2, function(err) {
591
+ return go$readFile(path, options, cb);
592
+ function go$readFile(path2, options2, cb2, startTime) {
593
+ return fs$readFile(path2, options2, function(err) {
594
594
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
595
- enqueue([go$readFile, [path3, options2, cb2], err, startTime || Date.now(), Date.now()]);
595
+ enqueue([go$readFile, [path2, options2, cb2], err, startTime || Date.now(), Date.now()]);
596
596
  else {
597
597
  if (typeof cb2 === "function")
598
598
  cb2.apply(this, arguments);
@@ -602,14 +602,14 @@ var require_graceful_fs = __commonJS({
602
602
  }
603
603
  var fs$writeFile = fs4.writeFile;
604
604
  fs4.writeFile = writeFile2;
605
- function writeFile2(path2, data, options, cb) {
605
+ function writeFile2(path, data, options, cb) {
606
606
  if (typeof options === "function")
607
607
  cb = options, options = null;
608
- return go$writeFile(path2, data, options, cb);
609
- function go$writeFile(path3, data2, options2, cb2, startTime) {
610
- return fs$writeFile(path3, data2, options2, function(err) {
608
+ return go$writeFile(path, data, options, cb);
609
+ function go$writeFile(path2, data2, options2, cb2, startTime) {
610
+ return fs$writeFile(path2, data2, options2, function(err) {
611
611
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
612
- enqueue([go$writeFile, [path3, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
612
+ enqueue([go$writeFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
613
613
  else {
614
614
  if (typeof cb2 === "function")
615
615
  cb2.apply(this, arguments);
@@ -620,14 +620,14 @@ var require_graceful_fs = __commonJS({
620
620
  var fs$appendFile = fs4.appendFile;
621
621
  if (fs$appendFile)
622
622
  fs4.appendFile = appendFile;
623
- function appendFile(path2, data, options, cb) {
623
+ function appendFile(path, data, options, cb) {
624
624
  if (typeof options === "function")
625
625
  cb = options, options = null;
626
- return go$appendFile(path2, data, options, cb);
627
- function go$appendFile(path3, data2, options2, cb2, startTime) {
628
- return fs$appendFile(path3, data2, options2, function(err) {
626
+ return go$appendFile(path, data, options, cb);
627
+ function go$appendFile(path2, data2, options2, cb2, startTime) {
628
+ return fs$appendFile(path2, data2, options2, function(err) {
629
629
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
630
- enqueue([go$appendFile, [path3, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
630
+ enqueue([go$appendFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
631
631
  else {
632
632
  if (typeof cb2 === "function")
633
633
  cb2.apply(this, arguments);
@@ -658,31 +658,31 @@ var require_graceful_fs = __commonJS({
658
658
  var fs$readdir = fs4.readdir;
659
659
  fs4.readdir = readdir2;
660
660
  var noReaddirOptionVersions = /^v[0-5]\./;
661
- function readdir2(path2, options, cb) {
661
+ function readdir2(path, options, cb) {
662
662
  if (typeof options === "function")
663
663
  cb = options, options = null;
664
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path3, options2, cb2, startTime) {
665
- return fs$readdir(path3, fs$readdirCallback(
666
- path3,
664
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path2, options2, cb2, startTime) {
665
+ return fs$readdir(path2, fs$readdirCallback(
666
+ path2,
667
667
  options2,
668
668
  cb2,
669
669
  startTime
670
670
  ));
671
- } : function go$readdir2(path3, options2, cb2, startTime) {
672
- return fs$readdir(path3, options2, fs$readdirCallback(
673
- path3,
671
+ } : function go$readdir2(path2, options2, cb2, startTime) {
672
+ return fs$readdir(path2, options2, fs$readdirCallback(
673
+ path2,
674
674
  options2,
675
675
  cb2,
676
676
  startTime
677
677
  ));
678
678
  };
679
- return go$readdir(path2, options, cb);
680
- function fs$readdirCallback(path3, options2, cb2, startTime) {
679
+ return go$readdir(path, options, cb);
680
+ function fs$readdirCallback(path2, options2, cb2, startTime) {
681
681
  return function(err, files) {
682
682
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
683
683
  enqueue([
684
684
  go$readdir,
685
- [path3, options2, cb2],
685
+ [path2, options2, cb2],
686
686
  err,
687
687
  startTime || Date.now(),
688
688
  Date.now()
@@ -753,7 +753,7 @@ var require_graceful_fs = __commonJS({
753
753
  enumerable: true,
754
754
  configurable: true
755
755
  });
756
- function ReadStream(path2, options) {
756
+ function ReadStream(path, options) {
757
757
  if (this instanceof ReadStream)
758
758
  return fs$ReadStream.apply(this, arguments), this;
759
759
  else
@@ -773,7 +773,7 @@ var require_graceful_fs = __commonJS({
773
773
  }
774
774
  });
775
775
  }
776
- function WriteStream(path2, options) {
776
+ function WriteStream(path, options) {
777
777
  if (this instanceof WriteStream)
778
778
  return fs$WriteStream.apply(this, arguments), this;
779
779
  else
@@ -791,22 +791,22 @@ var require_graceful_fs = __commonJS({
791
791
  }
792
792
  });
793
793
  }
794
- function createReadStream(path2, options) {
795
- return new fs4.ReadStream(path2, options);
794
+ function createReadStream(path, options) {
795
+ return new fs4.ReadStream(path, options);
796
796
  }
797
- function createWriteStream(path2, options) {
798
- return new fs4.WriteStream(path2, options);
797
+ function createWriteStream(path, options) {
798
+ return new fs4.WriteStream(path, options);
799
799
  }
800
800
  var fs$open = fs4.open;
801
801
  fs4.open = open;
802
- function open(path2, flags, mode, cb) {
802
+ function open(path, flags, mode, cb) {
803
803
  if (typeof mode === "function")
804
804
  cb = mode, mode = null;
805
- return go$open(path2, flags, mode, cb);
806
- function go$open(path3, flags2, mode2, cb2, startTime) {
807
- return fs$open(path3, flags2, mode2, function(err, fd) {
805
+ return go$open(path, flags, mode, cb);
806
+ function go$open(path2, flags2, mode2, cb2, startTime) {
807
+ return fs$open(path2, flags2, mode2, function(err, fd) {
808
808
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
809
- enqueue([go$open, [path3, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
809
+ enqueue([go$open, [path2, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
810
810
  else {
811
811
  if (typeof cb2 === "function")
812
812
  cb2.apply(this, arguments);
@@ -993,10 +993,10 @@ var require_fs = __commonJS({
993
993
  var require_utils = __commonJS({
994
994
  "node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) {
995
995
  "use strict";
996
- var path2 = require("path");
996
+ var path = require("path");
997
997
  module2.exports.checkPath = function checkPath(pth) {
998
998
  if (process.platform === "win32") {
999
- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path2.parse(pth).root, ""));
999
+ const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, ""));
1000
1000
  if (pathHasInvalidWinCharacters) {
1001
1001
  const error = new Error(`Path contains invalid characters: ${pth}`);
1002
1002
  error.code = "EINVAL";
@@ -1061,8 +1061,8 @@ var require_path_exists = __commonJS({
1061
1061
  "use strict";
1062
1062
  var u = require_universalify().fromPromise;
1063
1063
  var fs3 = require_fs();
1064
- function pathExists2(path2) {
1065
- return fs3.access(path2).then(() => true).catch(() => false);
1064
+ function pathExists2(path) {
1065
+ return fs3.access(path).then(() => true).catch(() => false);
1066
1066
  }
1067
1067
  module2.exports = {
1068
1068
  pathExists: u(pathExists2),
@@ -1077,8 +1077,8 @@ var require_utimes = __commonJS({
1077
1077
  "use strict";
1078
1078
  var fs3 = require_fs();
1079
1079
  var u = require_universalify().fromPromise;
1080
- async function utimesMillis(path2, atime, mtime) {
1081
- const fd = await fs3.open(path2, "r+");
1080
+ async function utimesMillis(path, atime, mtime) {
1081
+ const fd = await fs3.open(path, "r+");
1082
1082
  let closeErr = null;
1083
1083
  try {
1084
1084
  await fs3.futimes(fd, atime, mtime);
@@ -1093,8 +1093,8 @@ var require_utimes = __commonJS({
1093
1093
  throw closeErr;
1094
1094
  }
1095
1095
  }
1096
- function utimesMillisSync(path2, atime, mtime) {
1097
- const fd = fs3.openSync(path2, "r+");
1096
+ function utimesMillisSync(path, atime, mtime) {
1097
+ const fd = fs3.openSync(path, "r+");
1098
1098
  fs3.futimesSync(fd, atime, mtime);
1099
1099
  return fs3.closeSync(fd);
1100
1100
  }
@@ -1110,7 +1110,7 @@ var require_stat = __commonJS({
1110
1110
  "node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
1111
1111
  "use strict";
1112
1112
  var fs3 = require_fs();
1113
- var path2 = require("path");
1113
+ var path = require("path");
1114
1114
  var u = require_universalify().fromPromise;
1115
1115
  function getStats(src, dest, opts) {
1116
1116
  const statFunc = opts.dereference ? (file) => fs3.stat(file, { bigint: true }) : (file) => fs3.lstat(file, { bigint: true });
@@ -1140,8 +1140,8 @@ var require_stat = __commonJS({
1140
1140
  const { srcStat, destStat } = await getStats(src, dest, opts);
1141
1141
  if (destStat) {
1142
1142
  if (areIdentical(srcStat, destStat)) {
1143
- const srcBaseName = path2.basename(src);
1144
- const destBaseName = path2.basename(dest);
1143
+ const srcBaseName = path.basename(src);
1144
+ const destBaseName = path.basename(dest);
1145
1145
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
1146
1146
  return { srcStat, destStat, isChangingCase: true };
1147
1147
  }
@@ -1163,8 +1163,8 @@ var require_stat = __commonJS({
1163
1163
  const { srcStat, destStat } = getStatsSync(src, dest, opts);
1164
1164
  if (destStat) {
1165
1165
  if (areIdentical(srcStat, destStat)) {
1166
- const srcBaseName = path2.basename(src);
1167
- const destBaseName = path2.basename(dest);
1166
+ const srcBaseName = path.basename(src);
1167
+ const destBaseName = path.basename(dest);
1168
1168
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
1169
1169
  return { srcStat, destStat, isChangingCase: true };
1170
1170
  }
@@ -1183,9 +1183,9 @@ var require_stat = __commonJS({
1183
1183
  return { srcStat, destStat };
1184
1184
  }
1185
1185
  async function checkParentPaths(src, srcStat, dest, funcName) {
1186
- const srcParent = path2.resolve(path2.dirname(src));
1187
- const destParent = path2.resolve(path2.dirname(dest));
1188
- if (destParent === srcParent || destParent === path2.parse(destParent).root)
1186
+ const srcParent = path.resolve(path.dirname(src));
1187
+ const destParent = path.resolve(path.dirname(dest));
1188
+ if (destParent === srcParent || destParent === path.parse(destParent).root)
1189
1189
  return;
1190
1190
  let destStat;
1191
1191
  try {
@@ -1201,9 +1201,9 @@ var require_stat = __commonJS({
1201
1201
  return checkParentPaths(src, srcStat, destParent, funcName);
1202
1202
  }
1203
1203
  function checkParentPathsSync(src, srcStat, dest, funcName) {
1204
- const srcParent = path2.resolve(path2.dirname(src));
1205
- const destParent = path2.resolve(path2.dirname(dest));
1206
- if (destParent === srcParent || destParent === path2.parse(destParent).root)
1204
+ const srcParent = path.resolve(path.dirname(src));
1205
+ const destParent = path.resolve(path.dirname(dest));
1206
+ if (destParent === srcParent || destParent === path.parse(destParent).root)
1207
1207
  return;
1208
1208
  let destStat;
1209
1209
  try {
@@ -1222,8 +1222,8 @@ var require_stat = __commonJS({
1222
1222
  return destStat.ino !== void 0 && destStat.dev !== void 0 && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
1223
1223
  }
1224
1224
  function isSrcSubdir(src, dest) {
1225
- const srcArr = path2.resolve(src).split(path2.sep).filter((i) => i);
1226
- const destArr = path2.resolve(dest).split(path2.sep).filter((i) => i);
1225
+ const srcArr = path.resolve(src).split(path.sep).filter((i) => i);
1226
+ const destArr = path.resolve(dest).split(path.sep).filter((i) => i);
1227
1227
  return srcArr.every((cur, i) => destArr[i] === cur);
1228
1228
  }
1229
1229
  function errMsg(src, dest, funcName) {
@@ -1277,7 +1277,7 @@ var require_copy = __commonJS({
1277
1277
  "node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
1278
1278
  "use strict";
1279
1279
  var fs3 = require_fs();
1280
- var path2 = require("path");
1280
+ var path = require("path");
1281
1281
  var { mkdirs } = require_mkdirs();
1282
1282
  var { pathExists: pathExists2 } = require_path_exists();
1283
1283
  var { utimesMillis } = require_utimes();
@@ -1301,7 +1301,7 @@ var require_copy = __commonJS({
1301
1301
  const include = await runFilter(src, dest, opts);
1302
1302
  if (!include)
1303
1303
  return;
1304
- const destParent = path2.dirname(dest);
1304
+ const destParent = path.dirname(dest);
1305
1305
  const dirExists = await pathExists2(destParent);
1306
1306
  if (!dirExists) {
1307
1307
  await mkdirs(destParent);
@@ -1361,8 +1361,8 @@ var require_copy = __commonJS({
1361
1361
  await fs3.mkdir(dest);
1362
1362
  }
1363
1363
  await asyncIteratorConcurrentProcess(await fs3.opendir(src), async (item) => {
1364
- const srcItem = path2.join(src, item.name);
1365
- const destItem = path2.join(dest, item.name);
1364
+ const srcItem = path.join(src, item.name);
1365
+ const destItem = path.join(dest, item.name);
1366
1366
  const include = await runFilter(srcItem, destItem, opts);
1367
1367
  if (include) {
1368
1368
  const { destStat: destStat2 } = await stat2.checkPaths(srcItem, destItem, "copy", opts);
@@ -1376,7 +1376,7 @@ var require_copy = __commonJS({
1376
1376
  async function onLink(destStat, src, dest, opts) {
1377
1377
  let resolvedSrc = await fs3.readlink(src);
1378
1378
  if (opts.dereference) {
1379
- resolvedSrc = path2.resolve(process.cwd(), resolvedSrc);
1379
+ resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
1380
1380
  }
1381
1381
  if (!destStat) {
1382
1382
  return fs3.symlink(resolvedSrc, dest);
@@ -1390,7 +1390,7 @@ var require_copy = __commonJS({
1390
1390
  throw e;
1391
1391
  }
1392
1392
  if (opts.dereference) {
1393
- resolvedDest = path2.resolve(process.cwd(), resolvedDest);
1393
+ resolvedDest = path.resolve(process.cwd(), resolvedDest);
1394
1394
  }
1395
1395
  if (resolvedSrc !== resolvedDest) {
1396
1396
  if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
@@ -1412,7 +1412,7 @@ var require_copy_sync = __commonJS({
1412
1412
  "node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module2) {
1413
1413
  "use strict";
1414
1414
  var fs3 = require_graceful_fs();
1415
- var path2 = require("path");
1415
+ var path = require("path");
1416
1416
  var mkdirsSync = require_mkdirs().mkdirsSync;
1417
1417
  var utimesMillisSync = require_utimes().utimesMillisSync;
1418
1418
  var stat2 = require_stat();
@@ -1434,7 +1434,7 @@ var require_copy_sync = __commonJS({
1434
1434
  stat2.checkParentPathsSync(src, srcStat, dest, "copy");
1435
1435
  if (opts.filter && !opts.filter(src, dest))
1436
1436
  return;
1437
- const destParent = path2.dirname(dest);
1437
+ const destParent = path.dirname(dest);
1438
1438
  if (!fs3.existsSync(destParent))
1439
1439
  mkdirsSync(destParent);
1440
1440
  return getStats(destStat, src, dest, opts);
@@ -1513,8 +1513,8 @@ var require_copy_sync = __commonJS({
1513
1513
  }
1514
1514
  }
1515
1515
  function copyDirItem(item, src, dest, opts) {
1516
- const srcItem = path2.join(src, item);
1517
- const destItem = path2.join(dest, item);
1516
+ const srcItem = path.join(src, item);
1517
+ const destItem = path.join(dest, item);
1518
1518
  if (opts.filter && !opts.filter(srcItem, destItem))
1519
1519
  return;
1520
1520
  const { destStat } = stat2.checkPathsSync(srcItem, destItem, "copy", opts);
@@ -1523,7 +1523,7 @@ var require_copy_sync = __commonJS({
1523
1523
  function onLink(destStat, src, dest, opts) {
1524
1524
  let resolvedSrc = fs3.readlinkSync(src);
1525
1525
  if (opts.dereference) {
1526
- resolvedSrc = path2.resolve(process.cwd(), resolvedSrc);
1526
+ resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
1527
1527
  }
1528
1528
  if (!destStat) {
1529
1529
  return fs3.symlinkSync(resolvedSrc, dest);
@@ -1537,7 +1537,7 @@ var require_copy_sync = __commonJS({
1537
1537
  throw err;
1538
1538
  }
1539
1539
  if (opts.dereference) {
1540
- resolvedDest = path2.resolve(process.cwd(), resolvedDest);
1540
+ resolvedDest = path.resolve(process.cwd(), resolvedDest);
1541
1541
  }
1542
1542
  if (resolvedSrc !== resolvedDest) {
1543
1543
  if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
@@ -1576,11 +1576,11 @@ var require_remove = __commonJS({
1576
1576
  "use strict";
1577
1577
  var fs3 = require_graceful_fs();
1578
1578
  var u = require_universalify().fromCallback;
1579
- function remove(path2, callback) {
1580
- fs3.rm(path2, { recursive: true, force: true }, callback);
1579
+ function remove(path, callback) {
1580
+ fs3.rm(path, { recursive: true, force: true }, callback);
1581
1581
  }
1582
- function removeSync(path2) {
1583
- fs3.rmSync(path2, { recursive: true, force: true });
1582
+ function removeSync(path) {
1583
+ fs3.rmSync(path, { recursive: true, force: true });
1584
1584
  }
1585
1585
  module2.exports = {
1586
1586
  remove: u(remove),
@@ -1595,7 +1595,7 @@ var require_empty = __commonJS({
1595
1595
  "use strict";
1596
1596
  var u = require_universalify().fromPromise;
1597
1597
  var fs3 = require_fs();
1598
- var path2 = require("path");
1598
+ var path = require("path");
1599
1599
  var mkdir = require_mkdirs();
1600
1600
  var remove = require_remove();
1601
1601
  var emptyDir = u(async function emptyDir2(dir) {
@@ -1605,7 +1605,7 @@ var require_empty = __commonJS({
1605
1605
  } catch {
1606
1606
  return mkdir.mkdirs(dir);
1607
1607
  }
1608
- return Promise.all(items.map((item) => remove.remove(path2.join(dir, item))));
1608
+ return Promise.all(items.map((item) => remove.remove(path.join(dir, item))));
1609
1609
  });
1610
1610
  function emptyDirSync(dir) {
1611
1611
  let items;
@@ -1615,7 +1615,7 @@ var require_empty = __commonJS({
1615
1615
  return mkdir.mkdirsSync(dir);
1616
1616
  }
1617
1617
  items.forEach((item) => {
1618
- item = path2.join(dir, item);
1618
+ item = path.join(dir, item);
1619
1619
  remove.removeSync(item);
1620
1620
  });
1621
1621
  }
@@ -1633,7 +1633,7 @@ var require_file = __commonJS({
1633
1633
  "node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
1634
1634
  "use strict";
1635
1635
  var u = require_universalify().fromPromise;
1636
- var path2 = require("path");
1636
+ var path = require("path");
1637
1637
  var fs3 = require_fs();
1638
1638
  var mkdir = require_mkdirs();
1639
1639
  async function createFile(file) {
@@ -1644,7 +1644,7 @@ var require_file = __commonJS({
1644
1644
  }
1645
1645
  if (stats && stats.isFile())
1646
1646
  return;
1647
- const dir = path2.dirname(file);
1647
+ const dir = path.dirname(file);
1648
1648
  let dirStats = null;
1649
1649
  try {
1650
1650
  dirStats = await fs3.stat(dir);
@@ -1671,7 +1671,7 @@ var require_file = __commonJS({
1671
1671
  }
1672
1672
  if (stats && stats.isFile())
1673
1673
  return;
1674
- const dir = path2.dirname(file);
1674
+ const dir = path.dirname(file);
1675
1675
  try {
1676
1676
  if (!fs3.statSync(dir).isDirectory()) {
1677
1677
  fs3.readdirSync(dir);
@@ -1696,7 +1696,7 @@ var require_link = __commonJS({
1696
1696
  "node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
1697
1697
  "use strict";
1698
1698
  var u = require_universalify().fromPromise;
1699
- var path2 = require("path");
1699
+ var path = require("path");
1700
1700
  var fs3 = require_fs();
1701
1701
  var mkdir = require_mkdirs();
1702
1702
  var { pathExists: pathExists2 } = require_path_exists();
@@ -1716,7 +1716,7 @@ var require_link = __commonJS({
1716
1716
  }
1717
1717
  if (dstStat && areIdentical(srcStat, dstStat))
1718
1718
  return;
1719
- const dir = path2.dirname(dstpath);
1719
+ const dir = path.dirname(dstpath);
1720
1720
  const dirExists = await pathExists2(dir);
1721
1721
  if (!dirExists) {
1722
1722
  await mkdir.mkdirs(dir);
@@ -1737,7 +1737,7 @@ var require_link = __commonJS({
1737
1737
  err.message = err.message.replace("lstat", "ensureLink");
1738
1738
  throw err;
1739
1739
  }
1740
- const dir = path2.dirname(dstpath);
1740
+ const dir = path.dirname(dstpath);
1741
1741
  const dirExists = fs3.existsSync(dir);
1742
1742
  if (dirExists)
1743
1743
  return fs3.linkSync(srcpath, dstpath);
@@ -1755,12 +1755,12 @@ var require_link = __commonJS({
1755
1755
  var require_symlink_paths = __commonJS({
1756
1756
  "node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
1757
1757
  "use strict";
1758
- var path2 = require("path");
1758
+ var path = require("path");
1759
1759
  var fs3 = require_fs();
1760
1760
  var { pathExists: pathExists2 } = require_path_exists();
1761
1761
  var u = require_universalify().fromPromise;
1762
1762
  async function symlinkPaths(srcpath, dstpath) {
1763
- if (path2.isAbsolute(srcpath)) {
1763
+ if (path.isAbsolute(srcpath)) {
1764
1764
  try {
1765
1765
  await fs3.lstat(srcpath);
1766
1766
  } catch (err) {
@@ -1772,8 +1772,8 @@ var require_symlink_paths = __commonJS({
1772
1772
  toDst: srcpath
1773
1773
  };
1774
1774
  }
1775
- const dstdir = path2.dirname(dstpath);
1776
- const relativeToDst = path2.join(dstdir, srcpath);
1775
+ const dstdir = path.dirname(dstpath);
1776
+ const relativeToDst = path.join(dstdir, srcpath);
1777
1777
  const exists = await pathExists2(relativeToDst);
1778
1778
  if (exists) {
1779
1779
  return {
@@ -1789,11 +1789,11 @@ var require_symlink_paths = __commonJS({
1789
1789
  }
1790
1790
  return {
1791
1791
  toCwd: srcpath,
1792
- toDst: path2.relative(dstdir, srcpath)
1792
+ toDst: path.relative(dstdir, srcpath)
1793
1793
  };
1794
1794
  }
1795
1795
  function symlinkPathsSync(srcpath, dstpath) {
1796
- if (path2.isAbsolute(srcpath)) {
1796
+ if (path.isAbsolute(srcpath)) {
1797
1797
  const exists2 = fs3.existsSync(srcpath);
1798
1798
  if (!exists2)
1799
1799
  throw new Error("absolute srcpath does not exist");
@@ -1802,8 +1802,8 @@ var require_symlink_paths = __commonJS({
1802
1802
  toDst: srcpath
1803
1803
  };
1804
1804
  }
1805
- const dstdir = path2.dirname(dstpath);
1806
- const relativeToDst = path2.join(dstdir, srcpath);
1805
+ const dstdir = path.dirname(dstpath);
1806
+ const relativeToDst = path.join(dstdir, srcpath);
1807
1807
  const exists = fs3.existsSync(relativeToDst);
1808
1808
  if (exists) {
1809
1809
  return {
@@ -1816,7 +1816,7 @@ var require_symlink_paths = __commonJS({
1816
1816
  throw new Error("relative srcpath does not exist");
1817
1817
  return {
1818
1818
  toCwd: srcpath,
1819
- toDst: path2.relative(dstdir, srcpath)
1819
+ toDst: path.relative(dstdir, srcpath)
1820
1820
  };
1821
1821
  }
1822
1822
  module2.exports = {
@@ -1866,7 +1866,7 @@ var require_symlink = __commonJS({
1866
1866
  "node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
1867
1867
  "use strict";
1868
1868
  var u = require_universalify().fromPromise;
1869
- var path2 = require("path");
1869
+ var path = require("path");
1870
1870
  var fs3 = require_fs();
1871
1871
  var { mkdirs, mkdirsSync } = require_mkdirs();
1872
1872
  var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
@@ -1890,7 +1890,7 @@ var require_symlink = __commonJS({
1890
1890
  const relative3 = await symlinkPaths(srcpath, dstpath);
1891
1891
  srcpath = relative3.toDst;
1892
1892
  const toType = await symlinkType(relative3.toCwd, type);
1893
- const dir = path2.dirname(dstpath);
1893
+ const dir = path.dirname(dstpath);
1894
1894
  if (!await pathExists2(dir)) {
1895
1895
  await mkdirs(dir);
1896
1896
  }
@@ -1911,7 +1911,7 @@ var require_symlink = __commonJS({
1911
1911
  const relative3 = symlinkPathsSync(srcpath, dstpath);
1912
1912
  srcpath = relative3.toDst;
1913
1913
  type = symlinkTypeSync(relative3.toCwd, type);
1914
- const dir = path2.dirname(dstpath);
1914
+ const dir = path.dirname(dstpath);
1915
1915
  const exists = fs3.existsSync(dir);
1916
1916
  if (exists)
1917
1917
  return fs3.symlinkSync(srcpath, dstpath, type);
@@ -2062,18 +2062,18 @@ var require_output_file = __commonJS({
2062
2062
  "use strict";
2063
2063
  var u = require_universalify().fromPromise;
2064
2064
  var fs3 = require_fs();
2065
- var path2 = require("path");
2065
+ var path = require("path");
2066
2066
  var mkdir = require_mkdirs();
2067
2067
  var pathExists2 = require_path_exists().pathExists;
2068
2068
  async function outputFile(file, data, encoding = "utf-8") {
2069
- const dir = path2.dirname(file);
2069
+ const dir = path.dirname(file);
2070
2070
  if (!await pathExists2(dir)) {
2071
2071
  await mkdir.mkdirs(dir);
2072
2072
  }
2073
2073
  return fs3.writeFile(file, data, encoding);
2074
2074
  }
2075
2075
  function outputFileSync(file, ...args) {
2076
- const dir = path2.dirname(file);
2076
+ const dir = path.dirname(file);
2077
2077
  if (!fs3.existsSync(dir)) {
2078
2078
  mkdir.mkdirsSync(dir);
2079
2079
  }
@@ -2137,7 +2137,7 @@ var require_move = __commonJS({
2137
2137
  "node_modules/fs-extra/lib/move/move.js"(exports, module2) {
2138
2138
  "use strict";
2139
2139
  var fs3 = require_fs();
2140
- var path2 = require("path");
2140
+ var path = require("path");
2141
2141
  var { copy } = require_copy2();
2142
2142
  var { remove } = require_remove();
2143
2143
  var { mkdirp } = require_mkdirs();
@@ -2147,8 +2147,8 @@ var require_move = __commonJS({
2147
2147
  const overwrite = opts.overwrite || opts.clobber || false;
2148
2148
  const { srcStat, isChangingCase = false } = await stat2.checkPaths(src, dest, "move", opts);
2149
2149
  await stat2.checkParentPaths(src, srcStat, dest, "move");
2150
- const destParent = path2.dirname(dest);
2151
- const parsedParentPath = path2.parse(destParent);
2150
+ const destParent = path.dirname(dest);
2151
+ const parsedParentPath = path.parse(destParent);
2152
2152
  if (parsedParentPath.root !== destParent) {
2153
2153
  await mkdirp(destParent);
2154
2154
  }
@@ -2189,7 +2189,7 @@ var require_move_sync = __commonJS({
2189
2189
  "node_modules/fs-extra/lib/move/move-sync.js"(exports, module2) {
2190
2190
  "use strict";
2191
2191
  var fs3 = require_graceful_fs();
2192
- var path2 = require("path");
2192
+ var path = require("path");
2193
2193
  var copySync = require_copy2().copySync;
2194
2194
  var removeSync = require_remove().removeSync;
2195
2195
  var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -2200,12 +2200,12 @@ var require_move_sync = __commonJS({
2200
2200
  const { srcStat, isChangingCase = false } = stat2.checkPathsSync(src, dest, "move", opts);
2201
2201
  stat2.checkParentPathsSync(src, srcStat, dest, "move");
2202
2202
  if (!isParentRoot(dest))
2203
- mkdirpSync(path2.dirname(dest));
2203
+ mkdirpSync(path.dirname(dest));
2204
2204
  return doRename(src, dest, overwrite, isChangingCase);
2205
2205
  }
2206
2206
  function isParentRoot(dest) {
2207
- const parent = path2.dirname(dest);
2208
- const parsedPath = path2.parse(parent);
2207
+ const parent = path.dirname(dest);
2208
+ const parsedPath = path.parse(parent);
2209
2209
  return parsedPath.root === parent;
2210
2210
  }
2211
2211
  function doRename(src, dest, overwrite, isChangingCase) {
@@ -2510,12 +2510,12 @@ var _lazyMatch = () => {
2510
2510
  return __lib__.default || __lib__;
2511
2511
  };
2512
2512
  var _match;
2513
- var zeptomatch = (path2, pattern) => {
2513
+ var zeptomatch = (path, pattern) => {
2514
2514
  if (!_match) {
2515
2515
  _match = _lazyMatch();
2516
2516
  _lazyMatch = null;
2517
2517
  }
2518
- return _match(path2, pattern);
2518
+ return _match(path, pattern);
2519
2519
  };
2520
2520
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
2521
2521
  function normalizeWindowsPath(input = "") {
@@ -2531,55 +2531,55 @@ var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
2531
2531
  var _EXTNAME_RE = /.(\.[^./]+|\.)$/;
2532
2532
  var _PATH_ROOT_RE = /^[/\\]|^[a-zA-Z]:[/\\]/;
2533
2533
  var sep = "/";
2534
- var normalize = function(path2) {
2535
- if (path2.length === 0) {
2534
+ var normalize = function(path) {
2535
+ if (path.length === 0) {
2536
2536
  return ".";
2537
2537
  }
2538
- path2 = normalizeWindowsPath(path2);
2539
- const isUNCPath = path2.match(_UNC_REGEX);
2540
- const isPathAbsolute = isAbsolute(path2);
2541
- const trailingSeparator = path2[path2.length - 1] === "/";
2542
- path2 = normalizeString(path2, !isPathAbsolute);
2543
- if (path2.length === 0) {
2538
+ path = normalizeWindowsPath(path);
2539
+ const isUNCPath = path.match(_UNC_REGEX);
2540
+ const isPathAbsolute = isAbsolute(path);
2541
+ const trailingSeparator = path[path.length - 1] === "/";
2542
+ path = normalizeString(path, !isPathAbsolute);
2543
+ if (path.length === 0) {
2544
2544
  if (isPathAbsolute) {
2545
2545
  return "/";
2546
2546
  }
2547
2547
  return trailingSeparator ? "./" : ".";
2548
2548
  }
2549
2549
  if (trailingSeparator) {
2550
- path2 += "/";
2550
+ path += "/";
2551
2551
  }
2552
- if (_DRIVE_LETTER_RE.test(path2)) {
2553
- path2 += "/";
2552
+ if (_DRIVE_LETTER_RE.test(path)) {
2553
+ path += "/";
2554
2554
  }
2555
2555
  if (isUNCPath) {
2556
2556
  if (!isPathAbsolute) {
2557
- return `//./${path2}`;
2557
+ return `//./${path}`;
2558
2558
  }
2559
- return `//${path2}`;
2559
+ return `//${path}`;
2560
2560
  }
2561
- return isPathAbsolute && !isAbsolute(path2) ? `/${path2}` : path2;
2561
+ return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
2562
2562
  };
2563
2563
  var join = function(...segments) {
2564
- let path2 = "";
2564
+ let path = "";
2565
2565
  for (const seg of segments) {
2566
2566
  if (!seg) {
2567
2567
  continue;
2568
2568
  }
2569
- if (path2.length > 0) {
2570
- const pathTrailing = path2[path2.length - 1] === "/";
2569
+ if (path.length > 0) {
2570
+ const pathTrailing = path[path.length - 1] === "/";
2571
2571
  const segLeading = seg[0] === "/";
2572
2572
  const both = pathTrailing && segLeading;
2573
2573
  if (both) {
2574
- path2 += seg.slice(1);
2574
+ path += seg.slice(1);
2575
2575
  } else {
2576
- path2 += pathTrailing || segLeading ? seg : `/${seg}`;
2576
+ path += pathTrailing || segLeading ? seg : `/${seg}`;
2577
2577
  }
2578
2578
  } else {
2579
- path2 += seg;
2579
+ path += seg;
2580
2580
  }
2581
2581
  }
2582
- return normalize(path2);
2582
+ return normalize(path);
2583
2583
  };
2584
2584
  function cwd() {
2585
2585
  if (typeof process !== "undefined" && typeof process.cwd === "function") {
@@ -2592,12 +2592,12 @@ var resolve = function(...arguments_) {
2592
2592
  let resolvedPath = "";
2593
2593
  let resolvedAbsolute = false;
2594
2594
  for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
2595
- const path2 = index >= 0 ? arguments_[index] : cwd();
2596
- if (!path2 || path2.length === 0) {
2595
+ const path = index >= 0 ? arguments_[index] : cwd();
2596
+ if (!path || path.length === 0) {
2597
2597
  continue;
2598
2598
  }
2599
- resolvedPath = `${path2}/${resolvedPath}`;
2600
- resolvedAbsolute = isAbsolute(path2);
2599
+ resolvedPath = `${path}/${resolvedPath}`;
2600
+ resolvedAbsolute = isAbsolute(path);
2601
2601
  }
2602
2602
  resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
2603
2603
  if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
@@ -2605,15 +2605,15 @@ var resolve = function(...arguments_) {
2605
2605
  }
2606
2606
  return resolvedPath.length > 0 ? resolvedPath : ".";
2607
2607
  };
2608
- function normalizeString(path2, allowAboveRoot) {
2608
+ function normalizeString(path, allowAboveRoot) {
2609
2609
  let res = "";
2610
2610
  let lastSegmentLength = 0;
2611
2611
  let lastSlash = -1;
2612
2612
  let dots = 0;
2613
2613
  let char = null;
2614
- for (let index = 0; index <= path2.length; ++index) {
2615
- if (index < path2.length) {
2616
- char = path2[index];
2614
+ for (let index = 0; index <= path.length; ++index) {
2615
+ if (index < path.length) {
2616
+ char = path[index];
2617
2617
  } else if (char === "/") {
2618
2618
  break;
2619
2619
  } else {
@@ -2650,9 +2650,9 @@ function normalizeString(path2, allowAboveRoot) {
2650
2650
  }
2651
2651
  } else {
2652
2652
  if (res.length > 0) {
2653
- res += `/${path2.slice(lastSlash + 1, index)}`;
2653
+ res += `/${path.slice(lastSlash + 1, index)}`;
2654
2654
  } else {
2655
- res = path2.slice(lastSlash + 1, index);
2655
+ res = path.slice(lastSlash + 1, index);
2656
2656
  }
2657
2657
  lastSegmentLength = index - lastSlash - 1;
2658
2658
  }
@@ -2734,8 +2734,8 @@ var parse = function(p) {
2734
2734
  name: base.slice(0, base.length - extension.length)
2735
2735
  };
2736
2736
  };
2737
- var matchesGlob = (path2, pattern) => {
2738
- return zeptomatch(pattern, normalize(path2));
2737
+ var matchesGlob = (path, pattern) => {
2738
+ return zeptomatch(pattern, normalize(path));
2739
2739
  };
2740
2740
  var _path = {
2741
2741
  __proto__: null,
@@ -2779,8 +2779,6 @@ var import_fs4 = __toESM(require("fs"), 1);
2779
2779
 
2780
2780
  // node_modules/@rg-dev/stdlib/lib/node-env.js
2781
2781
  var fs = __toESM(require_lib(), 1);
2782
- var import_os = __toESM(require("os"), 1);
2783
- var import_path = __toESM(require("path"), 1);
2784
2782
  var __create2 = Object.create;
2785
2783
  var __defProp2 = Object.defineProperty;
2786
2784
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -2965,26 +2963,6 @@ var require_command_exists2 = __commonJS2({
2965
2963
  }
2966
2964
  });
2967
2965
  var import_command_exists = __toESM2(require_command_exists2(), 1);
2968
- function createTempFilePath(ext) {
2969
- if (typeof ext == "string") {
2970
- if (ext.startsWith(".")) {
2971
- ext = ext.slice(1);
2972
- }
2973
- } else {
2974
- ext = void 0;
2975
- }
2976
- const name = `temp_file_${process.pid}_${Date.now()}_${Math.random().toString(36).slice(2)}${ext ? `.${ext}` : ""}`;
2977
- const fullPath = import_path.default.join(import_os.default.tmpdir(), name);
2978
- return {
2979
- getName: () => fullPath,
2980
- cleanUp: () => {
2981
- try {
2982
- fs.unlinkSync(fullPath);
2983
- } catch (e) {
2984
- }
2985
- }
2986
- };
2987
- }
2988
2966
  async function checkIfFileExistsOrThrow(thePath) {
2989
2967
  if (!thePath)
2990
2968
  throw "path is empty";
@@ -3711,19 +3689,19 @@ function ui(opts) {
3711
3689
  }
3712
3690
 
3713
3691
  // node_modules/escalade/sync/index.mjs
3714
- var import_path2 = require("path");
3692
+ var import_path = require("path");
3715
3693
  var import_fs = require("fs");
3716
3694
  function sync_default(start, callback) {
3717
- let dir = (0, import_path2.resolve)(".", start);
3695
+ let dir = (0, import_path.resolve)(".", start);
3718
3696
  let tmp, stats = (0, import_fs.statSync)(dir);
3719
3697
  if (!stats.isDirectory()) {
3720
- dir = (0, import_path2.dirname)(dir);
3698
+ dir = (0, import_path.dirname)(dir);
3721
3699
  }
3722
3700
  while (true) {
3723
3701
  tmp = callback(dir, (0, import_fs.readdirSync)(dir));
3724
3702
  if (tmp)
3725
- return (0, import_path2.resolve)(dir, tmp);
3726
- dir = (0, import_path2.dirname)(tmp = dir);
3703
+ return (0, import_path.resolve)(dir, tmp);
3704
+ dir = (0, import_path.dirname)(tmp = dir);
3727
3705
  if (tmp === dir)
3728
3706
  break;
3729
3707
  }
@@ -3735,7 +3713,7 @@ var import_url = require("url");
3735
3713
 
3736
3714
  // node_modules/yargs-parser/build/lib/index.js
3737
3715
  var import_util = require("util");
3738
- var import_path3 = require("path");
3716
+ var import_path2 = require("path");
3739
3717
 
3740
3718
  // node_modules/yargs-parser/build/lib/string-utils.js
3741
3719
  function camelCase(str) {
@@ -4694,13 +4672,13 @@ var parser = new YargsParser({
4694
4672
  return env;
4695
4673
  },
4696
4674
  format: import_util.format,
4697
- normalize: import_path3.normalize,
4698
- resolve: import_path3.resolve,
4699
- require: (path2) => {
4675
+ normalize: import_path2.normalize,
4676
+ resolve: import_path2.resolve,
4677
+ require: (path) => {
4700
4678
  if (typeof require2 !== "undefined") {
4701
- return require2(path2);
4702
- } else if (path2.match(/\.json$/)) {
4703
- return JSON.parse((0, import_fs2.readFileSync)(path2, "utf8"));
4679
+ return require2(path);
4680
+ } else if (path.match(/\.json$/)) {
4681
+ return JSON.parse((0, import_fs2.readFileSync)(path, "utf8"));
4704
4682
  } else {
4705
4683
  throw Error("only .json config files are supported in ESM");
4706
4684
  }
@@ -4719,7 +4697,7 @@ yargsParser.looksLikeNumber = looksLikeNumber;
4719
4697
  var lib_default = yargsParser;
4720
4698
 
4721
4699
  // node_modules/yargs/lib/platform-shims/esm.mjs
4722
- var import_path5 = require("path");
4700
+ var import_path4 = require("path");
4723
4701
 
4724
4702
  // node_modules/yargs/build/lib/utils/process-argv.js
4725
4703
  function getProcessArgvBinIndex() {
@@ -4789,14 +4767,14 @@ function stringWidth2(string, options = {}) {
4789
4767
  // node_modules/y18n/build/lib/platform-shims/node.js
4790
4768
  var import_fs3 = require("fs");
4791
4769
  var import_util2 = require("util");
4792
- var import_path4 = require("path");
4770
+ var import_path3 = require("path");
4793
4771
  var node_default = {
4794
4772
  fs: {
4795
4773
  readFileSync: import_fs3.readFileSync,
4796
4774
  writeFile: import_fs3.writeFile
4797
4775
  },
4798
4776
  format: import_util2.format,
4799
- resolve: import_path4.resolve,
4777
+ resolve: import_path3.resolve,
4800
4778
  exists: (file) => {
4801
4779
  try {
4802
4780
  return (0, import_fs3.statSync)(file).isFile();
@@ -4995,12 +4973,12 @@ var esm_default = {
4995
4973
  mainFilename: mainFilename || process.cwd(),
4996
4974
  Parser: lib_default,
4997
4975
  path: {
4998
- basename: import_path5.basename,
4999
- dirname: import_path5.dirname,
5000
- extname: import_path5.extname,
5001
- relative: import_path5.relative,
5002
- resolve: import_path5.resolve,
5003
- join: import_path5.join
4976
+ basename: import_path4.basename,
4977
+ dirname: import_path4.dirname,
4978
+ extname: import_path4.extname,
4979
+ relative: import_path4.relative,
4980
+ resolve: import_path4.resolve,
4981
+ join: import_path4.join
5004
4982
  },
5005
4983
  process: {
5006
4984
  argv: () => process.argv,
@@ -5022,7 +5000,7 @@ var esm_default = {
5022
5000
  },
5023
5001
  stringWidth: stringWidth2,
5024
5002
  y18n: y18n_default({
5025
- directory: (0, import_path5.resolve)(__dirname, "../../../locales"),
5003
+ directory: (0, import_path4.resolve)(__dirname, "../../../locales"),
5026
5004
  updateFiles: false
5027
5005
  })
5028
5006
  };
@@ -8349,24 +8327,6 @@ var yargs_default = Yargs;
8349
8327
 
8350
8328
  // src/index.ts
8351
8329
  var import_dts_bundle_generator = require("dts-bundle-generator");
8352
- var tsConfigString = `
8353
-
8354
- {
8355
- "compilerOptions": {
8356
- "module": "esnext",
8357
- "allowSyntheticDefaultImports": true,
8358
- "esModuleInterop": true,
8359
- "skipLibCheck": true,
8360
- "target": "esnext",
8361
- "outDir": "dist",
8362
- "strict": false,
8363
- "stripInternal": true,
8364
- "moduleResolution": "node"
8365
- },
8366
-
8367
- }
8368
-
8369
- `;
8370
8330
  async function lib() {
8371
8331
  const conf = yargs_default().option(
8372
8332
  "input",
@@ -8396,32 +8356,33 @@ async function lib() {
8396
8356
  targetFile = posix.resolve(targetFile);
8397
8357
  await checkIfFileExistsOrThrow(targetFile);
8398
8358
  targetFile = posix.normalize(targetFile);
8399
- const temptsCnofig = createTempFilePath("json");
8400
- import_fs4.default.writeFileSync(temptsCnofig.getName(), tsConfigString);
8401
8359
  try {
8402
8360
  const out = (0, import_dts_bundle_generator.generateDtsBundle)(
8403
8361
  [
8404
8362
  {
8405
8363
  filePath: targetFile,
8364
+ failOnClass: false,
8406
8365
  libraries: {
8407
8366
  inlinedLibraries: conf.inline || []
8408
8367
  },
8409
8368
  output: {
8369
+ respectPreserveConstEnum: true,
8370
+ exportReferencedTypes: true,
8410
8371
  inlineDeclareExternals: true,
8411
8372
  inlineDeclareGlobals: true
8412
8373
  }
8413
8374
  }
8414
8375
  ],
8415
8376
  {
8416
- preferredConfigPath: temptsCnofig.getName()
8377
+ followSymlinks: true
8417
8378
  }
8418
8379
  );
8419
8380
  const outPath = conf.out || posix.join(posix.dirname(conf.input), "inlined-types.d.ts");
8420
- import_fs4.default.writeFileSync(outPath, out[0]);
8381
+ const source = out[0];
8382
+ import_fs4.default.writeFileSync(outPath, source, "utf-8");
8421
8383
  } catch (e) {
8422
8384
  throw e;
8423
8385
  } finally {
8424
- temptsCnofig.cleanUp();
8425
8386
  }
8426
8387
  }
8427
8388
  lib();
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@rg-dev/dts-inline",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "bin": "compiled/index.cjs",
6
6
  "scripts": {
7
7
  "test": "tsup && node dist/index.cjs",
8
- "build": "tsup"
8
+ "build": "node build.cjs && es-helper ."
9
9
  },
10
10
  "author": "",
11
11
  "license": "ISC",
@@ -17,10 +17,10 @@
17
17
  "types": "./dist/index.d.ts",
18
18
  "type": "module",
19
19
  "exports": {
20
- ".": {
21
- "import": "./dist/index.js",
22
- "require": "./dist/index.cjs"
23
- }
20
+ ".": {
21
+ "import": "./dist/index.js",
22
+ "require": "./dist/index.cjs"
23
+ }
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"
@@ -32,7 +32,7 @@
32
32
  "builtin-modules": "^3.3.0",
33
33
  "execa": "^8.0.1",
34
34
  "pathe": "^2.0.3",
35
- "typescript": "^5.4.5",
35
+ "typescript": "^5.9.3",
36
36
  "yargs": "^18.0.0"
37
37
  },
38
38
  "dependencies": {