@modern-js/repo-generator 0.0.0-next-20241015072043 → 0.0.0-next-20241015085202
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +422 -401
- package/package.json +4 -3
- package/src/index.ts +9 -0
package/dist/index.js
CHANGED
|
@@ -999,15 +999,15 @@ var require_route = __commonJS({
|
|
|
999
999
|
};
|
|
1000
1000
|
}
|
|
1001
1001
|
function wrapConversion(toModel, graph) {
|
|
1002
|
-
const
|
|
1002
|
+
const path9 = [graph[toModel].parent, toModel];
|
|
1003
1003
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
1004
1004
|
let cur = graph[toModel].parent;
|
|
1005
1005
|
while (graph[cur].parent) {
|
|
1006
|
-
|
|
1006
|
+
path9.unshift(graph[cur].parent);
|
|
1007
1007
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
1008
1008
|
cur = graph[cur].parent;
|
|
1009
1009
|
}
|
|
1010
|
-
fn.conversion =
|
|
1010
|
+
fn.conversion = path9;
|
|
1011
1011
|
return fn;
|
|
1012
1012
|
}
|
|
1013
1013
|
module2.exports = function(fromModel) {
|
|
@@ -2956,7 +2956,7 @@ var require_minimatch = __commonJS({
|
|
|
2956
2956
|
"use strict";
|
|
2957
2957
|
module2.exports = minimatch;
|
|
2958
2958
|
minimatch.Minimatch = Minimatch;
|
|
2959
|
-
var
|
|
2959
|
+
var path9 = function() {
|
|
2960
2960
|
try {
|
|
2961
2961
|
return require("path");
|
|
2962
2962
|
} catch (e) {
|
|
@@ -2964,7 +2964,7 @@ var require_minimatch = __commonJS({
|
|
|
2964
2964
|
}() || {
|
|
2965
2965
|
sep: "/"
|
|
2966
2966
|
};
|
|
2967
|
-
minimatch.sep =
|
|
2967
|
+
minimatch.sep = path9.sep;
|
|
2968
2968
|
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
2969
2969
|
var expand = require_brace_expansion();
|
|
2970
2970
|
var plTypes = {
|
|
@@ -3055,8 +3055,8 @@ var require_minimatch = __commonJS({
|
|
|
3055
3055
|
if (!options)
|
|
3056
3056
|
options = {};
|
|
3057
3057
|
pattern = pattern.trim();
|
|
3058
|
-
if (!options.allowWindowsEscape &&
|
|
3059
|
-
pattern = pattern.split(
|
|
3058
|
+
if (!options.allowWindowsEscape && path9.sep !== "/") {
|
|
3059
|
+
pattern = pattern.split(path9.sep).join("/");
|
|
3060
3060
|
}
|
|
3061
3061
|
this.options = options;
|
|
3062
3062
|
this.set = [];
|
|
@@ -3433,8 +3433,8 @@ var require_minimatch = __commonJS({
|
|
|
3433
3433
|
if (f === "/" && partial)
|
|
3434
3434
|
return true;
|
|
3435
3435
|
var options = this.options;
|
|
3436
|
-
if (
|
|
3437
|
-
f = f.split(
|
|
3436
|
+
if (path9.sep !== "/") {
|
|
3437
|
+
f = f.split(path9.sep).join("/");
|
|
3438
3438
|
}
|
|
3439
3439
|
f = f.split(slashSplit);
|
|
3440
3440
|
this.debug(this.pattern, "split", f);
|
|
@@ -3594,12 +3594,12 @@ var require_inherits = __commonJS({
|
|
|
3594
3594
|
var require_path_is_absolute = __commonJS({
|
|
3595
3595
|
"../../../../node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(exports, module2) {
|
|
3596
3596
|
"use strict";
|
|
3597
|
-
function posix(
|
|
3598
|
-
return
|
|
3597
|
+
function posix(path9) {
|
|
3598
|
+
return path9.charAt(0) === "/";
|
|
3599
3599
|
}
|
|
3600
|
-
function win32(
|
|
3600
|
+
function win32(path9) {
|
|
3601
3601
|
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
|
3602
|
-
var result = splitDeviceRe.exec(
|
|
3602
|
+
var result = splitDeviceRe.exec(path9);
|
|
3603
3603
|
var device = result[1] || "";
|
|
3604
3604
|
var isUnc = Boolean(device && device.charAt(1) !== ":");
|
|
3605
3605
|
return Boolean(result[2] || isUnc);
|
|
@@ -3625,7 +3625,7 @@ var require_common2 = __commonJS({
|
|
|
3625
3625
|
return Object.prototype.hasOwnProperty.call(obj, field);
|
|
3626
3626
|
}
|
|
3627
3627
|
var fs2 = require("fs");
|
|
3628
|
-
var
|
|
3628
|
+
var path9 = require("path");
|
|
3629
3629
|
var minimatch = require_minimatch();
|
|
3630
3630
|
var isAbsolute = require_path_is_absolute();
|
|
3631
3631
|
var Minimatch = minimatch.Minimatch;
|
|
@@ -3690,11 +3690,11 @@ var require_common2 = __commonJS({
|
|
|
3690
3690
|
if (!ownProp(options, "cwd"))
|
|
3691
3691
|
self2.cwd = cwd;
|
|
3692
3692
|
else {
|
|
3693
|
-
self2.cwd =
|
|
3693
|
+
self2.cwd = path9.resolve(options.cwd);
|
|
3694
3694
|
self2.changedCwd = self2.cwd !== cwd;
|
|
3695
3695
|
}
|
|
3696
|
-
self2.root = options.root ||
|
|
3697
|
-
self2.root =
|
|
3696
|
+
self2.root = options.root || path9.resolve(self2.cwd, "/");
|
|
3697
|
+
self2.root = path9.resolve(self2.root);
|
|
3698
3698
|
if (process.platform === "win32")
|
|
3699
3699
|
self2.root = self2.root.replace(/\\/g, "/");
|
|
3700
3700
|
self2.cwdAbs = isAbsolute(self2.cwd) ? self2.cwd : makeAbs(self2, self2.cwd);
|
|
@@ -3775,30 +3775,30 @@ var require_common2 = __commonJS({
|
|
|
3775
3775
|
function makeAbs(self2, f) {
|
|
3776
3776
|
var abs = f;
|
|
3777
3777
|
if (f.charAt(0) === "/") {
|
|
3778
|
-
abs =
|
|
3778
|
+
abs = path9.join(self2.root, f);
|
|
3779
3779
|
} else if (isAbsolute(f) || f === "") {
|
|
3780
3780
|
abs = f;
|
|
3781
3781
|
} else if (self2.changedCwd) {
|
|
3782
|
-
abs =
|
|
3782
|
+
abs = path9.resolve(self2.cwd, f);
|
|
3783
3783
|
} else {
|
|
3784
|
-
abs =
|
|
3784
|
+
abs = path9.resolve(f);
|
|
3785
3785
|
}
|
|
3786
3786
|
if (process.platform === "win32")
|
|
3787
3787
|
abs = abs.replace(/\\/g, "/");
|
|
3788
3788
|
return abs;
|
|
3789
3789
|
}
|
|
3790
|
-
function isIgnored(self2,
|
|
3790
|
+
function isIgnored(self2, path10) {
|
|
3791
3791
|
if (!self2.ignore.length)
|
|
3792
3792
|
return false;
|
|
3793
3793
|
return self2.ignore.some(function(item) {
|
|
3794
|
-
return item.matcher.match(
|
|
3794
|
+
return item.matcher.match(path10) || !!(item.gmatcher && item.gmatcher.match(path10));
|
|
3795
3795
|
});
|
|
3796
3796
|
}
|
|
3797
|
-
function childrenIgnored(self2,
|
|
3797
|
+
function childrenIgnored(self2, path10) {
|
|
3798
3798
|
if (!self2.ignore.length)
|
|
3799
3799
|
return false;
|
|
3800
3800
|
return self2.ignore.some(function(item) {
|
|
3801
|
-
return !!(item.gmatcher && item.gmatcher.match(
|
|
3801
|
+
return !!(item.gmatcher && item.gmatcher.match(path10));
|
|
3802
3802
|
});
|
|
3803
3803
|
}
|
|
3804
3804
|
}
|
|
@@ -3815,7 +3815,7 @@ var require_sync = __commonJS({
|
|
|
3815
3815
|
var Minimatch = minimatch.Minimatch;
|
|
3816
3816
|
var Glob = require_glob().Glob;
|
|
3817
3817
|
var util2 = require("util");
|
|
3818
|
-
var
|
|
3818
|
+
var path9 = require("path");
|
|
3819
3819
|
var assert = require("assert");
|
|
3820
3820
|
var isAbsolute = require_path_is_absolute();
|
|
3821
3821
|
var common = require_common2();
|
|
@@ -3941,7 +3941,7 @@ var require_sync = __commonJS({
|
|
|
3941
3941
|
e = prefix + e;
|
|
3942
3942
|
}
|
|
3943
3943
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
3944
|
-
e =
|
|
3944
|
+
e = path9.join(this.root, e);
|
|
3945
3945
|
}
|
|
3946
3946
|
this._emitMatch(index, e);
|
|
3947
3947
|
}
|
|
@@ -4090,9 +4090,9 @@ var require_sync = __commonJS({
|
|
|
4090
4090
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
4091
4091
|
var trail = /[\/\\]$/.test(prefix);
|
|
4092
4092
|
if (prefix.charAt(0) === "/") {
|
|
4093
|
-
prefix =
|
|
4093
|
+
prefix = path9.join(this.root, prefix);
|
|
4094
4094
|
} else {
|
|
4095
|
-
prefix =
|
|
4095
|
+
prefix = path9.resolve(this.root, prefix);
|
|
4096
4096
|
if (trail)
|
|
4097
4097
|
prefix += "/";
|
|
4098
4098
|
}
|
|
@@ -4291,7 +4291,7 @@ var require_glob = __commonJS({
|
|
|
4291
4291
|
var Minimatch = minimatch.Minimatch;
|
|
4292
4292
|
var inherits2 = require_inherits();
|
|
4293
4293
|
var EE = require("events").EventEmitter;
|
|
4294
|
-
var
|
|
4294
|
+
var path9 = require("path");
|
|
4295
4295
|
var assert = require("assert");
|
|
4296
4296
|
var isAbsolute = require_path_is_absolute();
|
|
4297
4297
|
var globSync = require_sync();
|
|
@@ -4572,7 +4572,7 @@ var require_glob = __commonJS({
|
|
|
4572
4572
|
e = prefix + e;
|
|
4573
4573
|
}
|
|
4574
4574
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
4575
|
-
e =
|
|
4575
|
+
e = path9.join(this.root, e);
|
|
4576
4576
|
}
|
|
4577
4577
|
this._emitMatch(index, e);
|
|
4578
4578
|
}
|
|
@@ -4759,9 +4759,9 @@ var require_glob = __commonJS({
|
|
|
4759
4759
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
4760
4760
|
var trail = /[\/\\]$/.test(prefix);
|
|
4761
4761
|
if (prefix.charAt(0) === "/") {
|
|
4762
|
-
prefix =
|
|
4762
|
+
prefix = path9.join(this.root, prefix);
|
|
4763
4763
|
} else {
|
|
4764
|
-
prefix =
|
|
4764
|
+
prefix = path9.resolve(this.root, prefix);
|
|
4765
4765
|
if (trail)
|
|
4766
4766
|
prefix += "/";
|
|
4767
4767
|
}
|
|
@@ -4920,7 +4920,7 @@ var require_polyfills = __commonJS({
|
|
|
4920
4920
|
fs2.fstatSync = statFixSync(fs2.fstatSync);
|
|
4921
4921
|
fs2.lstatSync = statFixSync(fs2.lstatSync);
|
|
4922
4922
|
if (fs2.chmod && !fs2.lchmod) {
|
|
4923
|
-
fs2.lchmod = function(
|
|
4923
|
+
fs2.lchmod = function(path9, mode, cb) {
|
|
4924
4924
|
if (cb)
|
|
4925
4925
|
process.nextTick(cb);
|
|
4926
4926
|
};
|
|
@@ -4928,7 +4928,7 @@ var require_polyfills = __commonJS({
|
|
|
4928
4928
|
};
|
|
4929
4929
|
}
|
|
4930
4930
|
if (fs2.chown && !fs2.lchown) {
|
|
4931
|
-
fs2.lchown = function(
|
|
4931
|
+
fs2.lchown = function(path9, uid, gid, cb) {
|
|
4932
4932
|
if (cb)
|
|
4933
4933
|
process.nextTick(cb);
|
|
4934
4934
|
};
|
|
@@ -4999,9 +4999,9 @@ var require_polyfills = __commonJS({
|
|
|
4999
4999
|
};
|
|
5000
5000
|
}(fs2.readSync);
|
|
5001
5001
|
function patchLchmod(fs3) {
|
|
5002
|
-
fs3.lchmod = function(
|
|
5002
|
+
fs3.lchmod = function(path9, mode, callback) {
|
|
5003
5003
|
fs3.open(
|
|
5004
|
-
|
|
5004
|
+
path9,
|
|
5005
5005
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
5006
5006
|
mode,
|
|
5007
5007
|
function(err, fd) {
|
|
@@ -5019,8 +5019,8 @@ var require_polyfills = __commonJS({
|
|
|
5019
5019
|
}
|
|
5020
5020
|
);
|
|
5021
5021
|
};
|
|
5022
|
-
fs3.lchmodSync = function(
|
|
5023
|
-
var fd = fs3.openSync(
|
|
5022
|
+
fs3.lchmodSync = function(path9, mode) {
|
|
5023
|
+
var fd = fs3.openSync(path9, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
5024
5024
|
var threw = true;
|
|
5025
5025
|
var ret;
|
|
5026
5026
|
try {
|
|
@@ -5041,8 +5041,8 @@ var require_polyfills = __commonJS({
|
|
|
5041
5041
|
}
|
|
5042
5042
|
function patchLutimes(fs3) {
|
|
5043
5043
|
if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) {
|
|
5044
|
-
fs3.lutimes = function(
|
|
5045
|
-
fs3.open(
|
|
5044
|
+
fs3.lutimes = function(path9, at, mt, cb) {
|
|
5045
|
+
fs3.open(path9, constants.O_SYMLINK, function(er, fd) {
|
|
5046
5046
|
if (er) {
|
|
5047
5047
|
if (cb)
|
|
5048
5048
|
cb(er);
|
|
@@ -5056,8 +5056,8 @@ var require_polyfills = __commonJS({
|
|
|
5056
5056
|
});
|
|
5057
5057
|
});
|
|
5058
5058
|
};
|
|
5059
|
-
fs3.lutimesSync = function(
|
|
5060
|
-
var fd = fs3.openSync(
|
|
5059
|
+
fs3.lutimesSync = function(path9, at, mt) {
|
|
5060
|
+
var fd = fs3.openSync(path9, constants.O_SYMLINK);
|
|
5061
5061
|
var ret;
|
|
5062
5062
|
var threw = true;
|
|
5063
5063
|
try {
|
|
@@ -5194,12 +5194,12 @@ var require_legacy_streams = __commonJS({
|
|
|
5194
5194
|
ReadStream,
|
|
5195
5195
|
WriteStream
|
|
5196
5196
|
};
|
|
5197
|
-
function ReadStream(
|
|
5197
|
+
function ReadStream(path9, options) {
|
|
5198
5198
|
if (!(this instanceof ReadStream))
|
|
5199
|
-
return new ReadStream(
|
|
5199
|
+
return new ReadStream(path9, options);
|
|
5200
5200
|
Stream.call(this);
|
|
5201
5201
|
var self2 = this;
|
|
5202
|
-
this.path =
|
|
5202
|
+
this.path = path9;
|
|
5203
5203
|
this.fd = null;
|
|
5204
5204
|
this.readable = true;
|
|
5205
5205
|
this.paused = false;
|
|
@@ -5245,11 +5245,11 @@ var require_legacy_streams = __commonJS({
|
|
|
5245
5245
|
self2._read();
|
|
5246
5246
|
});
|
|
5247
5247
|
}
|
|
5248
|
-
function WriteStream(
|
|
5248
|
+
function WriteStream(path9, options) {
|
|
5249
5249
|
if (!(this instanceof WriteStream))
|
|
5250
|
-
return new WriteStream(
|
|
5250
|
+
return new WriteStream(path9, options);
|
|
5251
5251
|
Stream.call(this);
|
|
5252
|
-
this.path =
|
|
5252
|
+
this.path = path9;
|
|
5253
5253
|
this.fd = null;
|
|
5254
5254
|
this.writable = true;
|
|
5255
5255
|
this.flags = "w";
|
|
@@ -5393,14 +5393,14 @@ var require_graceful_fs = __commonJS({
|
|
|
5393
5393
|
fs3.createWriteStream = createWriteStream;
|
|
5394
5394
|
var fs$readFile = fs3.readFile;
|
|
5395
5395
|
fs3.readFile = readFile;
|
|
5396
|
-
function readFile(
|
|
5396
|
+
function readFile(path9, options, cb) {
|
|
5397
5397
|
if (typeof options === "function")
|
|
5398
5398
|
cb = options, options = null;
|
|
5399
|
-
return go$readFile(
|
|
5400
|
-
function go$readFile(
|
|
5401
|
-
return fs$readFile(
|
|
5399
|
+
return go$readFile(path9, options, cb);
|
|
5400
|
+
function go$readFile(path10, options2, cb2, startTime) {
|
|
5401
|
+
return fs$readFile(path10, options2, function(err) {
|
|
5402
5402
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5403
|
-
enqueue([go$readFile, [
|
|
5403
|
+
enqueue([go$readFile, [path10, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5404
5404
|
else {
|
|
5405
5405
|
if (typeof cb2 === "function")
|
|
5406
5406
|
cb2.apply(this, arguments);
|
|
@@ -5410,14 +5410,14 @@ var require_graceful_fs = __commonJS({
|
|
|
5410
5410
|
}
|
|
5411
5411
|
var fs$writeFile = fs3.writeFile;
|
|
5412
5412
|
fs3.writeFile = writeFile;
|
|
5413
|
-
function writeFile(
|
|
5413
|
+
function writeFile(path9, data, options, cb) {
|
|
5414
5414
|
if (typeof options === "function")
|
|
5415
5415
|
cb = options, options = null;
|
|
5416
|
-
return go$writeFile(
|
|
5417
|
-
function go$writeFile(
|
|
5418
|
-
return fs$writeFile(
|
|
5416
|
+
return go$writeFile(path9, data, options, cb);
|
|
5417
|
+
function go$writeFile(path10, data2, options2, cb2, startTime) {
|
|
5418
|
+
return fs$writeFile(path10, data2, options2, function(err) {
|
|
5419
5419
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5420
|
-
enqueue([go$writeFile, [
|
|
5420
|
+
enqueue([go$writeFile, [path10, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5421
5421
|
else {
|
|
5422
5422
|
if (typeof cb2 === "function")
|
|
5423
5423
|
cb2.apply(this, arguments);
|
|
@@ -5428,14 +5428,14 @@ var require_graceful_fs = __commonJS({
|
|
|
5428
5428
|
var fs$appendFile = fs3.appendFile;
|
|
5429
5429
|
if (fs$appendFile)
|
|
5430
5430
|
fs3.appendFile = appendFile;
|
|
5431
|
-
function appendFile(
|
|
5431
|
+
function appendFile(path9, data, options, cb) {
|
|
5432
5432
|
if (typeof options === "function")
|
|
5433
5433
|
cb = options, options = null;
|
|
5434
|
-
return go$appendFile(
|
|
5435
|
-
function go$appendFile(
|
|
5436
|
-
return fs$appendFile(
|
|
5434
|
+
return go$appendFile(path9, data, options, cb);
|
|
5435
|
+
function go$appendFile(path10, data2, options2, cb2, startTime) {
|
|
5436
|
+
return fs$appendFile(path10, data2, options2, function(err) {
|
|
5437
5437
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5438
|
-
enqueue([go$appendFile, [
|
|
5438
|
+
enqueue([go$appendFile, [path10, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5439
5439
|
else {
|
|
5440
5440
|
if (typeof cb2 === "function")
|
|
5441
5441
|
cb2.apply(this, arguments);
|
|
@@ -5466,31 +5466,31 @@ var require_graceful_fs = __commonJS({
|
|
|
5466
5466
|
var fs$readdir = fs3.readdir;
|
|
5467
5467
|
fs3.readdir = readdir;
|
|
5468
5468
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
5469
|
-
function readdir(
|
|
5469
|
+
function readdir(path9, options, cb) {
|
|
5470
5470
|
if (typeof options === "function")
|
|
5471
5471
|
cb = options, options = null;
|
|
5472
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
5473
|
-
return fs$readdir(
|
|
5474
|
-
|
|
5472
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path10, options2, cb2, startTime) {
|
|
5473
|
+
return fs$readdir(path10, fs$readdirCallback(
|
|
5474
|
+
path10,
|
|
5475
5475
|
options2,
|
|
5476
5476
|
cb2,
|
|
5477
5477
|
startTime
|
|
5478
5478
|
));
|
|
5479
|
-
} : function go$readdir2(
|
|
5480
|
-
return fs$readdir(
|
|
5481
|
-
|
|
5479
|
+
} : function go$readdir2(path10, options2, cb2, startTime) {
|
|
5480
|
+
return fs$readdir(path10, options2, fs$readdirCallback(
|
|
5481
|
+
path10,
|
|
5482
5482
|
options2,
|
|
5483
5483
|
cb2,
|
|
5484
5484
|
startTime
|
|
5485
5485
|
));
|
|
5486
5486
|
};
|
|
5487
|
-
return go$readdir(
|
|
5488
|
-
function fs$readdirCallback(
|
|
5487
|
+
return go$readdir(path9, options, cb);
|
|
5488
|
+
function fs$readdirCallback(path10, options2, cb2, startTime) {
|
|
5489
5489
|
return function(err, files) {
|
|
5490
5490
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5491
5491
|
enqueue([
|
|
5492
5492
|
go$readdir,
|
|
5493
|
-
[
|
|
5493
|
+
[path10, options2, cb2],
|
|
5494
5494
|
err,
|
|
5495
5495
|
startTime || Date.now(),
|
|
5496
5496
|
Date.now()
|
|
@@ -5561,7 +5561,7 @@ var require_graceful_fs = __commonJS({
|
|
|
5561
5561
|
enumerable: true,
|
|
5562
5562
|
configurable: true
|
|
5563
5563
|
});
|
|
5564
|
-
function ReadStream(
|
|
5564
|
+
function ReadStream(path9, options) {
|
|
5565
5565
|
if (this instanceof ReadStream)
|
|
5566
5566
|
return fs$ReadStream.apply(this, arguments), this;
|
|
5567
5567
|
else
|
|
@@ -5581,7 +5581,7 @@ var require_graceful_fs = __commonJS({
|
|
|
5581
5581
|
}
|
|
5582
5582
|
});
|
|
5583
5583
|
}
|
|
5584
|
-
function WriteStream(
|
|
5584
|
+
function WriteStream(path9, options) {
|
|
5585
5585
|
if (this instanceof WriteStream)
|
|
5586
5586
|
return fs$WriteStream.apply(this, arguments), this;
|
|
5587
5587
|
else
|
|
@@ -5599,22 +5599,22 @@ var require_graceful_fs = __commonJS({
|
|
|
5599
5599
|
}
|
|
5600
5600
|
});
|
|
5601
5601
|
}
|
|
5602
|
-
function createReadStream(
|
|
5603
|
-
return new fs3.ReadStream(
|
|
5602
|
+
function createReadStream(path9, options) {
|
|
5603
|
+
return new fs3.ReadStream(path9, options);
|
|
5604
5604
|
}
|
|
5605
|
-
function createWriteStream(
|
|
5606
|
-
return new fs3.WriteStream(
|
|
5605
|
+
function createWriteStream(path9, options) {
|
|
5606
|
+
return new fs3.WriteStream(path9, options);
|
|
5607
5607
|
}
|
|
5608
5608
|
var fs$open = fs3.open;
|
|
5609
5609
|
fs3.open = open;
|
|
5610
|
-
function open(
|
|
5610
|
+
function open(path9, flags, mode, cb) {
|
|
5611
5611
|
if (typeof mode === "function")
|
|
5612
5612
|
cb = mode, mode = null;
|
|
5613
|
-
return go$open(
|
|
5614
|
-
function go$open(
|
|
5615
|
-
return fs$open(
|
|
5613
|
+
return go$open(path9, flags, mode, cb);
|
|
5614
|
+
function go$open(path10, flags2, mode2, cb2, startTime) {
|
|
5615
|
+
return fs$open(path10, flags2, mode2, function(err, fd) {
|
|
5616
5616
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5617
|
-
enqueue([go$open, [
|
|
5617
|
+
enqueue([go$open, [path10, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5618
5618
|
else {
|
|
5619
5619
|
if (typeof cb2 === "function")
|
|
5620
5620
|
cb2.apply(this, arguments);
|
|
@@ -5779,10 +5779,10 @@ var require_fs2 = __commonJS({
|
|
|
5779
5779
|
var require_utils = __commonJS({
|
|
5780
5780
|
"../../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) {
|
|
5781
5781
|
"use strict";
|
|
5782
|
-
var
|
|
5782
|
+
var path9 = require("path");
|
|
5783
5783
|
module2.exports.checkPath = function checkPath(pth) {
|
|
5784
5784
|
if (process.platform === "win32") {
|
|
5785
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
5785
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path9.parse(pth).root, ""));
|
|
5786
5786
|
if (pathHasInvalidWinCharacters) {
|
|
5787
5787
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
5788
5788
|
error.code = "EINVAL";
|
|
@@ -5847,8 +5847,8 @@ var require_path_exists = __commonJS({
|
|
|
5847
5847
|
"use strict";
|
|
5848
5848
|
var u = require_universalify().fromPromise;
|
|
5849
5849
|
var fs2 = require_fs2();
|
|
5850
|
-
function pathExists(
|
|
5851
|
-
return fs2.access(
|
|
5850
|
+
function pathExists(path9) {
|
|
5851
|
+
return fs2.access(path9).then(() => true).catch(() => false);
|
|
5852
5852
|
}
|
|
5853
5853
|
module2.exports = {
|
|
5854
5854
|
pathExists: u(pathExists),
|
|
@@ -5862,8 +5862,8 @@ var require_utimes = __commonJS({
|
|
|
5862
5862
|
"../../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/util/utimes.js"(exports, module2) {
|
|
5863
5863
|
"use strict";
|
|
5864
5864
|
var fs2 = require_graceful_fs();
|
|
5865
|
-
function utimesMillis(
|
|
5866
|
-
fs2.open(
|
|
5865
|
+
function utimesMillis(path9, atime, mtime, callback) {
|
|
5866
|
+
fs2.open(path9, "r+", (err, fd) => {
|
|
5867
5867
|
if (err)
|
|
5868
5868
|
return callback(err);
|
|
5869
5869
|
fs2.futimes(fd, atime, mtime, (futimesErr) => {
|
|
@@ -5874,8 +5874,8 @@ var require_utimes = __commonJS({
|
|
|
5874
5874
|
});
|
|
5875
5875
|
});
|
|
5876
5876
|
}
|
|
5877
|
-
function utimesMillisSync(
|
|
5878
|
-
const fd = fs2.openSync(
|
|
5877
|
+
function utimesMillisSync(path9, atime, mtime) {
|
|
5878
|
+
const fd = fs2.openSync(path9, "r+");
|
|
5879
5879
|
fs2.futimesSync(fd, atime, mtime);
|
|
5880
5880
|
return fs2.closeSync(fd);
|
|
5881
5881
|
}
|
|
@@ -5891,7 +5891,7 @@ var require_stat = __commonJS({
|
|
|
5891
5891
|
"../../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
|
|
5892
5892
|
"use strict";
|
|
5893
5893
|
var fs2 = require_fs2();
|
|
5894
|
-
var
|
|
5894
|
+
var path9 = require("path");
|
|
5895
5895
|
var util2 = require("util");
|
|
5896
5896
|
function getStats(src, dest, opts) {
|
|
5897
5897
|
const statFunc = opts.dereference ? (file) => fs2.stat(file, { bigint: true }) : (file) => fs2.lstat(file, { bigint: true });
|
|
@@ -5924,8 +5924,8 @@ var require_stat = __commonJS({
|
|
|
5924
5924
|
const { srcStat, destStat } = stats;
|
|
5925
5925
|
if (destStat) {
|
|
5926
5926
|
if (areIdentical(srcStat, destStat)) {
|
|
5927
|
-
const srcBaseName =
|
|
5928
|
-
const destBaseName =
|
|
5927
|
+
const srcBaseName = path9.basename(src);
|
|
5928
|
+
const destBaseName = path9.basename(dest);
|
|
5929
5929
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
5930
5930
|
return cb(null, { srcStat, destStat, isChangingCase: true });
|
|
5931
5931
|
}
|
|
@@ -5948,8 +5948,8 @@ var require_stat = __commonJS({
|
|
|
5948
5948
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
5949
5949
|
if (destStat) {
|
|
5950
5950
|
if (areIdentical(srcStat, destStat)) {
|
|
5951
|
-
const srcBaseName =
|
|
5952
|
-
const destBaseName =
|
|
5951
|
+
const srcBaseName = path9.basename(src);
|
|
5952
|
+
const destBaseName = path9.basename(dest);
|
|
5953
5953
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
5954
5954
|
return { srcStat, destStat, isChangingCase: true };
|
|
5955
5955
|
}
|
|
@@ -5968,9 +5968,9 @@ var require_stat = __commonJS({
|
|
|
5968
5968
|
return { srcStat, destStat };
|
|
5969
5969
|
}
|
|
5970
5970
|
function checkParentPaths(src, srcStat, dest, funcName, cb) {
|
|
5971
|
-
const srcParent =
|
|
5972
|
-
const destParent =
|
|
5973
|
-
if (destParent === srcParent || destParent ===
|
|
5971
|
+
const srcParent = path9.resolve(path9.dirname(src));
|
|
5972
|
+
const destParent = path9.resolve(path9.dirname(dest));
|
|
5973
|
+
if (destParent === srcParent || destParent === path9.parse(destParent).root)
|
|
5974
5974
|
return cb();
|
|
5975
5975
|
fs2.stat(destParent, { bigint: true }, (err, destStat) => {
|
|
5976
5976
|
if (err) {
|
|
@@ -5985,9 +5985,9 @@ var require_stat = __commonJS({
|
|
|
5985
5985
|
});
|
|
5986
5986
|
}
|
|
5987
5987
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
5988
|
-
const srcParent =
|
|
5989
|
-
const destParent =
|
|
5990
|
-
if (destParent === srcParent || destParent ===
|
|
5988
|
+
const srcParent = path9.resolve(path9.dirname(src));
|
|
5989
|
+
const destParent = path9.resolve(path9.dirname(dest));
|
|
5990
|
+
if (destParent === srcParent || destParent === path9.parse(destParent).root)
|
|
5991
5991
|
return;
|
|
5992
5992
|
let destStat;
|
|
5993
5993
|
try {
|
|
@@ -6006,8 +6006,8 @@ var require_stat = __commonJS({
|
|
|
6006
6006
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
6007
6007
|
}
|
|
6008
6008
|
function isSrcSubdir(src, dest) {
|
|
6009
|
-
const srcArr =
|
|
6010
|
-
const destArr =
|
|
6009
|
+
const srcArr = path9.resolve(src).split(path9.sep).filter((i) => i);
|
|
6010
|
+
const destArr = path9.resolve(dest).split(path9.sep).filter((i) => i);
|
|
6011
6011
|
return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
|
|
6012
6012
|
}
|
|
6013
6013
|
function errMsg(src, dest, funcName) {
|
|
@@ -6029,7 +6029,7 @@ var require_copy = __commonJS({
|
|
|
6029
6029
|
"../../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
|
|
6030
6030
|
"use strict";
|
|
6031
6031
|
var fs2 = require_graceful_fs();
|
|
6032
|
-
var
|
|
6032
|
+
var path9 = require("path");
|
|
6033
6033
|
var mkdirs = require_mkdirs().mkdirs;
|
|
6034
6034
|
var pathExists = require_path_exists().pathExists;
|
|
6035
6035
|
var utimesMillis = require_utimes().utimesMillis;
|
|
@@ -6065,7 +6065,7 @@ var require_copy = __commonJS({
|
|
|
6065
6065
|
});
|
|
6066
6066
|
}
|
|
6067
6067
|
function checkParentDir(destStat, src, dest, opts, cb) {
|
|
6068
|
-
const destParent =
|
|
6068
|
+
const destParent = path9.dirname(dest);
|
|
6069
6069
|
pathExists(destParent, (err, dirExists) => {
|
|
6070
6070
|
if (err)
|
|
6071
6071
|
return cb(err);
|
|
@@ -6197,8 +6197,8 @@ var require_copy = __commonJS({
|
|
|
6197
6197
|
return copyDirItem(items, item, src, dest, opts, cb);
|
|
6198
6198
|
}
|
|
6199
6199
|
function copyDirItem(items, item, src, dest, opts, cb) {
|
|
6200
|
-
const srcItem =
|
|
6201
|
-
const destItem =
|
|
6200
|
+
const srcItem = path9.join(src, item);
|
|
6201
|
+
const destItem = path9.join(dest, item);
|
|
6202
6202
|
stat.checkPaths(srcItem, destItem, "copy", opts, (err, stats) => {
|
|
6203
6203
|
if (err)
|
|
6204
6204
|
return cb(err);
|
|
@@ -6215,7 +6215,7 @@ var require_copy = __commonJS({
|
|
|
6215
6215
|
if (err)
|
|
6216
6216
|
return cb(err);
|
|
6217
6217
|
if (opts.dereference) {
|
|
6218
|
-
resolvedSrc =
|
|
6218
|
+
resolvedSrc = path9.resolve(process.cwd(), resolvedSrc);
|
|
6219
6219
|
}
|
|
6220
6220
|
if (!destStat) {
|
|
6221
6221
|
return fs2.symlink(resolvedSrc, dest, cb);
|
|
@@ -6227,7 +6227,7 @@ var require_copy = __commonJS({
|
|
|
6227
6227
|
return cb(err2);
|
|
6228
6228
|
}
|
|
6229
6229
|
if (opts.dereference) {
|
|
6230
|
-
resolvedDest =
|
|
6230
|
+
resolvedDest = path9.resolve(process.cwd(), resolvedDest);
|
|
6231
6231
|
}
|
|
6232
6232
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
6233
6233
|
return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
|
|
@@ -6256,7 +6256,7 @@ var require_copy_sync = __commonJS({
|
|
|
6256
6256
|
"../../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module2) {
|
|
6257
6257
|
"use strict";
|
|
6258
6258
|
var fs2 = require_graceful_fs();
|
|
6259
|
-
var
|
|
6259
|
+
var path9 = require("path");
|
|
6260
6260
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
6261
6261
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
6262
6262
|
var stat = require_stat();
|
|
@@ -6279,7 +6279,7 @@ var require_copy_sync = __commonJS({
|
|
|
6279
6279
|
function handleFilterAndCopy(destStat, src, dest, opts) {
|
|
6280
6280
|
if (opts.filter && !opts.filter(src, dest))
|
|
6281
6281
|
return;
|
|
6282
|
-
const destParent =
|
|
6282
|
+
const destParent = path9.dirname(dest);
|
|
6283
6283
|
if (!fs2.existsSync(destParent))
|
|
6284
6284
|
mkdirsSync(destParent);
|
|
6285
6285
|
return getStats(destStat, src, dest, opts);
|
|
@@ -6355,15 +6355,15 @@ var require_copy_sync = __commonJS({
|
|
|
6355
6355
|
fs2.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
6356
6356
|
}
|
|
6357
6357
|
function copyDirItem(item, src, dest, opts) {
|
|
6358
|
-
const srcItem =
|
|
6359
|
-
const destItem =
|
|
6358
|
+
const srcItem = path9.join(src, item);
|
|
6359
|
+
const destItem = path9.join(dest, item);
|
|
6360
6360
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
6361
6361
|
return startCopy(destStat, srcItem, destItem, opts);
|
|
6362
6362
|
}
|
|
6363
6363
|
function onLink(destStat, src, dest, opts) {
|
|
6364
6364
|
let resolvedSrc = fs2.readlinkSync(src);
|
|
6365
6365
|
if (opts.dereference) {
|
|
6366
|
-
resolvedSrc =
|
|
6366
|
+
resolvedSrc = path9.resolve(process.cwd(), resolvedSrc);
|
|
6367
6367
|
}
|
|
6368
6368
|
if (!destStat) {
|
|
6369
6369
|
return fs2.symlinkSync(resolvedSrc, dest);
|
|
@@ -6377,7 +6377,7 @@ var require_copy_sync = __commonJS({
|
|
|
6377
6377
|
throw err;
|
|
6378
6378
|
}
|
|
6379
6379
|
if (opts.dereference) {
|
|
6380
|
-
resolvedDest =
|
|
6380
|
+
resolvedDest = path9.resolve(process.cwd(), resolvedDest);
|
|
6381
6381
|
}
|
|
6382
6382
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
6383
6383
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -6413,7 +6413,7 @@ var require_rimraf = __commonJS({
|
|
|
6413
6413
|
"../../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/remove/rimraf.js"(exports, module2) {
|
|
6414
6414
|
"use strict";
|
|
6415
6415
|
var fs2 = require_graceful_fs();
|
|
6416
|
-
var
|
|
6416
|
+
var path9 = require("path");
|
|
6417
6417
|
var assert = require("assert");
|
|
6418
6418
|
var isWindows = process.platform === "win32";
|
|
6419
6419
|
function defaults2(options) {
|
|
@@ -6561,7 +6561,7 @@ var require_rimraf = __commonJS({
|
|
|
6561
6561
|
if (n === 0)
|
|
6562
6562
|
return options.rmdir(p, cb);
|
|
6563
6563
|
files.forEach((f) => {
|
|
6564
|
-
rimraf(
|
|
6564
|
+
rimraf(path9.join(p, f), options, (er2) => {
|
|
6565
6565
|
if (errState) {
|
|
6566
6566
|
return;
|
|
6567
6567
|
}
|
|
@@ -6627,7 +6627,7 @@ var require_rimraf = __commonJS({
|
|
|
6627
6627
|
function rmkidsSync(p, options) {
|
|
6628
6628
|
assert(p);
|
|
6629
6629
|
assert(options);
|
|
6630
|
-
options.readdirSync(p).forEach((f) => rimrafSync(
|
|
6630
|
+
options.readdirSync(p).forEach((f) => rimrafSync(path9.join(p, f), options));
|
|
6631
6631
|
if (isWindows) {
|
|
6632
6632
|
const startTime = Date.now();
|
|
6633
6633
|
do {
|
|
@@ -6654,15 +6654,15 @@ var require_remove = __commonJS({
|
|
|
6654
6654
|
var fs2 = require_graceful_fs();
|
|
6655
6655
|
var u = require_universalify().fromCallback;
|
|
6656
6656
|
var rimraf = require_rimraf();
|
|
6657
|
-
function remove(
|
|
6657
|
+
function remove(path9, callback) {
|
|
6658
6658
|
if (fs2.rm)
|
|
6659
|
-
return fs2.rm(
|
|
6660
|
-
rimraf(
|
|
6659
|
+
return fs2.rm(path9, { recursive: true, force: true }, callback);
|
|
6660
|
+
rimraf(path9, callback);
|
|
6661
6661
|
}
|
|
6662
|
-
function removeSync(
|
|
6662
|
+
function removeSync(path9) {
|
|
6663
6663
|
if (fs2.rmSync)
|
|
6664
|
-
return fs2.rmSync(
|
|
6665
|
-
rimraf.sync(
|
|
6664
|
+
return fs2.rmSync(path9, { recursive: true, force: true });
|
|
6665
|
+
rimraf.sync(path9);
|
|
6666
6666
|
}
|
|
6667
6667
|
module2.exports = {
|
|
6668
6668
|
remove: u(remove),
|
|
@@ -6677,7 +6677,7 @@ var require_empty = __commonJS({
|
|
|
6677
6677
|
"use strict";
|
|
6678
6678
|
var u = require_universalify().fromPromise;
|
|
6679
6679
|
var fs2 = require_fs2();
|
|
6680
|
-
var
|
|
6680
|
+
var path9 = require("path");
|
|
6681
6681
|
var mkdir = require_mkdirs();
|
|
6682
6682
|
var remove = require_remove();
|
|
6683
6683
|
var emptyDir = u(function emptyDir2(dir) {
|
|
@@ -6688,7 +6688,7 @@ var require_empty = __commonJS({
|
|
|
6688
6688
|
} catch (e) {
|
|
6689
6689
|
return mkdir.mkdirs(dir);
|
|
6690
6690
|
}
|
|
6691
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
6691
|
+
return Promise.all(items.map((item) => remove.remove(path9.join(dir, item))));
|
|
6692
6692
|
});
|
|
6693
6693
|
});
|
|
6694
6694
|
function emptyDirSync(dir) {
|
|
@@ -6699,7 +6699,7 @@ var require_empty = __commonJS({
|
|
|
6699
6699
|
return mkdir.mkdirsSync(dir);
|
|
6700
6700
|
}
|
|
6701
6701
|
items.forEach((item) => {
|
|
6702
|
-
item =
|
|
6702
|
+
item = path9.join(dir, item);
|
|
6703
6703
|
remove.removeSync(item);
|
|
6704
6704
|
});
|
|
6705
6705
|
}
|
|
@@ -6717,7 +6717,7 @@ var require_file = __commonJS({
|
|
|
6717
6717
|
"../../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
|
|
6718
6718
|
"use strict";
|
|
6719
6719
|
var u = require_universalify().fromCallback;
|
|
6720
|
-
var
|
|
6720
|
+
var path9 = require("path");
|
|
6721
6721
|
var fs2 = require_graceful_fs();
|
|
6722
6722
|
var mkdir = require_mkdirs();
|
|
6723
6723
|
function createFile(file, callback) {
|
|
@@ -6731,7 +6731,7 @@ var require_file = __commonJS({
|
|
|
6731
6731
|
fs2.stat(file, (err, stats) => {
|
|
6732
6732
|
if (!err && stats.isFile())
|
|
6733
6733
|
return callback();
|
|
6734
|
-
const dir =
|
|
6734
|
+
const dir = path9.dirname(file);
|
|
6735
6735
|
fs2.stat(dir, (err2, stats2) => {
|
|
6736
6736
|
if (err2) {
|
|
6737
6737
|
if (err2.code === "ENOENT") {
|
|
@@ -6762,7 +6762,7 @@ var require_file = __commonJS({
|
|
|
6762
6762
|
}
|
|
6763
6763
|
if (stats && stats.isFile())
|
|
6764
6764
|
return;
|
|
6765
|
-
const dir =
|
|
6765
|
+
const dir = path9.dirname(file);
|
|
6766
6766
|
try {
|
|
6767
6767
|
if (!fs2.statSync(dir).isDirectory()) {
|
|
6768
6768
|
fs2.readdirSync(dir);
|
|
@@ -6787,7 +6787,7 @@ var require_link = __commonJS({
|
|
|
6787
6787
|
"../../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
|
|
6788
6788
|
"use strict";
|
|
6789
6789
|
var u = require_universalify().fromCallback;
|
|
6790
|
-
var
|
|
6790
|
+
var path9 = require("path");
|
|
6791
6791
|
var fs2 = require_graceful_fs();
|
|
6792
6792
|
var mkdir = require_mkdirs();
|
|
6793
6793
|
var pathExists = require_path_exists().pathExists;
|
|
@@ -6808,7 +6808,7 @@ var require_link = __commonJS({
|
|
|
6808
6808
|
}
|
|
6809
6809
|
if (dstStat && areIdentical(srcStat, dstStat))
|
|
6810
6810
|
return callback(null);
|
|
6811
|
-
const dir =
|
|
6811
|
+
const dir = path9.dirname(dstpath);
|
|
6812
6812
|
pathExists(dir, (err2, dirExists) => {
|
|
6813
6813
|
if (err2)
|
|
6814
6814
|
return callback(err2);
|
|
@@ -6837,7 +6837,7 @@ var require_link = __commonJS({
|
|
|
6837
6837
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
6838
6838
|
throw err;
|
|
6839
6839
|
}
|
|
6840
|
-
const dir =
|
|
6840
|
+
const dir = path9.dirname(dstpath);
|
|
6841
6841
|
const dirExists = fs2.existsSync(dir);
|
|
6842
6842
|
if (dirExists)
|
|
6843
6843
|
return fs2.linkSync(srcpath, dstpath);
|
|
@@ -6855,11 +6855,11 @@ var require_link = __commonJS({
|
|
|
6855
6855
|
var require_symlink_paths = __commonJS({
|
|
6856
6856
|
"../../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
|
|
6857
6857
|
"use strict";
|
|
6858
|
-
var
|
|
6858
|
+
var path9 = require("path");
|
|
6859
6859
|
var fs2 = require_graceful_fs();
|
|
6860
6860
|
var pathExists = require_path_exists().pathExists;
|
|
6861
6861
|
function symlinkPaths(srcpath, dstpath, callback) {
|
|
6862
|
-
if (
|
|
6862
|
+
if (path9.isAbsolute(srcpath)) {
|
|
6863
6863
|
return fs2.lstat(srcpath, (err) => {
|
|
6864
6864
|
if (err) {
|
|
6865
6865
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
@@ -6871,8 +6871,8 @@ var require_symlink_paths = __commonJS({
|
|
|
6871
6871
|
});
|
|
6872
6872
|
});
|
|
6873
6873
|
} else {
|
|
6874
|
-
const dstdir =
|
|
6875
|
-
const relativeToDst =
|
|
6874
|
+
const dstdir = path9.dirname(dstpath);
|
|
6875
|
+
const relativeToDst = path9.join(dstdir, srcpath);
|
|
6876
6876
|
return pathExists(relativeToDst, (err, exists) => {
|
|
6877
6877
|
if (err)
|
|
6878
6878
|
return callback(err);
|
|
@@ -6889,7 +6889,7 @@ var require_symlink_paths = __commonJS({
|
|
|
6889
6889
|
}
|
|
6890
6890
|
return callback(null, {
|
|
6891
6891
|
toCwd: srcpath,
|
|
6892
|
-
toDst:
|
|
6892
|
+
toDst: path9.relative(dstdir, srcpath)
|
|
6893
6893
|
});
|
|
6894
6894
|
});
|
|
6895
6895
|
}
|
|
@@ -6898,7 +6898,7 @@ var require_symlink_paths = __commonJS({
|
|
|
6898
6898
|
}
|
|
6899
6899
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
6900
6900
|
let exists;
|
|
6901
|
-
if (
|
|
6901
|
+
if (path9.isAbsolute(srcpath)) {
|
|
6902
6902
|
exists = fs2.existsSync(srcpath);
|
|
6903
6903
|
if (!exists)
|
|
6904
6904
|
throw new Error("absolute srcpath does not exist");
|
|
@@ -6907,8 +6907,8 @@ var require_symlink_paths = __commonJS({
|
|
|
6907
6907
|
toDst: srcpath
|
|
6908
6908
|
};
|
|
6909
6909
|
} else {
|
|
6910
|
-
const dstdir =
|
|
6911
|
-
const relativeToDst =
|
|
6910
|
+
const dstdir = path9.dirname(dstpath);
|
|
6911
|
+
const relativeToDst = path9.join(dstdir, srcpath);
|
|
6912
6912
|
exists = fs2.existsSync(relativeToDst);
|
|
6913
6913
|
if (exists) {
|
|
6914
6914
|
return {
|
|
@@ -6921,7 +6921,7 @@ var require_symlink_paths = __commonJS({
|
|
|
6921
6921
|
throw new Error("relative srcpath does not exist");
|
|
6922
6922
|
return {
|
|
6923
6923
|
toCwd: srcpath,
|
|
6924
|
-
toDst:
|
|
6924
|
+
toDst: path9.relative(dstdir, srcpath)
|
|
6925
6925
|
};
|
|
6926
6926
|
}
|
|
6927
6927
|
}
|
|
@@ -6973,7 +6973,7 @@ var require_symlink = __commonJS({
|
|
|
6973
6973
|
"../../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
|
|
6974
6974
|
"use strict";
|
|
6975
6975
|
var u = require_universalify().fromCallback;
|
|
6976
|
-
var
|
|
6976
|
+
var path9 = require("path");
|
|
6977
6977
|
var fs2 = require_fs2();
|
|
6978
6978
|
var _mkdirs = require_mkdirs();
|
|
6979
6979
|
var mkdirs = _mkdirs.mkdirs;
|
|
@@ -7011,7 +7011,7 @@ var require_symlink = __commonJS({
|
|
|
7011
7011
|
symlinkType(relative.toCwd, type, (err2, type2) => {
|
|
7012
7012
|
if (err2)
|
|
7013
7013
|
return callback(err2);
|
|
7014
|
-
const dir =
|
|
7014
|
+
const dir = path9.dirname(dstpath);
|
|
7015
7015
|
pathExists(dir, (err3, dirExists) => {
|
|
7016
7016
|
if (err3)
|
|
7017
7017
|
return callback(err3);
|
|
@@ -7041,7 +7041,7 @@ var require_symlink = __commonJS({
|
|
|
7041
7041
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
7042
7042
|
srcpath = relative.toDst;
|
|
7043
7043
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
7044
|
-
const dir =
|
|
7044
|
+
const dir = path9.dirname(dstpath);
|
|
7045
7045
|
const exists = fs2.existsSync(dir);
|
|
7046
7046
|
if (exists)
|
|
7047
7047
|
return fs2.symlinkSync(srcpath, dstpath, type);
|
|
@@ -7199,7 +7199,7 @@ var require_output_file = __commonJS({
|
|
|
7199
7199
|
"use strict";
|
|
7200
7200
|
var u = require_universalify().fromCallback;
|
|
7201
7201
|
var fs2 = require_graceful_fs();
|
|
7202
|
-
var
|
|
7202
|
+
var path9 = require("path");
|
|
7203
7203
|
var mkdir = require_mkdirs();
|
|
7204
7204
|
var pathExists = require_path_exists().pathExists;
|
|
7205
7205
|
function outputFile(file, data, encoding, callback) {
|
|
@@ -7207,7 +7207,7 @@ var require_output_file = __commonJS({
|
|
|
7207
7207
|
callback = encoding;
|
|
7208
7208
|
encoding = "utf8";
|
|
7209
7209
|
}
|
|
7210
|
-
const dir =
|
|
7210
|
+
const dir = path9.dirname(file);
|
|
7211
7211
|
pathExists(dir, (err, itDoes) => {
|
|
7212
7212
|
if (err)
|
|
7213
7213
|
return callback(err);
|
|
@@ -7221,7 +7221,7 @@ var require_output_file = __commonJS({
|
|
|
7221
7221
|
});
|
|
7222
7222
|
}
|
|
7223
7223
|
function outputFileSync(file, ...args) {
|
|
7224
|
-
const dir =
|
|
7224
|
+
const dir = path9.dirname(file);
|
|
7225
7225
|
if (fs2.existsSync(dir)) {
|
|
7226
7226
|
return fs2.writeFileSync(file, ...args);
|
|
7227
7227
|
}
|
|
@@ -7288,7 +7288,7 @@ var require_move = __commonJS({
|
|
|
7288
7288
|
"../../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/move/move.js"(exports, module2) {
|
|
7289
7289
|
"use strict";
|
|
7290
7290
|
var fs2 = require_graceful_fs();
|
|
7291
|
-
var
|
|
7291
|
+
var path9 = require("path");
|
|
7292
7292
|
var copy = require_copy2().copy;
|
|
7293
7293
|
var remove = require_remove().remove;
|
|
7294
7294
|
var mkdirp = require_mkdirs().mkdirp;
|
|
@@ -7309,7 +7309,7 @@ var require_move = __commonJS({
|
|
|
7309
7309
|
return cb(err2);
|
|
7310
7310
|
if (isParentRoot(dest))
|
|
7311
7311
|
return doRename(src, dest, overwrite, isChangingCase, cb);
|
|
7312
|
-
mkdirp(
|
|
7312
|
+
mkdirp(path9.dirname(dest), (err3) => {
|
|
7313
7313
|
if (err3)
|
|
7314
7314
|
return cb(err3);
|
|
7315
7315
|
return doRename(src, dest, overwrite, isChangingCase, cb);
|
|
@@ -7318,8 +7318,8 @@ var require_move = __commonJS({
|
|
|
7318
7318
|
});
|
|
7319
7319
|
}
|
|
7320
7320
|
function isParentRoot(dest) {
|
|
7321
|
-
const parent =
|
|
7322
|
-
const parsedPath =
|
|
7321
|
+
const parent = path9.dirname(dest);
|
|
7322
|
+
const parsedPath = path9.parse(parent);
|
|
7323
7323
|
return parsedPath.root === parent;
|
|
7324
7324
|
}
|
|
7325
7325
|
function doRename(src, dest, overwrite, isChangingCase, cb) {
|
|
@@ -7369,7 +7369,7 @@ var require_move_sync = __commonJS({
|
|
|
7369
7369
|
"../../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/move/move-sync.js"(exports, module2) {
|
|
7370
7370
|
"use strict";
|
|
7371
7371
|
var fs2 = require_graceful_fs();
|
|
7372
|
-
var
|
|
7372
|
+
var path9 = require("path");
|
|
7373
7373
|
var copySync = require_copy2().copySync;
|
|
7374
7374
|
var removeSync = require_remove().removeSync;
|
|
7375
7375
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -7380,12 +7380,12 @@ var require_move_sync = __commonJS({
|
|
|
7380
7380
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
7381
7381
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
7382
7382
|
if (!isParentRoot(dest))
|
|
7383
|
-
mkdirpSync(
|
|
7383
|
+
mkdirpSync(path9.dirname(dest));
|
|
7384
7384
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
7385
7385
|
}
|
|
7386
7386
|
function isParentRoot(dest) {
|
|
7387
|
-
const parent =
|
|
7388
|
-
const parsedPath =
|
|
7387
|
+
const parent = path9.dirname(dest);
|
|
7388
|
+
const parsedPath = path9.parse(parent);
|
|
7389
7389
|
return parsedPath.root === parent;
|
|
7390
7390
|
}
|
|
7391
7391
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -7447,7 +7447,7 @@ var require_windows = __commonJS({
|
|
|
7447
7447
|
module2.exports = isexe;
|
|
7448
7448
|
isexe.sync = sync;
|
|
7449
7449
|
var fs2 = require("fs");
|
|
7450
|
-
function checkPathExt(
|
|
7450
|
+
function checkPathExt(path9, options) {
|
|
7451
7451
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
7452
7452
|
if (!pathext) {
|
|
7453
7453
|
return true;
|
|
@@ -7458,25 +7458,25 @@ var require_windows = __commonJS({
|
|
|
7458
7458
|
}
|
|
7459
7459
|
for (var i = 0; i < pathext.length; i++) {
|
|
7460
7460
|
var p = pathext[i].toLowerCase();
|
|
7461
|
-
if (p &&
|
|
7461
|
+
if (p && path9.substr(-p.length).toLowerCase() === p) {
|
|
7462
7462
|
return true;
|
|
7463
7463
|
}
|
|
7464
7464
|
}
|
|
7465
7465
|
return false;
|
|
7466
7466
|
}
|
|
7467
|
-
function checkStat(stat,
|
|
7467
|
+
function checkStat(stat, path9, options) {
|
|
7468
7468
|
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
|
7469
7469
|
return false;
|
|
7470
7470
|
}
|
|
7471
|
-
return checkPathExt(
|
|
7471
|
+
return checkPathExt(path9, options);
|
|
7472
7472
|
}
|
|
7473
|
-
function isexe(
|
|
7474
|
-
fs2.stat(
|
|
7475
|
-
cb(er, er ? false : checkStat(stat,
|
|
7473
|
+
function isexe(path9, options, cb) {
|
|
7474
|
+
fs2.stat(path9, function(er, stat) {
|
|
7475
|
+
cb(er, er ? false : checkStat(stat, path9, options));
|
|
7476
7476
|
});
|
|
7477
7477
|
}
|
|
7478
|
-
function sync(
|
|
7479
|
-
return checkStat(fs2.statSync(
|
|
7478
|
+
function sync(path9, options) {
|
|
7479
|
+
return checkStat(fs2.statSync(path9), path9, options);
|
|
7480
7480
|
}
|
|
7481
7481
|
}
|
|
7482
7482
|
});
|
|
@@ -7488,13 +7488,13 @@ var require_mode = __commonJS({
|
|
|
7488
7488
|
module2.exports = isexe;
|
|
7489
7489
|
isexe.sync = sync;
|
|
7490
7490
|
var fs2 = require("fs");
|
|
7491
|
-
function isexe(
|
|
7492
|
-
fs2.stat(
|
|
7491
|
+
function isexe(path9, options, cb) {
|
|
7492
|
+
fs2.stat(path9, function(er, stat) {
|
|
7493
7493
|
cb(er, er ? false : checkStat(stat, options));
|
|
7494
7494
|
});
|
|
7495
7495
|
}
|
|
7496
|
-
function sync(
|
|
7497
|
-
return checkStat(fs2.statSync(
|
|
7496
|
+
function sync(path9, options) {
|
|
7497
|
+
return checkStat(fs2.statSync(path9), options);
|
|
7498
7498
|
}
|
|
7499
7499
|
function checkStat(stat, options) {
|
|
7500
7500
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -7528,7 +7528,7 @@ var require_isexe = __commonJS({
|
|
|
7528
7528
|
}
|
|
7529
7529
|
module2.exports = isexe;
|
|
7530
7530
|
isexe.sync = sync;
|
|
7531
|
-
function isexe(
|
|
7531
|
+
function isexe(path9, options, cb) {
|
|
7532
7532
|
if (typeof options === "function") {
|
|
7533
7533
|
cb = options;
|
|
7534
7534
|
options = {};
|
|
@@ -7538,7 +7538,7 @@ var require_isexe = __commonJS({
|
|
|
7538
7538
|
throw new TypeError("callback not provided");
|
|
7539
7539
|
}
|
|
7540
7540
|
return new Promise(function(resolve, reject) {
|
|
7541
|
-
isexe(
|
|
7541
|
+
isexe(path9, options || {}, function(er, is) {
|
|
7542
7542
|
if (er) {
|
|
7543
7543
|
reject(er);
|
|
7544
7544
|
} else {
|
|
@@ -7547,7 +7547,7 @@ var require_isexe = __commonJS({
|
|
|
7547
7547
|
});
|
|
7548
7548
|
});
|
|
7549
7549
|
}
|
|
7550
|
-
core(
|
|
7550
|
+
core(path9, options || {}, function(er, is) {
|
|
7551
7551
|
if (er) {
|
|
7552
7552
|
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
7553
7553
|
er = null;
|
|
@@ -7557,9 +7557,9 @@ var require_isexe = __commonJS({
|
|
|
7557
7557
|
cb(er, is);
|
|
7558
7558
|
});
|
|
7559
7559
|
}
|
|
7560
|
-
function sync(
|
|
7560
|
+
function sync(path9, options) {
|
|
7561
7561
|
try {
|
|
7562
|
-
return core.sync(
|
|
7562
|
+
return core.sync(path9, options || {});
|
|
7563
7563
|
} catch (er) {
|
|
7564
7564
|
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
7565
7565
|
return false;
|
|
@@ -7576,7 +7576,7 @@ var require_which = __commonJS({
|
|
|
7576
7576
|
"../../../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module2) {
|
|
7577
7577
|
"use strict";
|
|
7578
7578
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
7579
|
-
var
|
|
7579
|
+
var path9 = require("path");
|
|
7580
7580
|
var COLON = isWindows ? ";" : ":";
|
|
7581
7581
|
var isexe = require_isexe();
|
|
7582
7582
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -7614,7 +7614,7 @@ var require_which = __commonJS({
|
|
|
7614
7614
|
return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
7615
7615
|
const ppRaw = pathEnv[i];
|
|
7616
7616
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
7617
|
-
const pCmd =
|
|
7617
|
+
const pCmd = path9.join(pathPart, cmd);
|
|
7618
7618
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
7619
7619
|
resolve(subStep(p, i, 0));
|
|
7620
7620
|
});
|
|
@@ -7641,7 +7641,7 @@ var require_which = __commonJS({
|
|
|
7641
7641
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
7642
7642
|
const ppRaw = pathEnv[i];
|
|
7643
7643
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
7644
|
-
const pCmd =
|
|
7644
|
+
const pCmd = path9.join(pathPart, cmd);
|
|
7645
7645
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
7646
7646
|
for (let j = 0; j < pathExt.length; j++) {
|
|
7647
7647
|
const cur = p + pathExt[j];
|
|
@@ -7689,7 +7689,7 @@ var require_path_key = __commonJS({
|
|
|
7689
7689
|
var require_resolveCommand = __commonJS({
|
|
7690
7690
|
"../../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
|
|
7691
7691
|
"use strict";
|
|
7692
|
-
var
|
|
7692
|
+
var path9 = require("path");
|
|
7693
7693
|
var which = require_which();
|
|
7694
7694
|
var getPathKey = require_path_key();
|
|
7695
7695
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -7707,7 +7707,7 @@ var require_resolveCommand = __commonJS({
|
|
|
7707
7707
|
try {
|
|
7708
7708
|
resolved = which.sync(parsed.command, {
|
|
7709
7709
|
path: env2[getPathKey({ env: env2 })],
|
|
7710
|
-
pathExt: withoutPathExt ?
|
|
7710
|
+
pathExt: withoutPathExt ? path9.delimiter : void 0
|
|
7711
7711
|
});
|
|
7712
7712
|
} catch (e) {
|
|
7713
7713
|
} finally {
|
|
@@ -7716,7 +7716,7 @@ var require_resolveCommand = __commonJS({
|
|
|
7716
7716
|
}
|
|
7717
7717
|
}
|
|
7718
7718
|
if (resolved) {
|
|
7719
|
-
resolved =
|
|
7719
|
+
resolved = path9.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
7720
7720
|
}
|
|
7721
7721
|
return resolved;
|
|
7722
7722
|
}
|
|
@@ -7770,8 +7770,8 @@ var require_shebang_command = __commonJS({
|
|
|
7770
7770
|
if (!match) {
|
|
7771
7771
|
return null;
|
|
7772
7772
|
}
|
|
7773
|
-
const [
|
|
7774
|
-
const binary =
|
|
7773
|
+
const [path9, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
7774
|
+
const binary = path9.split("/").pop();
|
|
7775
7775
|
if (binary === "env") {
|
|
7776
7776
|
return argument;
|
|
7777
7777
|
}
|
|
@@ -7806,7 +7806,7 @@ var require_readShebang = __commonJS({
|
|
|
7806
7806
|
var require_parse = __commonJS({
|
|
7807
7807
|
"../../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
|
|
7808
7808
|
"use strict";
|
|
7809
|
-
var
|
|
7809
|
+
var path9 = require("path");
|
|
7810
7810
|
var resolveCommand = require_resolveCommand();
|
|
7811
7811
|
var escape = require_escape();
|
|
7812
7812
|
var readShebang = require_readShebang();
|
|
@@ -7831,7 +7831,7 @@ var require_parse = __commonJS({
|
|
|
7831
7831
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
7832
7832
|
if (parsed.options.forceShell || needsShell) {
|
|
7833
7833
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
7834
|
-
parsed.command =
|
|
7834
|
+
parsed.command = path9.normalize(parsed.command);
|
|
7835
7835
|
parsed.command = escape.command(parsed.command);
|
|
7836
7836
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
7837
7837
|
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
@@ -7963,7 +7963,7 @@ var require_strip_final_newline = __commonJS({
|
|
|
7963
7963
|
var require_npm_run_path = __commonJS({
|
|
7964
7964
|
"../../../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js"(exports, module2) {
|
|
7965
7965
|
"use strict";
|
|
7966
|
-
var
|
|
7966
|
+
var path9 = require("path");
|
|
7967
7967
|
var pathKey = require_path_key();
|
|
7968
7968
|
var npmRunPath = (options) => {
|
|
7969
7969
|
options = __spreadValues({
|
|
@@ -7972,16 +7972,16 @@ var require_npm_run_path = __commonJS({
|
|
|
7972
7972
|
execPath: process.execPath
|
|
7973
7973
|
}, options);
|
|
7974
7974
|
let previous;
|
|
7975
|
-
let cwdPath =
|
|
7975
|
+
let cwdPath = path9.resolve(options.cwd);
|
|
7976
7976
|
const result = [];
|
|
7977
7977
|
while (previous !== cwdPath) {
|
|
7978
|
-
result.push(
|
|
7978
|
+
result.push(path9.join(cwdPath, "node_modules/.bin"));
|
|
7979
7979
|
previous = cwdPath;
|
|
7980
|
-
cwdPath =
|
|
7980
|
+
cwdPath = path9.resolve(cwdPath, "..");
|
|
7981
7981
|
}
|
|
7982
|
-
const execPathDir =
|
|
7982
|
+
const execPathDir = path9.resolve(options.cwd, options.execPath, "..");
|
|
7983
7983
|
result.push(execPathDir);
|
|
7984
|
-
return result.concat(options.path).join(
|
|
7984
|
+
return result.concat(options.path).join(path9.delimiter);
|
|
7985
7985
|
};
|
|
7986
7986
|
module2.exports = npmRunPath;
|
|
7987
7987
|
module2.exports.default = npmRunPath;
|
|
@@ -7990,9 +7990,9 @@ var require_npm_run_path = __commonJS({
|
|
|
7990
7990
|
env: process.env
|
|
7991
7991
|
}, options);
|
|
7992
7992
|
const env2 = __spreadValues({}, options.env);
|
|
7993
|
-
const
|
|
7994
|
-
options.path = env2[
|
|
7995
|
-
env2[
|
|
7993
|
+
const path10 = pathKey({ env: env2 });
|
|
7994
|
+
options.path = env2[path10];
|
|
7995
|
+
env2[path10] = module2.exports(options);
|
|
7996
7996
|
return env2;
|
|
7997
7997
|
};
|
|
7998
7998
|
}
|
|
@@ -9176,7 +9176,7 @@ var require_command = __commonJS({
|
|
|
9176
9176
|
var require_execa = __commonJS({
|
|
9177
9177
|
"../../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports, module2) {
|
|
9178
9178
|
"use strict";
|
|
9179
|
-
var
|
|
9179
|
+
var path9 = require("path");
|
|
9180
9180
|
var childProcess = require("child_process");
|
|
9181
9181
|
var crossSpawn = require_cross_spawn();
|
|
9182
9182
|
var stripFinalNewline = require_strip_final_newline();
|
|
@@ -9217,7 +9217,7 @@ var require_execa = __commonJS({
|
|
|
9217
9217
|
}, options);
|
|
9218
9218
|
options.env = getEnv(options);
|
|
9219
9219
|
options.stdio = normalizeStdio(options);
|
|
9220
|
-
if (process.platform === "win32" &&
|
|
9220
|
+
if (process.platform === "win32" && path9.basename(file, ".exe") === "cmd") {
|
|
9221
9221
|
args.unshift("/q");
|
|
9222
9222
|
}
|
|
9223
9223
|
return { file, args, options, parsed };
|
|
@@ -20736,11 +20736,11 @@ var require_mime_types = __commonJS({
|
|
|
20736
20736
|
}
|
|
20737
20737
|
return exts[0];
|
|
20738
20738
|
}
|
|
20739
|
-
function lookup(
|
|
20740
|
-
if (!
|
|
20739
|
+
function lookup(path9) {
|
|
20740
|
+
if (!path9 || typeof path9 !== "string") {
|
|
20741
20741
|
return false;
|
|
20742
20742
|
}
|
|
20743
|
-
var extension2 = extname("x." +
|
|
20743
|
+
var extension2 = extname("x." + path9).toLowerCase().substr(1);
|
|
20744
20744
|
if (!extension2) {
|
|
20745
20745
|
return false;
|
|
20746
20746
|
}
|
|
@@ -21009,7 +21009,7 @@ var require_form_data = __commonJS({
|
|
|
21009
21009
|
"use strict";
|
|
21010
21010
|
var CombinedStream = require_combined_stream();
|
|
21011
21011
|
var util2 = require("util");
|
|
21012
|
-
var
|
|
21012
|
+
var path9 = require("path");
|
|
21013
21013
|
var http2 = require("http");
|
|
21014
21014
|
var https2 = require("https");
|
|
21015
21015
|
var parseUrl = require("url").parse;
|
|
@@ -21136,11 +21136,11 @@ var require_form_data = __commonJS({
|
|
|
21136
21136
|
FormData3.prototype._getContentDisposition = function(value, options) {
|
|
21137
21137
|
var filename, contentDisposition;
|
|
21138
21138
|
if (typeof options.filepath === "string") {
|
|
21139
|
-
filename =
|
|
21139
|
+
filename = path9.normalize(options.filepath).replace(/\\/g, "/");
|
|
21140
21140
|
} else if (options.filename || value.name || value.path) {
|
|
21141
|
-
filename =
|
|
21141
|
+
filename = path9.basename(options.filename || value.name || value.path);
|
|
21142
21142
|
} else if (value.readable && value.hasOwnProperty("httpVersion")) {
|
|
21143
|
-
filename =
|
|
21143
|
+
filename = path9.basename(value.client._httpMessage.path || "");
|
|
21144
21144
|
}
|
|
21145
21145
|
if (filename) {
|
|
21146
21146
|
contentDisposition = 'filename="' + filename + '"';
|
|
@@ -23803,10 +23803,10 @@ var require_header = __commonJS({
|
|
|
23803
23803
|
}
|
|
23804
23804
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
23805
23805
|
const split = splitPrefix(this.path || "", prefixSize);
|
|
23806
|
-
const
|
|
23806
|
+
const path9 = split[0];
|
|
23807
23807
|
const prefix = split[1];
|
|
23808
23808
|
this.needPax = split[2];
|
|
23809
|
-
this.needPax = encString(buf, off, 100,
|
|
23809
|
+
this.needPax = encString(buf, off, 100, path9) || this.needPax;
|
|
23810
23810
|
this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
|
|
23811
23811
|
this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
|
|
23812
23812
|
this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
|
|
@@ -23916,7 +23916,7 @@ var require_pax = __commonJS({
|
|
|
23916
23916
|
"../../../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/pax.js"(exports, module2) {
|
|
23917
23917
|
"use strict";
|
|
23918
23918
|
var Header = require_header();
|
|
23919
|
-
var
|
|
23919
|
+
var path9 = require("path");
|
|
23920
23920
|
var Pax = class {
|
|
23921
23921
|
constructor(obj, global2) {
|
|
23922
23922
|
this.atime = obj.atime || null;
|
|
@@ -23951,7 +23951,7 @@ var require_pax = __commonJS({
|
|
|
23951
23951
|
// XXX split the path
|
|
23952
23952
|
// then the path should be PaxHeader + basename, but less than 99,
|
|
23953
23953
|
// prepend with the dirname
|
|
23954
|
-
path: ("PaxHeader/" +
|
|
23954
|
+
path: ("PaxHeader/" + path9.basename(this.path)).slice(0, 99),
|
|
23955
23955
|
mode: this.mode || 420,
|
|
23956
23956
|
uid: this.uid || null,
|
|
23957
23957
|
gid: this.gid || null,
|
|
@@ -24084,16 +24084,16 @@ var require_strip_absolute_path = __commonJS({
|
|
|
24084
24084
|
"../../../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-absolute-path.js"(exports, module2) {
|
|
24085
24085
|
"use strict";
|
|
24086
24086
|
var { isAbsolute, parse } = require("path").win32;
|
|
24087
|
-
module2.exports = (
|
|
24087
|
+
module2.exports = (path9) => {
|
|
24088
24088
|
let r = "";
|
|
24089
|
-
let parsed = parse(
|
|
24090
|
-
while (isAbsolute(
|
|
24091
|
-
const root =
|
|
24092
|
-
|
|
24089
|
+
let parsed = parse(path9);
|
|
24090
|
+
while (isAbsolute(path9) || parsed.root) {
|
|
24091
|
+
const root = path9.charAt(0) === "/" && path9.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
24092
|
+
path9 = path9.slice(root.length);
|
|
24093
24093
|
r += root;
|
|
24094
|
-
parsed = parse(
|
|
24094
|
+
parsed = parse(path9);
|
|
24095
24095
|
}
|
|
24096
|
-
return [r,
|
|
24096
|
+
return [r, path9];
|
|
24097
24097
|
};
|
|
24098
24098
|
}
|
|
24099
24099
|
});
|
|
@@ -24131,15 +24131,15 @@ var require_write_entry = __commonJS({
|
|
|
24131
24131
|
var Pax = require_pax();
|
|
24132
24132
|
var Header = require_header();
|
|
24133
24133
|
var fs2 = require("fs");
|
|
24134
|
-
var
|
|
24134
|
+
var path9 = require("path");
|
|
24135
24135
|
var normPath = require_normalize_windows_path();
|
|
24136
24136
|
var stripSlash = require_strip_trailing_slashes();
|
|
24137
|
-
var prefixPath = (
|
|
24137
|
+
var prefixPath = (path10, prefix) => {
|
|
24138
24138
|
if (!prefix) {
|
|
24139
|
-
return normPath(
|
|
24139
|
+
return normPath(path10);
|
|
24140
24140
|
}
|
|
24141
|
-
|
|
24142
|
-
return stripSlash(prefix) + "/" +
|
|
24141
|
+
path10 = normPath(path10).replace(/^\.(\/|$)/, "");
|
|
24142
|
+
return stripSlash(prefix) + "/" + path10;
|
|
24143
24143
|
};
|
|
24144
24144
|
var maxReadSize = 16 * 1024 * 1024;
|
|
24145
24145
|
var PROCESS = Symbol("process");
|
|
@@ -24210,7 +24210,7 @@ var require_write_entry = __commonJS({
|
|
|
24210
24210
|
this.path = winchars.decode(this.path.replace(/\\/g, "/"));
|
|
24211
24211
|
p = p.replace(/\\/g, "/");
|
|
24212
24212
|
}
|
|
24213
|
-
this.absolute = normPath(opt.absolute ||
|
|
24213
|
+
this.absolute = normPath(opt.absolute || path9.resolve(this.cwd, p));
|
|
24214
24214
|
if (this.path === "") {
|
|
24215
24215
|
this.path = "./";
|
|
24216
24216
|
}
|
|
@@ -24265,8 +24265,8 @@ var require_write_entry = __commonJS({
|
|
|
24265
24265
|
[MODE](mode) {
|
|
24266
24266
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
24267
24267
|
}
|
|
24268
|
-
[PREFIX](
|
|
24269
|
-
return prefixPath(
|
|
24268
|
+
[PREFIX](path10) {
|
|
24269
|
+
return prefixPath(path10, this.prefix);
|
|
24270
24270
|
}
|
|
24271
24271
|
[HEADER]() {
|
|
24272
24272
|
if (this.type === "Directory" && this.portable) {
|
|
@@ -24329,7 +24329,7 @@ var require_write_entry = __commonJS({
|
|
|
24329
24329
|
}
|
|
24330
24330
|
[HARDLINK](linkpath) {
|
|
24331
24331
|
this.type = "Link";
|
|
24332
|
-
this.linkpath = normPath(
|
|
24332
|
+
this.linkpath = normPath(path9.relative(this.cwd, linkpath));
|
|
24333
24333
|
this.stat.size = 0;
|
|
24334
24334
|
this[HEADER]();
|
|
24335
24335
|
this.end();
|
|
@@ -24560,8 +24560,8 @@ var require_write_entry = __commonJS({
|
|
|
24560
24560
|
super.write(this.header.block);
|
|
24561
24561
|
readEntry.pipe(this);
|
|
24562
24562
|
}
|
|
24563
|
-
[PREFIX](
|
|
24564
|
-
return prefixPath(
|
|
24563
|
+
[PREFIX](path10) {
|
|
24564
|
+
return prefixPath(path10, this.prefix);
|
|
24565
24565
|
}
|
|
24566
24566
|
[MODE](mode) {
|
|
24567
24567
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
@@ -24593,8 +24593,8 @@ var require_pack = __commonJS({
|
|
|
24593
24593
|
"../../../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/pack.js"(exports, module2) {
|
|
24594
24594
|
"use strict";
|
|
24595
24595
|
var PackJob = class {
|
|
24596
|
-
constructor(
|
|
24597
|
-
this.path =
|
|
24596
|
+
constructor(path10, absolute) {
|
|
24597
|
+
this.path = path10 || "./";
|
|
24598
24598
|
this.absolute = absolute;
|
|
24599
24599
|
this.entry = null;
|
|
24600
24600
|
this.stat = null;
|
|
@@ -24633,7 +24633,7 @@ var require_pack = __commonJS({
|
|
|
24633
24633
|
var WRITE = Symbol("write");
|
|
24634
24634
|
var ONDRAIN = Symbol("ondrain");
|
|
24635
24635
|
var fs2 = require("fs");
|
|
24636
|
-
var
|
|
24636
|
+
var path9 = require("path");
|
|
24637
24637
|
var warner = require_warn_mixin();
|
|
24638
24638
|
var normPath = require_normalize_windows_path();
|
|
24639
24639
|
var Pack = warner(class Pack extends Minipass {
|
|
@@ -24697,31 +24697,31 @@ var require_pack = __commonJS({
|
|
|
24697
24697
|
[WRITE](chunk) {
|
|
24698
24698
|
return super.write(chunk);
|
|
24699
24699
|
}
|
|
24700
|
-
add(
|
|
24701
|
-
this.write(
|
|
24700
|
+
add(path10) {
|
|
24701
|
+
this.write(path10);
|
|
24702
24702
|
return this;
|
|
24703
24703
|
}
|
|
24704
|
-
end(
|
|
24705
|
-
if (
|
|
24706
|
-
this.write(
|
|
24704
|
+
end(path10) {
|
|
24705
|
+
if (path10) {
|
|
24706
|
+
this.write(path10);
|
|
24707
24707
|
}
|
|
24708
24708
|
this[ENDED] = true;
|
|
24709
24709
|
this[PROCESS]();
|
|
24710
24710
|
return this;
|
|
24711
24711
|
}
|
|
24712
|
-
write(
|
|
24712
|
+
write(path10) {
|
|
24713
24713
|
if (this[ENDED]) {
|
|
24714
24714
|
throw new Error("write after end");
|
|
24715
24715
|
}
|
|
24716
|
-
if (
|
|
24717
|
-
this[ADDTARENTRY](
|
|
24716
|
+
if (path10 instanceof ReadEntry) {
|
|
24717
|
+
this[ADDTARENTRY](path10);
|
|
24718
24718
|
} else {
|
|
24719
|
-
this[ADDFSENTRY](
|
|
24719
|
+
this[ADDFSENTRY](path10);
|
|
24720
24720
|
}
|
|
24721
24721
|
return this.flowing;
|
|
24722
24722
|
}
|
|
24723
24723
|
[ADDTARENTRY](p) {
|
|
24724
|
-
const absolute = normPath(
|
|
24724
|
+
const absolute = normPath(path9.resolve(this.cwd, p.path));
|
|
24725
24725
|
if (!this.filter(p.path, p)) {
|
|
24726
24726
|
p.resume();
|
|
24727
24727
|
} else {
|
|
@@ -24734,7 +24734,7 @@ var require_pack = __commonJS({
|
|
|
24734
24734
|
this[PROCESS]();
|
|
24735
24735
|
}
|
|
24736
24736
|
[ADDFSENTRY](p) {
|
|
24737
|
-
const absolute = normPath(
|
|
24737
|
+
const absolute = normPath(path9.resolve(this.cwd, p));
|
|
24738
24738
|
this[QUEUE].push(new PackJob(p, absolute));
|
|
24739
24739
|
this[PROCESS]();
|
|
24740
24740
|
}
|
|
@@ -25004,16 +25004,16 @@ var require_fs_minipass = __commonJS({
|
|
|
25004
25004
|
var _defaultFlag = Symbol("_defaultFlag");
|
|
25005
25005
|
var _errored = Symbol("_errored");
|
|
25006
25006
|
var ReadStream = class extends MiniPass {
|
|
25007
|
-
constructor(
|
|
25007
|
+
constructor(path9, opt) {
|
|
25008
25008
|
opt = opt || {};
|
|
25009
25009
|
super(opt);
|
|
25010
25010
|
this.readable = true;
|
|
25011
25011
|
this.writable = false;
|
|
25012
|
-
if (typeof
|
|
25012
|
+
if (typeof path9 !== "string")
|
|
25013
25013
|
throw new TypeError("path must be a string");
|
|
25014
25014
|
this[_errored] = false;
|
|
25015
25015
|
this[_fd] = typeof opt.fd === "number" ? opt.fd : null;
|
|
25016
|
-
this[_path] =
|
|
25016
|
+
this[_path] = path9;
|
|
25017
25017
|
this[_readSize] = opt.readSize || 16 * 1024 * 1024;
|
|
25018
25018
|
this[_reading] = false;
|
|
25019
25019
|
this[_size] = typeof opt.size === "number" ? opt.size : Infinity;
|
|
@@ -25150,7 +25150,7 @@ var require_fs_minipass = __commonJS({
|
|
|
25150
25150
|
}
|
|
25151
25151
|
};
|
|
25152
25152
|
var WriteStream = class extends EE {
|
|
25153
|
-
constructor(
|
|
25153
|
+
constructor(path9, opt) {
|
|
25154
25154
|
opt = opt || {};
|
|
25155
25155
|
super(opt);
|
|
25156
25156
|
this.readable = false;
|
|
@@ -25160,7 +25160,7 @@ var require_fs_minipass = __commonJS({
|
|
|
25160
25160
|
this[_ended] = false;
|
|
25161
25161
|
this[_needDrain] = false;
|
|
25162
25162
|
this[_queue] = [];
|
|
25163
|
-
this[_path] =
|
|
25163
|
+
this[_path] = path9;
|
|
25164
25164
|
this[_fd] = typeof opt.fd === "number" ? opt.fd : null;
|
|
25165
25165
|
this[_mode] = opt.mode === void 0 ? 438 : opt.mode;
|
|
25166
25166
|
this[_pos] = typeof opt.start === "number" ? opt.start : null;
|
|
@@ -25764,7 +25764,7 @@ var require_list = __commonJS({
|
|
|
25764
25764
|
var Parser = require_parse3();
|
|
25765
25765
|
var fs2 = require("fs");
|
|
25766
25766
|
var fsm = require_fs_minipass();
|
|
25767
|
-
var
|
|
25767
|
+
var path9 = require("path");
|
|
25768
25768
|
var stripSlash = require_strip_trailing_slashes();
|
|
25769
25769
|
module2.exports = (opt_, files, cb) => {
|
|
25770
25770
|
if (typeof opt_ === "function") {
|
|
@@ -25806,8 +25806,8 @@ var require_list = __commonJS({
|
|
|
25806
25806
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
25807
25807
|
const filter2 = opt.filter;
|
|
25808
25808
|
const mapHas = (file, r) => {
|
|
25809
|
-
const root = r ||
|
|
25810
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(
|
|
25809
|
+
const root = r || path9.parse(file).root || ".";
|
|
25810
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path9.dirname(file), root);
|
|
25811
25811
|
map.set(file, ret);
|
|
25812
25812
|
return ret;
|
|
25813
25813
|
};
|
|
@@ -25878,7 +25878,7 @@ var require_create = __commonJS({
|
|
|
25878
25878
|
var Pack = require_pack();
|
|
25879
25879
|
var fsm = require_fs_minipass();
|
|
25880
25880
|
var t = require_list();
|
|
25881
|
-
var
|
|
25881
|
+
var path9 = require("path");
|
|
25882
25882
|
module2.exports = (opt_, files, cb) => {
|
|
25883
25883
|
if (typeof files === "function") {
|
|
25884
25884
|
cb = files;
|
|
@@ -25925,7 +25925,7 @@ var require_create = __commonJS({
|
|
|
25925
25925
|
files.forEach((file) => {
|
|
25926
25926
|
if (file.charAt(0) === "@") {
|
|
25927
25927
|
t({
|
|
25928
|
-
file:
|
|
25928
|
+
file: path9.resolve(p.cwd, file.slice(1)),
|
|
25929
25929
|
sync: true,
|
|
25930
25930
|
noResume: true,
|
|
25931
25931
|
onentry: (entry) => p.add(entry)
|
|
@@ -25941,7 +25941,7 @@ var require_create = __commonJS({
|
|
|
25941
25941
|
const file = files.shift();
|
|
25942
25942
|
if (file.charAt(0) === "@") {
|
|
25943
25943
|
return t({
|
|
25944
|
-
file:
|
|
25944
|
+
file: path9.resolve(p.cwd, file.slice(1)),
|
|
25945
25945
|
noResume: true,
|
|
25946
25946
|
onentry: (entry) => p.add(entry)
|
|
25947
25947
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -25973,7 +25973,7 @@ var require_replace = __commonJS({
|
|
|
25973
25973
|
var fs2 = require("fs");
|
|
25974
25974
|
var fsm = require_fs_minipass();
|
|
25975
25975
|
var t = require_list();
|
|
25976
|
-
var
|
|
25976
|
+
var path9 = require("path");
|
|
25977
25977
|
var Header = require_header();
|
|
25978
25978
|
module2.exports = (opt_, files, cb) => {
|
|
25979
25979
|
const opt = hlo(opt_);
|
|
@@ -26151,7 +26151,7 @@ var require_replace = __commonJS({
|
|
|
26151
26151
|
files.forEach((file) => {
|
|
26152
26152
|
if (file.charAt(0) === "@") {
|
|
26153
26153
|
t({
|
|
26154
|
-
file:
|
|
26154
|
+
file: path9.resolve(p.cwd, file.slice(1)),
|
|
26155
26155
|
sync: true,
|
|
26156
26156
|
noResume: true,
|
|
26157
26157
|
onentry: (entry) => p.add(entry)
|
|
@@ -26167,7 +26167,7 @@ var require_replace = __commonJS({
|
|
|
26167
26167
|
const file = files.shift();
|
|
26168
26168
|
if (file.charAt(0) === "@") {
|
|
26169
26169
|
return t({
|
|
26170
|
-
file:
|
|
26170
|
+
file: path9.resolve(p.cwd, file.slice(1)),
|
|
26171
26171
|
noResume: true,
|
|
26172
26172
|
onentry: (entry) => p.add(entry)
|
|
26173
26173
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -26206,7 +26206,7 @@ var require_update = __commonJS({
|
|
|
26206
26206
|
if (!opt.mtimeCache) {
|
|
26207
26207
|
opt.mtimeCache = /* @__PURE__ */ new Map();
|
|
26208
26208
|
}
|
|
26209
|
-
opt.filter = filter2 ? (
|
|
26209
|
+
opt.filter = filter2 ? (path9, stat) => filter2(path9, stat) && !(opt.mtimeCache.get(path9) > stat.mtime) : (path9, stat) => !(opt.mtimeCache.get(path9) > stat.mtime);
|
|
26210
26210
|
};
|
|
26211
26211
|
}
|
|
26212
26212
|
});
|
|
@@ -26246,28 +26246,28 @@ var require_path_arg = __commonJS({
|
|
|
26246
26246
|
"use strict";
|
|
26247
26247
|
var platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
26248
26248
|
var { resolve, parse } = require("path");
|
|
26249
|
-
var pathArg = (
|
|
26250
|
-
if (/\0/.test(
|
|
26249
|
+
var pathArg = (path9) => {
|
|
26250
|
+
if (/\0/.test(path9)) {
|
|
26251
26251
|
throw Object.assign(
|
|
26252
26252
|
new TypeError("path must be a string without null bytes"),
|
|
26253
26253
|
{
|
|
26254
|
-
path:
|
|
26254
|
+
path: path9,
|
|
26255
26255
|
code: "ERR_INVALID_ARG_VALUE"
|
|
26256
26256
|
}
|
|
26257
26257
|
);
|
|
26258
26258
|
}
|
|
26259
|
-
|
|
26259
|
+
path9 = resolve(path9);
|
|
26260
26260
|
if (platform === "win32") {
|
|
26261
26261
|
const badWinChars = /[*|"<>?:]/;
|
|
26262
|
-
const { root } = parse(
|
|
26263
|
-
if (badWinChars.test(
|
|
26262
|
+
const { root } = parse(path9);
|
|
26263
|
+
if (badWinChars.test(path9.substr(root.length))) {
|
|
26264
26264
|
throw Object.assign(new Error("Illegal characters in path."), {
|
|
26265
|
-
path:
|
|
26265
|
+
path: path9,
|
|
26266
26266
|
code: "EINVAL"
|
|
26267
26267
|
});
|
|
26268
26268
|
}
|
|
26269
26269
|
}
|
|
26270
|
-
return
|
|
26270
|
+
return path9;
|
|
26271
26271
|
};
|
|
26272
26272
|
module2.exports = pathArg;
|
|
26273
26273
|
}
|
|
@@ -26278,20 +26278,20 @@ var require_find_made = __commonJS({
|
|
|
26278
26278
|
"../../../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js"(exports, module2) {
|
|
26279
26279
|
"use strict";
|
|
26280
26280
|
var { dirname } = require("path");
|
|
26281
|
-
var findMade = (opts, parent,
|
|
26282
|
-
if (
|
|
26281
|
+
var findMade = (opts, parent, path9 = void 0) => {
|
|
26282
|
+
if (path9 === parent)
|
|
26283
26283
|
return Promise.resolve();
|
|
26284
26284
|
return opts.statAsync(parent).then(
|
|
26285
|
-
(st) => st.isDirectory() ?
|
|
26285
|
+
(st) => st.isDirectory() ? path9 : void 0,
|
|
26286
26286
|
// will fail later
|
|
26287
26287
|
(er) => er.code === "ENOENT" ? findMade(opts, dirname(parent), parent) : void 0
|
|
26288
26288
|
);
|
|
26289
26289
|
};
|
|
26290
|
-
var findMadeSync = (opts, parent,
|
|
26291
|
-
if (
|
|
26290
|
+
var findMadeSync = (opts, parent, path9 = void 0) => {
|
|
26291
|
+
if (path9 === parent)
|
|
26292
26292
|
return void 0;
|
|
26293
26293
|
try {
|
|
26294
|
-
return opts.statSync(parent).isDirectory() ?
|
|
26294
|
+
return opts.statSync(parent).isDirectory() ? path9 : void 0;
|
|
26295
26295
|
} catch (er) {
|
|
26296
26296
|
return er.code === "ENOENT" ? findMadeSync(opts, dirname(parent), parent) : void 0;
|
|
26297
26297
|
}
|
|
@@ -26305,21 +26305,21 @@ var require_mkdirp_manual = __commonJS({
|
|
|
26305
26305
|
"../../../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js"(exports, module2) {
|
|
26306
26306
|
"use strict";
|
|
26307
26307
|
var { dirname } = require("path");
|
|
26308
|
-
var mkdirpManual = (
|
|
26308
|
+
var mkdirpManual = (path9, opts, made) => {
|
|
26309
26309
|
opts.recursive = false;
|
|
26310
|
-
const parent = dirname(
|
|
26311
|
-
if (parent ===
|
|
26312
|
-
return opts.mkdirAsync(
|
|
26310
|
+
const parent = dirname(path9);
|
|
26311
|
+
if (parent === path9) {
|
|
26312
|
+
return opts.mkdirAsync(path9, opts).catch((er) => {
|
|
26313
26313
|
if (er.code !== "EISDIR")
|
|
26314
26314
|
throw er;
|
|
26315
26315
|
});
|
|
26316
26316
|
}
|
|
26317
|
-
return opts.mkdirAsync(
|
|
26317
|
+
return opts.mkdirAsync(path9, opts).then(() => made || path9, (er) => {
|
|
26318
26318
|
if (er.code === "ENOENT")
|
|
26319
|
-
return mkdirpManual(parent, opts).then((made2) => mkdirpManual(
|
|
26319
|
+
return mkdirpManual(parent, opts).then((made2) => mkdirpManual(path9, opts, made2));
|
|
26320
26320
|
if (er.code !== "EEXIST" && er.code !== "EROFS")
|
|
26321
26321
|
throw er;
|
|
26322
|
-
return opts.statAsync(
|
|
26322
|
+
return opts.statAsync(path9).then((st) => {
|
|
26323
26323
|
if (st.isDirectory())
|
|
26324
26324
|
return made;
|
|
26325
26325
|
else
|
|
@@ -26329,12 +26329,12 @@ var require_mkdirp_manual = __commonJS({
|
|
|
26329
26329
|
});
|
|
26330
26330
|
});
|
|
26331
26331
|
};
|
|
26332
|
-
var mkdirpManualSync = (
|
|
26333
|
-
const parent = dirname(
|
|
26332
|
+
var mkdirpManualSync = (path9, opts, made) => {
|
|
26333
|
+
const parent = dirname(path9);
|
|
26334
26334
|
opts.recursive = false;
|
|
26335
|
-
if (parent ===
|
|
26335
|
+
if (parent === path9) {
|
|
26336
26336
|
try {
|
|
26337
|
-
return opts.mkdirSync(
|
|
26337
|
+
return opts.mkdirSync(path9, opts);
|
|
26338
26338
|
} catch (er) {
|
|
26339
26339
|
if (er.code !== "EISDIR")
|
|
26340
26340
|
throw er;
|
|
@@ -26343,15 +26343,15 @@ var require_mkdirp_manual = __commonJS({
|
|
|
26343
26343
|
}
|
|
26344
26344
|
}
|
|
26345
26345
|
try {
|
|
26346
|
-
opts.mkdirSync(
|
|
26347
|
-
return made ||
|
|
26346
|
+
opts.mkdirSync(path9, opts);
|
|
26347
|
+
return made || path9;
|
|
26348
26348
|
} catch (er) {
|
|
26349
26349
|
if (er.code === "ENOENT")
|
|
26350
|
-
return mkdirpManualSync(
|
|
26350
|
+
return mkdirpManualSync(path9, opts, mkdirpManualSync(parent, opts, made));
|
|
26351
26351
|
if (er.code !== "EEXIST" && er.code !== "EROFS")
|
|
26352
26352
|
throw er;
|
|
26353
26353
|
try {
|
|
26354
|
-
if (!opts.statSync(
|
|
26354
|
+
if (!opts.statSync(path9).isDirectory())
|
|
26355
26355
|
throw er;
|
|
26356
26356
|
} catch (_) {
|
|
26357
26357
|
throw er;
|
|
@@ -26369,30 +26369,30 @@ var require_mkdirp_native = __commonJS({
|
|
|
26369
26369
|
var { dirname } = require("path");
|
|
26370
26370
|
var { findMade, findMadeSync } = require_find_made();
|
|
26371
26371
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
26372
|
-
var mkdirpNative = (
|
|
26372
|
+
var mkdirpNative = (path9, opts) => {
|
|
26373
26373
|
opts.recursive = true;
|
|
26374
|
-
const parent = dirname(
|
|
26375
|
-
if (parent ===
|
|
26376
|
-
return opts.mkdirAsync(
|
|
26377
|
-
return findMade(opts,
|
|
26374
|
+
const parent = dirname(path9);
|
|
26375
|
+
if (parent === path9)
|
|
26376
|
+
return opts.mkdirAsync(path9, opts);
|
|
26377
|
+
return findMade(opts, path9).then((made) => opts.mkdirAsync(path9, opts).then(() => made).catch((er) => {
|
|
26378
26378
|
if (er.code === "ENOENT")
|
|
26379
|
-
return mkdirpManual(
|
|
26379
|
+
return mkdirpManual(path9, opts);
|
|
26380
26380
|
else
|
|
26381
26381
|
throw er;
|
|
26382
26382
|
}));
|
|
26383
26383
|
};
|
|
26384
|
-
var mkdirpNativeSync = (
|
|
26384
|
+
var mkdirpNativeSync = (path9, opts) => {
|
|
26385
26385
|
opts.recursive = true;
|
|
26386
|
-
const parent = dirname(
|
|
26387
|
-
if (parent ===
|
|
26388
|
-
return opts.mkdirSync(
|
|
26389
|
-
const made = findMadeSync(opts,
|
|
26386
|
+
const parent = dirname(path9);
|
|
26387
|
+
if (parent === path9)
|
|
26388
|
+
return opts.mkdirSync(path9, opts);
|
|
26389
|
+
const made = findMadeSync(opts, path9);
|
|
26390
26390
|
try {
|
|
26391
|
-
opts.mkdirSync(
|
|
26391
|
+
opts.mkdirSync(path9, opts);
|
|
26392
26392
|
return made;
|
|
26393
26393
|
} catch (er) {
|
|
26394
26394
|
if (er.code === "ENOENT")
|
|
26395
|
-
return mkdirpManualSync(
|
|
26395
|
+
return mkdirpManualSync(path9, opts);
|
|
26396
26396
|
else
|
|
26397
26397
|
throw er;
|
|
26398
26398
|
}
|
|
@@ -26424,21 +26424,21 @@ var require_mkdirp = __commonJS({
|
|
|
26424
26424
|
var { mkdirpNative, mkdirpNativeSync } = require_mkdirp_native();
|
|
26425
26425
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
26426
26426
|
var { useNative, useNativeSync } = require_use_native();
|
|
26427
|
-
var mkdirp = (
|
|
26428
|
-
|
|
26427
|
+
var mkdirp = (path9, opts) => {
|
|
26428
|
+
path9 = pathArg(path9);
|
|
26429
26429
|
opts = optsArg(opts);
|
|
26430
|
-
return useNative(opts) ? mkdirpNative(
|
|
26430
|
+
return useNative(opts) ? mkdirpNative(path9, opts) : mkdirpManual(path9, opts);
|
|
26431
26431
|
};
|
|
26432
|
-
var mkdirpSync = (
|
|
26433
|
-
|
|
26432
|
+
var mkdirpSync = (path9, opts) => {
|
|
26433
|
+
path9 = pathArg(path9);
|
|
26434
26434
|
opts = optsArg(opts);
|
|
26435
|
-
return useNativeSync(opts) ? mkdirpNativeSync(
|
|
26435
|
+
return useNativeSync(opts) ? mkdirpNativeSync(path9, opts) : mkdirpManualSync(path9, opts);
|
|
26436
26436
|
};
|
|
26437
26437
|
mkdirp.sync = mkdirpSync;
|
|
26438
|
-
mkdirp.native = (
|
|
26439
|
-
mkdirp.manual = (
|
|
26440
|
-
mkdirp.nativeSync = (
|
|
26441
|
-
mkdirp.manualSync = (
|
|
26438
|
+
mkdirp.native = (path9, opts) => mkdirpNative(pathArg(path9), optsArg(opts));
|
|
26439
|
+
mkdirp.manual = (path9, opts) => mkdirpManual(pathArg(path9), optsArg(opts));
|
|
26440
|
+
mkdirp.nativeSync = (path9, opts) => mkdirpNativeSync(pathArg(path9), optsArg(opts));
|
|
26441
|
+
mkdirp.manualSync = (path9, opts) => mkdirpManualSync(pathArg(path9), optsArg(opts));
|
|
26442
26442
|
module2.exports = mkdirp;
|
|
26443
26443
|
}
|
|
26444
26444
|
});
|
|
@@ -26448,46 +26448,46 @@ var require_chownr = __commonJS({
|
|
|
26448
26448
|
"../../../../node_modules/.pnpm/chownr@2.0.0/node_modules/chownr/chownr.js"(exports, module2) {
|
|
26449
26449
|
"use strict";
|
|
26450
26450
|
var fs2 = require("fs");
|
|
26451
|
-
var
|
|
26451
|
+
var path9 = require("path");
|
|
26452
26452
|
var LCHOWN = fs2.lchown ? "lchown" : "chown";
|
|
26453
26453
|
var LCHOWNSYNC = fs2.lchownSync ? "lchownSync" : "chownSync";
|
|
26454
26454
|
var needEISDIRHandled = fs2.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
26455
|
-
var lchownSync = (
|
|
26455
|
+
var lchownSync = (path10, uid, gid) => {
|
|
26456
26456
|
try {
|
|
26457
|
-
return fs2[LCHOWNSYNC](
|
|
26457
|
+
return fs2[LCHOWNSYNC](path10, uid, gid);
|
|
26458
26458
|
} catch (er) {
|
|
26459
26459
|
if (er.code !== "ENOENT")
|
|
26460
26460
|
throw er;
|
|
26461
26461
|
}
|
|
26462
26462
|
};
|
|
26463
|
-
var chownSync = (
|
|
26463
|
+
var chownSync = (path10, uid, gid) => {
|
|
26464
26464
|
try {
|
|
26465
|
-
return fs2.chownSync(
|
|
26465
|
+
return fs2.chownSync(path10, uid, gid);
|
|
26466
26466
|
} catch (er) {
|
|
26467
26467
|
if (er.code !== "ENOENT")
|
|
26468
26468
|
throw er;
|
|
26469
26469
|
}
|
|
26470
26470
|
};
|
|
26471
|
-
var handleEISDIR = needEISDIRHandled ? (
|
|
26471
|
+
var handleEISDIR = needEISDIRHandled ? (path10, uid, gid, cb) => (er) => {
|
|
26472
26472
|
if (!er || er.code !== "EISDIR")
|
|
26473
26473
|
cb(er);
|
|
26474
26474
|
else
|
|
26475
|
-
fs2.chown(
|
|
26475
|
+
fs2.chown(path10, uid, gid, cb);
|
|
26476
26476
|
} : (_, __, ___, cb) => cb;
|
|
26477
|
-
var handleEISDirSync = needEISDIRHandled ? (
|
|
26477
|
+
var handleEISDirSync = needEISDIRHandled ? (path10, uid, gid) => {
|
|
26478
26478
|
try {
|
|
26479
|
-
return lchownSync(
|
|
26479
|
+
return lchownSync(path10, uid, gid);
|
|
26480
26480
|
} catch (er) {
|
|
26481
26481
|
if (er.code !== "EISDIR")
|
|
26482
26482
|
throw er;
|
|
26483
|
-
chownSync(
|
|
26483
|
+
chownSync(path10, uid, gid);
|
|
26484
26484
|
}
|
|
26485
|
-
} : (
|
|
26485
|
+
} : (path10, uid, gid) => lchownSync(path10, uid, gid);
|
|
26486
26486
|
var nodeVersion = process.version;
|
|
26487
|
-
var readdir = (
|
|
26488
|
-
var readdirSync = (
|
|
26487
|
+
var readdir = (path10, options, cb) => fs2.readdir(path10, options, cb);
|
|
26488
|
+
var readdirSync = (path10, options) => fs2.readdirSync(path10, options);
|
|
26489
26489
|
if (/^v4\./.test(nodeVersion))
|
|
26490
|
-
readdir = (
|
|
26490
|
+
readdir = (path10, options, cb) => fs2.readdir(path10, cb);
|
|
26491
26491
|
var chown = (cpath, uid, gid, cb) => {
|
|
26492
26492
|
fs2[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
26493
26493
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
@@ -26495,21 +26495,21 @@ var require_chownr = __commonJS({
|
|
|
26495
26495
|
};
|
|
26496
26496
|
var chownrKid = (p, child, uid, gid, cb) => {
|
|
26497
26497
|
if (typeof child === "string")
|
|
26498
|
-
return fs2.lstat(
|
|
26498
|
+
return fs2.lstat(path9.resolve(p, child), (er, stats) => {
|
|
26499
26499
|
if (er)
|
|
26500
26500
|
return cb(er.code !== "ENOENT" ? er : null);
|
|
26501
26501
|
stats.name = child;
|
|
26502
26502
|
chownrKid(p, stats, uid, gid, cb);
|
|
26503
26503
|
});
|
|
26504
26504
|
if (child.isDirectory()) {
|
|
26505
|
-
chownr(
|
|
26505
|
+
chownr(path9.resolve(p, child.name), uid, gid, (er) => {
|
|
26506
26506
|
if (er)
|
|
26507
26507
|
return cb(er);
|
|
26508
|
-
const cpath =
|
|
26508
|
+
const cpath = path9.resolve(p, child.name);
|
|
26509
26509
|
chown(cpath, uid, gid, cb);
|
|
26510
26510
|
});
|
|
26511
26511
|
} else {
|
|
26512
|
-
const cpath =
|
|
26512
|
+
const cpath = path9.resolve(p, child.name);
|
|
26513
26513
|
chown(cpath, uid, gid, cb);
|
|
26514
26514
|
}
|
|
26515
26515
|
};
|
|
@@ -26539,7 +26539,7 @@ var require_chownr = __commonJS({
|
|
|
26539
26539
|
var chownrKidSync = (p, child, uid, gid) => {
|
|
26540
26540
|
if (typeof child === "string") {
|
|
26541
26541
|
try {
|
|
26542
|
-
const stats = fs2.lstatSync(
|
|
26542
|
+
const stats = fs2.lstatSync(path9.resolve(p, child));
|
|
26543
26543
|
stats.name = child;
|
|
26544
26544
|
child = stats;
|
|
26545
26545
|
} catch (er) {
|
|
@@ -26550,8 +26550,8 @@ var require_chownr = __commonJS({
|
|
|
26550
26550
|
}
|
|
26551
26551
|
}
|
|
26552
26552
|
if (child.isDirectory())
|
|
26553
|
-
chownrSync(
|
|
26554
|
-
handleEISDirSync(
|
|
26553
|
+
chownrSync(path9.resolve(p, child.name), uid, gid);
|
|
26554
|
+
handleEISDirSync(path9.resolve(p, child.name), uid, gid);
|
|
26555
26555
|
};
|
|
26556
26556
|
var chownrSync = (p, uid, gid) => {
|
|
26557
26557
|
let children;
|
|
@@ -26580,13 +26580,13 @@ var require_mkdir = __commonJS({
|
|
|
26580
26580
|
"use strict";
|
|
26581
26581
|
var mkdirp = require_mkdirp();
|
|
26582
26582
|
var fs2 = require("fs");
|
|
26583
|
-
var
|
|
26583
|
+
var path9 = require("path");
|
|
26584
26584
|
var chownr = require_chownr();
|
|
26585
26585
|
var normPath = require_normalize_windows_path();
|
|
26586
26586
|
var SymlinkError = class extends Error {
|
|
26587
|
-
constructor(symlink,
|
|
26587
|
+
constructor(symlink, path10) {
|
|
26588
26588
|
super("Cannot extract through symbolic link");
|
|
26589
|
-
this.path =
|
|
26589
|
+
this.path = path10;
|
|
26590
26590
|
this.symlink = symlink;
|
|
26591
26591
|
}
|
|
26592
26592
|
get name() {
|
|
@@ -26594,9 +26594,9 @@ var require_mkdir = __commonJS({
|
|
|
26594
26594
|
}
|
|
26595
26595
|
};
|
|
26596
26596
|
var CwdError = class extends Error {
|
|
26597
|
-
constructor(
|
|
26598
|
-
super(code + ": Cannot cd into '" +
|
|
26599
|
-
this.path =
|
|
26597
|
+
constructor(path10, code) {
|
|
26598
|
+
super(code + ": Cannot cd into '" + path10 + "'");
|
|
26599
|
+
this.path = path10;
|
|
26600
26600
|
this.code = code;
|
|
26601
26601
|
}
|
|
26602
26602
|
get name() {
|
|
@@ -26648,7 +26648,7 @@ var require_mkdir = __commonJS({
|
|
|
26648
26648
|
if (preserve) {
|
|
26649
26649
|
return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
|
26650
26650
|
}
|
|
26651
|
-
const sub = normPath(
|
|
26651
|
+
const sub = normPath(path9.relative(cwd, dir));
|
|
26652
26652
|
const parts = sub.split("/");
|
|
26653
26653
|
mkdir_(cwd, parts, mode, cache, unlink, cwd, null, done);
|
|
26654
26654
|
};
|
|
@@ -26657,7 +26657,7 @@ var require_mkdir = __commonJS({
|
|
|
26657
26657
|
return cb(null, created);
|
|
26658
26658
|
}
|
|
26659
26659
|
const p = parts.shift();
|
|
26660
|
-
const part = normPath(
|
|
26660
|
+
const part = normPath(path9.resolve(base + "/" + p));
|
|
26661
26661
|
if (cGet(cache, part)) {
|
|
26662
26662
|
return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
26663
26663
|
}
|
|
@@ -26733,11 +26733,11 @@ var require_mkdir = __commonJS({
|
|
|
26733
26733
|
if (preserve) {
|
|
26734
26734
|
return done(mkdirp.sync(dir, mode));
|
|
26735
26735
|
}
|
|
26736
|
-
const sub = normPath(
|
|
26736
|
+
const sub = normPath(path9.relative(cwd, dir));
|
|
26737
26737
|
const parts = sub.split("/");
|
|
26738
26738
|
let created = null;
|
|
26739
26739
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
|
26740
|
-
part = normPath(
|
|
26740
|
+
part = normPath(path9.resolve(part));
|
|
26741
26741
|
if (cGet(cache, part)) {
|
|
26742
26742
|
continue;
|
|
26743
26743
|
}
|
|
@@ -26794,12 +26794,12 @@ var require_path_reservations = __commonJS({
|
|
|
26794
26794
|
module2.exports = () => {
|
|
26795
26795
|
const queues = /* @__PURE__ */ new Map();
|
|
26796
26796
|
const reservations = /* @__PURE__ */ new Map();
|
|
26797
|
-
const getDirs = (
|
|
26798
|
-
const dirs =
|
|
26797
|
+
const getDirs = (path9) => {
|
|
26798
|
+
const dirs = path9.split("/").slice(0, -1).reduce((set, path10) => {
|
|
26799
26799
|
if (set.length) {
|
|
26800
|
-
|
|
26800
|
+
path10 = join(set[set.length - 1], path10);
|
|
26801
26801
|
}
|
|
26802
|
-
set.push(
|
|
26802
|
+
set.push(path10 || "/");
|
|
26803
26803
|
return set;
|
|
26804
26804
|
}, []);
|
|
26805
26805
|
return dirs;
|
|
@@ -26811,8 +26811,8 @@ var require_path_reservations = __commonJS({
|
|
|
26811
26811
|
throw new Error("function does not have any path reservations");
|
|
26812
26812
|
}
|
|
26813
26813
|
return {
|
|
26814
|
-
paths: res.paths.map((
|
|
26815
|
-
dirs: [...res.dirs].map((
|
|
26814
|
+
paths: res.paths.map((path9) => queues.get(path9)),
|
|
26815
|
+
dirs: [...res.dirs].map((path9) => queues.get(path9))
|
|
26816
26816
|
};
|
|
26817
26817
|
};
|
|
26818
26818
|
const check = (fn) => {
|
|
@@ -26833,11 +26833,11 @@ var require_path_reservations = __commonJS({
|
|
|
26833
26833
|
}
|
|
26834
26834
|
const { paths, dirs } = reservations.get(fn);
|
|
26835
26835
|
const next = /* @__PURE__ */ new Set();
|
|
26836
|
-
paths.forEach((
|
|
26837
|
-
const q = queues.get(
|
|
26836
|
+
paths.forEach((path9) => {
|
|
26837
|
+
const q = queues.get(path9);
|
|
26838
26838
|
assert.equal(q[0], fn);
|
|
26839
26839
|
if (q.length === 1) {
|
|
26840
|
-
queues.delete(
|
|
26840
|
+
queues.delete(path9);
|
|
26841
26841
|
} else {
|
|
26842
26842
|
q.shift();
|
|
26843
26843
|
if (typeof q[0] === "function") {
|
|
@@ -26868,13 +26868,13 @@ var require_path_reservations = __commonJS({
|
|
|
26868
26868
|
return stripSlashes(join(normalize(p))).toLowerCase();
|
|
26869
26869
|
});
|
|
26870
26870
|
const dirs = new Set(
|
|
26871
|
-
paths.map((
|
|
26871
|
+
paths.map((path9) => getDirs(path9)).reduce((a, b) => a.concat(b))
|
|
26872
26872
|
);
|
|
26873
26873
|
reservations.set(fn, { dirs, paths });
|
|
26874
|
-
paths.forEach((
|
|
26875
|
-
const q = queues.get(
|
|
26874
|
+
paths.forEach((path9) => {
|
|
26875
|
+
const q = queues.get(path9);
|
|
26876
26876
|
if (!q) {
|
|
26877
|
-
queues.set(
|
|
26877
|
+
queues.set(path9, [fn]);
|
|
26878
26878
|
} else {
|
|
26879
26879
|
q.push(fn);
|
|
26880
26880
|
}
|
|
@@ -26919,7 +26919,7 @@ var require_unpack = __commonJS({
|
|
|
26919
26919
|
var Parser = require_parse3();
|
|
26920
26920
|
var fs2 = require("fs");
|
|
26921
26921
|
var fsm = require_fs_minipass();
|
|
26922
|
-
var
|
|
26922
|
+
var path9 = require("path");
|
|
26923
26923
|
var mkdir = require_mkdir();
|
|
26924
26924
|
var wc = require_winchars();
|
|
26925
26925
|
var pathReservations = require_path_reservations();
|
|
@@ -26957,34 +26957,34 @@ var require_unpack = __commonJS({
|
|
|
26957
26957
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
26958
26958
|
var isWindows = platform === "win32";
|
|
26959
26959
|
var DEFAULT_MAX_DEPTH = 1024;
|
|
26960
|
-
var unlinkFile = (
|
|
26960
|
+
var unlinkFile = (path10, cb) => {
|
|
26961
26961
|
if (!isWindows) {
|
|
26962
|
-
return fs2.unlink(
|
|
26962
|
+
return fs2.unlink(path10, cb);
|
|
26963
26963
|
}
|
|
26964
|
-
const name =
|
|
26965
|
-
fs2.rename(
|
|
26964
|
+
const name = path10 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
|
26965
|
+
fs2.rename(path10, name, (er) => {
|
|
26966
26966
|
if (er) {
|
|
26967
26967
|
return cb(er);
|
|
26968
26968
|
}
|
|
26969
26969
|
fs2.unlink(name, cb);
|
|
26970
26970
|
});
|
|
26971
26971
|
};
|
|
26972
|
-
var unlinkFileSync = (
|
|
26972
|
+
var unlinkFileSync = (path10) => {
|
|
26973
26973
|
if (!isWindows) {
|
|
26974
|
-
return fs2.unlinkSync(
|
|
26974
|
+
return fs2.unlinkSync(path10);
|
|
26975
26975
|
}
|
|
26976
|
-
const name =
|
|
26977
|
-
fs2.renameSync(
|
|
26976
|
+
const name = path10 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
|
26977
|
+
fs2.renameSync(path10, name);
|
|
26978
26978
|
fs2.unlinkSync(name);
|
|
26979
26979
|
};
|
|
26980
26980
|
var uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
26981
|
-
var cacheKeyNormalize = (
|
|
26981
|
+
var cacheKeyNormalize = (path10) => stripSlash(normPath(normalize(path10))).toLowerCase();
|
|
26982
26982
|
var pruneCache = (cache, abs) => {
|
|
26983
26983
|
abs = cacheKeyNormalize(abs);
|
|
26984
|
-
for (const
|
|
26985
|
-
const pnorm = cacheKeyNormalize(
|
|
26984
|
+
for (const path10 of cache.keys()) {
|
|
26985
|
+
const pnorm = cacheKeyNormalize(path10);
|
|
26986
26986
|
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) {
|
|
26987
|
-
cache.delete(
|
|
26987
|
+
cache.delete(path10);
|
|
26988
26988
|
}
|
|
26989
26989
|
}
|
|
26990
26990
|
};
|
|
@@ -27043,7 +27043,7 @@ var require_unpack = __commonJS({
|
|
|
27043
27043
|
this.noMtime = !!opt.noMtime;
|
|
27044
27044
|
this.preservePaths = !!opt.preservePaths;
|
|
27045
27045
|
this.unlink = !!opt.unlink;
|
|
27046
|
-
this.cwd = normPath(
|
|
27046
|
+
this.cwd = normPath(path9.resolve(opt.cwd || process.cwd()));
|
|
27047
27047
|
this.strip = +opt.strip || 0;
|
|
27048
27048
|
this.processUmask = opt.noChmod ? 0 : process.umask();
|
|
27049
27049
|
this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
|
|
@@ -27111,10 +27111,10 @@ var require_unpack = __commonJS({
|
|
|
27111
27111
|
});
|
|
27112
27112
|
}
|
|
27113
27113
|
}
|
|
27114
|
-
if (
|
|
27115
|
-
entry.absolute = normPath(
|
|
27114
|
+
if (path9.isAbsolute(entry.path)) {
|
|
27115
|
+
entry.absolute = normPath(path9.resolve(entry.path));
|
|
27116
27116
|
} else {
|
|
27117
|
-
entry.absolute = normPath(
|
|
27117
|
+
entry.absolute = normPath(path9.resolve(this.cwd, entry.path));
|
|
27118
27118
|
}
|
|
27119
27119
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
|
27120
27120
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
|
@@ -27129,9 +27129,9 @@ var require_unpack = __commonJS({
|
|
|
27129
27129
|
return false;
|
|
27130
27130
|
}
|
|
27131
27131
|
if (this.win32) {
|
|
27132
|
-
const { root: aRoot } =
|
|
27132
|
+
const { root: aRoot } = path9.win32.parse(entry.absolute);
|
|
27133
27133
|
entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
|
|
27134
|
-
const { root: pRoot } =
|
|
27134
|
+
const { root: pRoot } = path9.win32.parse(entry.path);
|
|
27135
27135
|
entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
|
|
27136
27136
|
}
|
|
27137
27137
|
return true;
|
|
@@ -27298,7 +27298,7 @@ var require_unpack = __commonJS({
|
|
|
27298
27298
|
this[LINK](entry, entry.linkpath, "symlink", done);
|
|
27299
27299
|
}
|
|
27300
27300
|
[HARDLINK](entry, done) {
|
|
27301
|
-
const linkpath = normPath(
|
|
27301
|
+
const linkpath = normPath(path9.resolve(this.cwd, entry.linkpath));
|
|
27302
27302
|
this[LINK](entry, linkpath, "link", done);
|
|
27303
27303
|
}
|
|
27304
27304
|
[PEND]() {
|
|
@@ -27353,7 +27353,7 @@ var require_unpack = __commonJS({
|
|
|
27353
27353
|
};
|
|
27354
27354
|
const start = () => {
|
|
27355
27355
|
if (entry.absolute !== this.cwd) {
|
|
27356
|
-
const parent = normPath(
|
|
27356
|
+
const parent = normPath(path9.dirname(entry.absolute));
|
|
27357
27357
|
if (parent !== this.cwd) {
|
|
27358
27358
|
return this[MKDIR](parent, this.dmode, (er) => {
|
|
27359
27359
|
if (er) {
|
|
@@ -27456,7 +27456,7 @@ var require_unpack = __commonJS({
|
|
|
27456
27456
|
this[CHECKED_CWD] = true;
|
|
27457
27457
|
}
|
|
27458
27458
|
if (entry.absolute !== this.cwd) {
|
|
27459
|
-
const parent = normPath(
|
|
27459
|
+
const parent = normPath(path9.dirname(entry.absolute));
|
|
27460
27460
|
if (parent !== this.cwd) {
|
|
27461
27461
|
const mkParent = this[MKDIR](parent, this.dmode);
|
|
27462
27462
|
if (mkParent) {
|
|
@@ -27612,7 +27612,7 @@ var require_extract = __commonJS({
|
|
|
27612
27612
|
var Unpack = require_unpack();
|
|
27613
27613
|
var fs2 = require("fs");
|
|
27614
27614
|
var fsm = require_fs_minipass();
|
|
27615
|
-
var
|
|
27615
|
+
var path9 = require("path");
|
|
27616
27616
|
var stripSlash = require_strip_trailing_slashes();
|
|
27617
27617
|
module2.exports = (opt_, files, cb) => {
|
|
27618
27618
|
if (typeof opt_ === "function") {
|
|
@@ -27644,8 +27644,8 @@ var require_extract = __commonJS({
|
|
|
27644
27644
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
27645
27645
|
const filter2 = opt.filter;
|
|
27646
27646
|
const mapHas = (file, r) => {
|
|
27647
|
-
const root = r ||
|
|
27648
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(
|
|
27647
|
+
const root = r || path9.parse(file).root || ".";
|
|
27648
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path9.dirname(file), root);
|
|
27649
27649
|
map.set(file, ret);
|
|
27650
27650
|
return ret;
|
|
27651
27651
|
};
|
|
@@ -33362,10 +33362,10 @@ var FsMaterial = class {
|
|
|
33362
33362
|
};
|
|
33363
33363
|
|
|
33364
33364
|
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.0/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
|
33365
|
-
function fsExists(
|
|
33365
|
+
function fsExists(path9) {
|
|
33366
33366
|
return __async(this, null, function* () {
|
|
33367
33367
|
try {
|
|
33368
|
-
yield import_fs_extra.default.access(
|
|
33368
|
+
yield import_fs_extra.default.access(path9);
|
|
33369
33369
|
return true;
|
|
33370
33370
|
} catch (e) {
|
|
33371
33371
|
return false;
|
|
@@ -33374,15 +33374,15 @@ function fsExists(path8) {
|
|
|
33374
33374
|
}
|
|
33375
33375
|
|
|
33376
33376
|
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.0/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
|
|
33377
|
-
var nodeRequire = (
|
|
33377
|
+
var nodeRequire = (path9) => {
|
|
33378
33378
|
try {
|
|
33379
|
-
const module2 = __non_webpack_require__(
|
|
33379
|
+
const module2 = __non_webpack_require__(path9);
|
|
33380
33380
|
if (module2 === null || module2 === void 0 ? void 0 : module2.default) {
|
|
33381
33381
|
return module2.default;
|
|
33382
33382
|
}
|
|
33383
33383
|
return module2;
|
|
33384
33384
|
} catch (error) {
|
|
33385
|
-
const module2 = require(
|
|
33385
|
+
const module2 = require(path9);
|
|
33386
33386
|
if (module2 === null || module2 === void 0 ? void 0 : module2.default) {
|
|
33387
33387
|
return module2.default;
|
|
33388
33388
|
}
|
|
@@ -33992,10 +33992,10 @@ function isVisitable(thing) {
|
|
|
33992
33992
|
function removeBrackets(key) {
|
|
33993
33993
|
return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
33994
33994
|
}
|
|
33995
|
-
function renderKey(
|
|
33996
|
-
if (!
|
|
33995
|
+
function renderKey(path9, key, dots) {
|
|
33996
|
+
if (!path9)
|
|
33997
33997
|
return key;
|
|
33998
|
-
return
|
|
33998
|
+
return path9.concat(key).map(function each(token, i) {
|
|
33999
33999
|
token = removeBrackets(token);
|
|
34000
34000
|
return !dots && i ? "[" + token + "]" : token;
|
|
34001
34001
|
}).join(dots ? "." : "");
|
|
@@ -34041,9 +34041,9 @@ function toFormData(obj, formData, options) {
|
|
|
34041
34041
|
}
|
|
34042
34042
|
return value;
|
|
34043
34043
|
}
|
|
34044
|
-
function defaultVisitor(value, key,
|
|
34044
|
+
function defaultVisitor(value, key, path9) {
|
|
34045
34045
|
let arr = value;
|
|
34046
|
-
if (value && !
|
|
34046
|
+
if (value && !path9 && typeof value === "object") {
|
|
34047
34047
|
if (utils_default.endsWith(key, "{}")) {
|
|
34048
34048
|
key = metaTokens ? key : key.slice(0, -2);
|
|
34049
34049
|
value = JSON.stringify(value);
|
|
@@ -34062,7 +34062,7 @@ function toFormData(obj, formData, options) {
|
|
|
34062
34062
|
if (isVisitable(value)) {
|
|
34063
34063
|
return true;
|
|
34064
34064
|
}
|
|
34065
|
-
formData.append(renderKey(
|
|
34065
|
+
formData.append(renderKey(path9, key, dots), convertValue(value));
|
|
34066
34066
|
return false;
|
|
34067
34067
|
}
|
|
34068
34068
|
const stack = [];
|
|
@@ -34071,11 +34071,11 @@ function toFormData(obj, formData, options) {
|
|
|
34071
34071
|
convertValue,
|
|
34072
34072
|
isVisitable
|
|
34073
34073
|
});
|
|
34074
|
-
function build(value,
|
|
34074
|
+
function build(value, path9) {
|
|
34075
34075
|
if (utils_default.isUndefined(value))
|
|
34076
34076
|
return;
|
|
34077
34077
|
if (stack.indexOf(value) !== -1) {
|
|
34078
|
-
throw Error("Circular reference detected in " +
|
|
34078
|
+
throw Error("Circular reference detected in " + path9.join("."));
|
|
34079
34079
|
}
|
|
34080
34080
|
stack.push(value);
|
|
34081
34081
|
utils_default.forEach(value, function each(el, key) {
|
|
@@ -34083,11 +34083,11 @@ function toFormData(obj, formData, options) {
|
|
|
34083
34083
|
formData,
|
|
34084
34084
|
el,
|
|
34085
34085
|
utils_default.isString(key) ? key.trim() : key,
|
|
34086
|
-
|
|
34086
|
+
path9,
|
|
34087
34087
|
exposedHelpers
|
|
34088
34088
|
);
|
|
34089
34089
|
if (result === true) {
|
|
34090
|
-
build(el,
|
|
34090
|
+
build(el, path9 ? path9.concat(key) : [key]);
|
|
34091
34091
|
}
|
|
34092
34092
|
});
|
|
34093
34093
|
stack.pop();
|
|
@@ -34269,7 +34269,7 @@ var platform_default = __spreadValues(__spreadValues({}, utils_exports), node_de
|
|
|
34269
34269
|
// ../../../../node_modules/.pnpm/axios@1.7.7_debug@4.3.7/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
34270
34270
|
function toURLEncodedForm(data, options) {
|
|
34271
34271
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
|
|
34272
|
-
visitor: function(value, key,
|
|
34272
|
+
visitor: function(value, key, path9, helpers) {
|
|
34273
34273
|
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
34274
34274
|
this.append(key, value.toString("base64"));
|
|
34275
34275
|
return false;
|
|
@@ -34298,12 +34298,12 @@ function arrayToObject(arr) {
|
|
|
34298
34298
|
return obj;
|
|
34299
34299
|
}
|
|
34300
34300
|
function formDataToJSON(formData) {
|
|
34301
|
-
function buildPath(
|
|
34302
|
-
let name =
|
|
34301
|
+
function buildPath(path9, value, target, index) {
|
|
34302
|
+
let name = path9[index++];
|
|
34303
34303
|
if (name === "__proto__")
|
|
34304
34304
|
return true;
|
|
34305
34305
|
const isNumericKey = Number.isFinite(+name);
|
|
34306
|
-
const isLast = index >=
|
|
34306
|
+
const isLast = index >= path9.length;
|
|
34307
34307
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
34308
34308
|
if (isLast) {
|
|
34309
34309
|
if (utils_default.hasOwnProp(target, name)) {
|
|
@@ -34316,7 +34316,7 @@ function formDataToJSON(formData) {
|
|
|
34316
34316
|
if (!target[name] || !utils_default.isObject(target[name])) {
|
|
34317
34317
|
target[name] = [];
|
|
34318
34318
|
}
|
|
34319
|
-
const result = buildPath(
|
|
34319
|
+
const result = buildPath(path9, value, target[name], index);
|
|
34320
34320
|
if (result && utils_default.isArray(target[name])) {
|
|
34321
34321
|
target[name] = arrayToObject(target[name]);
|
|
34322
34322
|
}
|
|
@@ -35451,9 +35451,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
35451
35451
|
auth = urlUsername + ":" + urlPassword;
|
|
35452
35452
|
}
|
|
35453
35453
|
auth && headers.delete("authorization");
|
|
35454
|
-
let
|
|
35454
|
+
let path9;
|
|
35455
35455
|
try {
|
|
35456
|
-
|
|
35456
|
+
path9 = buildURL(
|
|
35457
35457
|
parsed.pathname + parsed.search,
|
|
35458
35458
|
config.params,
|
|
35459
35459
|
config.paramsSerializer
|
|
@@ -35471,7 +35471,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
35471
35471
|
false
|
|
35472
35472
|
);
|
|
35473
35473
|
const options = {
|
|
35474
|
-
path:
|
|
35474
|
+
path: path9,
|
|
35475
35475
|
method,
|
|
35476
35476
|
headers: headers.toJSON(),
|
|
35477
35477
|
agents: { http: config.httpAgent, https: config.httpsAgent },
|
|
@@ -35736,10 +35736,10 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
35736
35736
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
35737
35737
|
// Standard browser envs support document.cookie
|
|
35738
35738
|
{
|
|
35739
|
-
write(name, value, expires,
|
|
35739
|
+
write(name, value, expires, path9, domain, secure) {
|
|
35740
35740
|
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
35741
35741
|
utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
|
|
35742
|
-
utils_default.isString(
|
|
35742
|
+
utils_default.isString(path9) && cookie.push("path=" + path9);
|
|
35743
35743
|
utils_default.isString(domain) && cookie.push("domain=" + domain);
|
|
35744
35744
|
secure === true && cookie.push("secure");
|
|
35745
35745
|
document.cookie = cookie.join("; ");
|
|
@@ -37416,6 +37416,21 @@ var CodeSmith = class {
|
|
|
37416
37416
|
}
|
|
37417
37417
|
};
|
|
37418
37418
|
|
|
37419
|
+
// ../../generator-utils/dist/esm/utils/getGeneratorPath.js
|
|
37420
|
+
var import_path8 = __toESM(require("path"));
|
|
37421
|
+
var getGeneratorPath = (generator, distTag, paths) => {
|
|
37422
|
+
if (process.env.CODESMITH_ENV === "development") {
|
|
37423
|
+
return import_path8.default.dirname(require.resolve(generator, {
|
|
37424
|
+
paths: paths !== null && paths !== void 0 ? paths : [
|
|
37425
|
+
process.cwd()
|
|
37426
|
+
]
|
|
37427
|
+
}));
|
|
37428
|
+
} else if (distTag) {
|
|
37429
|
+
return `${generator}@${distTag}`;
|
|
37430
|
+
}
|
|
37431
|
+
return generator;
|
|
37432
|
+
};
|
|
37433
|
+
|
|
37419
37434
|
// src/index.ts
|
|
37420
37435
|
var src_default = (context, generator) => __async(void 0, null, function* () {
|
|
37421
37436
|
process.setMaxListeners(20);
|
|
@@ -37426,6 +37441,12 @@ var src_default = (context, generator) => __async(void 0, null, function* () {
|
|
|
37426
37441
|
const codesmith = new CodeSmith({});
|
|
37427
37442
|
yield codesmith.prepareGlobal();
|
|
37428
37443
|
}
|
|
37444
|
+
const RepoNextGeneratort = "@modern-js/repo-next-generator";
|
|
37445
|
+
yield generator.runSubGenerator(
|
|
37446
|
+
getGeneratorPath(RepoNextGeneratort, context.config.distTag, [__dirname]),
|
|
37447
|
+
void 0,
|
|
37448
|
+
context.config
|
|
37449
|
+
);
|
|
37429
37450
|
generator.logger.debug(`🚀 [Start Run Repo Generator]`);
|
|
37430
37451
|
generator.logger.debug(`🚀 [End Run Repo Generator]`);
|
|
37431
37452
|
});
|