pnpm 11.7.0 → 11.8.0
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/README.md +32 -21
- package/dist/pnpm.mjs +7810 -7034
- package/dist/worker.js +341 -271
- package/package.json +1 -1
package/dist/worker.js
CHANGED
|
@@ -87,14 +87,14 @@ var require_polyfills = __commonJS({
|
|
|
87
87
|
fs13.fstatSync = statFixSync(fs13.fstatSync);
|
|
88
88
|
fs13.lstatSync = statFixSync(fs13.lstatSync);
|
|
89
89
|
if (fs13.chmod && !fs13.lchmod) {
|
|
90
|
-
fs13.lchmod = function(
|
|
90
|
+
fs13.lchmod = function(path18, mode, cb) {
|
|
91
91
|
if (cb) process.nextTick(cb);
|
|
92
92
|
};
|
|
93
93
|
fs13.lchmodSync = function() {
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
if (fs13.chown && !fs13.lchown) {
|
|
97
|
-
fs13.lchown = function(
|
|
97
|
+
fs13.lchown = function(path18, uid, gid, cb) {
|
|
98
98
|
if (cb) process.nextTick(cb);
|
|
99
99
|
};
|
|
100
100
|
fs13.lchownSync = function() {
|
|
@@ -161,9 +161,9 @@ var require_polyfills = __commonJS({
|
|
|
161
161
|
};
|
|
162
162
|
})(fs13.readSync);
|
|
163
163
|
function patchLchmod(fs14) {
|
|
164
|
-
fs14.lchmod = function(
|
|
164
|
+
fs14.lchmod = function(path18, mode, callback) {
|
|
165
165
|
fs14.open(
|
|
166
|
-
|
|
166
|
+
path18,
|
|
167
167
|
constants2.O_WRONLY | constants2.O_SYMLINK,
|
|
168
168
|
mode,
|
|
169
169
|
function(err, fd) {
|
|
@@ -179,8 +179,8 @@ var require_polyfills = __commonJS({
|
|
|
179
179
|
}
|
|
180
180
|
);
|
|
181
181
|
};
|
|
182
|
-
fs14.lchmodSync = function(
|
|
183
|
-
var fd = fs14.openSync(
|
|
182
|
+
fs14.lchmodSync = function(path18, mode) {
|
|
183
|
+
var fd = fs14.openSync(path18, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
|
|
184
184
|
var threw = true;
|
|
185
185
|
var ret;
|
|
186
186
|
try {
|
|
@@ -201,8 +201,8 @@ var require_polyfills = __commonJS({
|
|
|
201
201
|
}
|
|
202
202
|
function patchLutimes(fs14) {
|
|
203
203
|
if (constants2.hasOwnProperty("O_SYMLINK") && fs14.futimes) {
|
|
204
|
-
fs14.lutimes = function(
|
|
205
|
-
fs14.open(
|
|
204
|
+
fs14.lutimes = function(path18, at, mt, cb) {
|
|
205
|
+
fs14.open(path18, constants2.O_SYMLINK, function(er, fd) {
|
|
206
206
|
if (er) {
|
|
207
207
|
if (cb) cb(er);
|
|
208
208
|
return;
|
|
@@ -214,8 +214,8 @@ var require_polyfills = __commonJS({
|
|
|
214
214
|
});
|
|
215
215
|
});
|
|
216
216
|
};
|
|
217
|
-
fs14.lutimesSync = function(
|
|
218
|
-
var fd = fs14.openSync(
|
|
217
|
+
fs14.lutimesSync = function(path18, at, mt) {
|
|
218
|
+
var fd = fs14.openSync(path18, constants2.O_SYMLINK);
|
|
219
219
|
var ret;
|
|
220
220
|
var threw = true;
|
|
221
221
|
try {
|
|
@@ -333,11 +333,11 @@ var require_legacy_streams = __commonJS({
|
|
|
333
333
|
ReadStream,
|
|
334
334
|
WriteStream
|
|
335
335
|
};
|
|
336
|
-
function ReadStream(
|
|
337
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
336
|
+
function ReadStream(path18, options) {
|
|
337
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path18, options);
|
|
338
338
|
Stream.call(this);
|
|
339
339
|
var self2 = this;
|
|
340
|
-
this.path =
|
|
340
|
+
this.path = path18;
|
|
341
341
|
this.fd = null;
|
|
342
342
|
this.readable = true;
|
|
343
343
|
this.paused = false;
|
|
@@ -382,10 +382,10 @@ var require_legacy_streams = __commonJS({
|
|
|
382
382
|
self2._read();
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
|
-
function WriteStream(
|
|
386
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
385
|
+
function WriteStream(path18, options) {
|
|
386
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path18, options);
|
|
387
387
|
Stream.call(this);
|
|
388
|
-
this.path =
|
|
388
|
+
this.path = path18;
|
|
389
389
|
this.fd = null;
|
|
390
390
|
this.writable = true;
|
|
391
391
|
this.flags = "w";
|
|
@@ -528,14 +528,14 @@ var require_graceful_fs = __commonJS({
|
|
|
528
528
|
fs14.createWriteStream = createWriteStream;
|
|
529
529
|
var fs$readFile = fs14.readFile;
|
|
530
530
|
fs14.readFile = readFile;
|
|
531
|
-
function readFile(
|
|
531
|
+
function readFile(path18, options, cb) {
|
|
532
532
|
if (typeof options === "function")
|
|
533
533
|
cb = options, options = null;
|
|
534
|
-
return go$readFile(
|
|
535
|
-
function go$readFile(
|
|
536
|
-
return fs$readFile(
|
|
534
|
+
return go$readFile(path18, options, cb);
|
|
535
|
+
function go$readFile(path19, options2, cb2, startTime) {
|
|
536
|
+
return fs$readFile(path19, options2, function(err) {
|
|
537
537
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
538
|
-
enqueue([go$readFile, [
|
|
538
|
+
enqueue([go$readFile, [path19, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
539
539
|
else {
|
|
540
540
|
if (typeof cb2 === "function")
|
|
541
541
|
cb2.apply(this, arguments);
|
|
@@ -545,14 +545,14 @@ var require_graceful_fs = __commonJS({
|
|
|
545
545
|
}
|
|
546
546
|
var fs$writeFile = fs14.writeFile;
|
|
547
547
|
fs14.writeFile = writeFile2;
|
|
548
|
-
function writeFile2(
|
|
548
|
+
function writeFile2(path18, data, options, cb) {
|
|
549
549
|
if (typeof options === "function")
|
|
550
550
|
cb = options, options = null;
|
|
551
|
-
return go$writeFile(
|
|
552
|
-
function go$writeFile(
|
|
553
|
-
return fs$writeFile(
|
|
551
|
+
return go$writeFile(path18, data, options, cb);
|
|
552
|
+
function go$writeFile(path19, data2, options2, cb2, startTime) {
|
|
553
|
+
return fs$writeFile(path19, data2, options2, function(err) {
|
|
554
554
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
555
|
-
enqueue([go$writeFile, [
|
|
555
|
+
enqueue([go$writeFile, [path19, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
556
556
|
else {
|
|
557
557
|
if (typeof cb2 === "function")
|
|
558
558
|
cb2.apply(this, arguments);
|
|
@@ -563,14 +563,14 @@ var require_graceful_fs = __commonJS({
|
|
|
563
563
|
var fs$appendFile = fs14.appendFile;
|
|
564
564
|
if (fs$appendFile)
|
|
565
565
|
fs14.appendFile = appendFile;
|
|
566
|
-
function appendFile(
|
|
566
|
+
function appendFile(path18, data, options, cb) {
|
|
567
567
|
if (typeof options === "function")
|
|
568
568
|
cb = options, options = null;
|
|
569
|
-
return go$appendFile(
|
|
570
|
-
function go$appendFile(
|
|
571
|
-
return fs$appendFile(
|
|
569
|
+
return go$appendFile(path18, data, options, cb);
|
|
570
|
+
function go$appendFile(path19, data2, options2, cb2, startTime) {
|
|
571
|
+
return fs$appendFile(path19, data2, options2, function(err) {
|
|
572
572
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
573
|
-
enqueue([go$appendFile, [
|
|
573
|
+
enqueue([go$appendFile, [path19, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
574
574
|
else {
|
|
575
575
|
if (typeof cb2 === "function")
|
|
576
576
|
cb2.apply(this, arguments);
|
|
@@ -601,31 +601,31 @@ var require_graceful_fs = __commonJS({
|
|
|
601
601
|
var fs$readdir = fs14.readdir;
|
|
602
602
|
fs14.readdir = readdir;
|
|
603
603
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
604
|
-
function readdir(
|
|
604
|
+
function readdir(path18, options, cb) {
|
|
605
605
|
if (typeof options === "function")
|
|
606
606
|
cb = options, options = null;
|
|
607
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
608
|
-
return fs$readdir(
|
|
609
|
-
|
|
607
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path19, options2, cb2, startTime) {
|
|
608
|
+
return fs$readdir(path19, fs$readdirCallback(
|
|
609
|
+
path19,
|
|
610
610
|
options2,
|
|
611
611
|
cb2,
|
|
612
612
|
startTime
|
|
613
613
|
));
|
|
614
|
-
} : function go$readdir2(
|
|
615
|
-
return fs$readdir(
|
|
616
|
-
|
|
614
|
+
} : function go$readdir2(path19, options2, cb2, startTime) {
|
|
615
|
+
return fs$readdir(path19, options2, fs$readdirCallback(
|
|
616
|
+
path19,
|
|
617
617
|
options2,
|
|
618
618
|
cb2,
|
|
619
619
|
startTime
|
|
620
620
|
));
|
|
621
621
|
};
|
|
622
|
-
return go$readdir(
|
|
623
|
-
function fs$readdirCallback(
|
|
622
|
+
return go$readdir(path18, options, cb);
|
|
623
|
+
function fs$readdirCallback(path19, options2, cb2, startTime) {
|
|
624
624
|
return function(err, files) {
|
|
625
625
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
626
626
|
enqueue([
|
|
627
627
|
go$readdir,
|
|
628
|
-
[
|
|
628
|
+
[path19, options2, cb2],
|
|
629
629
|
err,
|
|
630
630
|
startTime || Date.now(),
|
|
631
631
|
Date.now()
|
|
@@ -696,7 +696,7 @@ var require_graceful_fs = __commonJS({
|
|
|
696
696
|
enumerable: true,
|
|
697
697
|
configurable: true
|
|
698
698
|
});
|
|
699
|
-
function ReadStream(
|
|
699
|
+
function ReadStream(path18, options) {
|
|
700
700
|
if (this instanceof ReadStream)
|
|
701
701
|
return fs$ReadStream.apply(this, arguments), this;
|
|
702
702
|
else
|
|
@@ -716,7 +716,7 @@ var require_graceful_fs = __commonJS({
|
|
|
716
716
|
}
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
|
-
function WriteStream(
|
|
719
|
+
function WriteStream(path18, options) {
|
|
720
720
|
if (this instanceof WriteStream)
|
|
721
721
|
return fs$WriteStream.apply(this, arguments), this;
|
|
722
722
|
else
|
|
@@ -734,22 +734,22 @@ var require_graceful_fs = __commonJS({
|
|
|
734
734
|
}
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
|
-
function createReadStream(
|
|
738
|
-
return new fs14.ReadStream(
|
|
737
|
+
function createReadStream(path18, options) {
|
|
738
|
+
return new fs14.ReadStream(path18, options);
|
|
739
739
|
}
|
|
740
|
-
function createWriteStream(
|
|
741
|
-
return new fs14.WriteStream(
|
|
740
|
+
function createWriteStream(path18, options) {
|
|
741
|
+
return new fs14.WriteStream(path18, options);
|
|
742
742
|
}
|
|
743
743
|
var fs$open = fs14.open;
|
|
744
744
|
fs14.open = open;
|
|
745
|
-
function open(
|
|
745
|
+
function open(path18, flags, mode, cb) {
|
|
746
746
|
if (typeof mode === "function")
|
|
747
747
|
cb = mode, mode = null;
|
|
748
|
-
return go$open(
|
|
749
|
-
function go$open(
|
|
750
|
-
return fs$open(
|
|
748
|
+
return go$open(path18, flags, mode, cb);
|
|
749
|
+
function go$open(path19, flags2, mode2, cb2, startTime) {
|
|
750
|
+
return fs$open(path19, flags2, mode2, function(err, fd) {
|
|
751
751
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
752
|
-
enqueue([go$open, [
|
|
752
|
+
enqueue([go$open, [path19, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
753
753
|
else {
|
|
754
754
|
if (typeof cb2 === "function")
|
|
755
755
|
cb2.apply(this, arguments);
|
|
@@ -1530,10 +1530,10 @@ var require_fs = __commonJS({
|
|
|
1530
1530
|
var require_utils = __commonJS({
|
|
1531
1531
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
|
|
1532
1532
|
"use strict";
|
|
1533
|
-
var
|
|
1533
|
+
var path18 = __require("path");
|
|
1534
1534
|
module.exports.checkPath = function checkPath(pth) {
|
|
1535
1535
|
if (process.platform === "win32") {
|
|
1536
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
1536
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path18.parse(pth).root, ""));
|
|
1537
1537
|
if (pathHasInvalidWinCharacters) {
|
|
1538
1538
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
1539
1539
|
error.code = "EINVAL";
|
|
@@ -1597,8 +1597,8 @@ var require_path_exists = __commonJS({
|
|
|
1597
1597
|
"use strict";
|
|
1598
1598
|
var u = require_universalify().fromPromise;
|
|
1599
1599
|
var fs13 = require_fs();
|
|
1600
|
-
function pathExists(
|
|
1601
|
-
return fs13.access(
|
|
1600
|
+
function pathExists(path18) {
|
|
1601
|
+
return fs13.access(path18).then(() => true).catch(() => false);
|
|
1602
1602
|
}
|
|
1603
1603
|
module.exports = {
|
|
1604
1604
|
pathExists: u(pathExists),
|
|
@@ -1613,8 +1613,8 @@ var require_utimes = __commonJS({
|
|
|
1613
1613
|
"use strict";
|
|
1614
1614
|
var fs13 = require_fs();
|
|
1615
1615
|
var u = require_universalify().fromPromise;
|
|
1616
|
-
async function utimesMillis(
|
|
1617
|
-
const fd = await fs13.open(
|
|
1616
|
+
async function utimesMillis(path18, atime, mtime) {
|
|
1617
|
+
const fd = await fs13.open(path18, "r+");
|
|
1618
1618
|
let closeErr = null;
|
|
1619
1619
|
try {
|
|
1620
1620
|
await fs13.futimes(fd, atime, mtime);
|
|
@@ -1629,8 +1629,8 @@ var require_utimes = __commonJS({
|
|
|
1629
1629
|
throw closeErr;
|
|
1630
1630
|
}
|
|
1631
1631
|
}
|
|
1632
|
-
function utimesMillisSync(
|
|
1633
|
-
const fd = fs13.openSync(
|
|
1632
|
+
function utimesMillisSync(path18, atime, mtime) {
|
|
1633
|
+
const fd = fs13.openSync(path18, "r+");
|
|
1634
1634
|
fs13.futimesSync(fd, atime, mtime);
|
|
1635
1635
|
return fs13.closeSync(fd);
|
|
1636
1636
|
}
|
|
@@ -1646,7 +1646,7 @@ var require_stat = __commonJS({
|
|
|
1646
1646
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/util/stat.js"(exports, module) {
|
|
1647
1647
|
"use strict";
|
|
1648
1648
|
var fs13 = require_fs();
|
|
1649
|
-
var
|
|
1649
|
+
var path18 = __require("path");
|
|
1650
1650
|
var u = require_universalify().fromPromise;
|
|
1651
1651
|
function getStats(src2, dest, opts2) {
|
|
1652
1652
|
const statFunc = opts2.dereference ? (file) => fs13.stat(file, { bigint: true }) : (file) => fs13.lstat(file, { bigint: true });
|
|
@@ -1674,8 +1674,8 @@ var require_stat = __commonJS({
|
|
|
1674
1674
|
const { srcStat, destStat } = await getStats(src2, dest, opts2);
|
|
1675
1675
|
if (destStat) {
|
|
1676
1676
|
if (areIdentical(srcStat, destStat)) {
|
|
1677
|
-
const srcBaseName =
|
|
1678
|
-
const destBaseName =
|
|
1677
|
+
const srcBaseName = path18.basename(src2);
|
|
1678
|
+
const destBaseName = path18.basename(dest);
|
|
1679
1679
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1680
1680
|
return { srcStat, destStat, isChangingCase: true };
|
|
1681
1681
|
}
|
|
@@ -1697,8 +1697,8 @@ var require_stat = __commonJS({
|
|
|
1697
1697
|
const { srcStat, destStat } = getStatsSync(src2, dest, opts2);
|
|
1698
1698
|
if (destStat) {
|
|
1699
1699
|
if (areIdentical(srcStat, destStat)) {
|
|
1700
|
-
const srcBaseName =
|
|
1701
|
-
const destBaseName =
|
|
1700
|
+
const srcBaseName = path18.basename(src2);
|
|
1701
|
+
const destBaseName = path18.basename(dest);
|
|
1702
1702
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1703
1703
|
return { srcStat, destStat, isChangingCase: true };
|
|
1704
1704
|
}
|
|
@@ -1717,9 +1717,9 @@ var require_stat = __commonJS({
|
|
|
1717
1717
|
return { srcStat, destStat };
|
|
1718
1718
|
}
|
|
1719
1719
|
async function checkParentPaths(src2, srcStat, dest, funcName) {
|
|
1720
|
-
const srcParent =
|
|
1721
|
-
const destParent =
|
|
1722
|
-
if (destParent === srcParent || destParent ===
|
|
1720
|
+
const srcParent = path18.resolve(path18.dirname(src2));
|
|
1721
|
+
const destParent = path18.resolve(path18.dirname(dest));
|
|
1722
|
+
if (destParent === srcParent || destParent === path18.parse(destParent).root) return;
|
|
1723
1723
|
let destStat;
|
|
1724
1724
|
try {
|
|
1725
1725
|
destStat = await fs13.stat(destParent, { bigint: true });
|
|
@@ -1733,9 +1733,9 @@ var require_stat = __commonJS({
|
|
|
1733
1733
|
return checkParentPaths(src2, srcStat, destParent, funcName);
|
|
1734
1734
|
}
|
|
1735
1735
|
function checkParentPathsSync(src2, srcStat, dest, funcName) {
|
|
1736
|
-
const srcParent =
|
|
1737
|
-
const destParent =
|
|
1738
|
-
if (destParent === srcParent || destParent ===
|
|
1736
|
+
const srcParent = path18.resolve(path18.dirname(src2));
|
|
1737
|
+
const destParent = path18.resolve(path18.dirname(dest));
|
|
1738
|
+
if (destParent === srcParent || destParent === path18.parse(destParent).root) return;
|
|
1739
1739
|
let destStat;
|
|
1740
1740
|
try {
|
|
1741
1741
|
destStat = fs13.statSync(destParent, { bigint: true });
|
|
@@ -1752,8 +1752,8 @@ var require_stat = __commonJS({
|
|
|
1752
1752
|
return destStat.ino !== void 0 && destStat.dev !== void 0 && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
1753
1753
|
}
|
|
1754
1754
|
function isSrcSubdir(src2, dest) {
|
|
1755
|
-
const srcArr =
|
|
1756
|
-
const destArr =
|
|
1755
|
+
const srcArr = path18.resolve(src2).split(path18.sep).filter((i) => i);
|
|
1756
|
+
const destArr = path18.resolve(dest).split(path18.sep).filter((i) => i);
|
|
1757
1757
|
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
1758
1758
|
}
|
|
1759
1759
|
function errMsg(src2, dest, funcName) {
|
|
@@ -1806,7 +1806,7 @@ var require_copy = __commonJS({
|
|
|
1806
1806
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
|
|
1807
1807
|
"use strict";
|
|
1808
1808
|
var fs13 = require_fs();
|
|
1809
|
-
var
|
|
1809
|
+
var path18 = __require("path");
|
|
1810
1810
|
var { mkdirs } = require_mkdirs();
|
|
1811
1811
|
var { pathExists } = require_path_exists();
|
|
1812
1812
|
var { utimesMillis } = require_utimes();
|
|
@@ -1829,7 +1829,7 @@ var require_copy = __commonJS({
|
|
|
1829
1829
|
await stat.checkParentPaths(src2, srcStat, dest, "copy");
|
|
1830
1830
|
const include = await runFilter(src2, dest, opts2);
|
|
1831
1831
|
if (!include) return;
|
|
1832
|
-
const destParent =
|
|
1832
|
+
const destParent = path18.dirname(dest);
|
|
1833
1833
|
const dirExists = await pathExists(destParent);
|
|
1834
1834
|
if (!dirExists) {
|
|
1835
1835
|
await mkdirs(destParent);
|
|
@@ -1882,8 +1882,8 @@ var require_copy = __commonJS({
|
|
|
1882
1882
|
await fs13.mkdir(dest);
|
|
1883
1883
|
}
|
|
1884
1884
|
await asyncIteratorConcurrentProcess(await fs13.opendir(src2), async (item) => {
|
|
1885
|
-
const srcItem =
|
|
1886
|
-
const destItem =
|
|
1885
|
+
const srcItem = path18.join(src2, item.name);
|
|
1886
|
+
const destItem = path18.join(dest, item.name);
|
|
1887
1887
|
const include = await runFilter(srcItem, destItem, opts2);
|
|
1888
1888
|
if (include) {
|
|
1889
1889
|
const { destStat: destStat2 } = await stat.checkPaths(srcItem, destItem, "copy", opts2);
|
|
@@ -1897,7 +1897,7 @@ var require_copy = __commonJS({
|
|
|
1897
1897
|
async function onLink(destStat, src2, dest, opts2) {
|
|
1898
1898
|
let resolvedSrc = await fs13.readlink(src2);
|
|
1899
1899
|
if (opts2.dereference) {
|
|
1900
|
-
resolvedSrc =
|
|
1900
|
+
resolvedSrc = path18.resolve(process.cwd(), resolvedSrc);
|
|
1901
1901
|
}
|
|
1902
1902
|
if (!destStat) {
|
|
1903
1903
|
return fs13.symlink(resolvedSrc, dest);
|
|
@@ -1910,7 +1910,7 @@ var require_copy = __commonJS({
|
|
|
1910
1910
|
throw e;
|
|
1911
1911
|
}
|
|
1912
1912
|
if (opts2.dereference) {
|
|
1913
|
-
resolvedDest =
|
|
1913
|
+
resolvedDest = path18.resolve(process.cwd(), resolvedDest);
|
|
1914
1914
|
}
|
|
1915
1915
|
if (resolvedSrc !== resolvedDest) {
|
|
1916
1916
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
@@ -1932,7 +1932,7 @@ var require_copy_sync = __commonJS({
|
|
|
1932
1932
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module) {
|
|
1933
1933
|
"use strict";
|
|
1934
1934
|
var fs13 = require_graceful_fs();
|
|
1935
|
-
var
|
|
1935
|
+
var path18 = __require("path");
|
|
1936
1936
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
1937
1937
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
1938
1938
|
var stat = require_stat();
|
|
@@ -1953,7 +1953,7 @@ var require_copy_sync = __commonJS({
|
|
|
1953
1953
|
const { srcStat, destStat } = stat.checkPathsSync(src2, dest, "copy", opts2);
|
|
1954
1954
|
stat.checkParentPathsSync(src2, srcStat, dest, "copy");
|
|
1955
1955
|
if (opts2.filter && !opts2.filter(src2, dest)) return;
|
|
1956
|
-
const destParent =
|
|
1956
|
+
const destParent = path18.dirname(dest);
|
|
1957
1957
|
if (!fs13.existsSync(destParent)) mkdirsSync(destParent);
|
|
1958
1958
|
return getStats(destStat, src2, dest, opts2);
|
|
1959
1959
|
}
|
|
@@ -2022,8 +2022,8 @@ var require_copy_sync = __commonJS({
|
|
|
2022
2022
|
}
|
|
2023
2023
|
}
|
|
2024
2024
|
function copyDirItem(item, src2, dest, opts2) {
|
|
2025
|
-
const srcItem =
|
|
2026
|
-
const destItem =
|
|
2025
|
+
const srcItem = path18.join(src2, item);
|
|
2026
|
+
const destItem = path18.join(dest, item);
|
|
2027
2027
|
if (opts2.filter && !opts2.filter(srcItem, destItem)) return;
|
|
2028
2028
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts2);
|
|
2029
2029
|
return getStats(destStat, srcItem, destItem, opts2);
|
|
@@ -2031,7 +2031,7 @@ var require_copy_sync = __commonJS({
|
|
|
2031
2031
|
function onLink(destStat, src2, dest, opts2) {
|
|
2032
2032
|
let resolvedSrc = fs13.readlinkSync(src2);
|
|
2033
2033
|
if (opts2.dereference) {
|
|
2034
|
-
resolvedSrc =
|
|
2034
|
+
resolvedSrc = path18.resolve(process.cwd(), resolvedSrc);
|
|
2035
2035
|
}
|
|
2036
2036
|
if (!destStat) {
|
|
2037
2037
|
return fs13.symlinkSync(resolvedSrc, dest);
|
|
@@ -2044,7 +2044,7 @@ var require_copy_sync = __commonJS({
|
|
|
2044
2044
|
throw err;
|
|
2045
2045
|
}
|
|
2046
2046
|
if (opts2.dereference) {
|
|
2047
|
-
resolvedDest =
|
|
2047
|
+
resolvedDest = path18.resolve(process.cwd(), resolvedDest);
|
|
2048
2048
|
}
|
|
2049
2049
|
if (resolvedSrc !== resolvedDest) {
|
|
2050
2050
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
@@ -2083,11 +2083,11 @@ var require_remove = __commonJS({
|
|
|
2083
2083
|
"use strict";
|
|
2084
2084
|
var fs13 = require_graceful_fs();
|
|
2085
2085
|
var u = require_universalify().fromCallback;
|
|
2086
|
-
function remove(
|
|
2087
|
-
fs13.rm(
|
|
2086
|
+
function remove(path18, callback) {
|
|
2087
|
+
fs13.rm(path18, { recursive: true, force: true }, callback);
|
|
2088
2088
|
}
|
|
2089
|
-
function removeSync(
|
|
2090
|
-
fs13.rmSync(
|
|
2089
|
+
function removeSync(path18) {
|
|
2090
|
+
fs13.rmSync(path18, { recursive: true, force: true });
|
|
2091
2091
|
}
|
|
2092
2092
|
module.exports = {
|
|
2093
2093
|
remove: u(remove),
|
|
@@ -2102,7 +2102,7 @@ var require_empty = __commonJS({
|
|
|
2102
2102
|
"use strict";
|
|
2103
2103
|
var u = require_universalify().fromPromise;
|
|
2104
2104
|
var fs13 = require_fs();
|
|
2105
|
-
var
|
|
2105
|
+
var path18 = __require("path");
|
|
2106
2106
|
var mkdir = require_mkdirs();
|
|
2107
2107
|
var remove = require_remove();
|
|
2108
2108
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -2112,7 +2112,7 @@ var require_empty = __commonJS({
|
|
|
2112
2112
|
} catch {
|
|
2113
2113
|
return mkdir.mkdirs(dir);
|
|
2114
2114
|
}
|
|
2115
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
2115
|
+
return Promise.all(items.map((item) => remove.remove(path18.join(dir, item))));
|
|
2116
2116
|
});
|
|
2117
2117
|
function emptyDirSync(dir) {
|
|
2118
2118
|
let items;
|
|
@@ -2122,7 +2122,7 @@ var require_empty = __commonJS({
|
|
|
2122
2122
|
return mkdir.mkdirsSync(dir);
|
|
2123
2123
|
}
|
|
2124
2124
|
items.forEach((item) => {
|
|
2125
|
-
item =
|
|
2125
|
+
item = path18.join(dir, item);
|
|
2126
2126
|
remove.removeSync(item);
|
|
2127
2127
|
});
|
|
2128
2128
|
}
|
|
@@ -2140,7 +2140,7 @@ var require_file = __commonJS({
|
|
|
2140
2140
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/ensure/file.js"(exports, module) {
|
|
2141
2141
|
"use strict";
|
|
2142
2142
|
var u = require_universalify().fromPromise;
|
|
2143
|
-
var
|
|
2143
|
+
var path18 = __require("path");
|
|
2144
2144
|
var fs13 = require_fs();
|
|
2145
2145
|
var mkdir = require_mkdirs();
|
|
2146
2146
|
async function createFile(file) {
|
|
@@ -2150,7 +2150,7 @@ var require_file = __commonJS({
|
|
|
2150
2150
|
} catch {
|
|
2151
2151
|
}
|
|
2152
2152
|
if (stats && stats.isFile()) return;
|
|
2153
|
-
const dir =
|
|
2153
|
+
const dir = path18.dirname(file);
|
|
2154
2154
|
let dirStats = null;
|
|
2155
2155
|
try {
|
|
2156
2156
|
dirStats = await fs13.stat(dir);
|
|
@@ -2176,7 +2176,7 @@ var require_file = __commonJS({
|
|
|
2176
2176
|
} catch {
|
|
2177
2177
|
}
|
|
2178
2178
|
if (stats && stats.isFile()) return;
|
|
2179
|
-
const dir =
|
|
2179
|
+
const dir = path18.dirname(file);
|
|
2180
2180
|
try {
|
|
2181
2181
|
if (!fs13.statSync(dir).isDirectory()) {
|
|
2182
2182
|
fs13.readdirSync(dir);
|
|
@@ -2199,7 +2199,7 @@ var require_link = __commonJS({
|
|
|
2199
2199
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/ensure/link.js"(exports, module) {
|
|
2200
2200
|
"use strict";
|
|
2201
2201
|
var u = require_universalify().fromPromise;
|
|
2202
|
-
var
|
|
2202
|
+
var path18 = __require("path");
|
|
2203
2203
|
var fs13 = require_fs();
|
|
2204
2204
|
var mkdir = require_mkdirs();
|
|
2205
2205
|
var { pathExists } = require_path_exists();
|
|
@@ -2218,7 +2218,7 @@ var require_link = __commonJS({
|
|
|
2218
2218
|
throw err;
|
|
2219
2219
|
}
|
|
2220
2220
|
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
2221
|
-
const dir =
|
|
2221
|
+
const dir = path18.dirname(dstpath);
|
|
2222
2222
|
const dirExists = await pathExists(dir);
|
|
2223
2223
|
if (!dirExists) {
|
|
2224
2224
|
await mkdir.mkdirs(dir);
|
|
@@ -2238,7 +2238,7 @@ var require_link = __commonJS({
|
|
|
2238
2238
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
2239
2239
|
throw err;
|
|
2240
2240
|
}
|
|
2241
|
-
const dir =
|
|
2241
|
+
const dir = path18.dirname(dstpath);
|
|
2242
2242
|
const dirExists = fs13.existsSync(dir);
|
|
2243
2243
|
if (dirExists) return fs13.linkSync(srcpath, dstpath);
|
|
2244
2244
|
mkdir.mkdirsSync(dir);
|
|
@@ -2255,12 +2255,12 @@ var require_link = __commonJS({
|
|
|
2255
2255
|
var require_symlink_paths = __commonJS({
|
|
2256
2256
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
|
|
2257
2257
|
"use strict";
|
|
2258
|
-
var
|
|
2258
|
+
var path18 = __require("path");
|
|
2259
2259
|
var fs13 = require_fs();
|
|
2260
2260
|
var { pathExists } = require_path_exists();
|
|
2261
2261
|
var u = require_universalify().fromPromise;
|
|
2262
2262
|
async function symlinkPaths(srcpath, dstpath) {
|
|
2263
|
-
if (
|
|
2263
|
+
if (path18.isAbsolute(srcpath)) {
|
|
2264
2264
|
try {
|
|
2265
2265
|
await fs13.lstat(srcpath);
|
|
2266
2266
|
} catch (err) {
|
|
@@ -2272,8 +2272,8 @@ var require_symlink_paths = __commonJS({
|
|
|
2272
2272
|
toDst: srcpath
|
|
2273
2273
|
};
|
|
2274
2274
|
}
|
|
2275
|
-
const dstdir =
|
|
2276
|
-
const relativeToDst =
|
|
2275
|
+
const dstdir = path18.dirname(dstpath);
|
|
2276
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
2277
2277
|
const exists = await pathExists(relativeToDst);
|
|
2278
2278
|
if (exists) {
|
|
2279
2279
|
return {
|
|
@@ -2289,11 +2289,11 @@ var require_symlink_paths = __commonJS({
|
|
|
2289
2289
|
}
|
|
2290
2290
|
return {
|
|
2291
2291
|
toCwd: srcpath,
|
|
2292
|
-
toDst:
|
|
2292
|
+
toDst: path18.relative(dstdir, srcpath)
|
|
2293
2293
|
};
|
|
2294
2294
|
}
|
|
2295
2295
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
2296
|
-
if (
|
|
2296
|
+
if (path18.isAbsolute(srcpath)) {
|
|
2297
2297
|
const exists2 = fs13.existsSync(srcpath);
|
|
2298
2298
|
if (!exists2) throw new Error("absolute srcpath does not exist");
|
|
2299
2299
|
return {
|
|
@@ -2301,8 +2301,8 @@ var require_symlink_paths = __commonJS({
|
|
|
2301
2301
|
toDst: srcpath
|
|
2302
2302
|
};
|
|
2303
2303
|
}
|
|
2304
|
-
const dstdir =
|
|
2305
|
-
const relativeToDst =
|
|
2304
|
+
const dstdir = path18.dirname(dstpath);
|
|
2305
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
2306
2306
|
const exists = fs13.existsSync(relativeToDst);
|
|
2307
2307
|
if (exists) {
|
|
2308
2308
|
return {
|
|
@@ -2314,7 +2314,7 @@ var require_symlink_paths = __commonJS({
|
|
|
2314
2314
|
if (!srcExists) throw new Error("relative srcpath does not exist");
|
|
2315
2315
|
return {
|
|
2316
2316
|
toCwd: srcpath,
|
|
2317
|
-
toDst:
|
|
2317
|
+
toDst: path18.relative(dstdir, srcpath)
|
|
2318
2318
|
};
|
|
2319
2319
|
}
|
|
2320
2320
|
module.exports = {
|
|
@@ -2362,7 +2362,7 @@ var require_symlink = __commonJS({
|
|
|
2362
2362
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) {
|
|
2363
2363
|
"use strict";
|
|
2364
2364
|
var u = require_universalify().fromPromise;
|
|
2365
|
-
var
|
|
2365
|
+
var path18 = __require("path");
|
|
2366
2366
|
var fs13 = require_fs();
|
|
2367
2367
|
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
2368
2368
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
@@ -2377,11 +2377,11 @@ var require_symlink = __commonJS({
|
|
|
2377
2377
|
}
|
|
2378
2378
|
if (stats && stats.isSymbolicLink()) {
|
|
2379
2379
|
let srcStat;
|
|
2380
|
-
if (
|
|
2380
|
+
if (path18.isAbsolute(srcpath)) {
|
|
2381
2381
|
srcStat = await fs13.stat(srcpath);
|
|
2382
2382
|
} else {
|
|
2383
|
-
const dstdir =
|
|
2384
|
-
const relativeToDst =
|
|
2383
|
+
const dstdir = path18.dirname(dstpath);
|
|
2384
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
2385
2385
|
try {
|
|
2386
2386
|
srcStat = await fs13.stat(relativeToDst);
|
|
2387
2387
|
} catch {
|
|
@@ -2394,7 +2394,7 @@ var require_symlink = __commonJS({
|
|
|
2394
2394
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
2395
2395
|
srcpath = relative.toDst;
|
|
2396
2396
|
const toType = await symlinkType(relative.toCwd, type);
|
|
2397
|
-
const dir =
|
|
2397
|
+
const dir = path18.dirname(dstpath);
|
|
2398
2398
|
if (!await pathExists(dir)) {
|
|
2399
2399
|
await mkdirs(dir);
|
|
2400
2400
|
}
|
|
@@ -2408,11 +2408,11 @@ var require_symlink = __commonJS({
|
|
|
2408
2408
|
}
|
|
2409
2409
|
if (stats && stats.isSymbolicLink()) {
|
|
2410
2410
|
let srcStat;
|
|
2411
|
-
if (
|
|
2411
|
+
if (path18.isAbsolute(srcpath)) {
|
|
2412
2412
|
srcStat = fs13.statSync(srcpath);
|
|
2413
2413
|
} else {
|
|
2414
|
-
const dstdir =
|
|
2415
|
-
const relativeToDst =
|
|
2414
|
+
const dstdir = path18.dirname(dstpath);
|
|
2415
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
2416
2416
|
try {
|
|
2417
2417
|
srcStat = fs13.statSync(relativeToDst);
|
|
2418
2418
|
} catch {
|
|
@@ -2425,7 +2425,7 @@ var require_symlink = __commonJS({
|
|
|
2425
2425
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
2426
2426
|
srcpath = relative.toDst;
|
|
2427
2427
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
2428
|
-
const dir =
|
|
2428
|
+
const dir = path18.dirname(dstpath);
|
|
2429
2429
|
const exists = fs13.existsSync(dir);
|
|
2430
2430
|
if (exists) return fs13.symlinkSync(srcpath, dstpath, type);
|
|
2431
2431
|
mkdirsSync(dir);
|
|
@@ -2577,18 +2577,18 @@ var require_output_file = __commonJS({
|
|
|
2577
2577
|
"use strict";
|
|
2578
2578
|
var u = require_universalify().fromPromise;
|
|
2579
2579
|
var fs13 = require_fs();
|
|
2580
|
-
var
|
|
2580
|
+
var path18 = __require("path");
|
|
2581
2581
|
var mkdir = require_mkdirs();
|
|
2582
2582
|
var pathExists = require_path_exists().pathExists;
|
|
2583
2583
|
async function outputFile(file, data, encoding = "utf-8") {
|
|
2584
|
-
const dir =
|
|
2584
|
+
const dir = path18.dirname(file);
|
|
2585
2585
|
if (!await pathExists(dir)) {
|
|
2586
2586
|
await mkdir.mkdirs(dir);
|
|
2587
2587
|
}
|
|
2588
2588
|
return fs13.writeFile(file, data, encoding);
|
|
2589
2589
|
}
|
|
2590
2590
|
function outputFileSync(file, ...args) {
|
|
2591
|
-
const dir =
|
|
2591
|
+
const dir = path18.dirname(file);
|
|
2592
2592
|
if (!fs13.existsSync(dir)) {
|
|
2593
2593
|
mkdir.mkdirsSync(dir);
|
|
2594
2594
|
}
|
|
@@ -2652,7 +2652,7 @@ var require_move = __commonJS({
|
|
|
2652
2652
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/move/move.js"(exports, module) {
|
|
2653
2653
|
"use strict";
|
|
2654
2654
|
var fs13 = require_fs();
|
|
2655
|
-
var
|
|
2655
|
+
var path18 = __require("path");
|
|
2656
2656
|
var { copy: copy2 } = require_copy2();
|
|
2657
2657
|
var { remove } = require_remove();
|
|
2658
2658
|
var { mkdirp } = require_mkdirs();
|
|
@@ -2662,8 +2662,8 @@ var require_move = __commonJS({
|
|
|
2662
2662
|
const overwrite = opts2.overwrite || opts2.clobber || false;
|
|
2663
2663
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src2, dest, "move", opts2);
|
|
2664
2664
|
await stat.checkParentPaths(src2, srcStat, dest, "move");
|
|
2665
|
-
const destParent =
|
|
2666
|
-
const parsedParentPath =
|
|
2665
|
+
const destParent = path18.dirname(dest);
|
|
2666
|
+
const parsedParentPath = path18.parse(destParent);
|
|
2667
2667
|
if (parsedParentPath.root !== destParent) {
|
|
2668
2668
|
await mkdirp(destParent);
|
|
2669
2669
|
}
|
|
@@ -2704,7 +2704,7 @@ var require_move_sync = __commonJS({
|
|
|
2704
2704
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/move/move-sync.js"(exports, module) {
|
|
2705
2705
|
"use strict";
|
|
2706
2706
|
var fs13 = require_graceful_fs();
|
|
2707
|
-
var
|
|
2707
|
+
var path18 = __require("path");
|
|
2708
2708
|
var copySync2 = require_copy2().copySync;
|
|
2709
2709
|
var removeSync = require_remove().removeSync;
|
|
2710
2710
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -2714,12 +2714,12 @@ var require_move_sync = __commonJS({
|
|
|
2714
2714
|
const overwrite = opts2.overwrite || opts2.clobber || false;
|
|
2715
2715
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src2, dest, "move", opts2);
|
|
2716
2716
|
stat.checkParentPathsSync(src2, srcStat, dest, "move");
|
|
2717
|
-
if (!isParentRoot(dest)) mkdirpSync(
|
|
2717
|
+
if (!isParentRoot(dest)) mkdirpSync(path18.dirname(dest));
|
|
2718
2718
|
return doRename(src2, dest, overwrite, isChangingCase);
|
|
2719
2719
|
}
|
|
2720
2720
|
function isParentRoot(dest) {
|
|
2721
|
-
const parent =
|
|
2722
|
-
const parsedPath =
|
|
2721
|
+
const parent = path18.dirname(dest);
|
|
2722
|
+
const parsedPath = path18.parse(parent);
|
|
2723
2723
|
return parsedPath.root === parent;
|
|
2724
2724
|
}
|
|
2725
2725
|
function doRename(src2, dest, overwrite, isChangingCase) {
|
|
@@ -5036,10 +5036,10 @@ var require_fs2 = __commonJS({
|
|
|
5036
5036
|
var require_utils3 = __commonJS({
|
|
5037
5037
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
|
|
5038
5038
|
"use strict";
|
|
5039
|
-
var
|
|
5039
|
+
var path18 = __require("path");
|
|
5040
5040
|
module.exports.checkPath = function checkPath(pth) {
|
|
5041
5041
|
if (process.platform === "win32") {
|
|
5042
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
5042
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path18.parse(pth).root, ""));
|
|
5043
5043
|
if (pathHasInvalidWinCharacters) {
|
|
5044
5044
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
5045
5045
|
error.code = "EINVAL";
|
|
@@ -5103,8 +5103,8 @@ var require_path_exists2 = __commonJS({
|
|
|
5103
5103
|
"use strict";
|
|
5104
5104
|
var u = require_universalify().fromPromise;
|
|
5105
5105
|
var fs13 = require_fs2();
|
|
5106
|
-
function pathExists(
|
|
5107
|
-
return fs13.access(
|
|
5106
|
+
function pathExists(path18) {
|
|
5107
|
+
return fs13.access(path18).then(() => true).catch(() => false);
|
|
5108
5108
|
}
|
|
5109
5109
|
module.exports = {
|
|
5110
5110
|
pathExists: u(pathExists),
|
|
@@ -5119,8 +5119,8 @@ var require_utimes2 = __commonJS({
|
|
|
5119
5119
|
"use strict";
|
|
5120
5120
|
var fs13 = require_fs2();
|
|
5121
5121
|
var u = require_universalify().fromPromise;
|
|
5122
|
-
async function utimesMillis(
|
|
5123
|
-
const fd = await fs13.open(
|
|
5122
|
+
async function utimesMillis(path18, atime, mtime) {
|
|
5123
|
+
const fd = await fs13.open(path18, "r+");
|
|
5124
5124
|
let error = null;
|
|
5125
5125
|
try {
|
|
5126
5126
|
await fs13.futimes(fd, atime, mtime);
|
|
@@ -5137,8 +5137,8 @@ var require_utimes2 = __commonJS({
|
|
|
5137
5137
|
throw error;
|
|
5138
5138
|
}
|
|
5139
5139
|
}
|
|
5140
|
-
function utimesMillisSync(
|
|
5141
|
-
const fd = fs13.openSync(
|
|
5140
|
+
function utimesMillisSync(path18, atime, mtime) {
|
|
5141
|
+
const fd = fs13.openSync(path18, "r+");
|
|
5142
5142
|
let error = null;
|
|
5143
5143
|
try {
|
|
5144
5144
|
fs13.futimesSync(fd, atime, mtime);
|
|
@@ -5167,7 +5167,7 @@ var require_stat2 = __commonJS({
|
|
|
5167
5167
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/util/stat.js"(exports, module) {
|
|
5168
5168
|
"use strict";
|
|
5169
5169
|
var fs13 = require_fs2();
|
|
5170
|
-
var
|
|
5170
|
+
var path18 = __require("path");
|
|
5171
5171
|
var u = require_universalify().fromPromise;
|
|
5172
5172
|
function getStats(src2, dest, opts2) {
|
|
5173
5173
|
const statFunc = opts2.dereference ? (file) => fs13.stat(file, { bigint: true }) : (file) => fs13.lstat(file, { bigint: true });
|
|
@@ -5195,8 +5195,8 @@ var require_stat2 = __commonJS({
|
|
|
5195
5195
|
const { srcStat, destStat } = await getStats(src2, dest, opts2);
|
|
5196
5196
|
if (destStat) {
|
|
5197
5197
|
if (areIdentical(srcStat, destStat)) {
|
|
5198
|
-
const srcBaseName =
|
|
5199
|
-
const destBaseName =
|
|
5198
|
+
const srcBaseName = path18.basename(src2);
|
|
5199
|
+
const destBaseName = path18.basename(dest);
|
|
5200
5200
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
5201
5201
|
return { srcStat, destStat, isChangingCase: true };
|
|
5202
5202
|
}
|
|
@@ -5218,8 +5218,8 @@ var require_stat2 = __commonJS({
|
|
|
5218
5218
|
const { srcStat, destStat } = getStatsSync(src2, dest, opts2);
|
|
5219
5219
|
if (destStat) {
|
|
5220
5220
|
if (areIdentical(srcStat, destStat)) {
|
|
5221
|
-
const srcBaseName =
|
|
5222
|
-
const destBaseName =
|
|
5221
|
+
const srcBaseName = path18.basename(src2);
|
|
5222
|
+
const destBaseName = path18.basename(dest);
|
|
5223
5223
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
5224
5224
|
return { srcStat, destStat, isChangingCase: true };
|
|
5225
5225
|
}
|
|
@@ -5238,9 +5238,9 @@ var require_stat2 = __commonJS({
|
|
|
5238
5238
|
return { srcStat, destStat };
|
|
5239
5239
|
}
|
|
5240
5240
|
async function checkParentPaths(src2, srcStat, dest, funcName) {
|
|
5241
|
-
const srcParent =
|
|
5242
|
-
const destParent =
|
|
5243
|
-
if (destParent === srcParent || destParent ===
|
|
5241
|
+
const srcParent = path18.resolve(path18.dirname(src2));
|
|
5242
|
+
const destParent = path18.resolve(path18.dirname(dest));
|
|
5243
|
+
if (destParent === srcParent || destParent === path18.parse(destParent).root) return;
|
|
5244
5244
|
let destStat;
|
|
5245
5245
|
try {
|
|
5246
5246
|
destStat = await fs13.stat(destParent, { bigint: true });
|
|
@@ -5254,9 +5254,9 @@ var require_stat2 = __commonJS({
|
|
|
5254
5254
|
return checkParentPaths(src2, srcStat, destParent, funcName);
|
|
5255
5255
|
}
|
|
5256
5256
|
function checkParentPathsSync(src2, srcStat, dest, funcName) {
|
|
5257
|
-
const srcParent =
|
|
5258
|
-
const destParent =
|
|
5259
|
-
if (destParent === srcParent || destParent ===
|
|
5257
|
+
const srcParent = path18.resolve(path18.dirname(src2));
|
|
5258
|
+
const destParent = path18.resolve(path18.dirname(dest));
|
|
5259
|
+
if (destParent === srcParent || destParent === path18.parse(destParent).root) return;
|
|
5260
5260
|
let destStat;
|
|
5261
5261
|
try {
|
|
5262
5262
|
destStat = fs13.statSync(destParent, { bigint: true });
|
|
@@ -5273,8 +5273,8 @@ var require_stat2 = __commonJS({
|
|
|
5273
5273
|
return destStat.ino !== void 0 && destStat.dev !== void 0 && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
5274
5274
|
}
|
|
5275
5275
|
function isSrcSubdir(src2, dest) {
|
|
5276
|
-
const srcArr =
|
|
5277
|
-
const destArr =
|
|
5276
|
+
const srcArr = path18.resolve(src2).split(path18.sep).filter((i) => i);
|
|
5277
|
+
const destArr = path18.resolve(dest).split(path18.sep).filter((i) => i);
|
|
5278
5278
|
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
5279
5279
|
}
|
|
5280
5280
|
function errMsg(src2, dest, funcName) {
|
|
@@ -5327,7 +5327,7 @@ var require_copy3 = __commonJS({
|
|
|
5327
5327
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
|
|
5328
5328
|
"use strict";
|
|
5329
5329
|
var fs13 = require_fs2();
|
|
5330
|
-
var
|
|
5330
|
+
var path18 = __require("path");
|
|
5331
5331
|
var { mkdirs } = require_mkdirs2();
|
|
5332
5332
|
var { pathExists } = require_path_exists2();
|
|
5333
5333
|
var { utimesMillis } = require_utimes2();
|
|
@@ -5350,7 +5350,7 @@ var require_copy3 = __commonJS({
|
|
|
5350
5350
|
await stat.checkParentPaths(src2, srcStat, dest, "copy");
|
|
5351
5351
|
const include = await runFilter(src2, dest, opts2);
|
|
5352
5352
|
if (!include) return;
|
|
5353
|
-
const destParent =
|
|
5353
|
+
const destParent = path18.dirname(dest);
|
|
5354
5354
|
const dirExists = await pathExists(destParent);
|
|
5355
5355
|
if (!dirExists) {
|
|
5356
5356
|
await mkdirs(destParent);
|
|
@@ -5403,8 +5403,8 @@ var require_copy3 = __commonJS({
|
|
|
5403
5403
|
await fs13.mkdir(dest);
|
|
5404
5404
|
}
|
|
5405
5405
|
await asyncIteratorConcurrentProcess(await fs13.opendir(src2), async (item) => {
|
|
5406
|
-
const srcItem =
|
|
5407
|
-
const destItem =
|
|
5406
|
+
const srcItem = path18.join(src2, item.name);
|
|
5407
|
+
const destItem = path18.join(dest, item.name);
|
|
5408
5408
|
const include = await runFilter(srcItem, destItem, opts2);
|
|
5409
5409
|
if (include) {
|
|
5410
5410
|
const { destStat: destStat2 } = await stat.checkPaths(srcItem, destItem, "copy", opts2);
|
|
@@ -5418,7 +5418,7 @@ var require_copy3 = __commonJS({
|
|
|
5418
5418
|
async function onLink(destStat, src2, dest, opts2) {
|
|
5419
5419
|
let resolvedSrc = await fs13.readlink(src2);
|
|
5420
5420
|
if (opts2.dereference) {
|
|
5421
|
-
resolvedSrc =
|
|
5421
|
+
resolvedSrc = path18.resolve(process.cwd(), resolvedSrc);
|
|
5422
5422
|
}
|
|
5423
5423
|
if (!destStat) {
|
|
5424
5424
|
return fs13.symlink(resolvedSrc, dest);
|
|
@@ -5431,7 +5431,7 @@ var require_copy3 = __commonJS({
|
|
|
5431
5431
|
throw e;
|
|
5432
5432
|
}
|
|
5433
5433
|
if (opts2.dereference) {
|
|
5434
|
-
resolvedDest =
|
|
5434
|
+
resolvedDest = path18.resolve(process.cwd(), resolvedDest);
|
|
5435
5435
|
}
|
|
5436
5436
|
if (resolvedSrc !== resolvedDest) {
|
|
5437
5437
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
@@ -5453,7 +5453,7 @@ var require_copy_sync2 = __commonJS({
|
|
|
5453
5453
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module) {
|
|
5454
5454
|
"use strict";
|
|
5455
5455
|
var fs13 = require_graceful_fs();
|
|
5456
|
-
var
|
|
5456
|
+
var path18 = __require("path");
|
|
5457
5457
|
var mkdirsSync = require_mkdirs2().mkdirsSync;
|
|
5458
5458
|
var utimesMillisSync = require_utimes2().utimesMillisSync;
|
|
5459
5459
|
var stat = require_stat2();
|
|
@@ -5474,7 +5474,7 @@ var require_copy_sync2 = __commonJS({
|
|
|
5474
5474
|
const { srcStat, destStat } = stat.checkPathsSync(src2, dest, "copy", opts2);
|
|
5475
5475
|
stat.checkParentPathsSync(src2, srcStat, dest, "copy");
|
|
5476
5476
|
if (opts2.filter && !opts2.filter(src2, dest)) return;
|
|
5477
|
-
const destParent =
|
|
5477
|
+
const destParent = path18.dirname(dest);
|
|
5478
5478
|
if (!fs13.existsSync(destParent)) mkdirsSync(destParent);
|
|
5479
5479
|
return getStats(destStat, src2, dest, opts2);
|
|
5480
5480
|
}
|
|
@@ -5543,8 +5543,8 @@ var require_copy_sync2 = __commonJS({
|
|
|
5543
5543
|
}
|
|
5544
5544
|
}
|
|
5545
5545
|
function copyDirItem(item, src2, dest, opts2) {
|
|
5546
|
-
const srcItem =
|
|
5547
|
-
const destItem =
|
|
5546
|
+
const srcItem = path18.join(src2, item);
|
|
5547
|
+
const destItem = path18.join(dest, item);
|
|
5548
5548
|
if (opts2.filter && !opts2.filter(srcItem, destItem)) return;
|
|
5549
5549
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts2);
|
|
5550
5550
|
return getStats(destStat, srcItem, destItem, opts2);
|
|
@@ -5552,7 +5552,7 @@ var require_copy_sync2 = __commonJS({
|
|
|
5552
5552
|
function onLink(destStat, src2, dest, opts2) {
|
|
5553
5553
|
let resolvedSrc = fs13.readlinkSync(src2);
|
|
5554
5554
|
if (opts2.dereference) {
|
|
5555
|
-
resolvedSrc =
|
|
5555
|
+
resolvedSrc = path18.resolve(process.cwd(), resolvedSrc);
|
|
5556
5556
|
}
|
|
5557
5557
|
if (!destStat) {
|
|
5558
5558
|
return fs13.symlinkSync(resolvedSrc, dest);
|
|
@@ -5565,7 +5565,7 @@ var require_copy_sync2 = __commonJS({
|
|
|
5565
5565
|
throw err;
|
|
5566
5566
|
}
|
|
5567
5567
|
if (opts2.dereference) {
|
|
5568
|
-
resolvedDest =
|
|
5568
|
+
resolvedDest = path18.resolve(process.cwd(), resolvedDest);
|
|
5569
5569
|
}
|
|
5570
5570
|
if (resolvedSrc !== resolvedDest) {
|
|
5571
5571
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
@@ -5604,11 +5604,11 @@ var require_remove2 = __commonJS({
|
|
|
5604
5604
|
"use strict";
|
|
5605
5605
|
var fs13 = require_graceful_fs();
|
|
5606
5606
|
var u = require_universalify().fromCallback;
|
|
5607
|
-
function remove(
|
|
5608
|
-
fs13.rm(
|
|
5607
|
+
function remove(path18, callback) {
|
|
5608
|
+
fs13.rm(path18, { recursive: true, force: true }, callback);
|
|
5609
5609
|
}
|
|
5610
|
-
function removeSync(
|
|
5611
|
-
fs13.rmSync(
|
|
5610
|
+
function removeSync(path18) {
|
|
5611
|
+
fs13.rmSync(path18, { recursive: true, force: true });
|
|
5612
5612
|
}
|
|
5613
5613
|
module.exports = {
|
|
5614
5614
|
remove: u(remove),
|
|
@@ -5623,7 +5623,7 @@ var require_empty2 = __commonJS({
|
|
|
5623
5623
|
"use strict";
|
|
5624
5624
|
var u = require_universalify().fromPromise;
|
|
5625
5625
|
var fs13 = require_fs2();
|
|
5626
|
-
var
|
|
5626
|
+
var path18 = __require("path");
|
|
5627
5627
|
var mkdir = require_mkdirs2();
|
|
5628
5628
|
var remove = require_remove2();
|
|
5629
5629
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -5633,7 +5633,7 @@ var require_empty2 = __commonJS({
|
|
|
5633
5633
|
} catch {
|
|
5634
5634
|
return mkdir.mkdirs(dir);
|
|
5635
5635
|
}
|
|
5636
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
5636
|
+
return Promise.all(items.map((item) => remove.remove(path18.join(dir, item))));
|
|
5637
5637
|
});
|
|
5638
5638
|
function emptyDirSync(dir) {
|
|
5639
5639
|
let items;
|
|
@@ -5643,7 +5643,7 @@ var require_empty2 = __commonJS({
|
|
|
5643
5643
|
return mkdir.mkdirsSync(dir);
|
|
5644
5644
|
}
|
|
5645
5645
|
items.forEach((item) => {
|
|
5646
|
-
item =
|
|
5646
|
+
item = path18.join(dir, item);
|
|
5647
5647
|
remove.removeSync(item);
|
|
5648
5648
|
});
|
|
5649
5649
|
}
|
|
@@ -5661,7 +5661,7 @@ var require_file2 = __commonJS({
|
|
|
5661
5661
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/file.js"(exports, module) {
|
|
5662
5662
|
"use strict";
|
|
5663
5663
|
var u = require_universalify().fromPromise;
|
|
5664
|
-
var
|
|
5664
|
+
var path18 = __require("path");
|
|
5665
5665
|
var fs13 = require_fs2();
|
|
5666
5666
|
var mkdir = require_mkdirs2();
|
|
5667
5667
|
async function createFile(file) {
|
|
@@ -5671,7 +5671,7 @@ var require_file2 = __commonJS({
|
|
|
5671
5671
|
} catch {
|
|
5672
5672
|
}
|
|
5673
5673
|
if (stats && stats.isFile()) return;
|
|
5674
|
-
const dir =
|
|
5674
|
+
const dir = path18.dirname(file);
|
|
5675
5675
|
let dirStats = null;
|
|
5676
5676
|
try {
|
|
5677
5677
|
dirStats = await fs13.stat(dir);
|
|
@@ -5697,7 +5697,7 @@ var require_file2 = __commonJS({
|
|
|
5697
5697
|
} catch {
|
|
5698
5698
|
}
|
|
5699
5699
|
if (stats && stats.isFile()) return;
|
|
5700
|
-
const dir =
|
|
5700
|
+
const dir = path18.dirname(file);
|
|
5701
5701
|
try {
|
|
5702
5702
|
if (!fs13.statSync(dir).isDirectory()) {
|
|
5703
5703
|
fs13.readdirSync(dir);
|
|
@@ -5720,7 +5720,7 @@ var require_link2 = __commonJS({
|
|
|
5720
5720
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/link.js"(exports, module) {
|
|
5721
5721
|
"use strict";
|
|
5722
5722
|
var u = require_universalify().fromPromise;
|
|
5723
|
-
var
|
|
5723
|
+
var path18 = __require("path");
|
|
5724
5724
|
var fs13 = require_fs2();
|
|
5725
5725
|
var mkdir = require_mkdirs2();
|
|
5726
5726
|
var { pathExists } = require_path_exists2();
|
|
@@ -5739,7 +5739,7 @@ var require_link2 = __commonJS({
|
|
|
5739
5739
|
throw err;
|
|
5740
5740
|
}
|
|
5741
5741
|
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
5742
|
-
const dir =
|
|
5742
|
+
const dir = path18.dirname(dstpath);
|
|
5743
5743
|
const dirExists = await pathExists(dir);
|
|
5744
5744
|
if (!dirExists) {
|
|
5745
5745
|
await mkdir.mkdirs(dir);
|
|
@@ -5759,7 +5759,7 @@ var require_link2 = __commonJS({
|
|
|
5759
5759
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
5760
5760
|
throw err;
|
|
5761
5761
|
}
|
|
5762
|
-
const dir =
|
|
5762
|
+
const dir = path18.dirname(dstpath);
|
|
5763
5763
|
const dirExists = fs13.existsSync(dir);
|
|
5764
5764
|
if (dirExists) return fs13.linkSync(srcpath, dstpath);
|
|
5765
5765
|
mkdir.mkdirsSync(dir);
|
|
@@ -5776,12 +5776,12 @@ var require_link2 = __commonJS({
|
|
|
5776
5776
|
var require_symlink_paths2 = __commonJS({
|
|
5777
5777
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
|
|
5778
5778
|
"use strict";
|
|
5779
|
-
var
|
|
5779
|
+
var path18 = __require("path");
|
|
5780
5780
|
var fs13 = require_fs2();
|
|
5781
5781
|
var { pathExists } = require_path_exists2();
|
|
5782
5782
|
var u = require_universalify().fromPromise;
|
|
5783
5783
|
async function symlinkPaths(srcpath, dstpath) {
|
|
5784
|
-
if (
|
|
5784
|
+
if (path18.isAbsolute(srcpath)) {
|
|
5785
5785
|
try {
|
|
5786
5786
|
await fs13.lstat(srcpath);
|
|
5787
5787
|
} catch (err) {
|
|
@@ -5793,8 +5793,8 @@ var require_symlink_paths2 = __commonJS({
|
|
|
5793
5793
|
toDst: srcpath
|
|
5794
5794
|
};
|
|
5795
5795
|
}
|
|
5796
|
-
const dstdir =
|
|
5797
|
-
const relativeToDst =
|
|
5796
|
+
const dstdir = path18.dirname(dstpath);
|
|
5797
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
5798
5798
|
const exists = await pathExists(relativeToDst);
|
|
5799
5799
|
if (exists) {
|
|
5800
5800
|
return {
|
|
@@ -5810,11 +5810,11 @@ var require_symlink_paths2 = __commonJS({
|
|
|
5810
5810
|
}
|
|
5811
5811
|
return {
|
|
5812
5812
|
toCwd: srcpath,
|
|
5813
|
-
toDst:
|
|
5813
|
+
toDst: path18.relative(dstdir, srcpath)
|
|
5814
5814
|
};
|
|
5815
5815
|
}
|
|
5816
5816
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
5817
|
-
if (
|
|
5817
|
+
if (path18.isAbsolute(srcpath)) {
|
|
5818
5818
|
const exists2 = fs13.existsSync(srcpath);
|
|
5819
5819
|
if (!exists2) throw new Error("absolute srcpath does not exist");
|
|
5820
5820
|
return {
|
|
@@ -5822,8 +5822,8 @@ var require_symlink_paths2 = __commonJS({
|
|
|
5822
5822
|
toDst: srcpath
|
|
5823
5823
|
};
|
|
5824
5824
|
}
|
|
5825
|
-
const dstdir =
|
|
5826
|
-
const relativeToDst =
|
|
5825
|
+
const dstdir = path18.dirname(dstpath);
|
|
5826
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
5827
5827
|
const exists = fs13.existsSync(relativeToDst);
|
|
5828
5828
|
if (exists) {
|
|
5829
5829
|
return {
|
|
@@ -5835,7 +5835,7 @@ var require_symlink_paths2 = __commonJS({
|
|
|
5835
5835
|
if (!srcExists) throw new Error("relative srcpath does not exist");
|
|
5836
5836
|
return {
|
|
5837
5837
|
toCwd: srcpath,
|
|
5838
|
-
toDst:
|
|
5838
|
+
toDst: path18.relative(dstdir, srcpath)
|
|
5839
5839
|
};
|
|
5840
5840
|
}
|
|
5841
5841
|
module.exports = {
|
|
@@ -5883,7 +5883,7 @@ var require_symlink2 = __commonJS({
|
|
|
5883
5883
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) {
|
|
5884
5884
|
"use strict";
|
|
5885
5885
|
var u = require_universalify().fromPromise;
|
|
5886
|
-
var
|
|
5886
|
+
var path18 = __require("path");
|
|
5887
5887
|
var fs13 = require_fs2();
|
|
5888
5888
|
var { mkdirs, mkdirsSync } = require_mkdirs2();
|
|
5889
5889
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths2();
|
|
@@ -5898,11 +5898,11 @@ var require_symlink2 = __commonJS({
|
|
|
5898
5898
|
}
|
|
5899
5899
|
if (stats && stats.isSymbolicLink()) {
|
|
5900
5900
|
let srcStat;
|
|
5901
|
-
if (
|
|
5901
|
+
if (path18.isAbsolute(srcpath)) {
|
|
5902
5902
|
srcStat = await fs13.stat(srcpath, { bigint: true });
|
|
5903
5903
|
} else {
|
|
5904
|
-
const dstdir =
|
|
5905
|
-
const relativeToDst =
|
|
5904
|
+
const dstdir = path18.dirname(dstpath);
|
|
5905
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
5906
5906
|
try {
|
|
5907
5907
|
srcStat = await fs13.stat(relativeToDst, { bigint: true });
|
|
5908
5908
|
} catch {
|
|
@@ -5915,7 +5915,7 @@ var require_symlink2 = __commonJS({
|
|
|
5915
5915
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
5916
5916
|
srcpath = relative.toDst;
|
|
5917
5917
|
const toType = await symlinkType(relative.toCwd, type);
|
|
5918
|
-
const dir =
|
|
5918
|
+
const dir = path18.dirname(dstpath);
|
|
5919
5919
|
if (!await pathExists(dir)) {
|
|
5920
5920
|
await mkdirs(dir);
|
|
5921
5921
|
}
|
|
@@ -5929,11 +5929,11 @@ var require_symlink2 = __commonJS({
|
|
|
5929
5929
|
}
|
|
5930
5930
|
if (stats && stats.isSymbolicLink()) {
|
|
5931
5931
|
let srcStat;
|
|
5932
|
-
if (
|
|
5932
|
+
if (path18.isAbsolute(srcpath)) {
|
|
5933
5933
|
srcStat = fs13.statSync(srcpath, { bigint: true });
|
|
5934
5934
|
} else {
|
|
5935
|
-
const dstdir =
|
|
5936
|
-
const relativeToDst =
|
|
5935
|
+
const dstdir = path18.dirname(dstpath);
|
|
5936
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
5937
5937
|
try {
|
|
5938
5938
|
srcStat = fs13.statSync(relativeToDst, { bigint: true });
|
|
5939
5939
|
} catch {
|
|
@@ -5946,7 +5946,7 @@ var require_symlink2 = __commonJS({
|
|
|
5946
5946
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
5947
5947
|
srcpath = relative.toDst;
|
|
5948
5948
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
5949
|
-
const dir =
|
|
5949
|
+
const dir = path18.dirname(dstpath);
|
|
5950
5950
|
const exists = fs13.existsSync(dir);
|
|
5951
5951
|
if (exists) return fs13.symlinkSync(srcpath, dstpath, type);
|
|
5952
5952
|
mkdirsSync(dir);
|
|
@@ -6007,18 +6007,18 @@ var require_output_file2 = __commonJS({
|
|
|
6007
6007
|
"use strict";
|
|
6008
6008
|
var u = require_universalify().fromPromise;
|
|
6009
6009
|
var fs13 = require_fs2();
|
|
6010
|
-
var
|
|
6010
|
+
var path18 = __require("path");
|
|
6011
6011
|
var mkdir = require_mkdirs2();
|
|
6012
6012
|
var pathExists = require_path_exists2().pathExists;
|
|
6013
6013
|
async function outputFile(file, data, encoding = "utf-8") {
|
|
6014
|
-
const dir =
|
|
6014
|
+
const dir = path18.dirname(file);
|
|
6015
6015
|
if (!await pathExists(dir)) {
|
|
6016
6016
|
await mkdir.mkdirs(dir);
|
|
6017
6017
|
}
|
|
6018
6018
|
return fs13.writeFile(file, data, encoding);
|
|
6019
6019
|
}
|
|
6020
6020
|
function outputFileSync(file, ...args) {
|
|
6021
|
-
const dir =
|
|
6021
|
+
const dir = path18.dirname(file);
|
|
6022
6022
|
if (!fs13.existsSync(dir)) {
|
|
6023
6023
|
mkdir.mkdirsSync(dir);
|
|
6024
6024
|
}
|
|
@@ -6082,7 +6082,7 @@ var require_move3 = __commonJS({
|
|
|
6082
6082
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/move/move.js"(exports, module) {
|
|
6083
6083
|
"use strict";
|
|
6084
6084
|
var fs13 = require_fs2();
|
|
6085
|
-
var
|
|
6085
|
+
var path18 = __require("path");
|
|
6086
6086
|
var { copy: copy2 } = require_copy4();
|
|
6087
6087
|
var { remove } = require_remove2();
|
|
6088
6088
|
var { mkdirp } = require_mkdirs2();
|
|
@@ -6092,8 +6092,8 @@ var require_move3 = __commonJS({
|
|
|
6092
6092
|
const overwrite = opts2.overwrite || opts2.clobber || false;
|
|
6093
6093
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src2, dest, "move", opts2);
|
|
6094
6094
|
await stat.checkParentPaths(src2, srcStat, dest, "move");
|
|
6095
|
-
const destParent =
|
|
6096
|
-
const parsedParentPath =
|
|
6095
|
+
const destParent = path18.dirname(dest);
|
|
6096
|
+
const parsedParentPath = path18.parse(destParent);
|
|
6097
6097
|
if (parsedParentPath.root !== destParent) {
|
|
6098
6098
|
await mkdirp(destParent);
|
|
6099
6099
|
}
|
|
@@ -6134,7 +6134,7 @@ var require_move_sync2 = __commonJS({
|
|
|
6134
6134
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/move/move-sync.js"(exports, module) {
|
|
6135
6135
|
"use strict";
|
|
6136
6136
|
var fs13 = require_graceful_fs();
|
|
6137
|
-
var
|
|
6137
|
+
var path18 = __require("path");
|
|
6138
6138
|
var copySync2 = require_copy4().copySync;
|
|
6139
6139
|
var removeSync = require_remove2().removeSync;
|
|
6140
6140
|
var mkdirpSync = require_mkdirs2().mkdirpSync;
|
|
@@ -6144,12 +6144,12 @@ var require_move_sync2 = __commonJS({
|
|
|
6144
6144
|
const overwrite = opts2.overwrite || opts2.clobber || false;
|
|
6145
6145
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src2, dest, "move", opts2);
|
|
6146
6146
|
stat.checkParentPathsSync(src2, srcStat, dest, "move");
|
|
6147
|
-
if (!isParentRoot(dest)) mkdirpSync(
|
|
6147
|
+
if (!isParentRoot(dest)) mkdirpSync(path18.dirname(dest));
|
|
6148
6148
|
return doRename(src2, dest, overwrite, isChangingCase);
|
|
6149
6149
|
}
|
|
6150
6150
|
function isParentRoot(dest) {
|
|
6151
|
-
const parent =
|
|
6152
|
-
const parsedPath =
|
|
6151
|
+
const parent = path18.dirname(dest);
|
|
6152
|
+
const parsedPath = path18.parse(parent);
|
|
6153
6153
|
return parsedPath.root === parent;
|
|
6154
6154
|
}
|
|
6155
6155
|
function doRename(src2, dest, overwrite, isChangingCase) {
|
|
@@ -6326,16 +6326,16 @@ var require_filesystem = __commonJS({
|
|
|
6326
6326
|
var LDD_PATH = "/usr/bin/ldd";
|
|
6327
6327
|
var SELF_PATH = "/proc/self/exe";
|
|
6328
6328
|
var MAX_LENGTH = 2048;
|
|
6329
|
-
var readFileSync = (
|
|
6330
|
-
const fd = fs13.openSync(
|
|
6329
|
+
var readFileSync = (path18) => {
|
|
6330
|
+
const fd = fs13.openSync(path18, "r");
|
|
6331
6331
|
const buffer = Buffer.alloc(MAX_LENGTH);
|
|
6332
6332
|
const bytesRead = fs13.readSync(fd, buffer, 0, MAX_LENGTH, 0);
|
|
6333
6333
|
fs13.close(fd, () => {
|
|
6334
6334
|
});
|
|
6335
6335
|
return buffer.subarray(0, bytesRead);
|
|
6336
6336
|
};
|
|
6337
|
-
var readFile = (
|
|
6338
|
-
fs13.open(
|
|
6337
|
+
var readFile = (path18) => new Promise((resolve, reject) => {
|
|
6338
|
+
fs13.open(path18, "r", (err, fd) => {
|
|
6339
6339
|
if (err) {
|
|
6340
6340
|
reject(err);
|
|
6341
6341
|
} else {
|
|
@@ -6454,11 +6454,11 @@ var require_detect_libc = __commonJS({
|
|
|
6454
6454
|
}
|
|
6455
6455
|
return null;
|
|
6456
6456
|
};
|
|
6457
|
-
var familyFromInterpreterPath = (
|
|
6458
|
-
if (
|
|
6459
|
-
if (
|
|
6457
|
+
var familyFromInterpreterPath = (path18) => {
|
|
6458
|
+
if (path18) {
|
|
6459
|
+
if (path18.includes("/ld-musl-")) {
|
|
6460
6460
|
return MUSL;
|
|
6461
|
-
} else if (
|
|
6461
|
+
} else if (path18.includes("/ld-linux-")) {
|
|
6462
6462
|
return GLIBC;
|
|
6463
6463
|
}
|
|
6464
6464
|
}
|
|
@@ -6505,8 +6505,8 @@ var require_detect_libc = __commonJS({
|
|
|
6505
6505
|
cachedFamilyInterpreter = null;
|
|
6506
6506
|
try {
|
|
6507
6507
|
const selfContent = await readFile(SELF_PATH);
|
|
6508
|
-
const
|
|
6509
|
-
cachedFamilyInterpreter = familyFromInterpreterPath(
|
|
6508
|
+
const path18 = interpreterPath(selfContent);
|
|
6509
|
+
cachedFamilyInterpreter = familyFromInterpreterPath(path18);
|
|
6510
6510
|
} catch (e) {
|
|
6511
6511
|
}
|
|
6512
6512
|
return cachedFamilyInterpreter;
|
|
@@ -6518,8 +6518,8 @@ var require_detect_libc = __commonJS({
|
|
|
6518
6518
|
cachedFamilyInterpreter = null;
|
|
6519
6519
|
try {
|
|
6520
6520
|
const selfContent = readFileSync(SELF_PATH);
|
|
6521
|
-
const
|
|
6522
|
-
cachedFamilyInterpreter = familyFromInterpreterPath(
|
|
6521
|
+
const path18 = interpreterPath(selfContent);
|
|
6522
|
+
cachedFamilyInterpreter = familyFromInterpreterPath(path18);
|
|
6523
6523
|
} catch (e) {
|
|
6524
6524
|
}
|
|
6525
6525
|
return cachedFamilyInterpreter;
|
|
@@ -6653,7 +6653,7 @@ var require_detect_libc = __commonJS({
|
|
|
6653
6653
|
var require_node_gyp_build = __commonJS({
|
|
6654
6654
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/node-gyp-build-optional-packages/5.2.2/e2d2fc28f4d0eaa7fac1904123db86f87839f4cdd1ffc0e2b124adc9c1d9f616/node_modules/node-gyp-build-optional-packages/node-gyp-build.js"(exports, module) {
|
|
6655
6655
|
var fs13 = __require("fs");
|
|
6656
|
-
var
|
|
6656
|
+
var path18 = __require("path");
|
|
6657
6657
|
var url = __require("url");
|
|
6658
6658
|
var os = __require("os");
|
|
6659
6659
|
var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
|
|
@@ -6675,30 +6675,30 @@ var require_node_gyp_build = __commonJS({
|
|
|
6675
6675
|
return runtimeRequire(load.resolve(dir));
|
|
6676
6676
|
}
|
|
6677
6677
|
load.resolve = load.path = function(dir) {
|
|
6678
|
-
dir =
|
|
6678
|
+
dir = path18.resolve(dir || ".");
|
|
6679
6679
|
var packageName = "";
|
|
6680
6680
|
var packageNameError;
|
|
6681
6681
|
try {
|
|
6682
|
-
packageName = runtimeRequire(
|
|
6682
|
+
packageName = runtimeRequire(path18.join(dir, "package.json")).name;
|
|
6683
6683
|
var varName = packageName.toUpperCase().replace(/-/g, "_");
|
|
6684
6684
|
if (process.env[varName + "_PREBUILD"]) dir = process.env[varName + "_PREBUILD"];
|
|
6685
6685
|
} catch (err) {
|
|
6686
6686
|
packageNameError = err;
|
|
6687
6687
|
}
|
|
6688
6688
|
if (!prebuildsOnly) {
|
|
6689
|
-
var release = getFirst(
|
|
6689
|
+
var release = getFirst(path18.join(dir, "build/Release"), matchBuild);
|
|
6690
6690
|
if (release) return release;
|
|
6691
|
-
var debug = getFirst(
|
|
6691
|
+
var debug = getFirst(path18.join(dir, "build/Debug"), matchBuild);
|
|
6692
6692
|
if (debug) return debug;
|
|
6693
6693
|
}
|
|
6694
6694
|
var prebuild = resolve(dir);
|
|
6695
6695
|
if (prebuild) return prebuild;
|
|
6696
|
-
var nearby = resolve(
|
|
6696
|
+
var nearby = resolve(path18.dirname(process.execPath));
|
|
6697
6697
|
if (nearby) return nearby;
|
|
6698
6698
|
var platformPackage = (packageName[0] == "@" ? "" : "@" + packageName + "/") + packageName + "-" + platform + "-" + arch;
|
|
6699
6699
|
var packageResolutionError;
|
|
6700
6700
|
try {
|
|
6701
|
-
var prebuildPackage =
|
|
6701
|
+
var prebuildPackage = path18.dirname(__require("module").createRequire(url.pathToFileURL(path18.join(dir, "package.json"))).resolve(platformPackage));
|
|
6702
6702
|
return resolveFile(prebuildPackage);
|
|
6703
6703
|
} catch (error) {
|
|
6704
6704
|
packageResolutionError = error;
|
|
@@ -6725,16 +6725,16 @@ var require_node_gyp_build = __commonJS({
|
|
|
6725
6725
|
}
|
|
6726
6726
|
throw new Error(errMessage);
|
|
6727
6727
|
function resolve(dir2) {
|
|
6728
|
-
var tuples = readdirSync(
|
|
6728
|
+
var tuples = readdirSync(path18.join(dir2, "prebuilds")).map(parseTuple);
|
|
6729
6729
|
var tuple = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0];
|
|
6730
6730
|
if (!tuple) return;
|
|
6731
|
-
return resolveFile(
|
|
6731
|
+
return resolveFile(path18.join(dir2, "prebuilds", tuple.name));
|
|
6732
6732
|
}
|
|
6733
6733
|
function resolveFile(prebuilds) {
|
|
6734
6734
|
var parsed = readdirSync(prebuilds).map(parseTags);
|
|
6735
6735
|
var candidates = parsed.filter(matchTags(runtime, abi));
|
|
6736
6736
|
var winner = candidates.sort(compareTags(runtime))[0];
|
|
6737
|
-
if (winner) return
|
|
6737
|
+
if (winner) return path18.join(prebuilds, winner.file);
|
|
6738
6738
|
}
|
|
6739
6739
|
};
|
|
6740
6740
|
function readdirSync(dir) {
|
|
@@ -6746,7 +6746,7 @@ var require_node_gyp_build = __commonJS({
|
|
|
6746
6746
|
}
|
|
6747
6747
|
function getFirst(dir, filter) {
|
|
6748
6748
|
var files = readdirSync(dir).filter(filter);
|
|
6749
|
-
return files[0] &&
|
|
6749
|
+
return files[0] && path18.join(dir, files[0]);
|
|
6750
6750
|
}
|
|
6751
6751
|
function matchBuild(name) {
|
|
6752
6752
|
return /\.node$/.test(name);
|
|
@@ -6868,7 +6868,7 @@ var require_msgpackr_extract = __commonJS({
|
|
|
6868
6868
|
// ../worker/lib/start.js
|
|
6869
6869
|
import crypto5 from "node:crypto";
|
|
6870
6870
|
import fs12 from "node:fs";
|
|
6871
|
-
import
|
|
6871
|
+
import path17 from "node:path";
|
|
6872
6872
|
import util8 from "node:util";
|
|
6873
6873
|
import { parentPort } from "node:worker_threads";
|
|
6874
6874
|
|
|
@@ -7453,28 +7453,28 @@ function resolveSrcOnWinJunction(src2) {
|
|
|
7453
7453
|
function resolveSrcOnTrueSymlink(src2, dest) {
|
|
7454
7454
|
return pathLib.relative(pathLib.dirname(dest), src2);
|
|
7455
7455
|
}
|
|
7456
|
-
function symlinkDirSync(target2,
|
|
7457
|
-
|
|
7456
|
+
function symlinkDirSync(target2, path18, opts2) {
|
|
7457
|
+
path18 = betterPathResolve(path18);
|
|
7458
7458
|
target2 = betterPathResolve(target2);
|
|
7459
|
-
if (target2 ===
|
|
7459
|
+
if (target2 === path18)
|
|
7460
7460
|
throw new Error(`Symlink path is the same as the target path (${target2})`);
|
|
7461
|
-
return forceSymlinkSync(target2,
|
|
7461
|
+
return forceSymlinkSync(target2, path18, opts2);
|
|
7462
7462
|
}
|
|
7463
|
-
function isExistingSymlinkUpToDate(wantedTarget,
|
|
7464
|
-
const existingTarget = pathLib.isAbsolute(linkString) ? linkString : pathLib.join(pathLib.dirname(
|
|
7463
|
+
function isExistingSymlinkUpToDate(wantedTarget, path18, linkString) {
|
|
7464
|
+
const existingTarget = pathLib.isAbsolute(linkString) ? linkString : pathLib.join(pathLib.dirname(path18), linkString);
|
|
7465
7465
|
return pathLib.relative(wantedTarget, existingTarget) === "";
|
|
7466
7466
|
}
|
|
7467
7467
|
var createSymlinkAsync;
|
|
7468
7468
|
var createSymlinkSync;
|
|
7469
7469
|
if (IS_WINDOWS) {
|
|
7470
|
-
createSymlinkAsync = async (target2,
|
|
7470
|
+
createSymlinkAsync = async (target2, path18) => {
|
|
7471
7471
|
try {
|
|
7472
|
-
await createTrueSymlinkAsync(target2,
|
|
7472
|
+
await createTrueSymlinkAsync(target2, path18);
|
|
7473
7473
|
createSymlinkSync = createTrueSymlinkSync;
|
|
7474
7474
|
createSymlinkAsync = createTrueSymlinkAsync;
|
|
7475
7475
|
} catch (err) {
|
|
7476
7476
|
if (err.code === "EPERM") {
|
|
7477
|
-
await createJunctionAsync(target2,
|
|
7477
|
+
await createJunctionAsync(target2, path18);
|
|
7478
7478
|
createSymlinkSync = createJunctionSync;
|
|
7479
7479
|
createSymlinkAsync = createJunctionAsync;
|
|
7480
7480
|
} else {
|
|
@@ -7482,14 +7482,14 @@ if (IS_WINDOWS) {
|
|
|
7482
7482
|
}
|
|
7483
7483
|
}
|
|
7484
7484
|
};
|
|
7485
|
-
createSymlinkSync = (target2,
|
|
7485
|
+
createSymlinkSync = (target2, path18) => {
|
|
7486
7486
|
try {
|
|
7487
|
-
createTrueSymlinkSync(target2,
|
|
7487
|
+
createTrueSymlinkSync(target2, path18);
|
|
7488
7488
|
createSymlinkSync = createTrueSymlinkSync;
|
|
7489
7489
|
createSymlinkAsync = createTrueSymlinkAsync;
|
|
7490
7490
|
} catch (err) {
|
|
7491
7491
|
if (err.code === "EPERM") {
|
|
7492
|
-
createJunctionSync(target2,
|
|
7492
|
+
createJunctionSync(target2, path18);
|
|
7493
7493
|
createSymlinkSync = createJunctionSync;
|
|
7494
7494
|
createSymlinkAsync = createJunctionAsync;
|
|
7495
7495
|
} else {
|
|
@@ -7501,25 +7501,25 @@ if (IS_WINDOWS) {
|
|
|
7501
7501
|
createSymlinkAsync = createTrueSymlinkAsync;
|
|
7502
7502
|
createSymlinkSync = createTrueSymlinkSync;
|
|
7503
7503
|
}
|
|
7504
|
-
function createTrueSymlinkAsync(target2,
|
|
7505
|
-
return fs4.symlink(resolveSrcOnTrueSymlink(target2,
|
|
7504
|
+
function createTrueSymlinkAsync(target2, path18) {
|
|
7505
|
+
return fs4.symlink(resolveSrcOnTrueSymlink(target2, path18), path18, "dir");
|
|
7506
7506
|
}
|
|
7507
|
-
function createTrueSymlinkSync(target2,
|
|
7508
|
-
symlinkSync(resolveSrcOnTrueSymlink(target2,
|
|
7507
|
+
function createTrueSymlinkSync(target2, path18) {
|
|
7508
|
+
symlinkSync(resolveSrcOnTrueSymlink(target2, path18), path18, "dir");
|
|
7509
7509
|
}
|
|
7510
|
-
function createJunctionAsync(target2,
|
|
7511
|
-
return fs4.symlink(resolveSrcOnWinJunction(target2),
|
|
7510
|
+
function createJunctionAsync(target2, path18) {
|
|
7511
|
+
return fs4.symlink(resolveSrcOnWinJunction(target2), path18, "junction");
|
|
7512
7512
|
}
|
|
7513
|
-
function createJunctionSync(target2,
|
|
7514
|
-
symlinkSync(resolveSrcOnWinJunction(target2),
|
|
7513
|
+
function createJunctionSync(target2, path18) {
|
|
7514
|
+
symlinkSync(resolveSrcOnWinJunction(target2), path18, "junction");
|
|
7515
7515
|
}
|
|
7516
|
-
function forceSymlinkSync(target2,
|
|
7516
|
+
function forceSymlinkSync(target2, path18, opts2) {
|
|
7517
7517
|
let initialErr;
|
|
7518
7518
|
try {
|
|
7519
7519
|
if (opts2?.noJunction === true) {
|
|
7520
|
-
createTrueSymlinkSync(target2,
|
|
7520
|
+
createTrueSymlinkSync(target2, path18);
|
|
7521
7521
|
} else {
|
|
7522
|
-
createSymlinkSync(target2,
|
|
7522
|
+
createSymlinkSync(target2, path18);
|
|
7523
7523
|
}
|
|
7524
7524
|
return { reused: false };
|
|
7525
7525
|
} catch (err) {
|
|
@@ -7527,12 +7527,12 @@ function forceSymlinkSync(target2, path17, opts2) {
|
|
|
7527
7527
|
switch (err.code) {
|
|
7528
7528
|
case "ENOENT":
|
|
7529
7529
|
try {
|
|
7530
|
-
mkdirSync(pathLib.dirname(
|
|
7530
|
+
mkdirSync(pathLib.dirname(path18), { recursive: true });
|
|
7531
7531
|
} catch (mkdirError) {
|
|
7532
|
-
mkdirError.message = `Error while trying to symlink "${target2}" to "${
|
|
7532
|
+
mkdirError.message = `Error while trying to symlink "${target2}" to "${path18}". The error happened while trying to create the parent directory for the symlink target. Details: ${mkdirError}`;
|
|
7533
7533
|
throw mkdirError;
|
|
7534
7534
|
}
|
|
7535
|
-
forceSymlinkSync(target2,
|
|
7535
|
+
forceSymlinkSync(target2, path18, opts2);
|
|
7536
7536
|
return { reused: false };
|
|
7537
7537
|
case "EEXIST":
|
|
7538
7538
|
case "EISDIR":
|
|
@@ -7543,47 +7543,47 @@ function forceSymlinkSync(target2, path17, opts2) {
|
|
|
7543
7543
|
}
|
|
7544
7544
|
let linkString;
|
|
7545
7545
|
try {
|
|
7546
|
-
linkString = readlinkSync(
|
|
7546
|
+
linkString = readlinkSync(path18);
|
|
7547
7547
|
} catch (err) {
|
|
7548
7548
|
if (opts2?.overwrite === false) {
|
|
7549
7549
|
throw initialErr;
|
|
7550
7550
|
}
|
|
7551
|
-
const parentDir = pathLib.dirname(
|
|
7551
|
+
const parentDir = pathLib.dirname(path18);
|
|
7552
7552
|
let warn;
|
|
7553
7553
|
if (opts2?.renameTried) {
|
|
7554
|
-
unlinkSync(
|
|
7555
|
-
warn = `Symlink wanted name was occupied by directory or file. Old entity removed: "${parentDir}${pathLib.sep}{${pathLib.basename(
|
|
7554
|
+
unlinkSync(path18);
|
|
7555
|
+
warn = `Symlink wanted name was occupied by directory or file. Old entity removed: "${parentDir}${pathLib.sep}{${pathLib.basename(path18)}".`;
|
|
7556
7556
|
} else {
|
|
7557
|
-
const ignore = `.ignored_${pathLib.basename(
|
|
7557
|
+
const ignore = `.ignored_${pathLib.basename(path18)}`;
|
|
7558
7558
|
try {
|
|
7559
|
-
renameOverwriteSync(
|
|
7559
|
+
renameOverwriteSync(path18, pathLib.join(parentDir, ignore));
|
|
7560
7560
|
} catch (error) {
|
|
7561
7561
|
if (types.isNativeError(error) && "code" in error && error.code === "ENOENT") {
|
|
7562
7562
|
throw initialErr;
|
|
7563
7563
|
}
|
|
7564
7564
|
throw error;
|
|
7565
7565
|
}
|
|
7566
|
-
warn = `Symlink wanted name was occupied by directory or file. Old entity moved: "${parentDir}${pathLib.sep}{${pathLib.basename(
|
|
7566
|
+
warn = `Symlink wanted name was occupied by directory or file. Old entity moved: "${parentDir}${pathLib.sep}{${pathLib.basename(path18)} => ${ignore}".`;
|
|
7567
7567
|
}
|
|
7568
7568
|
return {
|
|
7569
|
-
...forceSymlinkSync(target2,
|
|
7569
|
+
...forceSymlinkSync(target2, path18, { ...opts2, renameTried: true }),
|
|
7570
7570
|
warn
|
|
7571
7571
|
};
|
|
7572
7572
|
}
|
|
7573
|
-
if (isExistingSymlinkUpToDate(target2,
|
|
7573
|
+
if (isExistingSymlinkUpToDate(target2, path18, linkString)) {
|
|
7574
7574
|
return { reused: true };
|
|
7575
7575
|
}
|
|
7576
7576
|
if (opts2?.overwrite === false) {
|
|
7577
7577
|
throw initialErr;
|
|
7578
7578
|
}
|
|
7579
7579
|
try {
|
|
7580
|
-
unlinkSync(
|
|
7580
|
+
unlinkSync(path18);
|
|
7581
7581
|
} catch (error) {
|
|
7582
7582
|
if (!types.isNativeError(error) || !("code" in error) || error.code !== "ENOENT") {
|
|
7583
7583
|
throw error;
|
|
7584
7584
|
}
|
|
7585
7585
|
}
|
|
7586
|
-
return forceSymlinkSync(target2,
|
|
7586
|
+
return forceSymlinkSync(target2, path18, opts2);
|
|
7587
7587
|
}
|
|
7588
7588
|
|
|
7589
7589
|
// ../fs/symlink-dependency/lib/safeJoinModulesDir.js
|
|
@@ -8328,12 +8328,12 @@ function addBufferToCafs(writeBufferToCafs2, buffer, mode) {
|
|
|
8328
8328
|
|
|
8329
8329
|
// ../store/create-cafs-store/lib/index.js
|
|
8330
8330
|
import { promises as fs10 } from "node:fs";
|
|
8331
|
-
import
|
|
8331
|
+
import path16 from "node:path";
|
|
8332
8332
|
|
|
8333
8333
|
// ../fs/indexed-pkg-importer/lib/index.js
|
|
8334
8334
|
import assert2 from "node:assert";
|
|
8335
8335
|
import { constants, existsSync } from "node:fs";
|
|
8336
|
-
import
|
|
8336
|
+
import path15 from "node:path";
|
|
8337
8337
|
import util7 from "node:util";
|
|
8338
8338
|
|
|
8339
8339
|
// ../fs/indexed-pkg-importer/lib/importIndexedDir.js
|
|
@@ -8579,6 +8579,62 @@ function mergeModulesDirs(src2, dest) {
|
|
|
8579
8579
|
}
|
|
8580
8580
|
}
|
|
8581
8581
|
|
|
8582
|
+
// ../fs/indexed-pkg-importer/lib/removeQuarantine.js
|
|
8583
|
+
import { execFileSync } from "node:child_process";
|
|
8584
|
+
import path14 from "node:path";
|
|
8585
|
+
var QUARANTINE_ATTR = "com.apple.quarantine";
|
|
8586
|
+
var NATIVE_BINARY_EXTENSIONS = /* @__PURE__ */ new Set([".node", ".dylib", ".so"]);
|
|
8587
|
+
var MAX_ARG_BYTES = 1e5;
|
|
8588
|
+
function isNativeBinary(filePath) {
|
|
8589
|
+
return NATIVE_BINARY_EXTENSIONS.has(path14.extname(filePath).toLowerCase());
|
|
8590
|
+
}
|
|
8591
|
+
function removeQuarantine(filePaths) {
|
|
8592
|
+
if (process.platform !== "darwin")
|
|
8593
|
+
return;
|
|
8594
|
+
for (const chunk of chunkByArgSize(filePaths)) {
|
|
8595
|
+
removeQuarantineFromChunk(chunk);
|
|
8596
|
+
}
|
|
8597
|
+
}
|
|
8598
|
+
function removeQuarantineFromChunk(filePaths) {
|
|
8599
|
+
try {
|
|
8600
|
+
execFileSync("/usr/bin/xattr", ["-d", QUARANTINE_ATTR, ...filePaths], {
|
|
8601
|
+
stdio: ["ignore", "ignore", "pipe"]
|
|
8602
|
+
});
|
|
8603
|
+
} catch (err) {
|
|
8604
|
+
const realErrors = getStderr(err).split("\n").filter((line) => line.trim() !== "" && !line.includes("No such xattr") && !line.includes("No such file"));
|
|
8605
|
+
if (realErrors.length > 0) {
|
|
8606
|
+
globalWarn(`Failed to remove the macOS quarantine attribute:
|
|
8607
|
+
${realErrors.join("\n")}`);
|
|
8608
|
+
}
|
|
8609
|
+
}
|
|
8610
|
+
}
|
|
8611
|
+
function chunkByArgSize(filePaths) {
|
|
8612
|
+
const chunks = [];
|
|
8613
|
+
let chunk = [];
|
|
8614
|
+
let chunkBytes = 0;
|
|
8615
|
+
for (const filePath of filePaths) {
|
|
8616
|
+
const bytes = Buffer.byteLength(filePath) + 1;
|
|
8617
|
+
if (chunk.length > 0 && chunkBytes + bytes > MAX_ARG_BYTES) {
|
|
8618
|
+
chunks.push(chunk);
|
|
8619
|
+
chunk = [];
|
|
8620
|
+
chunkBytes = 0;
|
|
8621
|
+
}
|
|
8622
|
+
chunk.push(filePath);
|
|
8623
|
+
chunkBytes += bytes;
|
|
8624
|
+
}
|
|
8625
|
+
if (chunk.length > 0)
|
|
8626
|
+
chunks.push(chunk);
|
|
8627
|
+
return chunks;
|
|
8628
|
+
}
|
|
8629
|
+
function getStderr(err) {
|
|
8630
|
+
if (typeof err === "object" && err !== null && "stderr" in err) {
|
|
8631
|
+
const stderr = err.stderr;
|
|
8632
|
+
if (stderr != null)
|
|
8633
|
+
return stderr.toString();
|
|
8634
|
+
}
|
|
8635
|
+
return err instanceof Error ? err.message : String(err);
|
|
8636
|
+
}
|
|
8637
|
+
|
|
8582
8638
|
// ../fs/indexed-pkg-importer/lib/index.js
|
|
8583
8639
|
function createIndexedPkgImporter(packageImportMethod) {
|
|
8584
8640
|
const importPackage2 = createImportPackage(packageImportMethod);
|
|
@@ -8660,6 +8716,7 @@ function tryClonePkg(to, opts2) {
|
|
|
8660
8716
|
if (opts2.resolvedFrom !== "store" || opts2.force || !pkgExistsAtTargetDir(to, opts2.filesMap)) {
|
|
8661
8717
|
const clone = createCloneFunction();
|
|
8662
8718
|
importIndexedDir({ importFile: clone, importFileAtomic: clone }, to, opts2.filesMap, opts2);
|
|
8719
|
+
removeQuarantineFromNativeBinaries(to, opts2);
|
|
8663
8720
|
return "clone";
|
|
8664
8721
|
}
|
|
8665
8722
|
return void 0;
|
|
@@ -8684,13 +8741,14 @@ function createClonePkg() {
|
|
|
8684
8741
|
return (to, opts2) => {
|
|
8685
8742
|
if (opts2.resolvedFrom !== "store" || opts2.force || !pkgExistsAtTargetDir(to, opts2.filesMap)) {
|
|
8686
8743
|
importIndexedDir(importer, to, opts2.filesMap, opts2);
|
|
8744
|
+
removeQuarantineFromNativeBinaries(to, opts2);
|
|
8687
8745
|
return "clone";
|
|
8688
8746
|
}
|
|
8689
8747
|
return void 0;
|
|
8690
8748
|
};
|
|
8691
8749
|
}
|
|
8692
8750
|
function pkgExistsAtTargetDir(targetDir, filesMap) {
|
|
8693
|
-
return existsSync(
|
|
8751
|
+
return existsSync(path15.join(targetDir, pickFileFromFilesMap(filesMap)));
|
|
8694
8752
|
}
|
|
8695
8753
|
function pickFileFromFilesMap(filesMap) {
|
|
8696
8754
|
if (filesMap.has("package.json")) {
|
|
@@ -8730,6 +8788,7 @@ function createCloneFunction() {
|
|
|
8730
8788
|
function hardlinkPkg(importFile, to, opts2) {
|
|
8731
8789
|
if (opts2.force || shouldRelinkPkg(to, opts2)) {
|
|
8732
8790
|
importIndexedDir({ importFile, importFileAtomic: importFile }, to, opts2.filesMap, opts2);
|
|
8791
|
+
removeQuarantineFromNativeBinaries(to, opts2);
|
|
8733
8792
|
return "hardlink";
|
|
8734
8793
|
}
|
|
8735
8794
|
return void 0;
|
|
@@ -8768,7 +8827,7 @@ function resilientCopyFileSync(src2, dest) {
|
|
|
8768
8827
|
}
|
|
8769
8828
|
function pkgLinkedToStore(filesMap, linkedPkgDir) {
|
|
8770
8829
|
const filename = pickFileFromFilesMap(filesMap);
|
|
8771
|
-
const linkedFile =
|
|
8830
|
+
const linkedFile = path15.join(linkedPkgDir, filename);
|
|
8772
8831
|
let stats0;
|
|
8773
8832
|
try {
|
|
8774
8833
|
stats0 = lib_default.statSync(linkedFile);
|
|
@@ -8785,6 +8844,7 @@ function pkgLinkedToStore(filesMap, linkedPkgDir) {
|
|
|
8785
8844
|
function copyPkg(to, opts2) {
|
|
8786
8845
|
if (opts2.resolvedFrom !== "store" || opts2.force || !pkgExistsAtTargetDir(to, opts2.filesMap)) {
|
|
8787
8846
|
importIndexedDir({ importFile: resilientCopyFileSync, importFileAtomic: atomicCopyFileSync }, to, opts2.filesMap, opts2);
|
|
8847
|
+
removeQuarantineFromNativeBinaries(to, opts2);
|
|
8788
8848
|
return "copy";
|
|
8789
8849
|
}
|
|
8790
8850
|
return void 0;
|
|
@@ -8802,6 +8862,17 @@ function atomicCopyFileSync(src2, dest) {
|
|
|
8802
8862
|
}
|
|
8803
8863
|
renameOverwriteSync(tmp, dest);
|
|
8804
8864
|
}
|
|
8865
|
+
function removeQuarantineFromNativeBinaries(to, opts2) {
|
|
8866
|
+
if (process.platform !== "darwin" || opts2.resolvedFrom !== "store")
|
|
8867
|
+
return;
|
|
8868
|
+
const nativeBinaries = [];
|
|
8869
|
+
for (const file of opts2.filesMap.keys()) {
|
|
8870
|
+
if (isNativeBinary(file)) {
|
|
8871
|
+
nativeBinaries.push(path15.join(to, file));
|
|
8872
|
+
}
|
|
8873
|
+
}
|
|
8874
|
+
removeQuarantine(nativeBinaries);
|
|
8875
|
+
}
|
|
8805
8876
|
|
|
8806
8877
|
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/mimic-function/5.0.1/42ffd44e2cba19e8e133b2bdc7d5939811fa14bc8061d1a5739a299c53ffa2b6/node_modules/mimic-function/index.js
|
|
8807
8878
|
var copyProperty = (to, from, property, ignoreNonConfigurable) => {
|
|
@@ -8977,7 +9048,7 @@ function applySideEffectsDiffWithMaps(baseFiles, { added, deleted }) {
|
|
|
8977
9048
|
return filesWithSideEffects;
|
|
8978
9049
|
}
|
|
8979
9050
|
function createCafsStore(storeDir, opts2) {
|
|
8980
|
-
const baseTempDir =
|
|
9051
|
+
const baseTempDir = path16.join(storeDir, "tmp");
|
|
8981
9052
|
const importPackage2 = createPackageImporter({
|
|
8982
9053
|
importIndexedPackage: opts2?.importPackage,
|
|
8983
9054
|
packageImportMethod: opts2?.packageImportMethod,
|
|
@@ -8988,9 +9059,8 @@ function createCafsStore(storeDir, opts2) {
|
|
|
8988
9059
|
storeDir,
|
|
8989
9060
|
importPackage: importPackage2,
|
|
8990
9061
|
tempDir: async () => {
|
|
8991
|
-
|
|
8992
|
-
|
|
8993
|
-
return tmpDir;
|
|
9062
|
+
await fs10.mkdir(baseTempDir, { recursive: true });
|
|
9063
|
+
return fs10.mkdtemp(path16.join(baseTempDir, "_tmp_"));
|
|
8994
9064
|
}
|
|
8995
9065
|
};
|
|
8996
9066
|
}
|
|
@@ -11701,7 +11771,7 @@ function packToShared(data) {
|
|
|
11701
11771
|
function initStore({ storeDir }) {
|
|
11702
11772
|
fs12.mkdirSync(storeDir, { recursive: true });
|
|
11703
11773
|
const hexChars = "0123456789abcdef".split("");
|
|
11704
|
-
const filesDirPath =
|
|
11774
|
+
const filesDirPath = path17.join(storeDir, "files");
|
|
11705
11775
|
try {
|
|
11706
11776
|
fs12.mkdirSync(filesDirPath);
|
|
11707
11777
|
} catch {
|
|
@@ -11709,7 +11779,7 @@ function initStore({ storeDir }) {
|
|
|
11709
11779
|
for (const hex1 of hexChars) {
|
|
11710
11780
|
for (const hex2 of hexChars) {
|
|
11711
11781
|
try {
|
|
11712
|
-
fs12.mkdirSync(
|
|
11782
|
+
fs12.mkdirSync(path17.join(filesDirPath, `${hex1}${hex2}`));
|
|
11713
11783
|
} catch {
|
|
11714
11784
|
}
|
|
11715
11785
|
}
|