@modern-js/create 2.67.6 → 2.67.8
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 +646 -579
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1035,7 +1035,7 @@ var require_command = __commonJS({
|
|
|
1035
1035
|
"use strict";
|
|
1036
1036
|
var EventEmitter3 = require("events").EventEmitter;
|
|
1037
1037
|
var childProcess = require("child_process");
|
|
1038
|
-
var
|
|
1038
|
+
var path12 = require("path");
|
|
1039
1039
|
var fs2 = require("fs");
|
|
1040
1040
|
var process2 = require("process");
|
|
1041
1041
|
var { Argument: Argument2, humanReadableArgName } = require_argument();
|
|
@@ -1874,10 +1874,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1874
1874
|
let launchWithNode = false;
|
|
1875
1875
|
const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
|
|
1876
1876
|
function findFile(baseDir, baseName) {
|
|
1877
|
-
const localBin =
|
|
1877
|
+
const localBin = path12.resolve(baseDir, baseName);
|
|
1878
1878
|
if (fs2.existsSync(localBin))
|
|
1879
1879
|
return localBin;
|
|
1880
|
-
if (sourceExt.includes(
|
|
1880
|
+
if (sourceExt.includes(path12.extname(baseName)))
|
|
1881
1881
|
return void 0;
|
|
1882
1882
|
const foundExt = sourceExt.find((ext) => fs2.existsSync(`${localBin}${ext}`));
|
|
1883
1883
|
if (foundExt)
|
|
@@ -1895,19 +1895,19 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1895
1895
|
} catch (err) {
|
|
1896
1896
|
resolvedScriptPath = this._scriptPath;
|
|
1897
1897
|
}
|
|
1898
|
-
executableDir =
|
|
1898
|
+
executableDir = path12.resolve(path12.dirname(resolvedScriptPath), executableDir);
|
|
1899
1899
|
}
|
|
1900
1900
|
if (executableDir) {
|
|
1901
1901
|
let localFile = findFile(executableDir, executableFile);
|
|
1902
1902
|
if (!localFile && !subcommand._executableFile && this._scriptPath) {
|
|
1903
|
-
const legacyName =
|
|
1903
|
+
const legacyName = path12.basename(this._scriptPath, path12.extname(this._scriptPath));
|
|
1904
1904
|
if (legacyName !== this._name) {
|
|
1905
1905
|
localFile = findFile(executableDir, `${legacyName}-${subcommand._name}`);
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
1908
|
executableFile = localFile || executableFile;
|
|
1909
1909
|
}
|
|
1910
|
-
launchWithNode = sourceExt.includes(
|
|
1910
|
+
launchWithNode = sourceExt.includes(path12.extname(executableFile));
|
|
1911
1911
|
let proc;
|
|
1912
1912
|
if (process2.platform !== "win32") {
|
|
1913
1913
|
if (launchWithNode) {
|
|
@@ -2702,7 +2702,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2702
2702
|
* @return {Command}
|
|
2703
2703
|
*/
|
|
2704
2704
|
nameFromFilename(filename) {
|
|
2705
|
-
this._name =
|
|
2705
|
+
this._name = path12.basename(filename, path12.extname(filename));
|
|
2706
2706
|
return this;
|
|
2707
2707
|
}
|
|
2708
2708
|
/**
|
|
@@ -2716,10 +2716,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2716
2716
|
* @param {string} [path]
|
|
2717
2717
|
* @return {string|Command}
|
|
2718
2718
|
*/
|
|
2719
|
-
executableDir(
|
|
2720
|
-
if (
|
|
2719
|
+
executableDir(path13) {
|
|
2720
|
+
if (path13 === void 0)
|
|
2721
2721
|
return this._executableDir;
|
|
2722
|
-
this._executableDir =
|
|
2722
|
+
this._executableDir = path13;
|
|
2723
2723
|
return this;
|
|
2724
2724
|
}
|
|
2725
2725
|
/**
|
|
@@ -2999,7 +2999,7 @@ var require_polyfills = __commonJS({
|
|
|
2999
2999
|
fs2.fstatSync = statFixSync(fs2.fstatSync);
|
|
3000
3000
|
fs2.lstatSync = statFixSync(fs2.lstatSync);
|
|
3001
3001
|
if (fs2.chmod && !fs2.lchmod) {
|
|
3002
|
-
fs2.lchmod = function(
|
|
3002
|
+
fs2.lchmod = function(path12, mode, cb) {
|
|
3003
3003
|
if (cb)
|
|
3004
3004
|
process.nextTick(cb);
|
|
3005
3005
|
};
|
|
@@ -3007,7 +3007,7 @@ var require_polyfills = __commonJS({
|
|
|
3007
3007
|
};
|
|
3008
3008
|
}
|
|
3009
3009
|
if (fs2.chown && !fs2.lchown) {
|
|
3010
|
-
fs2.lchown = function(
|
|
3010
|
+
fs2.lchown = function(path12, uid, gid, cb) {
|
|
3011
3011
|
if (cb)
|
|
3012
3012
|
process.nextTick(cb);
|
|
3013
3013
|
};
|
|
@@ -3078,9 +3078,9 @@ var require_polyfills = __commonJS({
|
|
|
3078
3078
|
};
|
|
3079
3079
|
}(fs2.readSync);
|
|
3080
3080
|
function patchLchmod(fs3) {
|
|
3081
|
-
fs3.lchmod = function(
|
|
3081
|
+
fs3.lchmod = function(path12, mode, callback) {
|
|
3082
3082
|
fs3.open(
|
|
3083
|
-
|
|
3083
|
+
path12,
|
|
3084
3084
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
3085
3085
|
mode,
|
|
3086
3086
|
function(err, fd) {
|
|
@@ -3098,8 +3098,8 @@ var require_polyfills = __commonJS({
|
|
|
3098
3098
|
}
|
|
3099
3099
|
);
|
|
3100
3100
|
};
|
|
3101
|
-
fs3.lchmodSync = function(
|
|
3102
|
-
var fd = fs3.openSync(
|
|
3101
|
+
fs3.lchmodSync = function(path12, mode) {
|
|
3102
|
+
var fd = fs3.openSync(path12, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
3103
3103
|
var threw = true;
|
|
3104
3104
|
var ret;
|
|
3105
3105
|
try {
|
|
@@ -3120,8 +3120,8 @@ var require_polyfills = __commonJS({
|
|
|
3120
3120
|
}
|
|
3121
3121
|
function patchLutimes(fs3) {
|
|
3122
3122
|
if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) {
|
|
3123
|
-
fs3.lutimes = function(
|
|
3124
|
-
fs3.open(
|
|
3123
|
+
fs3.lutimes = function(path12, at, mt, cb) {
|
|
3124
|
+
fs3.open(path12, constants.O_SYMLINK, function(er, fd) {
|
|
3125
3125
|
if (er) {
|
|
3126
3126
|
if (cb)
|
|
3127
3127
|
cb(er);
|
|
@@ -3135,8 +3135,8 @@ var require_polyfills = __commonJS({
|
|
|
3135
3135
|
});
|
|
3136
3136
|
});
|
|
3137
3137
|
};
|
|
3138
|
-
fs3.lutimesSync = function(
|
|
3139
|
-
var fd = fs3.openSync(
|
|
3138
|
+
fs3.lutimesSync = function(path12, at, mt) {
|
|
3139
|
+
var fd = fs3.openSync(path12, constants.O_SYMLINK);
|
|
3140
3140
|
var ret;
|
|
3141
3141
|
var threw = true;
|
|
3142
3142
|
try {
|
|
@@ -3273,12 +3273,12 @@ var require_legacy_streams = __commonJS({
|
|
|
3273
3273
|
ReadStream,
|
|
3274
3274
|
WriteStream
|
|
3275
3275
|
};
|
|
3276
|
-
function ReadStream(
|
|
3276
|
+
function ReadStream(path12, options) {
|
|
3277
3277
|
if (!(this instanceof ReadStream))
|
|
3278
|
-
return new ReadStream(
|
|
3278
|
+
return new ReadStream(path12, options);
|
|
3279
3279
|
Stream.call(this);
|
|
3280
3280
|
var self2 = this;
|
|
3281
|
-
this.path =
|
|
3281
|
+
this.path = path12;
|
|
3282
3282
|
this.fd = null;
|
|
3283
3283
|
this.readable = true;
|
|
3284
3284
|
this.paused = false;
|
|
@@ -3324,11 +3324,11 @@ var require_legacy_streams = __commonJS({
|
|
|
3324
3324
|
self2._read();
|
|
3325
3325
|
});
|
|
3326
3326
|
}
|
|
3327
|
-
function WriteStream(
|
|
3327
|
+
function WriteStream(path12, options) {
|
|
3328
3328
|
if (!(this instanceof WriteStream))
|
|
3329
|
-
return new WriteStream(
|
|
3329
|
+
return new WriteStream(path12, options);
|
|
3330
3330
|
Stream.call(this);
|
|
3331
|
-
this.path =
|
|
3331
|
+
this.path = path12;
|
|
3332
3332
|
this.fd = null;
|
|
3333
3333
|
this.writable = true;
|
|
3334
3334
|
this.flags = "w";
|
|
@@ -3472,14 +3472,14 @@ var require_graceful_fs = __commonJS({
|
|
|
3472
3472
|
fs3.createWriteStream = createWriteStream;
|
|
3473
3473
|
var fs$readFile = fs3.readFile;
|
|
3474
3474
|
fs3.readFile = readFile;
|
|
3475
|
-
function readFile(
|
|
3475
|
+
function readFile(path12, options, cb) {
|
|
3476
3476
|
if (typeof options === "function")
|
|
3477
3477
|
cb = options, options = null;
|
|
3478
|
-
return go$readFile(
|
|
3479
|
-
function go$readFile(
|
|
3480
|
-
return fs$readFile(
|
|
3478
|
+
return go$readFile(path12, options, cb);
|
|
3479
|
+
function go$readFile(path13, options2, cb2, startTime) {
|
|
3480
|
+
return fs$readFile(path13, options2, function(err) {
|
|
3481
3481
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
3482
|
-
enqueue([go$readFile, [
|
|
3482
|
+
enqueue([go$readFile, [path13, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
3483
3483
|
else {
|
|
3484
3484
|
if (typeof cb2 === "function")
|
|
3485
3485
|
cb2.apply(this, arguments);
|
|
@@ -3489,14 +3489,14 @@ var require_graceful_fs = __commonJS({
|
|
|
3489
3489
|
}
|
|
3490
3490
|
var fs$writeFile = fs3.writeFile;
|
|
3491
3491
|
fs3.writeFile = writeFile;
|
|
3492
|
-
function writeFile(
|
|
3492
|
+
function writeFile(path12, data, options, cb) {
|
|
3493
3493
|
if (typeof options === "function")
|
|
3494
3494
|
cb = options, options = null;
|
|
3495
|
-
return go$writeFile(
|
|
3496
|
-
function go$writeFile(
|
|
3497
|
-
return fs$writeFile(
|
|
3495
|
+
return go$writeFile(path12, data, options, cb);
|
|
3496
|
+
function go$writeFile(path13, data2, options2, cb2, startTime) {
|
|
3497
|
+
return fs$writeFile(path13, data2, options2, function(err) {
|
|
3498
3498
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
3499
|
-
enqueue([go$writeFile, [
|
|
3499
|
+
enqueue([go$writeFile, [path13, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
3500
3500
|
else {
|
|
3501
3501
|
if (typeof cb2 === "function")
|
|
3502
3502
|
cb2.apply(this, arguments);
|
|
@@ -3507,14 +3507,14 @@ var require_graceful_fs = __commonJS({
|
|
|
3507
3507
|
var fs$appendFile = fs3.appendFile;
|
|
3508
3508
|
if (fs$appendFile)
|
|
3509
3509
|
fs3.appendFile = appendFile;
|
|
3510
|
-
function appendFile(
|
|
3510
|
+
function appendFile(path12, data, options, cb) {
|
|
3511
3511
|
if (typeof options === "function")
|
|
3512
3512
|
cb = options, options = null;
|
|
3513
|
-
return go$appendFile(
|
|
3514
|
-
function go$appendFile(
|
|
3515
|
-
return fs$appendFile(
|
|
3513
|
+
return go$appendFile(path12, data, options, cb);
|
|
3514
|
+
function go$appendFile(path13, data2, options2, cb2, startTime) {
|
|
3515
|
+
return fs$appendFile(path13, data2, options2, function(err) {
|
|
3516
3516
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
3517
|
-
enqueue([go$appendFile, [
|
|
3517
|
+
enqueue([go$appendFile, [path13, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
3518
3518
|
else {
|
|
3519
3519
|
if (typeof cb2 === "function")
|
|
3520
3520
|
cb2.apply(this, arguments);
|
|
@@ -3545,31 +3545,31 @@ var require_graceful_fs = __commonJS({
|
|
|
3545
3545
|
var fs$readdir = fs3.readdir;
|
|
3546
3546
|
fs3.readdir = readdir;
|
|
3547
3547
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
3548
|
-
function readdir(
|
|
3548
|
+
function readdir(path12, options, cb) {
|
|
3549
3549
|
if (typeof options === "function")
|
|
3550
3550
|
cb = options, options = null;
|
|
3551
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
3552
|
-
return fs$readdir(
|
|
3553
|
-
|
|
3551
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path13, options2, cb2, startTime) {
|
|
3552
|
+
return fs$readdir(path13, fs$readdirCallback(
|
|
3553
|
+
path13,
|
|
3554
3554
|
options2,
|
|
3555
3555
|
cb2,
|
|
3556
3556
|
startTime
|
|
3557
3557
|
));
|
|
3558
|
-
} : function go$readdir2(
|
|
3559
|
-
return fs$readdir(
|
|
3560
|
-
|
|
3558
|
+
} : function go$readdir2(path13, options2, cb2, startTime) {
|
|
3559
|
+
return fs$readdir(path13, options2, fs$readdirCallback(
|
|
3560
|
+
path13,
|
|
3561
3561
|
options2,
|
|
3562
3562
|
cb2,
|
|
3563
3563
|
startTime
|
|
3564
3564
|
));
|
|
3565
3565
|
};
|
|
3566
|
-
return go$readdir(
|
|
3567
|
-
function fs$readdirCallback(
|
|
3566
|
+
return go$readdir(path12, options, cb);
|
|
3567
|
+
function fs$readdirCallback(path13, options2, cb2, startTime) {
|
|
3568
3568
|
return function(err, files) {
|
|
3569
3569
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
3570
3570
|
enqueue([
|
|
3571
3571
|
go$readdir,
|
|
3572
|
-
[
|
|
3572
|
+
[path13, options2, cb2],
|
|
3573
3573
|
err,
|
|
3574
3574
|
startTime || Date.now(),
|
|
3575
3575
|
Date.now()
|
|
@@ -3640,7 +3640,7 @@ var require_graceful_fs = __commonJS({
|
|
|
3640
3640
|
enumerable: true,
|
|
3641
3641
|
configurable: true
|
|
3642
3642
|
});
|
|
3643
|
-
function ReadStream(
|
|
3643
|
+
function ReadStream(path12, options) {
|
|
3644
3644
|
if (this instanceof ReadStream)
|
|
3645
3645
|
return fs$ReadStream.apply(this, arguments), this;
|
|
3646
3646
|
else
|
|
@@ -3660,7 +3660,7 @@ var require_graceful_fs = __commonJS({
|
|
|
3660
3660
|
}
|
|
3661
3661
|
});
|
|
3662
3662
|
}
|
|
3663
|
-
function WriteStream(
|
|
3663
|
+
function WriteStream(path12, options) {
|
|
3664
3664
|
if (this instanceof WriteStream)
|
|
3665
3665
|
return fs$WriteStream.apply(this, arguments), this;
|
|
3666
3666
|
else
|
|
@@ -3678,22 +3678,22 @@ var require_graceful_fs = __commonJS({
|
|
|
3678
3678
|
}
|
|
3679
3679
|
});
|
|
3680
3680
|
}
|
|
3681
|
-
function createReadStream(
|
|
3682
|
-
return new fs3.ReadStream(
|
|
3681
|
+
function createReadStream(path12, options) {
|
|
3682
|
+
return new fs3.ReadStream(path12, options);
|
|
3683
3683
|
}
|
|
3684
|
-
function createWriteStream(
|
|
3685
|
-
return new fs3.WriteStream(
|
|
3684
|
+
function createWriteStream(path12, options) {
|
|
3685
|
+
return new fs3.WriteStream(path12, options);
|
|
3686
3686
|
}
|
|
3687
3687
|
var fs$open = fs3.open;
|
|
3688
3688
|
fs3.open = open;
|
|
3689
|
-
function open(
|
|
3689
|
+
function open(path12, flags, mode, cb) {
|
|
3690
3690
|
if (typeof mode === "function")
|
|
3691
3691
|
cb = mode, mode = null;
|
|
3692
|
-
return go$open(
|
|
3693
|
-
function go$open(
|
|
3694
|
-
return fs$open(
|
|
3692
|
+
return go$open(path12, flags, mode, cb);
|
|
3693
|
+
function go$open(path13, flags2, mode2, cb2, startTime) {
|
|
3694
|
+
return fs$open(path13, flags2, mode2, function(err, fd) {
|
|
3695
3695
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
3696
|
-
enqueue([go$open, [
|
|
3696
|
+
enqueue([go$open, [path13, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
3697
3697
|
else {
|
|
3698
3698
|
if (typeof cb2 === "function")
|
|
3699
3699
|
cb2.apply(this, arguments);
|
|
@@ -3858,10 +3858,10 @@ var require_fs = __commonJS({
|
|
|
3858
3858
|
var require_utils = __commonJS({
|
|
3859
3859
|
"../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) {
|
|
3860
3860
|
"use strict";
|
|
3861
|
-
var
|
|
3861
|
+
var path12 = require("path");
|
|
3862
3862
|
module2.exports.checkPath = function checkPath(pth) {
|
|
3863
3863
|
if (process.platform === "win32") {
|
|
3864
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
3864
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path12.parse(pth).root, ""));
|
|
3865
3865
|
if (pathHasInvalidWinCharacters) {
|
|
3866
3866
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
3867
3867
|
error.code = "EINVAL";
|
|
@@ -3926,8 +3926,8 @@ var require_path_exists = __commonJS({
|
|
|
3926
3926
|
"use strict";
|
|
3927
3927
|
var u = require_universalify().fromPromise;
|
|
3928
3928
|
var fs2 = require_fs();
|
|
3929
|
-
function pathExists(
|
|
3930
|
-
return fs2.access(
|
|
3929
|
+
function pathExists(path12) {
|
|
3930
|
+
return fs2.access(path12).then(() => true).catch(() => false);
|
|
3931
3931
|
}
|
|
3932
3932
|
module2.exports = {
|
|
3933
3933
|
pathExists: u(pathExists),
|
|
@@ -3941,8 +3941,8 @@ var require_utimes = __commonJS({
|
|
|
3941
3941
|
"../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/util/utimes.js"(exports, module2) {
|
|
3942
3942
|
"use strict";
|
|
3943
3943
|
var fs2 = require_graceful_fs();
|
|
3944
|
-
function utimesMillis(
|
|
3945
|
-
fs2.open(
|
|
3944
|
+
function utimesMillis(path12, atime, mtime, callback) {
|
|
3945
|
+
fs2.open(path12, "r+", (err, fd) => {
|
|
3946
3946
|
if (err)
|
|
3947
3947
|
return callback(err);
|
|
3948
3948
|
fs2.futimes(fd, atime, mtime, (futimesErr) => {
|
|
@@ -3953,8 +3953,8 @@ var require_utimes = __commonJS({
|
|
|
3953
3953
|
});
|
|
3954
3954
|
});
|
|
3955
3955
|
}
|
|
3956
|
-
function utimesMillisSync(
|
|
3957
|
-
const fd = fs2.openSync(
|
|
3956
|
+
function utimesMillisSync(path12, atime, mtime) {
|
|
3957
|
+
const fd = fs2.openSync(path12, "r+");
|
|
3958
3958
|
fs2.futimesSync(fd, atime, mtime);
|
|
3959
3959
|
return fs2.closeSync(fd);
|
|
3960
3960
|
}
|
|
@@ -3970,7 +3970,7 @@ var require_stat = __commonJS({
|
|
|
3970
3970
|
"../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
|
|
3971
3971
|
"use strict";
|
|
3972
3972
|
var fs2 = require_fs();
|
|
3973
|
-
var
|
|
3973
|
+
var path12 = require("path");
|
|
3974
3974
|
var util3 = require("util");
|
|
3975
3975
|
function getStats(src, dest, opts) {
|
|
3976
3976
|
const statFunc = opts.dereference ? (file) => fs2.stat(file, { bigint: true }) : (file) => fs2.lstat(file, { bigint: true });
|
|
@@ -4003,8 +4003,8 @@ var require_stat = __commonJS({
|
|
|
4003
4003
|
const { srcStat, destStat } = stats;
|
|
4004
4004
|
if (destStat) {
|
|
4005
4005
|
if (areIdentical(srcStat, destStat)) {
|
|
4006
|
-
const srcBaseName =
|
|
4007
|
-
const destBaseName =
|
|
4006
|
+
const srcBaseName = path12.basename(src);
|
|
4007
|
+
const destBaseName = path12.basename(dest);
|
|
4008
4008
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
4009
4009
|
return cb(null, { srcStat, destStat, isChangingCase: true });
|
|
4010
4010
|
}
|
|
@@ -4027,8 +4027,8 @@ var require_stat = __commonJS({
|
|
|
4027
4027
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
4028
4028
|
if (destStat) {
|
|
4029
4029
|
if (areIdentical(srcStat, destStat)) {
|
|
4030
|
-
const srcBaseName =
|
|
4031
|
-
const destBaseName =
|
|
4030
|
+
const srcBaseName = path12.basename(src);
|
|
4031
|
+
const destBaseName = path12.basename(dest);
|
|
4032
4032
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
4033
4033
|
return { srcStat, destStat, isChangingCase: true };
|
|
4034
4034
|
}
|
|
@@ -4047,9 +4047,9 @@ var require_stat = __commonJS({
|
|
|
4047
4047
|
return { srcStat, destStat };
|
|
4048
4048
|
}
|
|
4049
4049
|
function checkParentPaths(src, srcStat, dest, funcName, cb) {
|
|
4050
|
-
const srcParent =
|
|
4051
|
-
const destParent =
|
|
4052
|
-
if (destParent === srcParent || destParent ===
|
|
4050
|
+
const srcParent = path12.resolve(path12.dirname(src));
|
|
4051
|
+
const destParent = path12.resolve(path12.dirname(dest));
|
|
4052
|
+
if (destParent === srcParent || destParent === path12.parse(destParent).root)
|
|
4053
4053
|
return cb();
|
|
4054
4054
|
fs2.stat(destParent, { bigint: true }, (err, destStat) => {
|
|
4055
4055
|
if (err) {
|
|
@@ -4064,9 +4064,9 @@ var require_stat = __commonJS({
|
|
|
4064
4064
|
});
|
|
4065
4065
|
}
|
|
4066
4066
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
4067
|
-
const srcParent =
|
|
4068
|
-
const destParent =
|
|
4069
|
-
if (destParent === srcParent || destParent ===
|
|
4067
|
+
const srcParent = path12.resolve(path12.dirname(src));
|
|
4068
|
+
const destParent = path12.resolve(path12.dirname(dest));
|
|
4069
|
+
if (destParent === srcParent || destParent === path12.parse(destParent).root)
|
|
4070
4070
|
return;
|
|
4071
4071
|
let destStat;
|
|
4072
4072
|
try {
|
|
@@ -4085,8 +4085,8 @@ var require_stat = __commonJS({
|
|
|
4085
4085
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
4086
4086
|
}
|
|
4087
4087
|
function isSrcSubdir(src, dest) {
|
|
4088
|
-
const srcArr =
|
|
4089
|
-
const destArr =
|
|
4088
|
+
const srcArr = path12.resolve(src).split(path12.sep).filter((i) => i);
|
|
4089
|
+
const destArr = path12.resolve(dest).split(path12.sep).filter((i) => i);
|
|
4090
4090
|
return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
|
|
4091
4091
|
}
|
|
4092
4092
|
function errMsg(src, dest, funcName) {
|
|
@@ -4108,7 +4108,7 @@ var require_copy = __commonJS({
|
|
|
4108
4108
|
"../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
|
|
4109
4109
|
"use strict";
|
|
4110
4110
|
var fs2 = require_graceful_fs();
|
|
4111
|
-
var
|
|
4111
|
+
var path12 = require("path");
|
|
4112
4112
|
var mkdirs = require_mkdirs().mkdirs;
|
|
4113
4113
|
var pathExists = require_path_exists().pathExists;
|
|
4114
4114
|
var utimesMillis = require_utimes().utimesMillis;
|
|
@@ -4144,7 +4144,7 @@ var require_copy = __commonJS({
|
|
|
4144
4144
|
});
|
|
4145
4145
|
}
|
|
4146
4146
|
function checkParentDir(destStat, src, dest, opts, cb) {
|
|
4147
|
-
const destParent =
|
|
4147
|
+
const destParent = path12.dirname(dest);
|
|
4148
4148
|
pathExists(destParent, (err, dirExists) => {
|
|
4149
4149
|
if (err)
|
|
4150
4150
|
return cb(err);
|
|
@@ -4276,8 +4276,8 @@ var require_copy = __commonJS({
|
|
|
4276
4276
|
return copyDirItem(items, item, src, dest, opts, cb);
|
|
4277
4277
|
}
|
|
4278
4278
|
function copyDirItem(items, item, src, dest, opts, cb) {
|
|
4279
|
-
const srcItem =
|
|
4280
|
-
const destItem =
|
|
4279
|
+
const srcItem = path12.join(src, item);
|
|
4280
|
+
const destItem = path12.join(dest, item);
|
|
4281
4281
|
stat.checkPaths(srcItem, destItem, "copy", opts, (err, stats) => {
|
|
4282
4282
|
if (err)
|
|
4283
4283
|
return cb(err);
|
|
@@ -4294,7 +4294,7 @@ var require_copy = __commonJS({
|
|
|
4294
4294
|
if (err)
|
|
4295
4295
|
return cb(err);
|
|
4296
4296
|
if (opts.dereference) {
|
|
4297
|
-
resolvedSrc =
|
|
4297
|
+
resolvedSrc = path12.resolve(process.cwd(), resolvedSrc);
|
|
4298
4298
|
}
|
|
4299
4299
|
if (!destStat) {
|
|
4300
4300
|
return fs2.symlink(resolvedSrc, dest, cb);
|
|
@@ -4306,7 +4306,7 @@ var require_copy = __commonJS({
|
|
|
4306
4306
|
return cb(err2);
|
|
4307
4307
|
}
|
|
4308
4308
|
if (opts.dereference) {
|
|
4309
|
-
resolvedDest =
|
|
4309
|
+
resolvedDest = path12.resolve(process.cwd(), resolvedDest);
|
|
4310
4310
|
}
|
|
4311
4311
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
4312
4312
|
return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
|
|
@@ -4335,7 +4335,7 @@ var require_copy_sync = __commonJS({
|
|
|
4335
4335
|
"../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module2) {
|
|
4336
4336
|
"use strict";
|
|
4337
4337
|
var fs2 = require_graceful_fs();
|
|
4338
|
-
var
|
|
4338
|
+
var path12 = require("path");
|
|
4339
4339
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
4340
4340
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
4341
4341
|
var stat = require_stat();
|
|
@@ -4358,7 +4358,7 @@ var require_copy_sync = __commonJS({
|
|
|
4358
4358
|
function handleFilterAndCopy(destStat, src, dest, opts) {
|
|
4359
4359
|
if (opts.filter && !opts.filter(src, dest))
|
|
4360
4360
|
return;
|
|
4361
|
-
const destParent =
|
|
4361
|
+
const destParent = path12.dirname(dest);
|
|
4362
4362
|
if (!fs2.existsSync(destParent))
|
|
4363
4363
|
mkdirsSync(destParent);
|
|
4364
4364
|
return getStats(destStat, src, dest, opts);
|
|
@@ -4434,15 +4434,15 @@ var require_copy_sync = __commonJS({
|
|
|
4434
4434
|
fs2.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
4435
4435
|
}
|
|
4436
4436
|
function copyDirItem(item, src, dest, opts) {
|
|
4437
|
-
const srcItem =
|
|
4438
|
-
const destItem =
|
|
4437
|
+
const srcItem = path12.join(src, item);
|
|
4438
|
+
const destItem = path12.join(dest, item);
|
|
4439
4439
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
4440
4440
|
return startCopy(destStat, srcItem, destItem, opts);
|
|
4441
4441
|
}
|
|
4442
4442
|
function onLink(destStat, src, dest, opts) {
|
|
4443
4443
|
let resolvedSrc = fs2.readlinkSync(src);
|
|
4444
4444
|
if (opts.dereference) {
|
|
4445
|
-
resolvedSrc =
|
|
4445
|
+
resolvedSrc = path12.resolve(process.cwd(), resolvedSrc);
|
|
4446
4446
|
}
|
|
4447
4447
|
if (!destStat) {
|
|
4448
4448
|
return fs2.symlinkSync(resolvedSrc, dest);
|
|
@@ -4456,7 +4456,7 @@ var require_copy_sync = __commonJS({
|
|
|
4456
4456
|
throw err;
|
|
4457
4457
|
}
|
|
4458
4458
|
if (opts.dereference) {
|
|
4459
|
-
resolvedDest =
|
|
4459
|
+
resolvedDest = path12.resolve(process.cwd(), resolvedDest);
|
|
4460
4460
|
}
|
|
4461
4461
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
4462
4462
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -4492,7 +4492,7 @@ var require_rimraf = __commonJS({
|
|
|
4492
4492
|
"../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/remove/rimraf.js"(exports, module2) {
|
|
4493
4493
|
"use strict";
|
|
4494
4494
|
var fs2 = require_graceful_fs();
|
|
4495
|
-
var
|
|
4495
|
+
var path12 = require("path");
|
|
4496
4496
|
var assert = require("assert");
|
|
4497
4497
|
var isWindows = process.platform === "win32";
|
|
4498
4498
|
function defaults2(options) {
|
|
@@ -4640,7 +4640,7 @@ var require_rimraf = __commonJS({
|
|
|
4640
4640
|
if (n === 0)
|
|
4641
4641
|
return options.rmdir(p, cb);
|
|
4642
4642
|
files.forEach((f) => {
|
|
4643
|
-
rimraf(
|
|
4643
|
+
rimraf(path12.join(p, f), options, (er2) => {
|
|
4644
4644
|
if (errState) {
|
|
4645
4645
|
return;
|
|
4646
4646
|
}
|
|
@@ -4706,7 +4706,7 @@ var require_rimraf = __commonJS({
|
|
|
4706
4706
|
function rmkidsSync(p, options) {
|
|
4707
4707
|
assert(p);
|
|
4708
4708
|
assert(options);
|
|
4709
|
-
options.readdirSync(p).forEach((f) => rimrafSync(
|
|
4709
|
+
options.readdirSync(p).forEach((f) => rimrafSync(path12.join(p, f), options));
|
|
4710
4710
|
if (isWindows) {
|
|
4711
4711
|
const startTime = Date.now();
|
|
4712
4712
|
do {
|
|
@@ -4733,15 +4733,15 @@ var require_remove = __commonJS({
|
|
|
4733
4733
|
var fs2 = require_graceful_fs();
|
|
4734
4734
|
var u = require_universalify().fromCallback;
|
|
4735
4735
|
var rimraf = require_rimraf();
|
|
4736
|
-
function remove(
|
|
4736
|
+
function remove(path12, callback) {
|
|
4737
4737
|
if (fs2.rm)
|
|
4738
|
-
return fs2.rm(
|
|
4739
|
-
rimraf(
|
|
4738
|
+
return fs2.rm(path12, { recursive: true, force: true }, callback);
|
|
4739
|
+
rimraf(path12, callback);
|
|
4740
4740
|
}
|
|
4741
|
-
function removeSync(
|
|
4741
|
+
function removeSync(path12) {
|
|
4742
4742
|
if (fs2.rmSync)
|
|
4743
|
-
return fs2.rmSync(
|
|
4744
|
-
rimraf.sync(
|
|
4743
|
+
return fs2.rmSync(path12, { recursive: true, force: true });
|
|
4744
|
+
rimraf.sync(path12);
|
|
4745
4745
|
}
|
|
4746
4746
|
module2.exports = {
|
|
4747
4747
|
remove: u(remove),
|
|
@@ -4756,7 +4756,7 @@ var require_empty = __commonJS({
|
|
|
4756
4756
|
"use strict";
|
|
4757
4757
|
var u = require_universalify().fromPromise;
|
|
4758
4758
|
var fs2 = require_fs();
|
|
4759
|
-
var
|
|
4759
|
+
var path12 = require("path");
|
|
4760
4760
|
var mkdir = require_mkdirs();
|
|
4761
4761
|
var remove = require_remove();
|
|
4762
4762
|
var emptyDir = u(function emptyDir2(dir) {
|
|
@@ -4767,7 +4767,7 @@ var require_empty = __commonJS({
|
|
|
4767
4767
|
} catch (e) {
|
|
4768
4768
|
return mkdir.mkdirs(dir);
|
|
4769
4769
|
}
|
|
4770
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
4770
|
+
return Promise.all(items.map((item) => remove.remove(path12.join(dir, item))));
|
|
4771
4771
|
});
|
|
4772
4772
|
});
|
|
4773
4773
|
function emptyDirSync(dir) {
|
|
@@ -4778,7 +4778,7 @@ var require_empty = __commonJS({
|
|
|
4778
4778
|
return mkdir.mkdirsSync(dir);
|
|
4779
4779
|
}
|
|
4780
4780
|
items.forEach((item) => {
|
|
4781
|
-
item =
|
|
4781
|
+
item = path12.join(dir, item);
|
|
4782
4782
|
remove.removeSync(item);
|
|
4783
4783
|
});
|
|
4784
4784
|
}
|
|
@@ -4796,7 +4796,7 @@ var require_file = __commonJS({
|
|
|
4796
4796
|
"../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
|
|
4797
4797
|
"use strict";
|
|
4798
4798
|
var u = require_universalify().fromCallback;
|
|
4799
|
-
var
|
|
4799
|
+
var path12 = require("path");
|
|
4800
4800
|
var fs2 = require_graceful_fs();
|
|
4801
4801
|
var mkdir = require_mkdirs();
|
|
4802
4802
|
function createFile(file, callback) {
|
|
@@ -4810,7 +4810,7 @@ var require_file = __commonJS({
|
|
|
4810
4810
|
fs2.stat(file, (err, stats) => {
|
|
4811
4811
|
if (!err && stats.isFile())
|
|
4812
4812
|
return callback();
|
|
4813
|
-
const dir =
|
|
4813
|
+
const dir = path12.dirname(file);
|
|
4814
4814
|
fs2.stat(dir, (err2, stats2) => {
|
|
4815
4815
|
if (err2) {
|
|
4816
4816
|
if (err2.code === "ENOENT") {
|
|
@@ -4841,7 +4841,7 @@ var require_file = __commonJS({
|
|
|
4841
4841
|
}
|
|
4842
4842
|
if (stats && stats.isFile())
|
|
4843
4843
|
return;
|
|
4844
|
-
const dir =
|
|
4844
|
+
const dir = path12.dirname(file);
|
|
4845
4845
|
try {
|
|
4846
4846
|
if (!fs2.statSync(dir).isDirectory()) {
|
|
4847
4847
|
fs2.readdirSync(dir);
|
|
@@ -4866,7 +4866,7 @@ var require_link = __commonJS({
|
|
|
4866
4866
|
"../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
|
|
4867
4867
|
"use strict";
|
|
4868
4868
|
var u = require_universalify().fromCallback;
|
|
4869
|
-
var
|
|
4869
|
+
var path12 = require("path");
|
|
4870
4870
|
var fs2 = require_graceful_fs();
|
|
4871
4871
|
var mkdir = require_mkdirs();
|
|
4872
4872
|
var pathExists = require_path_exists().pathExists;
|
|
@@ -4887,7 +4887,7 @@ var require_link = __commonJS({
|
|
|
4887
4887
|
}
|
|
4888
4888
|
if (dstStat && areIdentical(srcStat, dstStat))
|
|
4889
4889
|
return callback(null);
|
|
4890
|
-
const dir =
|
|
4890
|
+
const dir = path12.dirname(dstpath);
|
|
4891
4891
|
pathExists(dir, (err2, dirExists) => {
|
|
4892
4892
|
if (err2)
|
|
4893
4893
|
return callback(err2);
|
|
@@ -4916,7 +4916,7 @@ var require_link = __commonJS({
|
|
|
4916
4916
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
4917
4917
|
throw err;
|
|
4918
4918
|
}
|
|
4919
|
-
const dir =
|
|
4919
|
+
const dir = path12.dirname(dstpath);
|
|
4920
4920
|
const dirExists = fs2.existsSync(dir);
|
|
4921
4921
|
if (dirExists)
|
|
4922
4922
|
return fs2.linkSync(srcpath, dstpath);
|
|
@@ -4934,11 +4934,11 @@ var require_link = __commonJS({
|
|
|
4934
4934
|
var require_symlink_paths = __commonJS({
|
|
4935
4935
|
"../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
|
|
4936
4936
|
"use strict";
|
|
4937
|
-
var
|
|
4937
|
+
var path12 = require("path");
|
|
4938
4938
|
var fs2 = require_graceful_fs();
|
|
4939
4939
|
var pathExists = require_path_exists().pathExists;
|
|
4940
4940
|
function symlinkPaths(srcpath, dstpath, callback) {
|
|
4941
|
-
if (
|
|
4941
|
+
if (path12.isAbsolute(srcpath)) {
|
|
4942
4942
|
return fs2.lstat(srcpath, (err) => {
|
|
4943
4943
|
if (err) {
|
|
4944
4944
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
@@ -4950,8 +4950,8 @@ var require_symlink_paths = __commonJS({
|
|
|
4950
4950
|
});
|
|
4951
4951
|
});
|
|
4952
4952
|
} else {
|
|
4953
|
-
const dstdir =
|
|
4954
|
-
const relativeToDst =
|
|
4953
|
+
const dstdir = path12.dirname(dstpath);
|
|
4954
|
+
const relativeToDst = path12.join(dstdir, srcpath);
|
|
4955
4955
|
return pathExists(relativeToDst, (err, exists) => {
|
|
4956
4956
|
if (err)
|
|
4957
4957
|
return callback(err);
|
|
@@ -4968,7 +4968,7 @@ var require_symlink_paths = __commonJS({
|
|
|
4968
4968
|
}
|
|
4969
4969
|
return callback(null, {
|
|
4970
4970
|
toCwd: srcpath,
|
|
4971
|
-
toDst:
|
|
4971
|
+
toDst: path12.relative(dstdir, srcpath)
|
|
4972
4972
|
});
|
|
4973
4973
|
});
|
|
4974
4974
|
}
|
|
@@ -4977,7 +4977,7 @@ var require_symlink_paths = __commonJS({
|
|
|
4977
4977
|
}
|
|
4978
4978
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
4979
4979
|
let exists;
|
|
4980
|
-
if (
|
|
4980
|
+
if (path12.isAbsolute(srcpath)) {
|
|
4981
4981
|
exists = fs2.existsSync(srcpath);
|
|
4982
4982
|
if (!exists)
|
|
4983
4983
|
throw new Error("absolute srcpath does not exist");
|
|
@@ -4986,8 +4986,8 @@ var require_symlink_paths = __commonJS({
|
|
|
4986
4986
|
toDst: srcpath
|
|
4987
4987
|
};
|
|
4988
4988
|
} else {
|
|
4989
|
-
const dstdir =
|
|
4990
|
-
const relativeToDst =
|
|
4989
|
+
const dstdir = path12.dirname(dstpath);
|
|
4990
|
+
const relativeToDst = path12.join(dstdir, srcpath);
|
|
4991
4991
|
exists = fs2.existsSync(relativeToDst);
|
|
4992
4992
|
if (exists) {
|
|
4993
4993
|
return {
|
|
@@ -5000,7 +5000,7 @@ var require_symlink_paths = __commonJS({
|
|
|
5000
5000
|
throw new Error("relative srcpath does not exist");
|
|
5001
5001
|
return {
|
|
5002
5002
|
toCwd: srcpath,
|
|
5003
|
-
toDst:
|
|
5003
|
+
toDst: path12.relative(dstdir, srcpath)
|
|
5004
5004
|
};
|
|
5005
5005
|
}
|
|
5006
5006
|
}
|
|
@@ -5052,7 +5052,7 @@ var require_symlink = __commonJS({
|
|
|
5052
5052
|
"../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
|
|
5053
5053
|
"use strict";
|
|
5054
5054
|
var u = require_universalify().fromCallback;
|
|
5055
|
-
var
|
|
5055
|
+
var path12 = require("path");
|
|
5056
5056
|
var fs2 = require_fs();
|
|
5057
5057
|
var _mkdirs = require_mkdirs();
|
|
5058
5058
|
var mkdirs = _mkdirs.mkdirs;
|
|
@@ -5090,7 +5090,7 @@ var require_symlink = __commonJS({
|
|
|
5090
5090
|
symlinkType(relative.toCwd, type, (err2, type2) => {
|
|
5091
5091
|
if (err2)
|
|
5092
5092
|
return callback(err2);
|
|
5093
|
-
const dir =
|
|
5093
|
+
const dir = path12.dirname(dstpath);
|
|
5094
5094
|
pathExists(dir, (err3, dirExists) => {
|
|
5095
5095
|
if (err3)
|
|
5096
5096
|
return callback(err3);
|
|
@@ -5120,7 +5120,7 @@ var require_symlink = __commonJS({
|
|
|
5120
5120
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
5121
5121
|
srcpath = relative.toDst;
|
|
5122
5122
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
5123
|
-
const dir =
|
|
5123
|
+
const dir = path12.dirname(dstpath);
|
|
5124
5124
|
const exists = fs2.existsSync(dir);
|
|
5125
5125
|
if (exists)
|
|
5126
5126
|
return fs2.symlinkSync(srcpath, dstpath, type);
|
|
@@ -5278,7 +5278,7 @@ var require_output_file = __commonJS({
|
|
|
5278
5278
|
"use strict";
|
|
5279
5279
|
var u = require_universalify().fromCallback;
|
|
5280
5280
|
var fs2 = require_graceful_fs();
|
|
5281
|
-
var
|
|
5281
|
+
var path12 = require("path");
|
|
5282
5282
|
var mkdir = require_mkdirs();
|
|
5283
5283
|
var pathExists = require_path_exists().pathExists;
|
|
5284
5284
|
function outputFile(file, data, encoding, callback) {
|
|
@@ -5286,7 +5286,7 @@ var require_output_file = __commonJS({
|
|
|
5286
5286
|
callback = encoding;
|
|
5287
5287
|
encoding = "utf8";
|
|
5288
5288
|
}
|
|
5289
|
-
const dir =
|
|
5289
|
+
const dir = path12.dirname(file);
|
|
5290
5290
|
pathExists(dir, (err, itDoes) => {
|
|
5291
5291
|
if (err)
|
|
5292
5292
|
return callback(err);
|
|
@@ -5300,7 +5300,7 @@ var require_output_file = __commonJS({
|
|
|
5300
5300
|
});
|
|
5301
5301
|
}
|
|
5302
5302
|
function outputFileSync(file, ...args) {
|
|
5303
|
-
const dir =
|
|
5303
|
+
const dir = path12.dirname(file);
|
|
5304
5304
|
if (fs2.existsSync(dir)) {
|
|
5305
5305
|
return fs2.writeFileSync(file, ...args);
|
|
5306
5306
|
}
|
|
@@ -5367,7 +5367,7 @@ var require_move = __commonJS({
|
|
|
5367
5367
|
"../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/move/move.js"(exports, module2) {
|
|
5368
5368
|
"use strict";
|
|
5369
5369
|
var fs2 = require_graceful_fs();
|
|
5370
|
-
var
|
|
5370
|
+
var path12 = require("path");
|
|
5371
5371
|
var copy = require_copy2().copy;
|
|
5372
5372
|
var remove = require_remove().remove;
|
|
5373
5373
|
var mkdirp = require_mkdirs().mkdirp;
|
|
@@ -5388,7 +5388,7 @@ var require_move = __commonJS({
|
|
|
5388
5388
|
return cb(err2);
|
|
5389
5389
|
if (isParentRoot(dest))
|
|
5390
5390
|
return doRename(src, dest, overwrite, isChangingCase, cb);
|
|
5391
|
-
mkdirp(
|
|
5391
|
+
mkdirp(path12.dirname(dest), (err3) => {
|
|
5392
5392
|
if (err3)
|
|
5393
5393
|
return cb(err3);
|
|
5394
5394
|
return doRename(src, dest, overwrite, isChangingCase, cb);
|
|
@@ -5397,8 +5397,8 @@ var require_move = __commonJS({
|
|
|
5397
5397
|
});
|
|
5398
5398
|
}
|
|
5399
5399
|
function isParentRoot(dest) {
|
|
5400
|
-
const parent =
|
|
5401
|
-
const parsedPath =
|
|
5400
|
+
const parent = path12.dirname(dest);
|
|
5401
|
+
const parsedPath = path12.parse(parent);
|
|
5402
5402
|
return parsedPath.root === parent;
|
|
5403
5403
|
}
|
|
5404
5404
|
function doRename(src, dest, overwrite, isChangingCase, cb) {
|
|
@@ -5448,7 +5448,7 @@ var require_move_sync = __commonJS({
|
|
|
5448
5448
|
"../../../node_modules/.pnpm/fs-extra@10.0.1/node_modules/fs-extra/lib/move/move-sync.js"(exports, module2) {
|
|
5449
5449
|
"use strict";
|
|
5450
5450
|
var fs2 = require_graceful_fs();
|
|
5451
|
-
var
|
|
5451
|
+
var path12 = require("path");
|
|
5452
5452
|
var copySync = require_copy2().copySync;
|
|
5453
5453
|
var removeSync = require_remove().removeSync;
|
|
5454
5454
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -5459,12 +5459,12 @@ var require_move_sync = __commonJS({
|
|
|
5459
5459
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
5460
5460
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
5461
5461
|
if (!isParentRoot(dest))
|
|
5462
|
-
mkdirpSync(
|
|
5462
|
+
mkdirpSync(path12.dirname(dest));
|
|
5463
5463
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
5464
5464
|
}
|
|
5465
5465
|
function isParentRoot(dest) {
|
|
5466
|
-
const parent =
|
|
5467
|
-
const parsedPath =
|
|
5466
|
+
const parent = path12.dirname(dest);
|
|
5467
|
+
const parsedPath = path12.parse(parent);
|
|
5468
5468
|
return parsedPath.root === parent;
|
|
5469
5469
|
}
|
|
5470
5470
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -6391,15 +6391,15 @@ var require_route = __commonJS({
|
|
|
6391
6391
|
};
|
|
6392
6392
|
}
|
|
6393
6393
|
function wrapConversion(toModel, graph) {
|
|
6394
|
-
const
|
|
6394
|
+
const path12 = [graph[toModel].parent, toModel];
|
|
6395
6395
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
6396
6396
|
let cur = graph[toModel].parent;
|
|
6397
6397
|
while (graph[cur].parent) {
|
|
6398
|
-
|
|
6398
|
+
path12.unshift(graph[cur].parent);
|
|
6399
6399
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
6400
6400
|
cur = graph[cur].parent;
|
|
6401
6401
|
}
|
|
6402
|
-
fn.conversion =
|
|
6402
|
+
fn.conversion = path12;
|
|
6403
6403
|
return fn;
|
|
6404
6404
|
}
|
|
6405
6405
|
module2.exports = function(fromModel) {
|
|
@@ -14186,11 +14186,11 @@ var require_lodash = __commonJS({
|
|
|
14186
14186
|
return isFunction2(object[key]);
|
|
14187
14187
|
});
|
|
14188
14188
|
}
|
|
14189
|
-
function baseGet(object,
|
|
14190
|
-
|
|
14191
|
-
var index = 0, length =
|
|
14189
|
+
function baseGet(object, path12) {
|
|
14190
|
+
path12 = castPath(path12, object);
|
|
14191
|
+
var index = 0, length = path12.length;
|
|
14192
14192
|
while (object != null && index < length) {
|
|
14193
|
-
object = object[toKey(
|
|
14193
|
+
object = object[toKey(path12[index++])];
|
|
14194
14194
|
}
|
|
14195
14195
|
return index && index == length ? object : undefined2;
|
|
14196
14196
|
}
|
|
@@ -14254,10 +14254,10 @@ var require_lodash = __commonJS({
|
|
|
14254
14254
|
});
|
|
14255
14255
|
return accumulator;
|
|
14256
14256
|
}
|
|
14257
|
-
function baseInvoke(object,
|
|
14258
|
-
|
|
14259
|
-
object = parent(object,
|
|
14260
|
-
var func = object == null ? object : object[toKey(last(
|
|
14257
|
+
function baseInvoke(object, path12, args) {
|
|
14258
|
+
path12 = castPath(path12, object);
|
|
14259
|
+
object = parent(object, path12);
|
|
14260
|
+
var func = object == null ? object : object[toKey(last(path12))];
|
|
14261
14261
|
return func == null ? undefined2 : apply(func, object, args);
|
|
14262
14262
|
}
|
|
14263
14263
|
function baseIsArguments(value) {
|
|
@@ -14413,13 +14413,13 @@ var require_lodash = __commonJS({
|
|
|
14413
14413
|
return object === source || baseIsMatch(object, source, matchData);
|
|
14414
14414
|
};
|
|
14415
14415
|
}
|
|
14416
|
-
function baseMatchesProperty(
|
|
14417
|
-
if (isKey(
|
|
14418
|
-
return matchesStrictComparable(toKey(
|
|
14416
|
+
function baseMatchesProperty(path12, srcValue) {
|
|
14417
|
+
if (isKey(path12) && isStrictComparable(srcValue)) {
|
|
14418
|
+
return matchesStrictComparable(toKey(path12), srcValue);
|
|
14419
14419
|
}
|
|
14420
14420
|
return function(object) {
|
|
14421
|
-
var objValue = get2(object,
|
|
14422
|
-
return objValue === undefined2 && objValue === srcValue ? hasIn(object,
|
|
14421
|
+
var objValue = get2(object, path12);
|
|
14422
|
+
return objValue === undefined2 && objValue === srcValue ? hasIn(object, path12) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
14423
14423
|
};
|
|
14424
14424
|
}
|
|
14425
14425
|
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
@@ -14516,23 +14516,23 @@ var require_lodash = __commonJS({
|
|
|
14516
14516
|
});
|
|
14517
14517
|
}
|
|
14518
14518
|
function basePick(object, paths) {
|
|
14519
|
-
return basePickBy(object, paths, function(value,
|
|
14520
|
-
return hasIn(object,
|
|
14519
|
+
return basePickBy(object, paths, function(value, path12) {
|
|
14520
|
+
return hasIn(object, path12);
|
|
14521
14521
|
});
|
|
14522
14522
|
}
|
|
14523
14523
|
function basePickBy(object, paths, predicate) {
|
|
14524
14524
|
var index = -1, length = paths.length, result2 = {};
|
|
14525
14525
|
while (++index < length) {
|
|
14526
|
-
var
|
|
14527
|
-
if (predicate(value,
|
|
14528
|
-
baseSet(result2, castPath(
|
|
14526
|
+
var path12 = paths[index], value = baseGet(object, path12);
|
|
14527
|
+
if (predicate(value, path12)) {
|
|
14528
|
+
baseSet(result2, castPath(path12, object), value);
|
|
14529
14529
|
}
|
|
14530
14530
|
}
|
|
14531
14531
|
return result2;
|
|
14532
14532
|
}
|
|
14533
|
-
function basePropertyDeep(
|
|
14533
|
+
function basePropertyDeep(path12) {
|
|
14534
14534
|
return function(object) {
|
|
14535
|
-
return baseGet(object,
|
|
14535
|
+
return baseGet(object, path12);
|
|
14536
14536
|
};
|
|
14537
14537
|
}
|
|
14538
14538
|
function basePullAll(array, values2, iteratee2, comparator) {
|
|
@@ -14606,14 +14606,14 @@ var require_lodash = __commonJS({
|
|
|
14606
14606
|
var array = values(collection);
|
|
14607
14607
|
return shuffleSelf(array, baseClamp(n, 0, array.length));
|
|
14608
14608
|
}
|
|
14609
|
-
function baseSet(object,
|
|
14609
|
+
function baseSet(object, path12, value, customizer) {
|
|
14610
14610
|
if (!isObject3(object)) {
|
|
14611
14611
|
return object;
|
|
14612
14612
|
}
|
|
14613
|
-
|
|
14614
|
-
var index = -1, length =
|
|
14613
|
+
path12 = castPath(path12, object);
|
|
14614
|
+
var index = -1, length = path12.length, lastIndex = length - 1, nested = object;
|
|
14615
14615
|
while (nested != null && ++index < length) {
|
|
14616
|
-
var key = toKey(
|
|
14616
|
+
var key = toKey(path12[index]), newValue = value;
|
|
14617
14617
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
14618
14618
|
return object;
|
|
14619
14619
|
}
|
|
@@ -14621,7 +14621,7 @@ var require_lodash = __commonJS({
|
|
|
14621
14621
|
var objValue = nested[key];
|
|
14622
14622
|
newValue = customizer ? customizer(objValue, key, nested) : undefined2;
|
|
14623
14623
|
if (newValue === undefined2) {
|
|
14624
|
-
newValue = isObject3(objValue) ? objValue : isIndex(
|
|
14624
|
+
newValue = isObject3(objValue) ? objValue : isIndex(path12[index + 1]) ? [] : {};
|
|
14625
14625
|
}
|
|
14626
14626
|
}
|
|
14627
14627
|
assignValue(nested, key, newValue);
|
|
@@ -14787,13 +14787,13 @@ var require_lodash = __commonJS({
|
|
|
14787
14787
|
}
|
|
14788
14788
|
return result2;
|
|
14789
14789
|
}
|
|
14790
|
-
function baseUnset(object,
|
|
14791
|
-
|
|
14792
|
-
object = parent(object,
|
|
14793
|
-
return object == null || delete object[toKey(last(
|
|
14790
|
+
function baseUnset(object, path12) {
|
|
14791
|
+
path12 = castPath(path12, object);
|
|
14792
|
+
object = parent(object, path12);
|
|
14793
|
+
return object == null || delete object[toKey(last(path12))];
|
|
14794
14794
|
}
|
|
14795
|
-
function baseUpdate(object,
|
|
14796
|
-
return baseSet(object,
|
|
14795
|
+
function baseUpdate(object, path12, updater, customizer) {
|
|
14796
|
+
return baseSet(object, path12, updater(baseGet(object, path12)), customizer);
|
|
14797
14797
|
}
|
|
14798
14798
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
|
14799
14799
|
var length = array.length, index = fromRight ? length : -1;
|
|
@@ -15676,11 +15676,11 @@ var require_lodash = __commonJS({
|
|
|
15676
15676
|
var match = source.match(reWrapDetails);
|
|
15677
15677
|
return match ? match[1].split(reSplitDetails) : [];
|
|
15678
15678
|
}
|
|
15679
|
-
function hasPath(object,
|
|
15680
|
-
|
|
15681
|
-
var index = -1, length =
|
|
15679
|
+
function hasPath(object, path12, hasFunc) {
|
|
15680
|
+
path12 = castPath(path12, object);
|
|
15681
|
+
var index = -1, length = path12.length, result2 = false;
|
|
15682
15682
|
while (++index < length) {
|
|
15683
|
-
var key = toKey(
|
|
15683
|
+
var key = toKey(path12[index]);
|
|
15684
15684
|
if (!(result2 = object != null && hasFunc(object, key))) {
|
|
15685
15685
|
break;
|
|
15686
15686
|
}
|
|
@@ -15882,8 +15882,8 @@ var require_lodash = __commonJS({
|
|
|
15882
15882
|
return apply(func, this, otherArgs);
|
|
15883
15883
|
};
|
|
15884
15884
|
}
|
|
15885
|
-
function parent(object,
|
|
15886
|
-
return
|
|
15885
|
+
function parent(object, path12) {
|
|
15886
|
+
return path12.length < 2 ? object : baseGet(object, baseSlice(path12, 0, -1));
|
|
15887
15887
|
}
|
|
15888
15888
|
function reorder(array, indexes) {
|
|
15889
15889
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
@@ -16518,10 +16518,10 @@ var require_lodash = __commonJS({
|
|
|
16518
16518
|
}
|
|
16519
16519
|
return isString3(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
16520
16520
|
}
|
|
16521
|
-
var invokeMap = baseRest(function(collection,
|
|
16522
|
-
var index = -1, isFunc = typeof
|
|
16521
|
+
var invokeMap = baseRest(function(collection, path12, args) {
|
|
16522
|
+
var index = -1, isFunc = typeof path12 == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
|
16523
16523
|
baseEach(collection, function(value) {
|
|
16524
|
-
result2[++index] = isFunc ? apply(
|
|
16524
|
+
result2[++index] = isFunc ? apply(path12, value, args) : baseInvoke(value, path12, args);
|
|
16525
16525
|
});
|
|
16526
16526
|
return result2;
|
|
16527
16527
|
});
|
|
@@ -17173,15 +17173,15 @@ var require_lodash = __commonJS({
|
|
|
17173
17173
|
function functionsIn(object) {
|
|
17174
17174
|
return object == null ? [] : baseFunctions(object, keysIn(object));
|
|
17175
17175
|
}
|
|
17176
|
-
function get2(object,
|
|
17177
|
-
var result2 = object == null ? undefined2 : baseGet(object,
|
|
17176
|
+
function get2(object, path12, defaultValue) {
|
|
17177
|
+
var result2 = object == null ? undefined2 : baseGet(object, path12);
|
|
17178
17178
|
return result2 === undefined2 ? defaultValue : result2;
|
|
17179
17179
|
}
|
|
17180
|
-
function has(object,
|
|
17181
|
-
return object != null && hasPath(object,
|
|
17180
|
+
function has(object, path12) {
|
|
17181
|
+
return object != null && hasPath(object, path12, baseHas);
|
|
17182
17182
|
}
|
|
17183
|
-
function hasIn(object,
|
|
17184
|
-
return object != null && hasPath(object,
|
|
17183
|
+
function hasIn(object, path12) {
|
|
17184
|
+
return object != null && hasPath(object, path12, baseHasIn);
|
|
17185
17185
|
}
|
|
17186
17186
|
var invert = createInverter(function(result2, value, key) {
|
|
17187
17187
|
if (value != null && typeof value.toString != "function") {
|
|
@@ -17234,10 +17234,10 @@ var require_lodash = __commonJS({
|
|
|
17234
17234
|
return result2;
|
|
17235
17235
|
}
|
|
17236
17236
|
var isDeep = false;
|
|
17237
|
-
paths = arrayMap(paths, function(
|
|
17238
|
-
|
|
17239
|
-
isDeep || (isDeep =
|
|
17240
|
-
return
|
|
17237
|
+
paths = arrayMap(paths, function(path12) {
|
|
17238
|
+
path12 = castPath(path12, object);
|
|
17239
|
+
isDeep || (isDeep = path12.length > 1);
|
|
17240
|
+
return path12;
|
|
17241
17241
|
});
|
|
17242
17242
|
copyObject(object, getAllKeysIn(object), result2);
|
|
17243
17243
|
if (isDeep) {
|
|
@@ -17263,19 +17263,19 @@ var require_lodash = __commonJS({
|
|
|
17263
17263
|
return [prop];
|
|
17264
17264
|
});
|
|
17265
17265
|
predicate = getIteratee(predicate);
|
|
17266
|
-
return basePickBy(object, props, function(value,
|
|
17267
|
-
return predicate(value,
|
|
17266
|
+
return basePickBy(object, props, function(value, path12) {
|
|
17267
|
+
return predicate(value, path12[0]);
|
|
17268
17268
|
});
|
|
17269
17269
|
}
|
|
17270
|
-
function result(object,
|
|
17271
|
-
|
|
17272
|
-
var index = -1, length =
|
|
17270
|
+
function result(object, path12, defaultValue) {
|
|
17271
|
+
path12 = castPath(path12, object);
|
|
17272
|
+
var index = -1, length = path12.length;
|
|
17273
17273
|
if (!length) {
|
|
17274
17274
|
length = 1;
|
|
17275
17275
|
object = undefined2;
|
|
17276
17276
|
}
|
|
17277
17277
|
while (++index < length) {
|
|
17278
|
-
var value = object == null ? undefined2 : object[toKey(
|
|
17278
|
+
var value = object == null ? undefined2 : object[toKey(path12[index])];
|
|
17279
17279
|
if (value === undefined2) {
|
|
17280
17280
|
index = length;
|
|
17281
17281
|
value = defaultValue;
|
|
@@ -17284,12 +17284,12 @@ var require_lodash = __commonJS({
|
|
|
17284
17284
|
}
|
|
17285
17285
|
return object;
|
|
17286
17286
|
}
|
|
17287
|
-
function set(object,
|
|
17288
|
-
return object == null ? object : baseSet(object,
|
|
17287
|
+
function set(object, path12, value) {
|
|
17288
|
+
return object == null ? object : baseSet(object, path12, value);
|
|
17289
17289
|
}
|
|
17290
|
-
function setWith(object,
|
|
17290
|
+
function setWith(object, path12, value, customizer) {
|
|
17291
17291
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
17292
|
-
return object == null ? object : baseSet(object,
|
|
17292
|
+
return object == null ? object : baseSet(object, path12, value, customizer);
|
|
17293
17293
|
}
|
|
17294
17294
|
var toPairs = createToPairs(keys);
|
|
17295
17295
|
var toPairsIn = createToPairs(keysIn);
|
|
@@ -17311,15 +17311,15 @@ var require_lodash = __commonJS({
|
|
|
17311
17311
|
});
|
|
17312
17312
|
return accumulator;
|
|
17313
17313
|
}
|
|
17314
|
-
function unset(object,
|
|
17315
|
-
return object == null ? true : baseUnset(object,
|
|
17314
|
+
function unset(object, path12) {
|
|
17315
|
+
return object == null ? true : baseUnset(object, path12);
|
|
17316
17316
|
}
|
|
17317
|
-
function update(object,
|
|
17318
|
-
return object == null ? object : baseUpdate(object,
|
|
17317
|
+
function update(object, path12, updater) {
|
|
17318
|
+
return object == null ? object : baseUpdate(object, path12, castFunction(updater));
|
|
17319
17319
|
}
|
|
17320
|
-
function updateWith(object,
|
|
17320
|
+
function updateWith(object, path12, updater, customizer) {
|
|
17321
17321
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
17322
|
-
return object == null ? object : baseUpdate(object,
|
|
17322
|
+
return object == null ? object : baseUpdate(object, path12, castFunction(updater), customizer);
|
|
17323
17323
|
}
|
|
17324
17324
|
function values(object) {
|
|
17325
17325
|
return object == null ? [] : baseValues(object, keys(object));
|
|
@@ -17700,17 +17700,17 @@ var require_lodash = __commonJS({
|
|
|
17700
17700
|
function matches(source) {
|
|
17701
17701
|
return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
|
|
17702
17702
|
}
|
|
17703
|
-
function matchesProperty(
|
|
17704
|
-
return baseMatchesProperty(
|
|
17703
|
+
function matchesProperty(path12, srcValue) {
|
|
17704
|
+
return baseMatchesProperty(path12, baseClone(srcValue, CLONE_DEEP_FLAG));
|
|
17705
17705
|
}
|
|
17706
|
-
var method = baseRest(function(
|
|
17706
|
+
var method = baseRest(function(path12, args) {
|
|
17707
17707
|
return function(object) {
|
|
17708
|
-
return baseInvoke(object,
|
|
17708
|
+
return baseInvoke(object, path12, args);
|
|
17709
17709
|
};
|
|
17710
17710
|
});
|
|
17711
17711
|
var methodOf = baseRest(function(object, args) {
|
|
17712
|
-
return function(
|
|
17713
|
-
return baseInvoke(object,
|
|
17712
|
+
return function(path12) {
|
|
17713
|
+
return baseInvoke(object, path12, args);
|
|
17714
17714
|
};
|
|
17715
17715
|
});
|
|
17716
17716
|
function mixin(object, source, options) {
|
|
@@ -17757,12 +17757,12 @@ var require_lodash = __commonJS({
|
|
|
17757
17757
|
var over = createOver(arrayMap);
|
|
17758
17758
|
var overEvery = createOver(arrayEvery);
|
|
17759
17759
|
var overSome = createOver(arraySome);
|
|
17760
|
-
function property(
|
|
17761
|
-
return isKey(
|
|
17760
|
+
function property(path12) {
|
|
17761
|
+
return isKey(path12) ? baseProperty(toKey(path12)) : basePropertyDeep(path12);
|
|
17762
17762
|
}
|
|
17763
17763
|
function propertyOf(object) {
|
|
17764
|
-
return function(
|
|
17765
|
-
return object == null ? undefined2 : baseGet(object,
|
|
17764
|
+
return function(path12) {
|
|
17765
|
+
return object == null ? undefined2 : baseGet(object, path12);
|
|
17766
17766
|
};
|
|
17767
17767
|
}
|
|
17768
17768
|
var range = createRange();
|
|
@@ -18215,12 +18215,12 @@ var require_lodash = __commonJS({
|
|
|
18215
18215
|
LazyWrapper.prototype.findLast = function(predicate) {
|
|
18216
18216
|
return this.reverse().find(predicate);
|
|
18217
18217
|
};
|
|
18218
|
-
LazyWrapper.prototype.invokeMap = baseRest(function(
|
|
18219
|
-
if (typeof
|
|
18218
|
+
LazyWrapper.prototype.invokeMap = baseRest(function(path12, args) {
|
|
18219
|
+
if (typeof path12 == "function") {
|
|
18220
18220
|
return new LazyWrapper(this);
|
|
18221
18221
|
}
|
|
18222
18222
|
return this.map(function(value) {
|
|
18223
|
-
return baseInvoke(value,
|
|
18223
|
+
return baseInvoke(value, path12, args);
|
|
18224
18224
|
});
|
|
18225
18225
|
});
|
|
18226
18226
|
LazyWrapper.prototype.reject = function(predicate) {
|
|
@@ -19598,7 +19598,7 @@ var require_minimatch = __commonJS({
|
|
|
19598
19598
|
"use strict";
|
|
19599
19599
|
module2.exports = minimatch;
|
|
19600
19600
|
minimatch.Minimatch = Minimatch;
|
|
19601
|
-
var
|
|
19601
|
+
var path12 = function() {
|
|
19602
19602
|
try {
|
|
19603
19603
|
return require("path");
|
|
19604
19604
|
} catch (e) {
|
|
@@ -19606,7 +19606,7 @@ var require_minimatch = __commonJS({
|
|
|
19606
19606
|
}() || {
|
|
19607
19607
|
sep: "/"
|
|
19608
19608
|
};
|
|
19609
|
-
minimatch.sep =
|
|
19609
|
+
minimatch.sep = path12.sep;
|
|
19610
19610
|
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
19611
19611
|
var expand = require_brace_expansion();
|
|
19612
19612
|
var plTypes = {
|
|
@@ -19697,8 +19697,8 @@ var require_minimatch = __commonJS({
|
|
|
19697
19697
|
if (!options)
|
|
19698
19698
|
options = {};
|
|
19699
19699
|
pattern = pattern.trim();
|
|
19700
|
-
if (!options.allowWindowsEscape &&
|
|
19701
|
-
pattern = pattern.split(
|
|
19700
|
+
if (!options.allowWindowsEscape && path12.sep !== "/") {
|
|
19701
|
+
pattern = pattern.split(path12.sep).join("/");
|
|
19702
19702
|
}
|
|
19703
19703
|
this.options = options;
|
|
19704
19704
|
this.set = [];
|
|
@@ -20075,8 +20075,8 @@ var require_minimatch = __commonJS({
|
|
|
20075
20075
|
if (f === "/" && partial)
|
|
20076
20076
|
return true;
|
|
20077
20077
|
var options = this.options;
|
|
20078
|
-
if (
|
|
20079
|
-
f = f.split(
|
|
20078
|
+
if (path12.sep !== "/") {
|
|
20079
|
+
f = f.split(path12.sep).join("/");
|
|
20080
20080
|
}
|
|
20081
20081
|
f = f.split(slashSplit);
|
|
20082
20082
|
this.debug(this.pattern, "split", f);
|
|
@@ -20187,12 +20187,12 @@ var require_minimatch = __commonJS({
|
|
|
20187
20187
|
var require_path_is_absolute = __commonJS({
|
|
20188
20188
|
"../../../node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(exports, module2) {
|
|
20189
20189
|
"use strict";
|
|
20190
|
-
function posix(
|
|
20191
|
-
return
|
|
20190
|
+
function posix(path12) {
|
|
20191
|
+
return path12.charAt(0) === "/";
|
|
20192
20192
|
}
|
|
20193
|
-
function win32(
|
|
20193
|
+
function win32(path12) {
|
|
20194
20194
|
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
|
20195
|
-
var result = splitDeviceRe.exec(
|
|
20195
|
+
var result = splitDeviceRe.exec(path12);
|
|
20196
20196
|
var device = result[1] || "";
|
|
20197
20197
|
var isUnc = Boolean(device && device.charAt(1) !== ":");
|
|
20198
20198
|
return Boolean(result[2] || isUnc);
|
|
@@ -20218,7 +20218,7 @@ var require_common2 = __commonJS({
|
|
|
20218
20218
|
return Object.prototype.hasOwnProperty.call(obj, field);
|
|
20219
20219
|
}
|
|
20220
20220
|
var fs2 = require("fs");
|
|
20221
|
-
var
|
|
20221
|
+
var path12 = require("path");
|
|
20222
20222
|
var minimatch = require_minimatch();
|
|
20223
20223
|
var isAbsolute = require_path_is_absolute();
|
|
20224
20224
|
var Minimatch = minimatch.Minimatch;
|
|
@@ -20283,11 +20283,11 @@ var require_common2 = __commonJS({
|
|
|
20283
20283
|
if (!ownProp(options, "cwd"))
|
|
20284
20284
|
self2.cwd = cwd;
|
|
20285
20285
|
else {
|
|
20286
|
-
self2.cwd =
|
|
20286
|
+
self2.cwd = path12.resolve(options.cwd);
|
|
20287
20287
|
self2.changedCwd = self2.cwd !== cwd;
|
|
20288
20288
|
}
|
|
20289
|
-
self2.root = options.root ||
|
|
20290
|
-
self2.root =
|
|
20289
|
+
self2.root = options.root || path12.resolve(self2.cwd, "/");
|
|
20290
|
+
self2.root = path12.resolve(self2.root);
|
|
20291
20291
|
if (process.platform === "win32")
|
|
20292
20292
|
self2.root = self2.root.replace(/\\/g, "/");
|
|
20293
20293
|
self2.cwdAbs = isAbsolute(self2.cwd) ? self2.cwd : makeAbs(self2, self2.cwd);
|
|
@@ -20368,30 +20368,30 @@ var require_common2 = __commonJS({
|
|
|
20368
20368
|
function makeAbs(self2, f) {
|
|
20369
20369
|
var abs = f;
|
|
20370
20370
|
if (f.charAt(0) === "/") {
|
|
20371
|
-
abs =
|
|
20371
|
+
abs = path12.join(self2.root, f);
|
|
20372
20372
|
} else if (isAbsolute(f) || f === "") {
|
|
20373
20373
|
abs = f;
|
|
20374
20374
|
} else if (self2.changedCwd) {
|
|
20375
|
-
abs =
|
|
20375
|
+
abs = path12.resolve(self2.cwd, f);
|
|
20376
20376
|
} else {
|
|
20377
|
-
abs =
|
|
20377
|
+
abs = path12.resolve(f);
|
|
20378
20378
|
}
|
|
20379
20379
|
if (process.platform === "win32")
|
|
20380
20380
|
abs = abs.replace(/\\/g, "/");
|
|
20381
20381
|
return abs;
|
|
20382
20382
|
}
|
|
20383
|
-
function isIgnored(self2,
|
|
20383
|
+
function isIgnored(self2, path13) {
|
|
20384
20384
|
if (!self2.ignore.length)
|
|
20385
20385
|
return false;
|
|
20386
20386
|
return self2.ignore.some(function(item) {
|
|
20387
|
-
return item.matcher.match(
|
|
20387
|
+
return item.matcher.match(path13) || !!(item.gmatcher && item.gmatcher.match(path13));
|
|
20388
20388
|
});
|
|
20389
20389
|
}
|
|
20390
|
-
function childrenIgnored(self2,
|
|
20390
|
+
function childrenIgnored(self2, path13) {
|
|
20391
20391
|
if (!self2.ignore.length)
|
|
20392
20392
|
return false;
|
|
20393
20393
|
return self2.ignore.some(function(item) {
|
|
20394
|
-
return !!(item.gmatcher && item.gmatcher.match(
|
|
20394
|
+
return !!(item.gmatcher && item.gmatcher.match(path13));
|
|
20395
20395
|
});
|
|
20396
20396
|
}
|
|
20397
20397
|
}
|
|
@@ -20408,7 +20408,7 @@ var require_sync = __commonJS({
|
|
|
20408
20408
|
var Minimatch = minimatch.Minimatch;
|
|
20409
20409
|
var Glob = require_glob().Glob;
|
|
20410
20410
|
var util3 = require("util");
|
|
20411
|
-
var
|
|
20411
|
+
var path12 = require("path");
|
|
20412
20412
|
var assert = require("assert");
|
|
20413
20413
|
var isAbsolute = require_path_is_absolute();
|
|
20414
20414
|
var common = require_common2();
|
|
@@ -20534,7 +20534,7 @@ var require_sync = __commonJS({
|
|
|
20534
20534
|
e = prefix + e;
|
|
20535
20535
|
}
|
|
20536
20536
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
20537
|
-
e =
|
|
20537
|
+
e = path12.join(this.root, e);
|
|
20538
20538
|
}
|
|
20539
20539
|
this._emitMatch(index, e);
|
|
20540
20540
|
}
|
|
@@ -20683,9 +20683,9 @@ var require_sync = __commonJS({
|
|
|
20683
20683
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
20684
20684
|
var trail = /[\/\\]$/.test(prefix);
|
|
20685
20685
|
if (prefix.charAt(0) === "/") {
|
|
20686
|
-
prefix =
|
|
20686
|
+
prefix = path12.join(this.root, prefix);
|
|
20687
20687
|
} else {
|
|
20688
|
-
prefix =
|
|
20688
|
+
prefix = path12.resolve(this.root, prefix);
|
|
20689
20689
|
if (trail)
|
|
20690
20690
|
prefix += "/";
|
|
20691
20691
|
}
|
|
@@ -20884,7 +20884,7 @@ var require_glob = __commonJS({
|
|
|
20884
20884
|
var Minimatch = minimatch.Minimatch;
|
|
20885
20885
|
var inherits2 = require_inherits();
|
|
20886
20886
|
var EE = require("events").EventEmitter;
|
|
20887
|
-
var
|
|
20887
|
+
var path12 = require("path");
|
|
20888
20888
|
var assert = require("assert");
|
|
20889
20889
|
var isAbsolute = require_path_is_absolute();
|
|
20890
20890
|
var globSync = require_sync();
|
|
@@ -21165,7 +21165,7 @@ var require_glob = __commonJS({
|
|
|
21165
21165
|
e = prefix + e;
|
|
21166
21166
|
}
|
|
21167
21167
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
21168
|
-
e =
|
|
21168
|
+
e = path12.join(this.root, e);
|
|
21169
21169
|
}
|
|
21170
21170
|
this._emitMatch(index, e);
|
|
21171
21171
|
}
|
|
@@ -21352,9 +21352,9 @@ var require_glob = __commonJS({
|
|
|
21352
21352
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
21353
21353
|
var trail = /[\/\\]$/.test(prefix);
|
|
21354
21354
|
if (prefix.charAt(0) === "/") {
|
|
21355
|
-
prefix =
|
|
21355
|
+
prefix = path12.join(this.root, prefix);
|
|
21356
21356
|
} else {
|
|
21357
|
-
prefix =
|
|
21357
|
+
prefix = path12.resolve(this.root, prefix);
|
|
21358
21358
|
if (trail)
|
|
21359
21359
|
prefix += "/";
|
|
21360
21360
|
}
|
|
@@ -21435,7 +21435,7 @@ var require_windows = __commonJS({
|
|
|
21435
21435
|
module2.exports = isexe;
|
|
21436
21436
|
isexe.sync = sync;
|
|
21437
21437
|
var fs2 = require("fs");
|
|
21438
|
-
function checkPathExt(
|
|
21438
|
+
function checkPathExt(path12, options) {
|
|
21439
21439
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
21440
21440
|
if (!pathext) {
|
|
21441
21441
|
return true;
|
|
@@ -21446,25 +21446,25 @@ var require_windows = __commonJS({
|
|
|
21446
21446
|
}
|
|
21447
21447
|
for (var i = 0; i < pathext.length; i++) {
|
|
21448
21448
|
var p = pathext[i].toLowerCase();
|
|
21449
|
-
if (p &&
|
|
21449
|
+
if (p && path12.substr(-p.length).toLowerCase() === p) {
|
|
21450
21450
|
return true;
|
|
21451
21451
|
}
|
|
21452
21452
|
}
|
|
21453
21453
|
return false;
|
|
21454
21454
|
}
|
|
21455
|
-
function checkStat(stat,
|
|
21455
|
+
function checkStat(stat, path12, options) {
|
|
21456
21456
|
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
|
21457
21457
|
return false;
|
|
21458
21458
|
}
|
|
21459
|
-
return checkPathExt(
|
|
21459
|
+
return checkPathExt(path12, options);
|
|
21460
21460
|
}
|
|
21461
|
-
function isexe(
|
|
21462
|
-
fs2.stat(
|
|
21463
|
-
cb(er, er ? false : checkStat(stat,
|
|
21461
|
+
function isexe(path12, options, cb) {
|
|
21462
|
+
fs2.stat(path12, function(er, stat) {
|
|
21463
|
+
cb(er, er ? false : checkStat(stat, path12, options));
|
|
21464
21464
|
});
|
|
21465
21465
|
}
|
|
21466
|
-
function sync(
|
|
21467
|
-
return checkStat(fs2.statSync(
|
|
21466
|
+
function sync(path12, options) {
|
|
21467
|
+
return checkStat(fs2.statSync(path12), path12, options);
|
|
21468
21468
|
}
|
|
21469
21469
|
}
|
|
21470
21470
|
});
|
|
@@ -21476,13 +21476,13 @@ var require_mode = __commonJS({
|
|
|
21476
21476
|
module2.exports = isexe;
|
|
21477
21477
|
isexe.sync = sync;
|
|
21478
21478
|
var fs2 = require("fs");
|
|
21479
|
-
function isexe(
|
|
21480
|
-
fs2.stat(
|
|
21479
|
+
function isexe(path12, options, cb) {
|
|
21480
|
+
fs2.stat(path12, function(er, stat) {
|
|
21481
21481
|
cb(er, er ? false : checkStat(stat, options));
|
|
21482
21482
|
});
|
|
21483
21483
|
}
|
|
21484
|
-
function sync(
|
|
21485
|
-
return checkStat(fs2.statSync(
|
|
21484
|
+
function sync(path12, options) {
|
|
21485
|
+
return checkStat(fs2.statSync(path12), options);
|
|
21486
21486
|
}
|
|
21487
21487
|
function checkStat(stat, options) {
|
|
21488
21488
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -21516,7 +21516,7 @@ var require_isexe = __commonJS({
|
|
|
21516
21516
|
}
|
|
21517
21517
|
module2.exports = isexe;
|
|
21518
21518
|
isexe.sync = sync;
|
|
21519
|
-
function isexe(
|
|
21519
|
+
function isexe(path12, options, cb) {
|
|
21520
21520
|
if (typeof options === "function") {
|
|
21521
21521
|
cb = options;
|
|
21522
21522
|
options = {};
|
|
@@ -21526,7 +21526,7 @@ var require_isexe = __commonJS({
|
|
|
21526
21526
|
throw new TypeError("callback not provided");
|
|
21527
21527
|
}
|
|
21528
21528
|
return new Promise(function(resolve, reject) {
|
|
21529
|
-
isexe(
|
|
21529
|
+
isexe(path12, options || {}, function(er, is) {
|
|
21530
21530
|
if (er) {
|
|
21531
21531
|
reject(er);
|
|
21532
21532
|
} else {
|
|
@@ -21535,7 +21535,7 @@ var require_isexe = __commonJS({
|
|
|
21535
21535
|
});
|
|
21536
21536
|
});
|
|
21537
21537
|
}
|
|
21538
|
-
core(
|
|
21538
|
+
core(path12, options || {}, function(er, is) {
|
|
21539
21539
|
if (er) {
|
|
21540
21540
|
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
21541
21541
|
er = null;
|
|
@@ -21545,9 +21545,9 @@ var require_isexe = __commonJS({
|
|
|
21545
21545
|
cb(er, is);
|
|
21546
21546
|
});
|
|
21547
21547
|
}
|
|
21548
|
-
function sync(
|
|
21548
|
+
function sync(path12, options) {
|
|
21549
21549
|
try {
|
|
21550
|
-
return core.sync(
|
|
21550
|
+
return core.sync(path12, options || {});
|
|
21551
21551
|
} catch (er) {
|
|
21552
21552
|
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
21553
21553
|
return false;
|
|
@@ -21564,7 +21564,7 @@ var require_which = __commonJS({
|
|
|
21564
21564
|
"../../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module2) {
|
|
21565
21565
|
"use strict";
|
|
21566
21566
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
21567
|
-
var
|
|
21567
|
+
var path12 = require("path");
|
|
21568
21568
|
var COLON = isWindows ? ";" : ":";
|
|
21569
21569
|
var isexe = require_isexe();
|
|
21570
21570
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -21602,7 +21602,7 @@ var require_which = __commonJS({
|
|
|
21602
21602
|
return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
21603
21603
|
const ppRaw = pathEnv[i];
|
|
21604
21604
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
21605
|
-
const pCmd =
|
|
21605
|
+
const pCmd = path12.join(pathPart, cmd);
|
|
21606
21606
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
21607
21607
|
resolve(subStep(p, i, 0));
|
|
21608
21608
|
});
|
|
@@ -21629,7 +21629,7 @@ var require_which = __commonJS({
|
|
|
21629
21629
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
21630
21630
|
const ppRaw = pathEnv[i];
|
|
21631
21631
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
21632
|
-
const pCmd =
|
|
21632
|
+
const pCmd = path12.join(pathPart, cmd);
|
|
21633
21633
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
21634
21634
|
for (let j = 0; j < pathExt.length; j++) {
|
|
21635
21635
|
const cur = p + pathExt[j];
|
|
@@ -21677,7 +21677,7 @@ var require_path_key = __commonJS({
|
|
|
21677
21677
|
var require_resolveCommand = __commonJS({
|
|
21678
21678
|
"../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
|
|
21679
21679
|
"use strict";
|
|
21680
|
-
var
|
|
21680
|
+
var path12 = require("path");
|
|
21681
21681
|
var which = require_which();
|
|
21682
21682
|
var getPathKey = require_path_key();
|
|
21683
21683
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -21695,7 +21695,7 @@ var require_resolveCommand = __commonJS({
|
|
|
21695
21695
|
try {
|
|
21696
21696
|
resolved = which.sync(parsed.command, {
|
|
21697
21697
|
path: env[getPathKey({ env })],
|
|
21698
|
-
pathExt: withoutPathExt ?
|
|
21698
|
+
pathExt: withoutPathExt ? path12.delimiter : void 0
|
|
21699
21699
|
});
|
|
21700
21700
|
} catch (e) {
|
|
21701
21701
|
} finally {
|
|
@@ -21704,7 +21704,7 @@ var require_resolveCommand = __commonJS({
|
|
|
21704
21704
|
}
|
|
21705
21705
|
}
|
|
21706
21706
|
if (resolved) {
|
|
21707
|
-
resolved =
|
|
21707
|
+
resolved = path12.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
21708
21708
|
}
|
|
21709
21709
|
return resolved;
|
|
21710
21710
|
}
|
|
@@ -21758,8 +21758,8 @@ var require_shebang_command = __commonJS({
|
|
|
21758
21758
|
if (!match) {
|
|
21759
21759
|
return null;
|
|
21760
21760
|
}
|
|
21761
|
-
const [
|
|
21762
|
-
const binary =
|
|
21761
|
+
const [path12, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
21762
|
+
const binary = path12.split("/").pop();
|
|
21763
21763
|
if (binary === "env") {
|
|
21764
21764
|
return argument;
|
|
21765
21765
|
}
|
|
@@ -21794,7 +21794,7 @@ var require_readShebang = __commonJS({
|
|
|
21794
21794
|
var require_parse = __commonJS({
|
|
21795
21795
|
"../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
|
|
21796
21796
|
"use strict";
|
|
21797
|
-
var
|
|
21797
|
+
var path12 = require("path");
|
|
21798
21798
|
var resolveCommand = require_resolveCommand();
|
|
21799
21799
|
var escape = require_escape();
|
|
21800
21800
|
var readShebang = require_readShebang();
|
|
@@ -21819,7 +21819,7 @@ var require_parse = __commonJS({
|
|
|
21819
21819
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
21820
21820
|
if (parsed.options.forceShell || needsShell) {
|
|
21821
21821
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
21822
|
-
parsed.command =
|
|
21822
|
+
parsed.command = path12.normalize(parsed.command);
|
|
21823
21823
|
parsed.command = escape.command(parsed.command);
|
|
21824
21824
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
21825
21825
|
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
@@ -21951,7 +21951,7 @@ var require_strip_final_newline = __commonJS({
|
|
|
21951
21951
|
var require_npm_run_path = __commonJS({
|
|
21952
21952
|
"../../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js"(exports, module2) {
|
|
21953
21953
|
"use strict";
|
|
21954
|
-
var
|
|
21954
|
+
var path12 = require("path");
|
|
21955
21955
|
var pathKey = require_path_key();
|
|
21956
21956
|
var npmRunPath = (options) => {
|
|
21957
21957
|
options = __spreadValues({
|
|
@@ -21960,16 +21960,16 @@ var require_npm_run_path = __commonJS({
|
|
|
21960
21960
|
execPath: process.execPath
|
|
21961
21961
|
}, options);
|
|
21962
21962
|
let previous;
|
|
21963
|
-
let cwdPath =
|
|
21963
|
+
let cwdPath = path12.resolve(options.cwd);
|
|
21964
21964
|
const result = [];
|
|
21965
21965
|
while (previous !== cwdPath) {
|
|
21966
|
-
result.push(
|
|
21966
|
+
result.push(path12.join(cwdPath, "node_modules/.bin"));
|
|
21967
21967
|
previous = cwdPath;
|
|
21968
|
-
cwdPath =
|
|
21968
|
+
cwdPath = path12.resolve(cwdPath, "..");
|
|
21969
21969
|
}
|
|
21970
|
-
const execPathDir =
|
|
21970
|
+
const execPathDir = path12.resolve(options.cwd, options.execPath, "..");
|
|
21971
21971
|
result.push(execPathDir);
|
|
21972
|
-
return result.concat(options.path).join(
|
|
21972
|
+
return result.concat(options.path).join(path12.delimiter);
|
|
21973
21973
|
};
|
|
21974
21974
|
module2.exports = npmRunPath;
|
|
21975
21975
|
module2.exports.default = npmRunPath;
|
|
@@ -21978,9 +21978,9 @@ var require_npm_run_path = __commonJS({
|
|
|
21978
21978
|
env: process.env
|
|
21979
21979
|
}, options);
|
|
21980
21980
|
const env = __spreadValues({}, options.env);
|
|
21981
|
-
const
|
|
21982
|
-
options.path = env[
|
|
21983
|
-
env[
|
|
21981
|
+
const path13 = pathKey({ env });
|
|
21982
|
+
options.path = env[path13];
|
|
21983
|
+
env[path13] = module2.exports(options);
|
|
21984
21984
|
return env;
|
|
21985
21985
|
};
|
|
21986
21986
|
}
|
|
@@ -22913,7 +22913,7 @@ var require_command2 = __commonJS({
|
|
|
22913
22913
|
var require_execa = __commonJS({
|
|
22914
22914
|
"../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports, module2) {
|
|
22915
22915
|
"use strict";
|
|
22916
|
-
var
|
|
22916
|
+
var path12 = require("path");
|
|
22917
22917
|
var childProcess = require("child_process");
|
|
22918
22918
|
var crossSpawn = require_cross_spawn();
|
|
22919
22919
|
var stripFinalNewline = require_strip_final_newline();
|
|
@@ -22954,7 +22954,7 @@ var require_execa = __commonJS({
|
|
|
22954
22954
|
}, options);
|
|
22955
22955
|
options.env = getEnv(options);
|
|
22956
22956
|
options.stdio = normalizeStdio(options);
|
|
22957
|
-
if (process.platform === "win32" &&
|
|
22957
|
+
if (process.platform === "win32" && path12.basename(file, ".exe") === "cmd") {
|
|
22958
22958
|
args.unshift("/q");
|
|
22959
22959
|
}
|
|
22960
22960
|
return { file, args, options, parsed };
|
|
@@ -34473,11 +34473,11 @@ var require_mime_types = __commonJS({
|
|
|
34473
34473
|
}
|
|
34474
34474
|
return exts[0];
|
|
34475
34475
|
}
|
|
34476
|
-
function lookup(
|
|
34477
|
-
if (!
|
|
34476
|
+
function lookup(path12) {
|
|
34477
|
+
if (!path12 || typeof path12 !== "string") {
|
|
34478
34478
|
return false;
|
|
34479
34479
|
}
|
|
34480
|
-
var extension2 = extname("x." +
|
|
34480
|
+
var extension2 = extname("x." + path12).toLowerCase().substr(1);
|
|
34481
34481
|
if (!extension2) {
|
|
34482
34482
|
return false;
|
|
34483
34483
|
}
|
|
@@ -35592,7 +35592,7 @@ var require_form_data = __commonJS({
|
|
|
35592
35592
|
"use strict";
|
|
35593
35593
|
var CombinedStream = require_combined_stream();
|
|
35594
35594
|
var util3 = require("util");
|
|
35595
|
-
var
|
|
35595
|
+
var path12 = require("path");
|
|
35596
35596
|
var http2 = require("http");
|
|
35597
35597
|
var https2 = require("https");
|
|
35598
35598
|
var parseUrl = require("url").parse;
|
|
@@ -35720,11 +35720,11 @@ var require_form_data = __commonJS({
|
|
|
35720
35720
|
FormData3.prototype._getContentDisposition = function(value, options) {
|
|
35721
35721
|
var filename, contentDisposition;
|
|
35722
35722
|
if (typeof options.filepath === "string") {
|
|
35723
|
-
filename =
|
|
35723
|
+
filename = path12.normalize(options.filepath).replace(/\\/g, "/");
|
|
35724
35724
|
} else if (options.filename || value.name || value.path) {
|
|
35725
|
-
filename =
|
|
35725
|
+
filename = path12.basename(options.filename || value.name || value.path);
|
|
35726
35726
|
} else if (value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
|
|
35727
|
-
filename =
|
|
35727
|
+
filename = path12.basename(value.client._httpMessage.path || "");
|
|
35728
35728
|
}
|
|
35729
35729
|
if (filename) {
|
|
35730
35730
|
contentDisposition = 'filename="' + filename + '"';
|
|
@@ -38388,10 +38388,10 @@ var require_header = __commonJS({
|
|
|
38388
38388
|
}
|
|
38389
38389
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
38390
38390
|
const split = splitPrefix(this.path || "", prefixSize);
|
|
38391
|
-
const
|
|
38391
|
+
const path12 = split[0];
|
|
38392
38392
|
const prefix = split[1];
|
|
38393
38393
|
this.needPax = split[2];
|
|
38394
|
-
this.needPax = encString(buf, off, 100,
|
|
38394
|
+
this.needPax = encString(buf, off, 100, path12) || this.needPax;
|
|
38395
38395
|
this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
|
|
38396
38396
|
this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
|
|
38397
38397
|
this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
|
|
@@ -38501,7 +38501,7 @@ var require_pax = __commonJS({
|
|
|
38501
38501
|
"../../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/pax.js"(exports, module2) {
|
|
38502
38502
|
"use strict";
|
|
38503
38503
|
var Header = require_header();
|
|
38504
|
-
var
|
|
38504
|
+
var path12 = require("path");
|
|
38505
38505
|
var Pax = class {
|
|
38506
38506
|
constructor(obj, global2) {
|
|
38507
38507
|
this.atime = obj.atime || null;
|
|
@@ -38536,7 +38536,7 @@ var require_pax = __commonJS({
|
|
|
38536
38536
|
// XXX split the path
|
|
38537
38537
|
// then the path should be PaxHeader + basename, but less than 99,
|
|
38538
38538
|
// prepend with the dirname
|
|
38539
|
-
path: ("PaxHeader/" +
|
|
38539
|
+
path: ("PaxHeader/" + path12.basename(this.path)).slice(0, 99),
|
|
38540
38540
|
mode: this.mode || 420,
|
|
38541
38541
|
uid: this.uid || null,
|
|
38542
38542
|
gid: this.gid || null,
|
|
@@ -38669,16 +38669,16 @@ var require_strip_absolute_path = __commonJS({
|
|
|
38669
38669
|
"../../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-absolute-path.js"(exports, module2) {
|
|
38670
38670
|
"use strict";
|
|
38671
38671
|
var { isAbsolute, parse } = require("path").win32;
|
|
38672
|
-
module2.exports = (
|
|
38672
|
+
module2.exports = (path12) => {
|
|
38673
38673
|
let r = "";
|
|
38674
|
-
let parsed = parse(
|
|
38675
|
-
while (isAbsolute(
|
|
38676
|
-
const root =
|
|
38677
|
-
|
|
38674
|
+
let parsed = parse(path12);
|
|
38675
|
+
while (isAbsolute(path12) || parsed.root) {
|
|
38676
|
+
const root = path12.charAt(0) === "/" && path12.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
38677
|
+
path12 = path12.slice(root.length);
|
|
38678
38678
|
r += root;
|
|
38679
|
-
parsed = parse(
|
|
38679
|
+
parsed = parse(path12);
|
|
38680
38680
|
}
|
|
38681
|
-
return [r,
|
|
38681
|
+
return [r, path12];
|
|
38682
38682
|
};
|
|
38683
38683
|
}
|
|
38684
38684
|
});
|
|
@@ -38716,15 +38716,15 @@ var require_write_entry = __commonJS({
|
|
|
38716
38716
|
var Pax = require_pax();
|
|
38717
38717
|
var Header = require_header();
|
|
38718
38718
|
var fs2 = require("fs");
|
|
38719
|
-
var
|
|
38719
|
+
var path12 = require("path");
|
|
38720
38720
|
var normPath = require_normalize_windows_path();
|
|
38721
38721
|
var stripSlash = require_strip_trailing_slashes();
|
|
38722
|
-
var prefixPath = (
|
|
38722
|
+
var prefixPath = (path13, prefix) => {
|
|
38723
38723
|
if (!prefix) {
|
|
38724
|
-
return normPath(
|
|
38724
|
+
return normPath(path13);
|
|
38725
38725
|
}
|
|
38726
|
-
|
|
38727
|
-
return stripSlash(prefix) + "/" +
|
|
38726
|
+
path13 = normPath(path13).replace(/^\.(\/|$)/, "");
|
|
38727
|
+
return stripSlash(prefix) + "/" + path13;
|
|
38728
38728
|
};
|
|
38729
38729
|
var maxReadSize = 16 * 1024 * 1024;
|
|
38730
38730
|
var PROCESS = Symbol("process");
|
|
@@ -38795,7 +38795,7 @@ var require_write_entry = __commonJS({
|
|
|
38795
38795
|
this.path = winchars.decode(this.path.replace(/\\/g, "/"));
|
|
38796
38796
|
p = p.replace(/\\/g, "/");
|
|
38797
38797
|
}
|
|
38798
|
-
this.absolute = normPath(opt.absolute ||
|
|
38798
|
+
this.absolute = normPath(opt.absolute || path12.resolve(this.cwd, p));
|
|
38799
38799
|
if (this.path === "") {
|
|
38800
38800
|
this.path = "./";
|
|
38801
38801
|
}
|
|
@@ -38850,8 +38850,8 @@ var require_write_entry = __commonJS({
|
|
|
38850
38850
|
[MODE](mode) {
|
|
38851
38851
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
38852
38852
|
}
|
|
38853
|
-
[PREFIX](
|
|
38854
|
-
return prefixPath(
|
|
38853
|
+
[PREFIX](path13) {
|
|
38854
|
+
return prefixPath(path13, this.prefix);
|
|
38855
38855
|
}
|
|
38856
38856
|
[HEADER]() {
|
|
38857
38857
|
if (this.type === "Directory" && this.portable) {
|
|
@@ -38914,7 +38914,7 @@ var require_write_entry = __commonJS({
|
|
|
38914
38914
|
}
|
|
38915
38915
|
[HARDLINK](linkpath) {
|
|
38916
38916
|
this.type = "Link";
|
|
38917
|
-
this.linkpath = normPath(
|
|
38917
|
+
this.linkpath = normPath(path12.relative(this.cwd, linkpath));
|
|
38918
38918
|
this.stat.size = 0;
|
|
38919
38919
|
this[HEADER]();
|
|
38920
38920
|
this.end();
|
|
@@ -39145,8 +39145,8 @@ var require_write_entry = __commonJS({
|
|
|
39145
39145
|
super.write(this.header.block);
|
|
39146
39146
|
readEntry.pipe(this);
|
|
39147
39147
|
}
|
|
39148
|
-
[PREFIX](
|
|
39149
|
-
return prefixPath(
|
|
39148
|
+
[PREFIX](path13) {
|
|
39149
|
+
return prefixPath(path13, this.prefix);
|
|
39150
39150
|
}
|
|
39151
39151
|
[MODE](mode) {
|
|
39152
39152
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
@@ -39178,8 +39178,8 @@ var require_pack = __commonJS({
|
|
|
39178
39178
|
"../../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/pack.js"(exports, module2) {
|
|
39179
39179
|
"use strict";
|
|
39180
39180
|
var PackJob = class {
|
|
39181
|
-
constructor(
|
|
39182
|
-
this.path =
|
|
39181
|
+
constructor(path13, absolute) {
|
|
39182
|
+
this.path = path13 || "./";
|
|
39183
39183
|
this.absolute = absolute;
|
|
39184
39184
|
this.entry = null;
|
|
39185
39185
|
this.stat = null;
|
|
@@ -39218,7 +39218,7 @@ var require_pack = __commonJS({
|
|
|
39218
39218
|
var WRITE = Symbol("write");
|
|
39219
39219
|
var ONDRAIN = Symbol("ondrain");
|
|
39220
39220
|
var fs2 = require("fs");
|
|
39221
|
-
var
|
|
39221
|
+
var path12 = require("path");
|
|
39222
39222
|
var warner = require_warn_mixin();
|
|
39223
39223
|
var normPath = require_normalize_windows_path();
|
|
39224
39224
|
var Pack = warner(class Pack extends Minipass {
|
|
@@ -39282,31 +39282,31 @@ var require_pack = __commonJS({
|
|
|
39282
39282
|
[WRITE](chunk) {
|
|
39283
39283
|
return super.write(chunk);
|
|
39284
39284
|
}
|
|
39285
|
-
add(
|
|
39286
|
-
this.write(
|
|
39285
|
+
add(path13) {
|
|
39286
|
+
this.write(path13);
|
|
39287
39287
|
return this;
|
|
39288
39288
|
}
|
|
39289
|
-
end(
|
|
39290
|
-
if (
|
|
39291
|
-
this.write(
|
|
39289
|
+
end(path13) {
|
|
39290
|
+
if (path13) {
|
|
39291
|
+
this.write(path13);
|
|
39292
39292
|
}
|
|
39293
39293
|
this[ENDED] = true;
|
|
39294
39294
|
this[PROCESS]();
|
|
39295
39295
|
return this;
|
|
39296
39296
|
}
|
|
39297
|
-
write(
|
|
39297
|
+
write(path13) {
|
|
39298
39298
|
if (this[ENDED]) {
|
|
39299
39299
|
throw new Error("write after end");
|
|
39300
39300
|
}
|
|
39301
|
-
if (
|
|
39302
|
-
this[ADDTARENTRY](
|
|
39301
|
+
if (path13 instanceof ReadEntry) {
|
|
39302
|
+
this[ADDTARENTRY](path13);
|
|
39303
39303
|
} else {
|
|
39304
|
-
this[ADDFSENTRY](
|
|
39304
|
+
this[ADDFSENTRY](path13);
|
|
39305
39305
|
}
|
|
39306
39306
|
return this.flowing;
|
|
39307
39307
|
}
|
|
39308
39308
|
[ADDTARENTRY](p) {
|
|
39309
|
-
const absolute = normPath(
|
|
39309
|
+
const absolute = normPath(path12.resolve(this.cwd, p.path));
|
|
39310
39310
|
if (!this.filter(p.path, p)) {
|
|
39311
39311
|
p.resume();
|
|
39312
39312
|
} else {
|
|
@@ -39319,7 +39319,7 @@ var require_pack = __commonJS({
|
|
|
39319
39319
|
this[PROCESS]();
|
|
39320
39320
|
}
|
|
39321
39321
|
[ADDFSENTRY](p) {
|
|
39322
|
-
const absolute = normPath(
|
|
39322
|
+
const absolute = normPath(path12.resolve(this.cwd, p));
|
|
39323
39323
|
this[QUEUE].push(new PackJob(p, absolute));
|
|
39324
39324
|
this[PROCESS]();
|
|
39325
39325
|
}
|
|
@@ -39589,16 +39589,16 @@ var require_fs_minipass = __commonJS({
|
|
|
39589
39589
|
var _defaultFlag = Symbol("_defaultFlag");
|
|
39590
39590
|
var _errored = Symbol("_errored");
|
|
39591
39591
|
var ReadStream = class extends MiniPass {
|
|
39592
|
-
constructor(
|
|
39592
|
+
constructor(path12, opt) {
|
|
39593
39593
|
opt = opt || {};
|
|
39594
39594
|
super(opt);
|
|
39595
39595
|
this.readable = true;
|
|
39596
39596
|
this.writable = false;
|
|
39597
|
-
if (typeof
|
|
39597
|
+
if (typeof path12 !== "string")
|
|
39598
39598
|
throw new TypeError("path must be a string");
|
|
39599
39599
|
this[_errored] = false;
|
|
39600
39600
|
this[_fd] = typeof opt.fd === "number" ? opt.fd : null;
|
|
39601
|
-
this[_path] =
|
|
39601
|
+
this[_path] = path12;
|
|
39602
39602
|
this[_readSize] = opt.readSize || 16 * 1024 * 1024;
|
|
39603
39603
|
this[_reading] = false;
|
|
39604
39604
|
this[_size] = typeof opt.size === "number" ? opt.size : Infinity;
|
|
@@ -39735,7 +39735,7 @@ var require_fs_minipass = __commonJS({
|
|
|
39735
39735
|
}
|
|
39736
39736
|
};
|
|
39737
39737
|
var WriteStream = class extends EE {
|
|
39738
|
-
constructor(
|
|
39738
|
+
constructor(path12, opt) {
|
|
39739
39739
|
opt = opt || {};
|
|
39740
39740
|
super(opt);
|
|
39741
39741
|
this.readable = false;
|
|
@@ -39745,7 +39745,7 @@ var require_fs_minipass = __commonJS({
|
|
|
39745
39745
|
this[_ended] = false;
|
|
39746
39746
|
this[_needDrain] = false;
|
|
39747
39747
|
this[_queue] = [];
|
|
39748
|
-
this[_path] =
|
|
39748
|
+
this[_path] = path12;
|
|
39749
39749
|
this[_fd] = typeof opt.fd === "number" ? opt.fd : null;
|
|
39750
39750
|
this[_mode] = opt.mode === void 0 ? 438 : opt.mode;
|
|
39751
39751
|
this[_pos] = typeof opt.start === "number" ? opt.start : null;
|
|
@@ -40349,7 +40349,7 @@ var require_list = __commonJS({
|
|
|
40349
40349
|
var Parser = require_parse3();
|
|
40350
40350
|
var fs2 = require("fs");
|
|
40351
40351
|
var fsm = require_fs_minipass();
|
|
40352
|
-
var
|
|
40352
|
+
var path12 = require("path");
|
|
40353
40353
|
var stripSlash = require_strip_trailing_slashes();
|
|
40354
40354
|
module2.exports = (opt_, files, cb) => {
|
|
40355
40355
|
if (typeof opt_ === "function") {
|
|
@@ -40391,8 +40391,8 @@ var require_list = __commonJS({
|
|
|
40391
40391
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
40392
40392
|
const filter2 = opt.filter;
|
|
40393
40393
|
const mapHas = (file, r) => {
|
|
40394
|
-
const root = r ||
|
|
40395
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(
|
|
40394
|
+
const root = r || path12.parse(file).root || ".";
|
|
40395
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path12.dirname(file), root);
|
|
40396
40396
|
map.set(file, ret);
|
|
40397
40397
|
return ret;
|
|
40398
40398
|
};
|
|
@@ -40463,7 +40463,7 @@ var require_create = __commonJS({
|
|
|
40463
40463
|
var Pack = require_pack();
|
|
40464
40464
|
var fsm = require_fs_minipass();
|
|
40465
40465
|
var t = require_list();
|
|
40466
|
-
var
|
|
40466
|
+
var path12 = require("path");
|
|
40467
40467
|
module2.exports = (opt_, files, cb) => {
|
|
40468
40468
|
if (typeof files === "function") {
|
|
40469
40469
|
cb = files;
|
|
@@ -40510,7 +40510,7 @@ var require_create = __commonJS({
|
|
|
40510
40510
|
files.forEach((file) => {
|
|
40511
40511
|
if (file.charAt(0) === "@") {
|
|
40512
40512
|
t({
|
|
40513
|
-
file:
|
|
40513
|
+
file: path12.resolve(p.cwd, file.slice(1)),
|
|
40514
40514
|
sync: true,
|
|
40515
40515
|
noResume: true,
|
|
40516
40516
|
onentry: (entry) => p.add(entry)
|
|
@@ -40526,7 +40526,7 @@ var require_create = __commonJS({
|
|
|
40526
40526
|
const file = files.shift();
|
|
40527
40527
|
if (file.charAt(0) === "@") {
|
|
40528
40528
|
return t({
|
|
40529
|
-
file:
|
|
40529
|
+
file: path12.resolve(p.cwd, file.slice(1)),
|
|
40530
40530
|
noResume: true,
|
|
40531
40531
|
onentry: (entry) => p.add(entry)
|
|
40532
40532
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -40558,7 +40558,7 @@ var require_replace = __commonJS({
|
|
|
40558
40558
|
var fs2 = require("fs");
|
|
40559
40559
|
var fsm = require_fs_minipass();
|
|
40560
40560
|
var t = require_list();
|
|
40561
|
-
var
|
|
40561
|
+
var path12 = require("path");
|
|
40562
40562
|
var Header = require_header();
|
|
40563
40563
|
module2.exports = (opt_, files, cb) => {
|
|
40564
40564
|
const opt = hlo(opt_);
|
|
@@ -40736,7 +40736,7 @@ var require_replace = __commonJS({
|
|
|
40736
40736
|
files.forEach((file) => {
|
|
40737
40737
|
if (file.charAt(0) === "@") {
|
|
40738
40738
|
t({
|
|
40739
|
-
file:
|
|
40739
|
+
file: path12.resolve(p.cwd, file.slice(1)),
|
|
40740
40740
|
sync: true,
|
|
40741
40741
|
noResume: true,
|
|
40742
40742
|
onentry: (entry) => p.add(entry)
|
|
@@ -40752,7 +40752,7 @@ var require_replace = __commonJS({
|
|
|
40752
40752
|
const file = files.shift();
|
|
40753
40753
|
if (file.charAt(0) === "@") {
|
|
40754
40754
|
return t({
|
|
40755
|
-
file:
|
|
40755
|
+
file: path12.resolve(p.cwd, file.slice(1)),
|
|
40756
40756
|
noResume: true,
|
|
40757
40757
|
onentry: (entry) => p.add(entry)
|
|
40758
40758
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -40791,7 +40791,7 @@ var require_update = __commonJS({
|
|
|
40791
40791
|
if (!opt.mtimeCache) {
|
|
40792
40792
|
opt.mtimeCache = /* @__PURE__ */ new Map();
|
|
40793
40793
|
}
|
|
40794
|
-
opt.filter = filter2 ? (
|
|
40794
|
+
opt.filter = filter2 ? (path12, stat) => filter2(path12, stat) && !(opt.mtimeCache.get(path12) > stat.mtime) : (path12, stat) => !(opt.mtimeCache.get(path12) > stat.mtime);
|
|
40795
40795
|
};
|
|
40796
40796
|
}
|
|
40797
40797
|
});
|
|
@@ -40831,28 +40831,28 @@ var require_path_arg = __commonJS({
|
|
|
40831
40831
|
"use strict";
|
|
40832
40832
|
var platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
40833
40833
|
var { resolve, parse } = require("path");
|
|
40834
|
-
var pathArg = (
|
|
40835
|
-
if (/\0/.test(
|
|
40834
|
+
var pathArg = (path12) => {
|
|
40835
|
+
if (/\0/.test(path12)) {
|
|
40836
40836
|
throw Object.assign(
|
|
40837
40837
|
new TypeError("path must be a string without null bytes"),
|
|
40838
40838
|
{
|
|
40839
|
-
path:
|
|
40839
|
+
path: path12,
|
|
40840
40840
|
code: "ERR_INVALID_ARG_VALUE"
|
|
40841
40841
|
}
|
|
40842
40842
|
);
|
|
40843
40843
|
}
|
|
40844
|
-
|
|
40844
|
+
path12 = resolve(path12);
|
|
40845
40845
|
if (platform === "win32") {
|
|
40846
40846
|
const badWinChars = /[*|"<>?:]/;
|
|
40847
|
-
const { root } = parse(
|
|
40848
|
-
if (badWinChars.test(
|
|
40847
|
+
const { root } = parse(path12);
|
|
40848
|
+
if (badWinChars.test(path12.substr(root.length))) {
|
|
40849
40849
|
throw Object.assign(new Error("Illegal characters in path."), {
|
|
40850
|
-
path:
|
|
40850
|
+
path: path12,
|
|
40851
40851
|
code: "EINVAL"
|
|
40852
40852
|
});
|
|
40853
40853
|
}
|
|
40854
40854
|
}
|
|
40855
|
-
return
|
|
40855
|
+
return path12;
|
|
40856
40856
|
};
|
|
40857
40857
|
module2.exports = pathArg;
|
|
40858
40858
|
}
|
|
@@ -40863,20 +40863,20 @@ var require_find_made = __commonJS({
|
|
|
40863
40863
|
"../../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js"(exports, module2) {
|
|
40864
40864
|
"use strict";
|
|
40865
40865
|
var { dirname } = require("path");
|
|
40866
|
-
var findMade = (opts, parent,
|
|
40867
|
-
if (
|
|
40866
|
+
var findMade = (opts, parent, path12 = void 0) => {
|
|
40867
|
+
if (path12 === parent)
|
|
40868
40868
|
return Promise.resolve();
|
|
40869
40869
|
return opts.statAsync(parent).then(
|
|
40870
|
-
(st) => st.isDirectory() ?
|
|
40870
|
+
(st) => st.isDirectory() ? path12 : void 0,
|
|
40871
40871
|
// will fail later
|
|
40872
40872
|
(er) => er.code === "ENOENT" ? findMade(opts, dirname(parent), parent) : void 0
|
|
40873
40873
|
);
|
|
40874
40874
|
};
|
|
40875
|
-
var findMadeSync = (opts, parent,
|
|
40876
|
-
if (
|
|
40875
|
+
var findMadeSync = (opts, parent, path12 = void 0) => {
|
|
40876
|
+
if (path12 === parent)
|
|
40877
40877
|
return void 0;
|
|
40878
40878
|
try {
|
|
40879
|
-
return opts.statSync(parent).isDirectory() ?
|
|
40879
|
+
return opts.statSync(parent).isDirectory() ? path12 : void 0;
|
|
40880
40880
|
} catch (er) {
|
|
40881
40881
|
return er.code === "ENOENT" ? findMadeSync(opts, dirname(parent), parent) : void 0;
|
|
40882
40882
|
}
|
|
@@ -40890,21 +40890,21 @@ var require_mkdirp_manual = __commonJS({
|
|
|
40890
40890
|
"../../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js"(exports, module2) {
|
|
40891
40891
|
"use strict";
|
|
40892
40892
|
var { dirname } = require("path");
|
|
40893
|
-
var mkdirpManual = (
|
|
40893
|
+
var mkdirpManual = (path12, opts, made) => {
|
|
40894
40894
|
opts.recursive = false;
|
|
40895
|
-
const parent = dirname(
|
|
40896
|
-
if (parent ===
|
|
40897
|
-
return opts.mkdirAsync(
|
|
40895
|
+
const parent = dirname(path12);
|
|
40896
|
+
if (parent === path12) {
|
|
40897
|
+
return opts.mkdirAsync(path12, opts).catch((er) => {
|
|
40898
40898
|
if (er.code !== "EISDIR")
|
|
40899
40899
|
throw er;
|
|
40900
40900
|
});
|
|
40901
40901
|
}
|
|
40902
|
-
return opts.mkdirAsync(
|
|
40902
|
+
return opts.mkdirAsync(path12, opts).then(() => made || path12, (er) => {
|
|
40903
40903
|
if (er.code === "ENOENT")
|
|
40904
|
-
return mkdirpManual(parent, opts).then((made2) => mkdirpManual(
|
|
40904
|
+
return mkdirpManual(parent, opts).then((made2) => mkdirpManual(path12, opts, made2));
|
|
40905
40905
|
if (er.code !== "EEXIST" && er.code !== "EROFS")
|
|
40906
40906
|
throw er;
|
|
40907
|
-
return opts.statAsync(
|
|
40907
|
+
return opts.statAsync(path12).then((st) => {
|
|
40908
40908
|
if (st.isDirectory())
|
|
40909
40909
|
return made;
|
|
40910
40910
|
else
|
|
@@ -40914,12 +40914,12 @@ var require_mkdirp_manual = __commonJS({
|
|
|
40914
40914
|
});
|
|
40915
40915
|
});
|
|
40916
40916
|
};
|
|
40917
|
-
var mkdirpManualSync = (
|
|
40918
|
-
const parent = dirname(
|
|
40917
|
+
var mkdirpManualSync = (path12, opts, made) => {
|
|
40918
|
+
const parent = dirname(path12);
|
|
40919
40919
|
opts.recursive = false;
|
|
40920
|
-
if (parent ===
|
|
40920
|
+
if (parent === path12) {
|
|
40921
40921
|
try {
|
|
40922
|
-
return opts.mkdirSync(
|
|
40922
|
+
return opts.mkdirSync(path12, opts);
|
|
40923
40923
|
} catch (er) {
|
|
40924
40924
|
if (er.code !== "EISDIR")
|
|
40925
40925
|
throw er;
|
|
@@ -40928,15 +40928,15 @@ var require_mkdirp_manual = __commonJS({
|
|
|
40928
40928
|
}
|
|
40929
40929
|
}
|
|
40930
40930
|
try {
|
|
40931
|
-
opts.mkdirSync(
|
|
40932
|
-
return made ||
|
|
40931
|
+
opts.mkdirSync(path12, opts);
|
|
40932
|
+
return made || path12;
|
|
40933
40933
|
} catch (er) {
|
|
40934
40934
|
if (er.code === "ENOENT")
|
|
40935
|
-
return mkdirpManualSync(
|
|
40935
|
+
return mkdirpManualSync(path12, opts, mkdirpManualSync(parent, opts, made));
|
|
40936
40936
|
if (er.code !== "EEXIST" && er.code !== "EROFS")
|
|
40937
40937
|
throw er;
|
|
40938
40938
|
try {
|
|
40939
|
-
if (!opts.statSync(
|
|
40939
|
+
if (!opts.statSync(path12).isDirectory())
|
|
40940
40940
|
throw er;
|
|
40941
40941
|
} catch (_) {
|
|
40942
40942
|
throw er;
|
|
@@ -40954,30 +40954,30 @@ var require_mkdirp_native = __commonJS({
|
|
|
40954
40954
|
var { dirname } = require("path");
|
|
40955
40955
|
var { findMade, findMadeSync } = require_find_made();
|
|
40956
40956
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
40957
|
-
var mkdirpNative = (
|
|
40957
|
+
var mkdirpNative = (path12, opts) => {
|
|
40958
40958
|
opts.recursive = true;
|
|
40959
|
-
const parent = dirname(
|
|
40960
|
-
if (parent ===
|
|
40961
|
-
return opts.mkdirAsync(
|
|
40962
|
-
return findMade(opts,
|
|
40959
|
+
const parent = dirname(path12);
|
|
40960
|
+
if (parent === path12)
|
|
40961
|
+
return opts.mkdirAsync(path12, opts);
|
|
40962
|
+
return findMade(opts, path12).then((made) => opts.mkdirAsync(path12, opts).then(() => made).catch((er) => {
|
|
40963
40963
|
if (er.code === "ENOENT")
|
|
40964
|
-
return mkdirpManual(
|
|
40964
|
+
return mkdirpManual(path12, opts);
|
|
40965
40965
|
else
|
|
40966
40966
|
throw er;
|
|
40967
40967
|
}));
|
|
40968
40968
|
};
|
|
40969
|
-
var mkdirpNativeSync = (
|
|
40969
|
+
var mkdirpNativeSync = (path12, opts) => {
|
|
40970
40970
|
opts.recursive = true;
|
|
40971
|
-
const parent = dirname(
|
|
40972
|
-
if (parent ===
|
|
40973
|
-
return opts.mkdirSync(
|
|
40974
|
-
const made = findMadeSync(opts,
|
|
40971
|
+
const parent = dirname(path12);
|
|
40972
|
+
if (parent === path12)
|
|
40973
|
+
return opts.mkdirSync(path12, opts);
|
|
40974
|
+
const made = findMadeSync(opts, path12);
|
|
40975
40975
|
try {
|
|
40976
|
-
opts.mkdirSync(
|
|
40976
|
+
opts.mkdirSync(path12, opts);
|
|
40977
40977
|
return made;
|
|
40978
40978
|
} catch (er) {
|
|
40979
40979
|
if (er.code === "ENOENT")
|
|
40980
|
-
return mkdirpManualSync(
|
|
40980
|
+
return mkdirpManualSync(path12, opts);
|
|
40981
40981
|
else
|
|
40982
40982
|
throw er;
|
|
40983
40983
|
}
|
|
@@ -41009,21 +41009,21 @@ var require_mkdirp = __commonJS({
|
|
|
41009
41009
|
var { mkdirpNative, mkdirpNativeSync } = require_mkdirp_native();
|
|
41010
41010
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
41011
41011
|
var { useNative, useNativeSync } = require_use_native();
|
|
41012
|
-
var mkdirp = (
|
|
41013
|
-
|
|
41012
|
+
var mkdirp = (path12, opts) => {
|
|
41013
|
+
path12 = pathArg(path12);
|
|
41014
41014
|
opts = optsArg(opts);
|
|
41015
|
-
return useNative(opts) ? mkdirpNative(
|
|
41015
|
+
return useNative(opts) ? mkdirpNative(path12, opts) : mkdirpManual(path12, opts);
|
|
41016
41016
|
};
|
|
41017
|
-
var mkdirpSync = (
|
|
41018
|
-
|
|
41017
|
+
var mkdirpSync = (path12, opts) => {
|
|
41018
|
+
path12 = pathArg(path12);
|
|
41019
41019
|
opts = optsArg(opts);
|
|
41020
|
-
return useNativeSync(opts) ? mkdirpNativeSync(
|
|
41020
|
+
return useNativeSync(opts) ? mkdirpNativeSync(path12, opts) : mkdirpManualSync(path12, opts);
|
|
41021
41021
|
};
|
|
41022
41022
|
mkdirp.sync = mkdirpSync;
|
|
41023
|
-
mkdirp.native = (
|
|
41024
|
-
mkdirp.manual = (
|
|
41025
|
-
mkdirp.nativeSync = (
|
|
41026
|
-
mkdirp.manualSync = (
|
|
41023
|
+
mkdirp.native = (path12, opts) => mkdirpNative(pathArg(path12), optsArg(opts));
|
|
41024
|
+
mkdirp.manual = (path12, opts) => mkdirpManual(pathArg(path12), optsArg(opts));
|
|
41025
|
+
mkdirp.nativeSync = (path12, opts) => mkdirpNativeSync(pathArg(path12), optsArg(opts));
|
|
41026
|
+
mkdirp.manualSync = (path12, opts) => mkdirpManualSync(pathArg(path12), optsArg(opts));
|
|
41027
41027
|
module2.exports = mkdirp;
|
|
41028
41028
|
}
|
|
41029
41029
|
});
|
|
@@ -41033,46 +41033,46 @@ var require_chownr = __commonJS({
|
|
|
41033
41033
|
"../../../node_modules/.pnpm/chownr@2.0.0/node_modules/chownr/chownr.js"(exports, module2) {
|
|
41034
41034
|
"use strict";
|
|
41035
41035
|
var fs2 = require("fs");
|
|
41036
|
-
var
|
|
41036
|
+
var path12 = require("path");
|
|
41037
41037
|
var LCHOWN = fs2.lchown ? "lchown" : "chown";
|
|
41038
41038
|
var LCHOWNSYNC = fs2.lchownSync ? "lchownSync" : "chownSync";
|
|
41039
41039
|
var needEISDIRHandled = fs2.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
41040
|
-
var lchownSync = (
|
|
41040
|
+
var lchownSync = (path13, uid, gid) => {
|
|
41041
41041
|
try {
|
|
41042
|
-
return fs2[LCHOWNSYNC](
|
|
41042
|
+
return fs2[LCHOWNSYNC](path13, uid, gid);
|
|
41043
41043
|
} catch (er) {
|
|
41044
41044
|
if (er.code !== "ENOENT")
|
|
41045
41045
|
throw er;
|
|
41046
41046
|
}
|
|
41047
41047
|
};
|
|
41048
|
-
var chownSync = (
|
|
41048
|
+
var chownSync = (path13, uid, gid) => {
|
|
41049
41049
|
try {
|
|
41050
|
-
return fs2.chownSync(
|
|
41050
|
+
return fs2.chownSync(path13, uid, gid);
|
|
41051
41051
|
} catch (er) {
|
|
41052
41052
|
if (er.code !== "ENOENT")
|
|
41053
41053
|
throw er;
|
|
41054
41054
|
}
|
|
41055
41055
|
};
|
|
41056
|
-
var handleEISDIR = needEISDIRHandled ? (
|
|
41056
|
+
var handleEISDIR = needEISDIRHandled ? (path13, uid, gid, cb) => (er) => {
|
|
41057
41057
|
if (!er || er.code !== "EISDIR")
|
|
41058
41058
|
cb(er);
|
|
41059
41059
|
else
|
|
41060
|
-
fs2.chown(
|
|
41060
|
+
fs2.chown(path13, uid, gid, cb);
|
|
41061
41061
|
} : (_, __, ___, cb) => cb;
|
|
41062
|
-
var handleEISDirSync = needEISDIRHandled ? (
|
|
41062
|
+
var handleEISDirSync = needEISDIRHandled ? (path13, uid, gid) => {
|
|
41063
41063
|
try {
|
|
41064
|
-
return lchownSync(
|
|
41064
|
+
return lchownSync(path13, uid, gid);
|
|
41065
41065
|
} catch (er) {
|
|
41066
41066
|
if (er.code !== "EISDIR")
|
|
41067
41067
|
throw er;
|
|
41068
|
-
chownSync(
|
|
41068
|
+
chownSync(path13, uid, gid);
|
|
41069
41069
|
}
|
|
41070
|
-
} : (
|
|
41070
|
+
} : (path13, uid, gid) => lchownSync(path13, uid, gid);
|
|
41071
41071
|
var nodeVersion = process.version;
|
|
41072
|
-
var readdir = (
|
|
41073
|
-
var readdirSync = (
|
|
41072
|
+
var readdir = (path13, options, cb) => fs2.readdir(path13, options, cb);
|
|
41073
|
+
var readdirSync = (path13, options) => fs2.readdirSync(path13, options);
|
|
41074
41074
|
if (/^v4\./.test(nodeVersion))
|
|
41075
|
-
readdir = (
|
|
41075
|
+
readdir = (path13, options, cb) => fs2.readdir(path13, cb);
|
|
41076
41076
|
var chown = (cpath, uid, gid, cb) => {
|
|
41077
41077
|
fs2[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
41078
41078
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
@@ -41080,21 +41080,21 @@ var require_chownr = __commonJS({
|
|
|
41080
41080
|
};
|
|
41081
41081
|
var chownrKid = (p, child, uid, gid, cb) => {
|
|
41082
41082
|
if (typeof child === "string")
|
|
41083
|
-
return fs2.lstat(
|
|
41083
|
+
return fs2.lstat(path12.resolve(p, child), (er, stats) => {
|
|
41084
41084
|
if (er)
|
|
41085
41085
|
return cb(er.code !== "ENOENT" ? er : null);
|
|
41086
41086
|
stats.name = child;
|
|
41087
41087
|
chownrKid(p, stats, uid, gid, cb);
|
|
41088
41088
|
});
|
|
41089
41089
|
if (child.isDirectory()) {
|
|
41090
|
-
chownr(
|
|
41090
|
+
chownr(path12.resolve(p, child.name), uid, gid, (er) => {
|
|
41091
41091
|
if (er)
|
|
41092
41092
|
return cb(er);
|
|
41093
|
-
const cpath =
|
|
41093
|
+
const cpath = path12.resolve(p, child.name);
|
|
41094
41094
|
chown(cpath, uid, gid, cb);
|
|
41095
41095
|
});
|
|
41096
41096
|
} else {
|
|
41097
|
-
const cpath =
|
|
41097
|
+
const cpath = path12.resolve(p, child.name);
|
|
41098
41098
|
chown(cpath, uid, gid, cb);
|
|
41099
41099
|
}
|
|
41100
41100
|
};
|
|
@@ -41124,7 +41124,7 @@ var require_chownr = __commonJS({
|
|
|
41124
41124
|
var chownrKidSync = (p, child, uid, gid) => {
|
|
41125
41125
|
if (typeof child === "string") {
|
|
41126
41126
|
try {
|
|
41127
|
-
const stats = fs2.lstatSync(
|
|
41127
|
+
const stats = fs2.lstatSync(path12.resolve(p, child));
|
|
41128
41128
|
stats.name = child;
|
|
41129
41129
|
child = stats;
|
|
41130
41130
|
} catch (er) {
|
|
@@ -41135,8 +41135,8 @@ var require_chownr = __commonJS({
|
|
|
41135
41135
|
}
|
|
41136
41136
|
}
|
|
41137
41137
|
if (child.isDirectory())
|
|
41138
|
-
chownrSync(
|
|
41139
|
-
handleEISDirSync(
|
|
41138
|
+
chownrSync(path12.resolve(p, child.name), uid, gid);
|
|
41139
|
+
handleEISDirSync(path12.resolve(p, child.name), uid, gid);
|
|
41140
41140
|
};
|
|
41141
41141
|
var chownrSync = (p, uid, gid) => {
|
|
41142
41142
|
let children;
|
|
@@ -41165,13 +41165,13 @@ var require_mkdir = __commonJS({
|
|
|
41165
41165
|
"use strict";
|
|
41166
41166
|
var mkdirp = require_mkdirp();
|
|
41167
41167
|
var fs2 = require("fs");
|
|
41168
|
-
var
|
|
41168
|
+
var path12 = require("path");
|
|
41169
41169
|
var chownr = require_chownr();
|
|
41170
41170
|
var normPath = require_normalize_windows_path();
|
|
41171
41171
|
var SymlinkError = class extends Error {
|
|
41172
|
-
constructor(symlink,
|
|
41172
|
+
constructor(symlink, path13) {
|
|
41173
41173
|
super("Cannot extract through symbolic link");
|
|
41174
|
-
this.path =
|
|
41174
|
+
this.path = path13;
|
|
41175
41175
|
this.symlink = symlink;
|
|
41176
41176
|
}
|
|
41177
41177
|
get name() {
|
|
@@ -41179,9 +41179,9 @@ var require_mkdir = __commonJS({
|
|
|
41179
41179
|
}
|
|
41180
41180
|
};
|
|
41181
41181
|
var CwdError = class extends Error {
|
|
41182
|
-
constructor(
|
|
41183
|
-
super(code + ": Cannot cd into '" +
|
|
41184
|
-
this.path =
|
|
41182
|
+
constructor(path13, code) {
|
|
41183
|
+
super(code + ": Cannot cd into '" + path13 + "'");
|
|
41184
|
+
this.path = path13;
|
|
41185
41185
|
this.code = code;
|
|
41186
41186
|
}
|
|
41187
41187
|
get name() {
|
|
@@ -41233,7 +41233,7 @@ var require_mkdir = __commonJS({
|
|
|
41233
41233
|
if (preserve) {
|
|
41234
41234
|
return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
|
41235
41235
|
}
|
|
41236
|
-
const sub = normPath(
|
|
41236
|
+
const sub = normPath(path12.relative(cwd, dir));
|
|
41237
41237
|
const parts = sub.split("/");
|
|
41238
41238
|
mkdir_(cwd, parts, mode, cache, unlink, cwd, null, done);
|
|
41239
41239
|
};
|
|
@@ -41242,7 +41242,7 @@ var require_mkdir = __commonJS({
|
|
|
41242
41242
|
return cb(null, created);
|
|
41243
41243
|
}
|
|
41244
41244
|
const p = parts.shift();
|
|
41245
|
-
const part = normPath(
|
|
41245
|
+
const part = normPath(path12.resolve(base + "/" + p));
|
|
41246
41246
|
if (cGet(cache, part)) {
|
|
41247
41247
|
return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
41248
41248
|
}
|
|
@@ -41318,11 +41318,11 @@ var require_mkdir = __commonJS({
|
|
|
41318
41318
|
if (preserve) {
|
|
41319
41319
|
return done(mkdirp.sync(dir, mode));
|
|
41320
41320
|
}
|
|
41321
|
-
const sub = normPath(
|
|
41321
|
+
const sub = normPath(path12.relative(cwd, dir));
|
|
41322
41322
|
const parts = sub.split("/");
|
|
41323
41323
|
let created = null;
|
|
41324
41324
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
|
41325
|
-
part = normPath(
|
|
41325
|
+
part = normPath(path12.resolve(part));
|
|
41326
41326
|
if (cGet(cache, part)) {
|
|
41327
41327
|
continue;
|
|
41328
41328
|
}
|
|
@@ -41379,12 +41379,12 @@ var require_path_reservations = __commonJS({
|
|
|
41379
41379
|
module2.exports = () => {
|
|
41380
41380
|
const queues = /* @__PURE__ */ new Map();
|
|
41381
41381
|
const reservations = /* @__PURE__ */ new Map();
|
|
41382
|
-
const getDirs = (
|
|
41383
|
-
const dirs =
|
|
41382
|
+
const getDirs = (path12) => {
|
|
41383
|
+
const dirs = path12.split("/").slice(0, -1).reduce((set, path13) => {
|
|
41384
41384
|
if (set.length) {
|
|
41385
|
-
|
|
41385
|
+
path13 = join(set[set.length - 1], path13);
|
|
41386
41386
|
}
|
|
41387
|
-
set.push(
|
|
41387
|
+
set.push(path13 || "/");
|
|
41388
41388
|
return set;
|
|
41389
41389
|
}, []);
|
|
41390
41390
|
return dirs;
|
|
@@ -41396,8 +41396,8 @@ var require_path_reservations = __commonJS({
|
|
|
41396
41396
|
throw new Error("function does not have any path reservations");
|
|
41397
41397
|
}
|
|
41398
41398
|
return {
|
|
41399
|
-
paths: res.paths.map((
|
|
41400
|
-
dirs: [...res.dirs].map((
|
|
41399
|
+
paths: res.paths.map((path12) => queues.get(path12)),
|
|
41400
|
+
dirs: [...res.dirs].map((path12) => queues.get(path12))
|
|
41401
41401
|
};
|
|
41402
41402
|
};
|
|
41403
41403
|
const check = (fn) => {
|
|
@@ -41418,11 +41418,11 @@ var require_path_reservations = __commonJS({
|
|
|
41418
41418
|
}
|
|
41419
41419
|
const { paths, dirs } = reservations.get(fn);
|
|
41420
41420
|
const next = /* @__PURE__ */ new Set();
|
|
41421
|
-
paths.forEach((
|
|
41422
|
-
const q = queues.get(
|
|
41421
|
+
paths.forEach((path12) => {
|
|
41422
|
+
const q = queues.get(path12);
|
|
41423
41423
|
assert.equal(q[0], fn);
|
|
41424
41424
|
if (q.length === 1) {
|
|
41425
|
-
queues.delete(
|
|
41425
|
+
queues.delete(path12);
|
|
41426
41426
|
} else {
|
|
41427
41427
|
q.shift();
|
|
41428
41428
|
if (typeof q[0] === "function") {
|
|
@@ -41453,13 +41453,13 @@ var require_path_reservations = __commonJS({
|
|
|
41453
41453
|
return stripSlashes(join(normalize(p))).toLowerCase();
|
|
41454
41454
|
});
|
|
41455
41455
|
const dirs = new Set(
|
|
41456
|
-
paths.map((
|
|
41456
|
+
paths.map((path12) => getDirs(path12)).reduce((a, b) => a.concat(b))
|
|
41457
41457
|
);
|
|
41458
41458
|
reservations.set(fn, { dirs, paths });
|
|
41459
|
-
paths.forEach((
|
|
41460
|
-
const q = queues.get(
|
|
41459
|
+
paths.forEach((path12) => {
|
|
41460
|
+
const q = queues.get(path12);
|
|
41461
41461
|
if (!q) {
|
|
41462
|
-
queues.set(
|
|
41462
|
+
queues.set(path12, [fn]);
|
|
41463
41463
|
} else {
|
|
41464
41464
|
q.push(fn);
|
|
41465
41465
|
}
|
|
@@ -41504,7 +41504,7 @@ var require_unpack = __commonJS({
|
|
|
41504
41504
|
var Parser = require_parse3();
|
|
41505
41505
|
var fs2 = require("fs");
|
|
41506
41506
|
var fsm = require_fs_minipass();
|
|
41507
|
-
var
|
|
41507
|
+
var path12 = require("path");
|
|
41508
41508
|
var mkdir = require_mkdir();
|
|
41509
41509
|
var wc = require_winchars();
|
|
41510
41510
|
var pathReservations = require_path_reservations();
|
|
@@ -41542,34 +41542,34 @@ var require_unpack = __commonJS({
|
|
|
41542
41542
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
41543
41543
|
var isWindows = platform === "win32";
|
|
41544
41544
|
var DEFAULT_MAX_DEPTH = 1024;
|
|
41545
|
-
var unlinkFile = (
|
|
41545
|
+
var unlinkFile = (path13, cb) => {
|
|
41546
41546
|
if (!isWindows) {
|
|
41547
|
-
return fs2.unlink(
|
|
41547
|
+
return fs2.unlink(path13, cb);
|
|
41548
41548
|
}
|
|
41549
|
-
const name =
|
|
41550
|
-
fs2.rename(
|
|
41549
|
+
const name = path13 + ".DELETE." + crypto2.randomBytes(16).toString("hex");
|
|
41550
|
+
fs2.rename(path13, name, (er) => {
|
|
41551
41551
|
if (er) {
|
|
41552
41552
|
return cb(er);
|
|
41553
41553
|
}
|
|
41554
41554
|
fs2.unlink(name, cb);
|
|
41555
41555
|
});
|
|
41556
41556
|
};
|
|
41557
|
-
var unlinkFileSync = (
|
|
41557
|
+
var unlinkFileSync = (path13) => {
|
|
41558
41558
|
if (!isWindows) {
|
|
41559
|
-
return fs2.unlinkSync(
|
|
41559
|
+
return fs2.unlinkSync(path13);
|
|
41560
41560
|
}
|
|
41561
|
-
const name =
|
|
41562
|
-
fs2.renameSync(
|
|
41561
|
+
const name = path13 + ".DELETE." + crypto2.randomBytes(16).toString("hex");
|
|
41562
|
+
fs2.renameSync(path13, name);
|
|
41563
41563
|
fs2.unlinkSync(name);
|
|
41564
41564
|
};
|
|
41565
41565
|
var uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
41566
|
-
var cacheKeyNormalize = (
|
|
41566
|
+
var cacheKeyNormalize = (path13) => stripSlash(normPath(normalize(path13))).toLowerCase();
|
|
41567
41567
|
var pruneCache = (cache, abs) => {
|
|
41568
41568
|
abs = cacheKeyNormalize(abs);
|
|
41569
|
-
for (const
|
|
41570
|
-
const pnorm = cacheKeyNormalize(
|
|
41569
|
+
for (const path13 of cache.keys()) {
|
|
41570
|
+
const pnorm = cacheKeyNormalize(path13);
|
|
41571
41571
|
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) {
|
|
41572
|
-
cache.delete(
|
|
41572
|
+
cache.delete(path13);
|
|
41573
41573
|
}
|
|
41574
41574
|
}
|
|
41575
41575
|
};
|
|
@@ -41628,7 +41628,7 @@ var require_unpack = __commonJS({
|
|
|
41628
41628
|
this.noMtime = !!opt.noMtime;
|
|
41629
41629
|
this.preservePaths = !!opt.preservePaths;
|
|
41630
41630
|
this.unlink = !!opt.unlink;
|
|
41631
|
-
this.cwd = normPath(
|
|
41631
|
+
this.cwd = normPath(path12.resolve(opt.cwd || process.cwd()));
|
|
41632
41632
|
this.strip = +opt.strip || 0;
|
|
41633
41633
|
this.processUmask = opt.noChmod ? 0 : process.umask();
|
|
41634
41634
|
this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
|
|
@@ -41696,10 +41696,10 @@ var require_unpack = __commonJS({
|
|
|
41696
41696
|
});
|
|
41697
41697
|
}
|
|
41698
41698
|
}
|
|
41699
|
-
if (
|
|
41700
|
-
entry.absolute = normPath(
|
|
41699
|
+
if (path12.isAbsolute(entry.path)) {
|
|
41700
|
+
entry.absolute = normPath(path12.resolve(entry.path));
|
|
41701
41701
|
} else {
|
|
41702
|
-
entry.absolute = normPath(
|
|
41702
|
+
entry.absolute = normPath(path12.resolve(this.cwd, entry.path));
|
|
41703
41703
|
}
|
|
41704
41704
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
|
41705
41705
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
|
@@ -41714,9 +41714,9 @@ var require_unpack = __commonJS({
|
|
|
41714
41714
|
return false;
|
|
41715
41715
|
}
|
|
41716
41716
|
if (this.win32) {
|
|
41717
|
-
const { root: aRoot } =
|
|
41717
|
+
const { root: aRoot } = path12.win32.parse(entry.absolute);
|
|
41718
41718
|
entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
|
|
41719
|
-
const { root: pRoot } =
|
|
41719
|
+
const { root: pRoot } = path12.win32.parse(entry.path);
|
|
41720
41720
|
entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
|
|
41721
41721
|
}
|
|
41722
41722
|
return true;
|
|
@@ -41883,7 +41883,7 @@ var require_unpack = __commonJS({
|
|
|
41883
41883
|
this[LINK](entry, entry.linkpath, "symlink", done);
|
|
41884
41884
|
}
|
|
41885
41885
|
[HARDLINK](entry, done) {
|
|
41886
|
-
const linkpath = normPath(
|
|
41886
|
+
const linkpath = normPath(path12.resolve(this.cwd, entry.linkpath));
|
|
41887
41887
|
this[LINK](entry, linkpath, "link", done);
|
|
41888
41888
|
}
|
|
41889
41889
|
[PEND]() {
|
|
@@ -41938,7 +41938,7 @@ var require_unpack = __commonJS({
|
|
|
41938
41938
|
};
|
|
41939
41939
|
const start = () => {
|
|
41940
41940
|
if (entry.absolute !== this.cwd) {
|
|
41941
|
-
const parent = normPath(
|
|
41941
|
+
const parent = normPath(path12.dirname(entry.absolute));
|
|
41942
41942
|
if (parent !== this.cwd) {
|
|
41943
41943
|
return this[MKDIR](parent, this.dmode, (er) => {
|
|
41944
41944
|
if (er) {
|
|
@@ -42041,7 +42041,7 @@ var require_unpack = __commonJS({
|
|
|
42041
42041
|
this[CHECKED_CWD] = true;
|
|
42042
42042
|
}
|
|
42043
42043
|
if (entry.absolute !== this.cwd) {
|
|
42044
|
-
const parent = normPath(
|
|
42044
|
+
const parent = normPath(path12.dirname(entry.absolute));
|
|
42045
42045
|
if (parent !== this.cwd) {
|
|
42046
42046
|
const mkParent = this[MKDIR](parent, this.dmode);
|
|
42047
42047
|
if (mkParent) {
|
|
@@ -42197,7 +42197,7 @@ var require_extract = __commonJS({
|
|
|
42197
42197
|
var Unpack = require_unpack();
|
|
42198
42198
|
var fs2 = require("fs");
|
|
42199
42199
|
var fsm = require_fs_minipass();
|
|
42200
|
-
var
|
|
42200
|
+
var path12 = require("path");
|
|
42201
42201
|
var stripSlash = require_strip_trailing_slashes();
|
|
42202
42202
|
module2.exports = (opt_, files, cb) => {
|
|
42203
42203
|
if (typeof opt_ === "function") {
|
|
@@ -42229,8 +42229,8 @@ var require_extract = __commonJS({
|
|
|
42229
42229
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
42230
42230
|
const filter2 = opt.filter;
|
|
42231
42231
|
const mapHas = (file, r) => {
|
|
42232
|
-
const root = r ||
|
|
42233
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(
|
|
42232
|
+
const root = r || path12.parse(file).root || ".";
|
|
42233
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path12.dirname(file), root);
|
|
42234
42234
|
map.set(file, ret);
|
|
42235
42235
|
return ret;
|
|
42236
42236
|
};
|
|
@@ -42346,10 +42346,10 @@ var {
|
|
|
42346
42346
|
var import_os = __toESM(require("os"));
|
|
42347
42347
|
var import_path = __toESM(require("path"));
|
|
42348
42348
|
|
|
42349
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
42349
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
|
|
42350
42350
|
var import_fs_extra = __toESM(require_lib());
|
|
42351
42351
|
|
|
42352
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
42352
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/ora.js
|
|
42353
42353
|
var import_ora = __toESM(require_ora());
|
|
42354
42354
|
|
|
42355
42355
|
// ../../cli/plugin-i18n/dist/esm-node/index.js
|
|
@@ -42488,9 +42488,9 @@ function cleanCacheAction() {
|
|
|
42488
42488
|
}
|
|
42489
42489
|
|
|
42490
42490
|
// src/createAction.ts
|
|
42491
|
-
var
|
|
42491
|
+
var import_path11 = __toESM(require("path"));
|
|
42492
42492
|
|
|
42493
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42493
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
|
|
42494
42494
|
var LoggerLevel;
|
|
42495
42495
|
(function(LoggerLevel2) {
|
|
42496
42496
|
LoggerLevel2["Error"] = "error";
|
|
@@ -42502,10 +42502,10 @@ var LoggerLevel;
|
|
|
42502
42502
|
LoggerLevel2["Timing"] = "timing";
|
|
42503
42503
|
})(LoggerLevel || (LoggerLevel = {}));
|
|
42504
42504
|
|
|
42505
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
42505
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js
|
|
42506
42506
|
var import_chalk = __toESM(require_source());
|
|
42507
42507
|
|
|
42508
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42508
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
|
|
42509
42509
|
var import_debug = __toESM(require_src());
|
|
42510
42510
|
var Logger = class {
|
|
42511
42511
|
info(...meta) {
|
|
@@ -42563,23 +42563,23 @@ var Logger = class {
|
|
|
42563
42563
|
}
|
|
42564
42564
|
};
|
|
42565
42565
|
|
|
42566
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42567
|
-
var
|
|
42566
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
|
|
42567
|
+
var import_path9 = __toESM(require("path"));
|
|
42568
42568
|
|
|
42569
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42569
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
|
|
42570
42570
|
var import_events2 = require("events");
|
|
42571
|
-
var
|
|
42571
|
+
var import_path7 = __toESM(require("path"));
|
|
42572
42572
|
|
|
42573
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42573
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
|
|
42574
42574
|
var import_path3 = __toESM(require("path"));
|
|
42575
42575
|
|
|
42576
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
42576
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/glob.js
|
|
42577
42577
|
var import_glob = __toESM(require_glob());
|
|
42578
42578
|
|
|
42579
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42579
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
42580
42580
|
var import_path2 = __toESM(require("path"));
|
|
42581
42581
|
|
|
42582
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42582
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
|
|
42583
42583
|
var IMAGE_EXT_LIST = [
|
|
42584
42584
|
".jpg",
|
|
42585
42585
|
".jpeg",
|
|
@@ -42593,7 +42593,7 @@ var IMAGE_EXT_LIST = [
|
|
|
42593
42593
|
".wmf"
|
|
42594
42594
|
];
|
|
42595
42595
|
|
|
42596
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42596
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
42597
42597
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
42598
42598
|
var FsResource = class {
|
|
42599
42599
|
value() {
|
|
@@ -42618,7 +42618,7 @@ var FsResource = class {
|
|
|
42618
42618
|
}
|
|
42619
42619
|
};
|
|
42620
42620
|
|
|
42621
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42621
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
|
|
42622
42622
|
var promisifyGlob = (pattern, options) => new Promise((resolve, reject) => {
|
|
42623
42623
|
(0, import_glob.default)(pattern, options, (err, files) => err === null ? resolve(files) : reject(err));
|
|
42624
42624
|
});
|
|
@@ -42645,11 +42645,11 @@ var FsMaterial = class {
|
|
|
42645
42645
|
}
|
|
42646
42646
|
};
|
|
42647
42647
|
|
|
42648
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42649
|
-
function fsExists(
|
|
42648
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
|
42649
|
+
function fsExists(path12) {
|
|
42650
42650
|
return __async(this, null, function* () {
|
|
42651
42651
|
try {
|
|
42652
|
-
yield import_fs_extra.default.access(
|
|
42652
|
+
yield import_fs_extra.default.access(path12);
|
|
42653
42653
|
return true;
|
|
42654
42654
|
} catch (e) {
|
|
42655
42655
|
return false;
|
|
@@ -42657,16 +42657,16 @@ function fsExists(path11) {
|
|
|
42657
42657
|
});
|
|
42658
42658
|
}
|
|
42659
42659
|
|
|
42660
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42661
|
-
var nodeRequire = (
|
|
42660
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
|
|
42661
|
+
var nodeRequire = (path12) => {
|
|
42662
42662
|
try {
|
|
42663
|
-
const module2 = __non_webpack_require__(
|
|
42663
|
+
const module2 = __non_webpack_require__(path12);
|
|
42664
42664
|
if (module2 === null || module2 === void 0 ? void 0 : module2.default) {
|
|
42665
42665
|
return module2.default;
|
|
42666
42666
|
}
|
|
42667
42667
|
return module2;
|
|
42668
42668
|
} catch (error) {
|
|
42669
|
-
const module2 = require(
|
|
42669
|
+
const module2 = require(path12);
|
|
42670
42670
|
if (module2 === null || module2 === void 0 ? void 0 : module2.default) {
|
|
42671
42671
|
return module2.default;
|
|
42672
42672
|
}
|
|
@@ -42674,13 +42674,13 @@ var nodeRequire = (path11) => {
|
|
|
42674
42674
|
}
|
|
42675
42675
|
};
|
|
42676
42676
|
|
|
42677
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42677
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
|
|
42678
42678
|
var import_path4 = __toESM(require("path"));
|
|
42679
42679
|
|
|
42680
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
42680
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
|
|
42681
42681
|
var import_execa = __toESM(require_execa());
|
|
42682
42682
|
|
|
42683
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42683
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
|
|
42684
42684
|
function canUseYarn() {
|
|
42685
42685
|
return __async(this, null, function* () {
|
|
42686
42686
|
try {
|
|
@@ -42764,7 +42764,7 @@ function runInstall(targetDir, registryUrl, logger) {
|
|
|
42764
42764
|
});
|
|
42765
42765
|
}
|
|
42766
42766
|
|
|
42767
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42767
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
|
|
42768
42768
|
function timeoutPromise(promise, ms, reason = "Operation") {
|
|
42769
42769
|
return __async(this, null, function* () {
|
|
42770
42770
|
let timeoutId = null;
|
|
@@ -42788,14 +42788,15 @@ function timeoutPromise(promise, ms, reason = "Operation") {
|
|
|
42788
42788
|
});
|
|
42789
42789
|
}
|
|
42790
42790
|
|
|
42791
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42791
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
|
42792
42792
|
var import_os2 = __toESM(require("os"));
|
|
42793
|
+
var import_path5 = __toESM(require("path"));
|
|
42793
42794
|
|
|
42794
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
42795
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
|
|
42795
42796
|
var NPM_API_TIMEOUT = 3e4;
|
|
42796
42797
|
var CATCHE_VALIDITY_PREIOD = 7 * 24 * 3600 * 1e3;
|
|
42797
42798
|
|
|
42798
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
42799
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
|
|
42799
42800
|
var import_semver = __toESM(require_semver2());
|
|
42800
42801
|
|
|
42801
42802
|
// ../../../node_modules/.pnpm/axios@1.8.4_debug@4.3.7/node_modules/axios/lib/helpers/bind.js
|
|
@@ -43259,10 +43260,10 @@ function isVisitable(thing) {
|
|
|
43259
43260
|
function removeBrackets(key) {
|
|
43260
43261
|
return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
43261
43262
|
}
|
|
43262
|
-
function renderKey(
|
|
43263
|
-
if (!
|
|
43263
|
+
function renderKey(path12, key, dots) {
|
|
43264
|
+
if (!path12)
|
|
43264
43265
|
return key;
|
|
43265
|
-
return
|
|
43266
|
+
return path12.concat(key).map(function each(token, i) {
|
|
43266
43267
|
token = removeBrackets(token);
|
|
43267
43268
|
return !dots && i ? "[" + token + "]" : token;
|
|
43268
43269
|
}).join(dots ? "." : "");
|
|
@@ -43308,9 +43309,9 @@ function toFormData(obj, formData, options) {
|
|
|
43308
43309
|
}
|
|
43309
43310
|
return value;
|
|
43310
43311
|
}
|
|
43311
|
-
function defaultVisitor(value, key,
|
|
43312
|
+
function defaultVisitor(value, key, path12) {
|
|
43312
43313
|
let arr = value;
|
|
43313
|
-
if (value && !
|
|
43314
|
+
if (value && !path12 && typeof value === "object") {
|
|
43314
43315
|
if (utils_default.endsWith(key, "{}")) {
|
|
43315
43316
|
key = metaTokens ? key : key.slice(0, -2);
|
|
43316
43317
|
value = JSON.stringify(value);
|
|
@@ -43329,7 +43330,7 @@ function toFormData(obj, formData, options) {
|
|
|
43329
43330
|
if (isVisitable(value)) {
|
|
43330
43331
|
return true;
|
|
43331
43332
|
}
|
|
43332
|
-
formData.append(renderKey(
|
|
43333
|
+
formData.append(renderKey(path12, key, dots), convertValue(value));
|
|
43333
43334
|
return false;
|
|
43334
43335
|
}
|
|
43335
43336
|
const stack = [];
|
|
@@ -43338,11 +43339,11 @@ function toFormData(obj, formData, options) {
|
|
|
43338
43339
|
convertValue,
|
|
43339
43340
|
isVisitable
|
|
43340
43341
|
});
|
|
43341
|
-
function build(value,
|
|
43342
|
+
function build(value, path12) {
|
|
43342
43343
|
if (utils_default.isUndefined(value))
|
|
43343
43344
|
return;
|
|
43344
43345
|
if (stack.indexOf(value) !== -1) {
|
|
43345
|
-
throw Error("Circular reference detected in " +
|
|
43346
|
+
throw Error("Circular reference detected in " + path12.join("."));
|
|
43346
43347
|
}
|
|
43347
43348
|
stack.push(value);
|
|
43348
43349
|
utils_default.forEach(value, function each(el, key) {
|
|
@@ -43350,11 +43351,11 @@ function toFormData(obj, formData, options) {
|
|
|
43350
43351
|
formData,
|
|
43351
43352
|
el,
|
|
43352
43353
|
utils_default.isString(key) ? key.trim() : key,
|
|
43353
|
-
|
|
43354
|
+
path12,
|
|
43354
43355
|
exposedHelpers
|
|
43355
43356
|
);
|
|
43356
43357
|
if (result === true) {
|
|
43357
|
-
build(el,
|
|
43358
|
+
build(el, path12 ? path12.concat(key) : [key]);
|
|
43358
43359
|
}
|
|
43359
43360
|
});
|
|
43360
43361
|
stack.pop();
|
|
@@ -43563,7 +43564,7 @@ var platform_default = __spreadValues(__spreadValues({}, utils_exports), node_de
|
|
|
43563
43564
|
// ../../../node_modules/.pnpm/axios@1.8.4_debug@4.3.7/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
43564
43565
|
function toURLEncodedForm(data, options) {
|
|
43565
43566
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
|
|
43566
|
-
visitor: function(value, key,
|
|
43567
|
+
visitor: function(value, key, path12, helpers) {
|
|
43567
43568
|
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
43568
43569
|
this.append(key, value.toString("base64"));
|
|
43569
43570
|
return false;
|
|
@@ -43592,12 +43593,12 @@ function arrayToObject(arr) {
|
|
|
43592
43593
|
return obj;
|
|
43593
43594
|
}
|
|
43594
43595
|
function formDataToJSON(formData) {
|
|
43595
|
-
function buildPath(
|
|
43596
|
-
let name =
|
|
43596
|
+
function buildPath(path12, value, target, index) {
|
|
43597
|
+
let name = path12[index++];
|
|
43597
43598
|
if (name === "__proto__")
|
|
43598
43599
|
return true;
|
|
43599
43600
|
const isNumericKey = Number.isFinite(+name);
|
|
43600
|
-
const isLast = index >=
|
|
43601
|
+
const isLast = index >= path12.length;
|
|
43601
43602
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
43602
43603
|
if (isLast) {
|
|
43603
43604
|
if (utils_default.hasOwnProp(target, name)) {
|
|
@@ -43610,7 +43611,7 @@ function formDataToJSON(formData) {
|
|
|
43610
43611
|
if (!target[name] || !utils_default.isObject(target[name])) {
|
|
43611
43612
|
target[name] = [];
|
|
43612
43613
|
}
|
|
43613
|
-
const result = buildPath(
|
|
43614
|
+
const result = buildPath(path12, value, target[name], index);
|
|
43614
43615
|
if (result && utils_default.isArray(target[name])) {
|
|
43615
43616
|
target[name] = arrayToObject(target[name]);
|
|
43616
43617
|
}
|
|
@@ -44746,9 +44747,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
44746
44747
|
auth = urlUsername + ":" + urlPassword;
|
|
44747
44748
|
}
|
|
44748
44749
|
auth && headers.delete("authorization");
|
|
44749
|
-
let
|
|
44750
|
+
let path12;
|
|
44750
44751
|
try {
|
|
44751
|
-
|
|
44752
|
+
path12 = buildURL(
|
|
44752
44753
|
parsed.pathname + parsed.search,
|
|
44753
44754
|
config.params,
|
|
44754
44755
|
config.paramsSerializer
|
|
@@ -44766,7 +44767,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
44766
44767
|
false
|
|
44767
44768
|
);
|
|
44768
44769
|
const options = {
|
|
44769
|
-
path:
|
|
44770
|
+
path: path12,
|
|
44770
44771
|
method,
|
|
44771
44772
|
headers: headers.toJSON(),
|
|
44772
44773
|
agents: { http: config.httpAgent, https: config.httpsAgent },
|
|
@@ -44999,10 +45000,10 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin2
|
|
|
44999
45000
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
45000
45001
|
// Standard browser envs support document.cookie
|
|
45001
45002
|
{
|
|
45002
|
-
write(name, value, expires,
|
|
45003
|
+
write(name, value, expires, path12, domain, secure) {
|
|
45003
45004
|
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
45004
45005
|
utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
|
|
45005
|
-
utils_default.isString(
|
|
45006
|
+
utils_default.isString(path12) && cookie.push("path=" + path12);
|
|
45006
45007
|
utils_default.isString(domain) && cookie.push("domain=" + domain);
|
|
45007
45008
|
secure === true && cookie.push("secure");
|
|
45008
45009
|
document.cookie = cookie.join("; ");
|
|
@@ -46137,22 +46138,27 @@ var {
|
|
|
46137
46138
|
mergeConfig: mergeConfig2
|
|
46138
46139
|
} = axios_default;
|
|
46139
46140
|
|
|
46140
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
46141
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
|
46141
46142
|
var import_tar = __toESM(require_tar());
|
|
46142
46143
|
|
|
46143
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
46144
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmRegistry.js
|
|
46144
46145
|
function getNpmRegistry() {
|
|
46145
46146
|
return __async(this, null, function* () {
|
|
46146
|
-
|
|
46147
|
-
"
|
|
46148
|
-
|
|
46149
|
-
|
|
46150
|
-
|
|
46151
|
-
|
|
46147
|
+
try {
|
|
46148
|
+
const { stdout } = yield (0, import_execa.default)("npm", [
|
|
46149
|
+
"config",
|
|
46150
|
+
"get",
|
|
46151
|
+
"registry",
|
|
46152
|
+
"--no-workspaces"
|
|
46153
|
+
]);
|
|
46154
|
+
return stdout.replace(/\/$/, "") || "https://registry.npmjs.org";
|
|
46155
|
+
} catch (error) {
|
|
46156
|
+
return "https://registry.npmjs.org";
|
|
46157
|
+
}
|
|
46152
46158
|
});
|
|
46153
46159
|
}
|
|
46154
46160
|
|
|
46155
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
46161
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmPackageInfo.js
|
|
46156
46162
|
var NpmPackageInfoCache = /* @__PURE__ */ new Map();
|
|
46157
46163
|
function getNpmPackageInfoWithCommand(pkgName, pkgVersion, options) {
|
|
46158
46164
|
return __async(this, null, function* () {
|
|
@@ -46203,7 +46209,7 @@ function getNpmPackageInfo(pkgName, pkgVersion, options) {
|
|
|
46203
46209
|
});
|
|
46204
46210
|
}
|
|
46205
46211
|
|
|
46206
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
46212
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
|
|
46207
46213
|
function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
|
46208
46214
|
return __async(this, null, function* () {
|
|
46209
46215
|
const packageInfo = yield getNpmPackageInfo(pkgName, pkgVersion, options);
|
|
@@ -46211,7 +46217,7 @@ function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
|
|
46211
46217
|
});
|
|
46212
46218
|
}
|
|
46213
46219
|
|
|
46214
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
46220
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
|
|
46215
46221
|
function getNpmVersion(packageName, options) {
|
|
46216
46222
|
return __async(this, null, function* () {
|
|
46217
46223
|
const { version: version2 = "latest" } = options || {};
|
|
@@ -46220,7 +46226,7 @@ function getNpmVersion(packageName, options) {
|
|
|
46220
46226
|
});
|
|
46221
46227
|
}
|
|
46222
46228
|
|
|
46223
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
46229
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
|
46224
46230
|
var GeneratorVersionMap = /* @__PURE__ */ new Map();
|
|
46225
46231
|
function getGeneratorVersion(_0) {
|
|
46226
46232
|
return __async(this, arguments, function* (pkgName, pkgVersion = "latest", options = {}) {
|
|
@@ -46272,39 +46278,95 @@ function isValidCache(cacheDir, pkgName) {
|
|
|
46272
46278
|
return false;
|
|
46273
46279
|
});
|
|
46274
46280
|
}
|
|
46275
|
-
function downloadAndDecompressTargz(tarballPkg, targetDir) {
|
|
46281
|
+
function downloadAndDecompressTargz(tarballPkg, targetDir, options) {
|
|
46276
46282
|
return __async(this, null, function* () {
|
|
46277
|
-
const
|
|
46278
|
-
|
|
46279
|
-
|
|
46280
|
-
|
|
46281
|
-
|
|
46282
|
-
|
|
46283
|
-
|
|
46284
|
-
|
|
46283
|
+
const { pkgName, pkgVersion, registryUrl, logger } = options || {};
|
|
46284
|
+
try {
|
|
46285
|
+
const response = yield axios_default({
|
|
46286
|
+
method: "get",
|
|
46287
|
+
url: tarballPkg,
|
|
46288
|
+
responseType: "stream",
|
|
46289
|
+
adapter: "http"
|
|
46290
|
+
});
|
|
46291
|
+
if (response.status !== 200) {
|
|
46292
|
+
throw new Error(`download tar package get bad status code: ${response.status}`);
|
|
46293
|
+
}
|
|
46294
|
+
const randomId = Math.floor(Math.random() * 1e4);
|
|
46295
|
+
const tempTgzFilePath = `${import_os2.default.tmpdir()}/temp-${randomId}.tgz`;
|
|
46296
|
+
const dest = import_fs_extra.default.createWriteStream(tempTgzFilePath);
|
|
46297
|
+
yield new Promise((resolve, reject) => {
|
|
46298
|
+
response.data.pipe(dest);
|
|
46299
|
+
response.data.on("error", (err) => {
|
|
46300
|
+
reject(err);
|
|
46301
|
+
});
|
|
46302
|
+
dest.on("finish", () => {
|
|
46303
|
+
resolve();
|
|
46304
|
+
});
|
|
46305
|
+
});
|
|
46306
|
+
yield new Promise((resolve, reject) => {
|
|
46307
|
+
import_fs_extra.default.createReadStream(tempTgzFilePath).pipe(import_tar.default.x({
|
|
46308
|
+
strip: 1,
|
|
46309
|
+
C: `${targetDir}`
|
|
46310
|
+
})).on("finish", () => {
|
|
46311
|
+
resolve();
|
|
46312
|
+
}).on("error", (err) => {
|
|
46313
|
+
reject(err);
|
|
46314
|
+
});
|
|
46315
|
+
});
|
|
46316
|
+
yield import_fs_extra.default.remove(tempTgzFilePath);
|
|
46317
|
+
} catch (error) {
|
|
46318
|
+
logger === null || logger === void 0 ? void 0 : logger.warn(`Failed to download with axios: ${error.message}, trying npm pack as fallback`);
|
|
46319
|
+
if (!pkgName || !pkgVersion) {
|
|
46320
|
+
throw new Error("Package name and version are required for npm pack fallback");
|
|
46321
|
+
}
|
|
46322
|
+
yield downloadWithNpmPack(pkgName, pkgVersion, targetDir, {
|
|
46323
|
+
registryUrl,
|
|
46324
|
+
logger
|
|
46325
|
+
});
|
|
46285
46326
|
}
|
|
46327
|
+
});
|
|
46328
|
+
}
|
|
46329
|
+
function downloadWithNpmPack(pkgName, pkgVersion, targetDir, options) {
|
|
46330
|
+
return __async(this, null, function* () {
|
|
46331
|
+
const { registryUrl, logger } = options || {};
|
|
46286
46332
|
const randomId = Math.floor(Math.random() * 1e4);
|
|
46287
|
-
const
|
|
46288
|
-
|
|
46289
|
-
|
|
46290
|
-
|
|
46291
|
-
|
|
46292
|
-
|
|
46293
|
-
|
|
46294
|
-
|
|
46295
|
-
|
|
46333
|
+
const tempDir = `${import_os2.default.tmpdir()}/npm-pack-${randomId}`;
|
|
46334
|
+
yield import_fs_extra.default.mkdirp(tempDir);
|
|
46335
|
+
try {
|
|
46336
|
+
const params = [
|
|
46337
|
+
"pack",
|
|
46338
|
+
`${pkgName}@${pkgVersion}`
|
|
46339
|
+
];
|
|
46340
|
+
if (registryUrl) {
|
|
46341
|
+
params.push("--registry");
|
|
46342
|
+
params.push(registryUrl);
|
|
46343
|
+
}
|
|
46344
|
+
logger === null || logger === void 0 ? void 0 : logger.debug(`Executing npm pack: npm ${params.join(" ")}`);
|
|
46345
|
+
const { stdout } = yield (0, import_execa.default)("npm", params, {
|
|
46346
|
+
cwd: tempDir,
|
|
46347
|
+
env: __spreadProps(__spreadValues({}, process.env), {
|
|
46348
|
+
// Avoid npm workspace related issues
|
|
46349
|
+
npm_config_workspaces: "false"
|
|
46350
|
+
})
|
|
46296
46351
|
});
|
|
46297
|
-
|
|
46298
|
-
|
|
46299
|
-
|
|
46300
|
-
|
|
46301
|
-
|
|
46302
|
-
|
|
46303
|
-
|
|
46304
|
-
|
|
46305
|
-
|
|
46352
|
+
const tarballFileName = stdout.trim();
|
|
46353
|
+
const tarballPath = import_path5.default.join(tempDir, tarballFileName);
|
|
46354
|
+
if (!(yield fsExists(tarballPath))) {
|
|
46355
|
+
throw new Error(`npm pack failed: tarball file ${tarballPath} not found`);
|
|
46356
|
+
}
|
|
46357
|
+
yield new Promise((resolve, reject) => {
|
|
46358
|
+
import_fs_extra.default.createReadStream(tarballPath).pipe(import_tar.default.x({
|
|
46359
|
+
strip: 1,
|
|
46360
|
+
C: targetDir
|
|
46361
|
+
})).on("finish", () => {
|
|
46362
|
+
resolve();
|
|
46363
|
+
}).on("error", (err) => {
|
|
46364
|
+
reject(err);
|
|
46365
|
+
});
|
|
46306
46366
|
});
|
|
46307
|
-
}
|
|
46367
|
+
} finally {
|
|
46368
|
+
yield import_fs_extra.default.remove(tempDir);
|
|
46369
|
+
}
|
|
46308
46370
|
});
|
|
46309
46371
|
}
|
|
46310
46372
|
function downloadPackage(_0) {
|
|
@@ -46340,7 +46402,12 @@ function downloadPackage(_0) {
|
|
|
46340
46402
|
});
|
|
46341
46403
|
logger === null || logger === void 0 ? void 0 : logger.timing(`🕒 get ${pkgName}@${version2} tarball url`, true);
|
|
46342
46404
|
logger === null || logger === void 0 ? void 0 : logger.timing(`🕒 download ${pkgName}@${version2} tarball`);
|
|
46343
|
-
yield downloadAndDecompressTargz(tarballPkg, targetDir
|
|
46405
|
+
yield downloadAndDecompressTargz(tarballPkg, targetDir, {
|
|
46406
|
+
pkgName,
|
|
46407
|
+
pkgVersion: version2,
|
|
46408
|
+
registryUrl,
|
|
46409
|
+
logger
|
|
46410
|
+
});
|
|
46344
46411
|
logger === null || logger === void 0 ? void 0 : logger.timing(`🕒 download ${pkgName}@${version2} tarball`, true);
|
|
46345
46412
|
if (install) {
|
|
46346
46413
|
logger === null || logger === void 0 ? void 0 : logger.timing(`🕒 install ${pkgName}@${version2}`);
|
|
@@ -46356,7 +46423,7 @@ function downloadPackage(_0) {
|
|
|
46356
46423
|
});
|
|
46357
46424
|
}
|
|
46358
46425
|
|
|
46359
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
46426
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
|
|
46360
46427
|
function getPackageInfo(packageName) {
|
|
46361
46428
|
if (!packageName) {
|
|
46362
46429
|
throw new Error("package is not exisit");
|
|
@@ -46380,19 +46447,19 @@ function getPackageInfo(packageName) {
|
|
|
46380
46447
|
};
|
|
46381
46448
|
}
|
|
46382
46449
|
|
|
46383
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
46384
|
-
var
|
|
46450
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
|
|
46451
|
+
var import_path6 = __toESM(require("path"));
|
|
46385
46452
|
var MaxTimes = 5;
|
|
46386
46453
|
function getGeneratorDir(generator) {
|
|
46387
46454
|
return __async(this, null, function* () {
|
|
46388
46455
|
let result = generator;
|
|
46389
46456
|
const isDirectory = (yield import_fs_extra.default.stat(generator)).isDirectory();
|
|
46390
46457
|
if (!isDirectory) {
|
|
46391
|
-
result =
|
|
46458
|
+
result = import_path6.default.dirname(generator);
|
|
46392
46459
|
}
|
|
46393
46460
|
let times = 0;
|
|
46394
|
-
while (times < MaxTimes && !(yield fsExists(
|
|
46395
|
-
result =
|
|
46461
|
+
while (times < MaxTimes && !(yield fsExists(import_path6.default.join(result, "package.json")))) {
|
|
46462
|
+
result = import_path6.default.join(result, "../");
|
|
46396
46463
|
times++;
|
|
46397
46464
|
}
|
|
46398
46465
|
if (times >= MaxTimes) {
|
|
@@ -46402,7 +46469,7 @@ function getGeneratorDir(generator) {
|
|
|
46402
46469
|
});
|
|
46403
46470
|
}
|
|
46404
46471
|
|
|
46405
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
46472
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
|
|
46406
46473
|
var GeneratorCore = class {
|
|
46407
46474
|
get lifeCycleMethod() {
|
|
46408
46475
|
return {
|
|
@@ -46503,9 +46570,9 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
|
|
|
46503
46570
|
(_this_logger = this.logger) === null || _this_logger === void 0 ? void 0 : (_this_logger_timing = _this_logger.timing) === null || _this_logger_timing === void 0 ? void 0 : _this_logger_timing.call(_this_logger, `🕒 LoadGenerator ${generator}`);
|
|
46504
46571
|
let generatorPath = generator;
|
|
46505
46572
|
if (generator.startsWith("file:")) {
|
|
46506
|
-
generatorPath =
|
|
46573
|
+
generatorPath = import_path7.default.join(this.basePath, generator.slice(5));
|
|
46507
46574
|
}
|
|
46508
|
-
const loadGeneratorPromise =
|
|
46575
|
+
const loadGeneratorPromise = import_path7.default.isAbsolute(generatorPath) ? this.loadLocalGenerator(generatorPath) : this.loadRemoteGenerator(generator);
|
|
46509
46576
|
const { generatorPkg, pkgJson, materialKey } = yield loadGeneratorPromise;
|
|
46510
46577
|
if (!generatorPkg || !pkgJson || !materialKey) {
|
|
46511
46578
|
return {};
|
|
@@ -46564,7 +46631,7 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
|
|
|
46564
46631
|
const subContext = __spreadProps(__spreadValues({}, this._context), {
|
|
46565
46632
|
config: __spreadValues(__spreadValues({}, this._context.config), config),
|
|
46566
46633
|
materials: __spreadProps(__spreadValues({}, this._context.materials), {
|
|
46567
|
-
default: new FsMaterial(
|
|
46634
|
+
default: new FsMaterial(import_path7.default.resolve(this.outputPath, relativePwdPath))
|
|
46568
46635
|
}),
|
|
46569
46636
|
current: {
|
|
46570
46637
|
material: generatorPkg
|
|
@@ -46572,7 +46639,7 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
|
|
|
46572
46639
|
});
|
|
46573
46640
|
const preOutputPath = this.outputPath;
|
|
46574
46641
|
const preBasePath = this.basePath;
|
|
46575
|
-
this.setOutputPath(
|
|
46642
|
+
this.setOutputPath(import_path7.default.resolve(this.outputPath, relativePwdPath || ""));
|
|
46576
46643
|
this.setbasePath(subContext.current.material.basePath);
|
|
46577
46644
|
spinner.stop();
|
|
46578
46645
|
yield generatorScript(subContext, this);
|
|
@@ -46598,8 +46665,8 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
|
|
|
46598
46665
|
constructor({ logger, materialsManager, outputPath }) {
|
|
46599
46666
|
this.output = {
|
|
46600
46667
|
fs: (file, content, options) => __async(this, null, function* () {
|
|
46601
|
-
const filePath =
|
|
46602
|
-
yield import_fs_extra.default.mkdirp(
|
|
46668
|
+
const filePath = import_path7.default.resolve(this.outputPath, file.toString());
|
|
46669
|
+
yield import_fs_extra.default.mkdirp(import_path7.default.dirname(filePath));
|
|
46603
46670
|
yield import_fs_extra.default.writeFile(filePath, content, options);
|
|
46604
46671
|
})
|
|
46605
46672
|
};
|
|
@@ -46618,11 +46685,11 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
|
|
|
46618
46685
|
}
|
|
46619
46686
|
};
|
|
46620
46687
|
|
|
46621
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
46622
|
-
var
|
|
46688
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
|
|
46689
|
+
var import_path8 = __toESM(require("path"));
|
|
46623
46690
|
var MaterialsManager = class {
|
|
46624
46691
|
loadLocalGenerator(generator) {
|
|
46625
|
-
if (!
|
|
46692
|
+
if (!import_path8.default.isAbsolute(generator)) {
|
|
46626
46693
|
return Promise.reject(new Error("only support absolute local path"));
|
|
46627
46694
|
}
|
|
46628
46695
|
const fsMaterial = new FsMaterial(generator);
|
|
@@ -46684,7 +46751,7 @@ var MaterialsManager = class {
|
|
|
46684
46751
|
}
|
|
46685
46752
|
};
|
|
46686
46753
|
|
|
46687
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
46754
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
|
|
46688
46755
|
var CodeSmith = class {
|
|
46689
46756
|
forge(_0) {
|
|
46690
46757
|
return __async(this, arguments, function* ({ tasks, pwd }) {
|
|
@@ -46695,7 +46762,7 @@ var CodeSmith = class {
|
|
|
46695
46762
|
materialsManager: this.materialsManager,
|
|
46696
46763
|
outputPath: pwd || process.cwd()
|
|
46697
46764
|
});
|
|
46698
|
-
this.core.addMaterial("default", new FsMaterial(
|
|
46765
|
+
this.core.addMaterial("default", new FsMaterial(import_path9.default.resolve(pwd || process.cwd())));
|
|
46699
46766
|
try {
|
|
46700
46767
|
for (const task of tasks) {
|
|
46701
46768
|
yield this.runTask(task);
|
|
@@ -46744,10 +46811,10 @@ var CodeSmith = class {
|
|
|
46744
46811
|
};
|
|
46745
46812
|
|
|
46746
46813
|
// package.json
|
|
46747
|
-
var version = "2.67.
|
|
46814
|
+
var version = "2.67.8";
|
|
46748
46815
|
|
|
46749
46816
|
// src/utils/index.ts
|
|
46750
|
-
var
|
|
46817
|
+
var import_path10 = __toESM(require("path"));
|
|
46751
46818
|
function isEmptyDir(dirname) {
|
|
46752
46819
|
try {
|
|
46753
46820
|
const files = import_fs_extra.default.readdirSync(dirname);
|
|
@@ -46757,7 +46824,7 @@ function isEmptyDir(dirname) {
|
|
|
46757
46824
|
}
|
|
46758
46825
|
}
|
|
46759
46826
|
function createDir(dirname, pwd) {
|
|
46760
|
-
const createPath =
|
|
46827
|
+
const createPath = import_path10.default.resolve(pwd, dirname);
|
|
46761
46828
|
if (import_fs_extra.default.existsSync(createPath) && !isEmptyDir(createPath)) {
|
|
46762
46829
|
throw new Error(`directory '${dirname}' already exists`);
|
|
46763
46830
|
}
|
|
@@ -46767,7 +46834,7 @@ function createDir(dirname, pwd) {
|
|
|
46767
46834
|
|
|
46768
46835
|
// src/createAction.ts
|
|
46769
46836
|
var MWA_GENERATOR = "@modern-js/mwa-generator";
|
|
46770
|
-
function getDefaultConfig(projectDir =
|
|
46837
|
+
function getDefaultConfig(projectDir = import_path11.default.basename(process.cwd()), options = {}, logger) {
|
|
46771
46838
|
const { mwa, config, packages, registry, distTag, needInstall, lang } = options;
|
|
46772
46839
|
let initialConfig = {};
|
|
46773
46840
|
try {
|
|
@@ -46855,7 +46922,7 @@ function createAction(projectDir, options) {
|
|
|
46855
46922
|
let generator = MWA_GENERATOR;
|
|
46856
46923
|
if (process.env.CODESMITH_ENV === "development" && generator === MWA_GENERATOR) {
|
|
46857
46924
|
generator = require.resolve(MWA_GENERATOR);
|
|
46858
|
-
} else if (!
|
|
46925
|
+
} else if (!import_path11.default.isAbsolute(generator) && distTag) {
|
|
46859
46926
|
generator = `${generator}@${distTag}`;
|
|
46860
46927
|
yield prepareGeneratorPromise;
|
|
46861
46928
|
}
|