@pnpm/exe 11.0.7 → 11.0.9
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/node_modules/tar/dist/commonjs/index.min.js +3 -3
- package/dist/node_modules/tar/dist/commonjs/pack.js +41 -7
- package/dist/node_modules/tar/dist/esm/index.min.js +3 -3
- package/dist/node_modules/tar/dist/esm/pack.js +41 -7
- package/dist/node_modules/tar/package.json +4 -4
- package/dist/pnpm.mjs +3372 -1950
- package/dist/worker.js +1306 -7
- package/package.json +10 -10
package/dist/worker.js
CHANGED
|
@@ -5829,6 +5829,1305 @@ var init_lib5 = __esm({
|
|
|
5829
5829
|
}
|
|
5830
5830
|
});
|
|
5831
5831
|
|
|
5832
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/fs/index.js
|
|
5833
|
+
var require_fs2 = __commonJS({
|
|
5834
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/fs/index.js"(exports) {
|
|
5835
|
+
"use strict";
|
|
5836
|
+
var u = require_universalify().fromCallback;
|
|
5837
|
+
var fs13 = require_graceful_fs();
|
|
5838
|
+
var api = [
|
|
5839
|
+
"access",
|
|
5840
|
+
"appendFile",
|
|
5841
|
+
"chmod",
|
|
5842
|
+
"chown",
|
|
5843
|
+
"close",
|
|
5844
|
+
"copyFile",
|
|
5845
|
+
"cp",
|
|
5846
|
+
"fchmod",
|
|
5847
|
+
"fchown",
|
|
5848
|
+
"fdatasync",
|
|
5849
|
+
"fstat",
|
|
5850
|
+
"fsync",
|
|
5851
|
+
"ftruncate",
|
|
5852
|
+
"futimes",
|
|
5853
|
+
"glob",
|
|
5854
|
+
"lchmod",
|
|
5855
|
+
"lchown",
|
|
5856
|
+
"lutimes",
|
|
5857
|
+
"link",
|
|
5858
|
+
"lstat",
|
|
5859
|
+
"mkdir",
|
|
5860
|
+
"mkdtemp",
|
|
5861
|
+
"open",
|
|
5862
|
+
"opendir",
|
|
5863
|
+
"readdir",
|
|
5864
|
+
"readFile",
|
|
5865
|
+
"readlink",
|
|
5866
|
+
"realpath",
|
|
5867
|
+
"rename",
|
|
5868
|
+
"rm",
|
|
5869
|
+
"rmdir",
|
|
5870
|
+
"stat",
|
|
5871
|
+
"statfs",
|
|
5872
|
+
"symlink",
|
|
5873
|
+
"truncate",
|
|
5874
|
+
"unlink",
|
|
5875
|
+
"utimes",
|
|
5876
|
+
"writeFile"
|
|
5877
|
+
].filter((key) => {
|
|
5878
|
+
return typeof fs13[key] === "function";
|
|
5879
|
+
});
|
|
5880
|
+
Object.assign(exports, fs13);
|
|
5881
|
+
api.forEach((method) => {
|
|
5882
|
+
exports[method] = u(fs13[method]);
|
|
5883
|
+
});
|
|
5884
|
+
exports.exists = function(filename, callback) {
|
|
5885
|
+
if (typeof callback === "function") {
|
|
5886
|
+
return fs13.exists(filename, callback);
|
|
5887
|
+
}
|
|
5888
|
+
return new Promise((resolve) => {
|
|
5889
|
+
return fs13.exists(filename, resolve);
|
|
5890
|
+
});
|
|
5891
|
+
};
|
|
5892
|
+
exports.read = function(fd, buffer, offset, length, position3, callback) {
|
|
5893
|
+
if (typeof callback === "function") {
|
|
5894
|
+
return fs13.read(fd, buffer, offset, length, position3, callback);
|
|
5895
|
+
}
|
|
5896
|
+
return new Promise((resolve, reject) => {
|
|
5897
|
+
fs13.read(fd, buffer, offset, length, position3, (err, bytesRead, buffer2) => {
|
|
5898
|
+
if (err) return reject(err);
|
|
5899
|
+
resolve({ bytesRead, buffer: buffer2 });
|
|
5900
|
+
});
|
|
5901
|
+
});
|
|
5902
|
+
};
|
|
5903
|
+
exports.write = function(fd, buffer, ...args) {
|
|
5904
|
+
if (typeof args[args.length - 1] === "function") {
|
|
5905
|
+
return fs13.write(fd, buffer, ...args);
|
|
5906
|
+
}
|
|
5907
|
+
return new Promise((resolve, reject) => {
|
|
5908
|
+
fs13.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
|
|
5909
|
+
if (err) return reject(err);
|
|
5910
|
+
resolve({ bytesWritten, buffer: buffer2 });
|
|
5911
|
+
});
|
|
5912
|
+
});
|
|
5913
|
+
};
|
|
5914
|
+
exports.readv = function(fd, buffers, ...args) {
|
|
5915
|
+
if (typeof args[args.length - 1] === "function") {
|
|
5916
|
+
return fs13.readv(fd, buffers, ...args);
|
|
5917
|
+
}
|
|
5918
|
+
return new Promise((resolve, reject) => {
|
|
5919
|
+
fs13.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
|
|
5920
|
+
if (err) return reject(err);
|
|
5921
|
+
resolve({ bytesRead, buffers: buffers2 });
|
|
5922
|
+
});
|
|
5923
|
+
});
|
|
5924
|
+
};
|
|
5925
|
+
exports.writev = function(fd, buffers, ...args) {
|
|
5926
|
+
if (typeof args[args.length - 1] === "function") {
|
|
5927
|
+
return fs13.writev(fd, buffers, ...args);
|
|
5928
|
+
}
|
|
5929
|
+
return new Promise((resolve, reject) => {
|
|
5930
|
+
fs13.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
|
|
5931
|
+
if (err) return reject(err);
|
|
5932
|
+
resolve({ bytesWritten, buffers: buffers2 });
|
|
5933
|
+
});
|
|
5934
|
+
});
|
|
5935
|
+
};
|
|
5936
|
+
if (typeof fs13.realpath.native === "function") {
|
|
5937
|
+
exports.realpath.native = u(fs13.realpath.native);
|
|
5938
|
+
} else {
|
|
5939
|
+
process.emitWarning(
|
|
5940
|
+
"fs.realpath.native is not a function. Is fs being monkey-patched?",
|
|
5941
|
+
"Warning",
|
|
5942
|
+
"fs-extra-WARN0003"
|
|
5943
|
+
);
|
|
5944
|
+
}
|
|
5945
|
+
}
|
|
5946
|
+
});
|
|
5947
|
+
|
|
5948
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/mkdirs/utils.js
|
|
5949
|
+
var require_utils3 = __commonJS({
|
|
5950
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
|
|
5951
|
+
"use strict";
|
|
5952
|
+
var path17 = __require("path");
|
|
5953
|
+
module.exports.checkPath = function checkPath(pth) {
|
|
5954
|
+
if (process.platform === "win32") {
|
|
5955
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path17.parse(pth).root, ""));
|
|
5956
|
+
if (pathHasInvalidWinCharacters) {
|
|
5957
|
+
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
5958
|
+
error.code = "EINVAL";
|
|
5959
|
+
throw error;
|
|
5960
|
+
}
|
|
5961
|
+
}
|
|
5962
|
+
};
|
|
5963
|
+
}
|
|
5964
|
+
});
|
|
5965
|
+
|
|
5966
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/mkdirs/make-dir.js
|
|
5967
|
+
var require_make_dir2 = __commonJS({
|
|
5968
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module) {
|
|
5969
|
+
"use strict";
|
|
5970
|
+
var fs13 = require_fs2();
|
|
5971
|
+
var { checkPath } = require_utils3();
|
|
5972
|
+
var getMode = (options) => {
|
|
5973
|
+
const defaults = { mode: 511 };
|
|
5974
|
+
if (typeof options === "number") return options;
|
|
5975
|
+
return { ...defaults, ...options }.mode;
|
|
5976
|
+
};
|
|
5977
|
+
module.exports.makeDir = async (dir, options) => {
|
|
5978
|
+
checkPath(dir);
|
|
5979
|
+
return fs13.mkdir(dir, {
|
|
5980
|
+
mode: getMode(options),
|
|
5981
|
+
recursive: true
|
|
5982
|
+
});
|
|
5983
|
+
};
|
|
5984
|
+
module.exports.makeDirSync = (dir, options) => {
|
|
5985
|
+
checkPath(dir);
|
|
5986
|
+
return fs13.mkdirSync(dir, {
|
|
5987
|
+
mode: getMode(options),
|
|
5988
|
+
recursive: true
|
|
5989
|
+
});
|
|
5990
|
+
};
|
|
5991
|
+
}
|
|
5992
|
+
});
|
|
5993
|
+
|
|
5994
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/mkdirs/index.js
|
|
5995
|
+
var require_mkdirs2 = __commonJS({
|
|
5996
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/mkdirs/index.js"(exports, module) {
|
|
5997
|
+
"use strict";
|
|
5998
|
+
var u = require_universalify().fromPromise;
|
|
5999
|
+
var { makeDir: _makeDir, makeDirSync } = require_make_dir2();
|
|
6000
|
+
var makeDir = u(_makeDir);
|
|
6001
|
+
module.exports = {
|
|
6002
|
+
mkdirs: makeDir,
|
|
6003
|
+
mkdirsSync: makeDirSync,
|
|
6004
|
+
// alias
|
|
6005
|
+
mkdirp: makeDir,
|
|
6006
|
+
mkdirpSync: makeDirSync,
|
|
6007
|
+
ensureDir: makeDir,
|
|
6008
|
+
ensureDirSync: makeDirSync
|
|
6009
|
+
};
|
|
6010
|
+
}
|
|
6011
|
+
});
|
|
6012
|
+
|
|
6013
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/path-exists/index.js
|
|
6014
|
+
var require_path_exists2 = __commonJS({
|
|
6015
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/path-exists/index.js"(exports, module) {
|
|
6016
|
+
"use strict";
|
|
6017
|
+
var u = require_universalify().fromPromise;
|
|
6018
|
+
var fs13 = require_fs2();
|
|
6019
|
+
function pathExists(path17) {
|
|
6020
|
+
return fs13.access(path17).then(() => true).catch(() => false);
|
|
6021
|
+
}
|
|
6022
|
+
module.exports = {
|
|
6023
|
+
pathExists: u(pathExists),
|
|
6024
|
+
pathExistsSync: fs13.existsSync
|
|
6025
|
+
};
|
|
6026
|
+
}
|
|
6027
|
+
});
|
|
6028
|
+
|
|
6029
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/util/utimes.js
|
|
6030
|
+
var require_utimes2 = __commonJS({
|
|
6031
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/util/utimes.js"(exports, module) {
|
|
6032
|
+
"use strict";
|
|
6033
|
+
var fs13 = require_fs2();
|
|
6034
|
+
var u = require_universalify().fromPromise;
|
|
6035
|
+
async function utimesMillis(path17, atime, mtime) {
|
|
6036
|
+
const fd = await fs13.open(path17, "r+");
|
|
6037
|
+
let error = null;
|
|
6038
|
+
try {
|
|
6039
|
+
await fs13.futimes(fd, atime, mtime);
|
|
6040
|
+
} catch (futimesErr) {
|
|
6041
|
+
error = futimesErr;
|
|
6042
|
+
} finally {
|
|
6043
|
+
try {
|
|
6044
|
+
await fs13.close(fd);
|
|
6045
|
+
} catch (closeErr) {
|
|
6046
|
+
if (!error) error = closeErr;
|
|
6047
|
+
}
|
|
6048
|
+
}
|
|
6049
|
+
if (error) {
|
|
6050
|
+
throw error;
|
|
6051
|
+
}
|
|
6052
|
+
}
|
|
6053
|
+
function utimesMillisSync(path17, atime, mtime) {
|
|
6054
|
+
const fd = fs13.openSync(path17, "r+");
|
|
6055
|
+
let error = null;
|
|
6056
|
+
try {
|
|
6057
|
+
fs13.futimesSync(fd, atime, mtime);
|
|
6058
|
+
} catch (futimesErr) {
|
|
6059
|
+
error = futimesErr;
|
|
6060
|
+
} finally {
|
|
6061
|
+
try {
|
|
6062
|
+
fs13.closeSync(fd);
|
|
6063
|
+
} catch (closeErr) {
|
|
6064
|
+
if (!error) error = closeErr;
|
|
6065
|
+
}
|
|
6066
|
+
}
|
|
6067
|
+
if (error) {
|
|
6068
|
+
throw error;
|
|
6069
|
+
}
|
|
6070
|
+
}
|
|
6071
|
+
module.exports = {
|
|
6072
|
+
utimesMillis: u(utimesMillis),
|
|
6073
|
+
utimesMillisSync
|
|
6074
|
+
};
|
|
6075
|
+
}
|
|
6076
|
+
});
|
|
6077
|
+
|
|
6078
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/util/stat.js
|
|
6079
|
+
var require_stat2 = __commonJS({
|
|
6080
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/util/stat.js"(exports, module) {
|
|
6081
|
+
"use strict";
|
|
6082
|
+
var fs13 = require_fs2();
|
|
6083
|
+
var path17 = __require("path");
|
|
6084
|
+
var u = require_universalify().fromPromise;
|
|
6085
|
+
function getStats(src2, dest, opts2) {
|
|
6086
|
+
const statFunc = opts2.dereference ? (file) => fs13.stat(file, { bigint: true }) : (file) => fs13.lstat(file, { bigint: true });
|
|
6087
|
+
return Promise.all([
|
|
6088
|
+
statFunc(src2),
|
|
6089
|
+
statFunc(dest).catch((err) => {
|
|
6090
|
+
if (err.code === "ENOENT") return null;
|
|
6091
|
+
throw err;
|
|
6092
|
+
})
|
|
6093
|
+
]).then(([srcStat, destStat]) => ({ srcStat, destStat }));
|
|
6094
|
+
}
|
|
6095
|
+
function getStatsSync(src2, dest, opts2) {
|
|
6096
|
+
let destStat;
|
|
6097
|
+
const statFunc = opts2.dereference ? (file) => fs13.statSync(file, { bigint: true }) : (file) => fs13.lstatSync(file, { bigint: true });
|
|
6098
|
+
const srcStat = statFunc(src2);
|
|
6099
|
+
try {
|
|
6100
|
+
destStat = statFunc(dest);
|
|
6101
|
+
} catch (err) {
|
|
6102
|
+
if (err.code === "ENOENT") return { srcStat, destStat: null };
|
|
6103
|
+
throw err;
|
|
6104
|
+
}
|
|
6105
|
+
return { srcStat, destStat };
|
|
6106
|
+
}
|
|
6107
|
+
async function checkPaths(src2, dest, funcName, opts2) {
|
|
6108
|
+
const { srcStat, destStat } = await getStats(src2, dest, opts2);
|
|
6109
|
+
if (destStat) {
|
|
6110
|
+
if (areIdentical(srcStat, destStat)) {
|
|
6111
|
+
const srcBaseName = path17.basename(src2);
|
|
6112
|
+
const destBaseName = path17.basename(dest);
|
|
6113
|
+
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
6114
|
+
return { srcStat, destStat, isChangingCase: true };
|
|
6115
|
+
}
|
|
6116
|
+
throw new Error("Source and destination must not be the same.");
|
|
6117
|
+
}
|
|
6118
|
+
if (srcStat.isDirectory() && !destStat.isDirectory()) {
|
|
6119
|
+
throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src2}'.`);
|
|
6120
|
+
}
|
|
6121
|
+
if (!srcStat.isDirectory() && destStat.isDirectory()) {
|
|
6122
|
+
throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src2}'.`);
|
|
6123
|
+
}
|
|
6124
|
+
}
|
|
6125
|
+
if (srcStat.isDirectory() && isSrcSubdir(src2, dest)) {
|
|
6126
|
+
throw new Error(errMsg(src2, dest, funcName));
|
|
6127
|
+
}
|
|
6128
|
+
return { srcStat, destStat };
|
|
6129
|
+
}
|
|
6130
|
+
function checkPathsSync(src2, dest, funcName, opts2) {
|
|
6131
|
+
const { srcStat, destStat } = getStatsSync(src2, dest, opts2);
|
|
6132
|
+
if (destStat) {
|
|
6133
|
+
if (areIdentical(srcStat, destStat)) {
|
|
6134
|
+
const srcBaseName = path17.basename(src2);
|
|
6135
|
+
const destBaseName = path17.basename(dest);
|
|
6136
|
+
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
6137
|
+
return { srcStat, destStat, isChangingCase: true };
|
|
6138
|
+
}
|
|
6139
|
+
throw new Error("Source and destination must not be the same.");
|
|
6140
|
+
}
|
|
6141
|
+
if (srcStat.isDirectory() && !destStat.isDirectory()) {
|
|
6142
|
+
throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src2}'.`);
|
|
6143
|
+
}
|
|
6144
|
+
if (!srcStat.isDirectory() && destStat.isDirectory()) {
|
|
6145
|
+
throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src2}'.`);
|
|
6146
|
+
}
|
|
6147
|
+
}
|
|
6148
|
+
if (srcStat.isDirectory() && isSrcSubdir(src2, dest)) {
|
|
6149
|
+
throw new Error(errMsg(src2, dest, funcName));
|
|
6150
|
+
}
|
|
6151
|
+
return { srcStat, destStat };
|
|
6152
|
+
}
|
|
6153
|
+
async function checkParentPaths(src2, srcStat, dest, funcName) {
|
|
6154
|
+
const srcParent = path17.resolve(path17.dirname(src2));
|
|
6155
|
+
const destParent = path17.resolve(path17.dirname(dest));
|
|
6156
|
+
if (destParent === srcParent || destParent === path17.parse(destParent).root) return;
|
|
6157
|
+
let destStat;
|
|
6158
|
+
try {
|
|
6159
|
+
destStat = await fs13.stat(destParent, { bigint: true });
|
|
6160
|
+
} catch (err) {
|
|
6161
|
+
if (err.code === "ENOENT") return;
|
|
6162
|
+
throw err;
|
|
6163
|
+
}
|
|
6164
|
+
if (areIdentical(srcStat, destStat)) {
|
|
6165
|
+
throw new Error(errMsg(src2, dest, funcName));
|
|
6166
|
+
}
|
|
6167
|
+
return checkParentPaths(src2, srcStat, destParent, funcName);
|
|
6168
|
+
}
|
|
6169
|
+
function checkParentPathsSync(src2, srcStat, dest, funcName) {
|
|
6170
|
+
const srcParent = path17.resolve(path17.dirname(src2));
|
|
6171
|
+
const destParent = path17.resolve(path17.dirname(dest));
|
|
6172
|
+
if (destParent === srcParent || destParent === path17.parse(destParent).root) return;
|
|
6173
|
+
let destStat;
|
|
6174
|
+
try {
|
|
6175
|
+
destStat = fs13.statSync(destParent, { bigint: true });
|
|
6176
|
+
} catch (err) {
|
|
6177
|
+
if (err.code === "ENOENT") return;
|
|
6178
|
+
throw err;
|
|
6179
|
+
}
|
|
6180
|
+
if (areIdentical(srcStat, destStat)) {
|
|
6181
|
+
throw new Error(errMsg(src2, dest, funcName));
|
|
6182
|
+
}
|
|
6183
|
+
return checkParentPathsSync(src2, srcStat, destParent, funcName);
|
|
6184
|
+
}
|
|
6185
|
+
function areIdentical(srcStat, destStat) {
|
|
6186
|
+
return destStat.ino !== void 0 && destStat.dev !== void 0 && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
6187
|
+
}
|
|
6188
|
+
function isSrcSubdir(src2, dest) {
|
|
6189
|
+
const srcArr = path17.resolve(src2).split(path17.sep).filter((i) => i);
|
|
6190
|
+
const destArr = path17.resolve(dest).split(path17.sep).filter((i) => i);
|
|
6191
|
+
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
6192
|
+
}
|
|
6193
|
+
function errMsg(src2, dest, funcName) {
|
|
6194
|
+
return `Cannot ${funcName} '${src2}' to a subdirectory of itself, '${dest}'.`;
|
|
6195
|
+
}
|
|
6196
|
+
module.exports = {
|
|
6197
|
+
// checkPaths
|
|
6198
|
+
checkPaths: u(checkPaths),
|
|
6199
|
+
checkPathsSync,
|
|
6200
|
+
// checkParent
|
|
6201
|
+
checkParentPaths: u(checkParentPaths),
|
|
6202
|
+
checkParentPathsSync,
|
|
6203
|
+
// Misc
|
|
6204
|
+
isSrcSubdir,
|
|
6205
|
+
areIdentical
|
|
6206
|
+
};
|
|
6207
|
+
}
|
|
6208
|
+
});
|
|
6209
|
+
|
|
6210
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/util/async.js
|
|
6211
|
+
var require_async2 = __commonJS({
|
|
6212
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/util/async.js"(exports, module) {
|
|
6213
|
+
"use strict";
|
|
6214
|
+
async function asyncIteratorConcurrentProcess(iterator, fn) {
|
|
6215
|
+
const promises = [];
|
|
6216
|
+
for await (const item of iterator) {
|
|
6217
|
+
promises.push(
|
|
6218
|
+
fn(item).then(
|
|
6219
|
+
() => null,
|
|
6220
|
+
(err) => err ?? new Error("unknown error")
|
|
6221
|
+
)
|
|
6222
|
+
);
|
|
6223
|
+
}
|
|
6224
|
+
await Promise.all(
|
|
6225
|
+
promises.map(
|
|
6226
|
+
(promise) => promise.then((possibleErr) => {
|
|
6227
|
+
if (possibleErr !== null) throw possibleErr;
|
|
6228
|
+
})
|
|
6229
|
+
)
|
|
6230
|
+
);
|
|
6231
|
+
}
|
|
6232
|
+
module.exports = {
|
|
6233
|
+
asyncIteratorConcurrentProcess
|
|
6234
|
+
};
|
|
6235
|
+
}
|
|
6236
|
+
});
|
|
6237
|
+
|
|
6238
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/copy/copy.js
|
|
6239
|
+
var require_copy3 = __commonJS({
|
|
6240
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
|
|
6241
|
+
"use strict";
|
|
6242
|
+
var fs13 = require_fs2();
|
|
6243
|
+
var path17 = __require("path");
|
|
6244
|
+
var { mkdirs } = require_mkdirs2();
|
|
6245
|
+
var { pathExists } = require_path_exists2();
|
|
6246
|
+
var { utimesMillis } = require_utimes2();
|
|
6247
|
+
var stat = require_stat2();
|
|
6248
|
+
var { asyncIteratorConcurrentProcess } = require_async2();
|
|
6249
|
+
async function copy2(src2, dest, opts2 = {}) {
|
|
6250
|
+
if (typeof opts2 === "function") {
|
|
6251
|
+
opts2 = { filter: opts2 };
|
|
6252
|
+
}
|
|
6253
|
+
opts2.clobber = "clobber" in opts2 ? !!opts2.clobber : true;
|
|
6254
|
+
opts2.overwrite = "overwrite" in opts2 ? !!opts2.overwrite : opts2.clobber;
|
|
6255
|
+
if (opts2.preserveTimestamps && process.arch === "ia32") {
|
|
6256
|
+
process.emitWarning(
|
|
6257
|
+
"Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269",
|
|
6258
|
+
"Warning",
|
|
6259
|
+
"fs-extra-WARN0001"
|
|
6260
|
+
);
|
|
6261
|
+
}
|
|
6262
|
+
const { srcStat, destStat } = await stat.checkPaths(src2, dest, "copy", opts2);
|
|
6263
|
+
await stat.checkParentPaths(src2, srcStat, dest, "copy");
|
|
6264
|
+
const include = await runFilter(src2, dest, opts2);
|
|
6265
|
+
if (!include) return;
|
|
6266
|
+
const destParent = path17.dirname(dest);
|
|
6267
|
+
const dirExists = await pathExists(destParent);
|
|
6268
|
+
if (!dirExists) {
|
|
6269
|
+
await mkdirs(destParent);
|
|
6270
|
+
}
|
|
6271
|
+
await getStatsAndPerformCopy(destStat, src2, dest, opts2);
|
|
6272
|
+
}
|
|
6273
|
+
async function runFilter(src2, dest, opts2) {
|
|
6274
|
+
if (!opts2.filter) return true;
|
|
6275
|
+
return opts2.filter(src2, dest);
|
|
6276
|
+
}
|
|
6277
|
+
async function getStatsAndPerformCopy(destStat, src2, dest, opts2) {
|
|
6278
|
+
const statFn = opts2.dereference ? fs13.stat : fs13.lstat;
|
|
6279
|
+
const srcStat = await statFn(src2);
|
|
6280
|
+
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src2, dest, opts2);
|
|
6281
|
+
if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src2, dest, opts2);
|
|
6282
|
+
if (srcStat.isSymbolicLink()) return onLink(destStat, src2, dest, opts2);
|
|
6283
|
+
if (srcStat.isSocket()) throw new Error(`Cannot copy a socket file: ${src2}`);
|
|
6284
|
+
if (srcStat.isFIFO()) throw new Error(`Cannot copy a FIFO pipe: ${src2}`);
|
|
6285
|
+
throw new Error(`Unknown file: ${src2}`);
|
|
6286
|
+
}
|
|
6287
|
+
async function onFile(srcStat, destStat, src2, dest, opts2) {
|
|
6288
|
+
if (!destStat) return copyFile(srcStat, src2, dest, opts2);
|
|
6289
|
+
if (opts2.overwrite) {
|
|
6290
|
+
await fs13.unlink(dest);
|
|
6291
|
+
return copyFile(srcStat, src2, dest, opts2);
|
|
6292
|
+
}
|
|
6293
|
+
if (opts2.errorOnExist) {
|
|
6294
|
+
throw new Error(`'${dest}' already exists`);
|
|
6295
|
+
}
|
|
6296
|
+
}
|
|
6297
|
+
async function copyFile(srcStat, src2, dest, opts2) {
|
|
6298
|
+
await fs13.copyFile(src2, dest);
|
|
6299
|
+
if (opts2.preserveTimestamps) {
|
|
6300
|
+
if (fileIsNotWritable(srcStat.mode)) {
|
|
6301
|
+
await makeFileWritable(dest, srcStat.mode);
|
|
6302
|
+
}
|
|
6303
|
+
const updatedSrcStat = await fs13.stat(src2);
|
|
6304
|
+
await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
6305
|
+
}
|
|
6306
|
+
return fs13.chmod(dest, srcStat.mode);
|
|
6307
|
+
}
|
|
6308
|
+
function fileIsNotWritable(srcMode) {
|
|
6309
|
+
return (srcMode & 128) === 0;
|
|
6310
|
+
}
|
|
6311
|
+
function makeFileWritable(dest, srcMode) {
|
|
6312
|
+
return fs13.chmod(dest, srcMode | 128);
|
|
6313
|
+
}
|
|
6314
|
+
async function onDir(srcStat, destStat, src2, dest, opts2) {
|
|
6315
|
+
if (!destStat) {
|
|
6316
|
+
await fs13.mkdir(dest);
|
|
6317
|
+
}
|
|
6318
|
+
await asyncIteratorConcurrentProcess(await fs13.opendir(src2), async (item) => {
|
|
6319
|
+
const srcItem = path17.join(src2, item.name);
|
|
6320
|
+
const destItem = path17.join(dest, item.name);
|
|
6321
|
+
const include = await runFilter(srcItem, destItem, opts2);
|
|
6322
|
+
if (include) {
|
|
6323
|
+
const { destStat: destStat2 } = await stat.checkPaths(srcItem, destItem, "copy", opts2);
|
|
6324
|
+
await getStatsAndPerformCopy(destStat2, srcItem, destItem, opts2);
|
|
6325
|
+
}
|
|
6326
|
+
});
|
|
6327
|
+
if (!destStat) {
|
|
6328
|
+
await fs13.chmod(dest, srcStat.mode);
|
|
6329
|
+
}
|
|
6330
|
+
}
|
|
6331
|
+
async function onLink(destStat, src2, dest, opts2) {
|
|
6332
|
+
let resolvedSrc = await fs13.readlink(src2);
|
|
6333
|
+
if (opts2.dereference) {
|
|
6334
|
+
resolvedSrc = path17.resolve(process.cwd(), resolvedSrc);
|
|
6335
|
+
}
|
|
6336
|
+
if (!destStat) {
|
|
6337
|
+
return fs13.symlink(resolvedSrc, dest);
|
|
6338
|
+
}
|
|
6339
|
+
let resolvedDest = null;
|
|
6340
|
+
try {
|
|
6341
|
+
resolvedDest = await fs13.readlink(dest);
|
|
6342
|
+
} catch (e) {
|
|
6343
|
+
if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs13.symlink(resolvedSrc, dest);
|
|
6344
|
+
throw e;
|
|
6345
|
+
}
|
|
6346
|
+
if (opts2.dereference) {
|
|
6347
|
+
resolvedDest = path17.resolve(process.cwd(), resolvedDest);
|
|
6348
|
+
}
|
|
6349
|
+
if (resolvedSrc !== resolvedDest) {
|
|
6350
|
+
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
6351
|
+
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
6352
|
+
}
|
|
6353
|
+
if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
6354
|
+
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
|
|
6355
|
+
}
|
|
6356
|
+
}
|
|
6357
|
+
await fs13.unlink(dest);
|
|
6358
|
+
return fs13.symlink(resolvedSrc, dest);
|
|
6359
|
+
}
|
|
6360
|
+
module.exports = copy2;
|
|
6361
|
+
}
|
|
6362
|
+
});
|
|
6363
|
+
|
|
6364
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/copy/copy-sync.js
|
|
6365
|
+
var require_copy_sync2 = __commonJS({
|
|
6366
|
+
"../../../../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) {
|
|
6367
|
+
"use strict";
|
|
6368
|
+
var fs13 = require_graceful_fs();
|
|
6369
|
+
var path17 = __require("path");
|
|
6370
|
+
var mkdirsSync = require_mkdirs2().mkdirsSync;
|
|
6371
|
+
var utimesMillisSync = require_utimes2().utimesMillisSync;
|
|
6372
|
+
var stat = require_stat2();
|
|
6373
|
+
function copySync2(src2, dest, opts2) {
|
|
6374
|
+
if (typeof opts2 === "function") {
|
|
6375
|
+
opts2 = { filter: opts2 };
|
|
6376
|
+
}
|
|
6377
|
+
opts2 = opts2 || {};
|
|
6378
|
+
opts2.clobber = "clobber" in opts2 ? !!opts2.clobber : true;
|
|
6379
|
+
opts2.overwrite = "overwrite" in opts2 ? !!opts2.overwrite : opts2.clobber;
|
|
6380
|
+
if (opts2.preserveTimestamps && process.arch === "ia32") {
|
|
6381
|
+
process.emitWarning(
|
|
6382
|
+
"Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269",
|
|
6383
|
+
"Warning",
|
|
6384
|
+
"fs-extra-WARN0002"
|
|
6385
|
+
);
|
|
6386
|
+
}
|
|
6387
|
+
const { srcStat, destStat } = stat.checkPathsSync(src2, dest, "copy", opts2);
|
|
6388
|
+
stat.checkParentPathsSync(src2, srcStat, dest, "copy");
|
|
6389
|
+
if (opts2.filter && !opts2.filter(src2, dest)) return;
|
|
6390
|
+
const destParent = path17.dirname(dest);
|
|
6391
|
+
if (!fs13.existsSync(destParent)) mkdirsSync(destParent);
|
|
6392
|
+
return getStats(destStat, src2, dest, opts2);
|
|
6393
|
+
}
|
|
6394
|
+
function getStats(destStat, src2, dest, opts2) {
|
|
6395
|
+
const statSync = opts2.dereference ? fs13.statSync : fs13.lstatSync;
|
|
6396
|
+
const srcStat = statSync(src2);
|
|
6397
|
+
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src2, dest, opts2);
|
|
6398
|
+
else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src2, dest, opts2);
|
|
6399
|
+
else if (srcStat.isSymbolicLink()) return onLink(destStat, src2, dest, opts2);
|
|
6400
|
+
else if (srcStat.isSocket()) throw new Error(`Cannot copy a socket file: ${src2}`);
|
|
6401
|
+
else if (srcStat.isFIFO()) throw new Error(`Cannot copy a FIFO pipe: ${src2}`);
|
|
6402
|
+
throw new Error(`Unknown file: ${src2}`);
|
|
6403
|
+
}
|
|
6404
|
+
function onFile(srcStat, destStat, src2, dest, opts2) {
|
|
6405
|
+
if (!destStat) return copyFile(srcStat, src2, dest, opts2);
|
|
6406
|
+
return mayCopyFile(srcStat, src2, dest, opts2);
|
|
6407
|
+
}
|
|
6408
|
+
function mayCopyFile(srcStat, src2, dest, opts2) {
|
|
6409
|
+
if (opts2.overwrite) {
|
|
6410
|
+
fs13.unlinkSync(dest);
|
|
6411
|
+
return copyFile(srcStat, src2, dest, opts2);
|
|
6412
|
+
} else if (opts2.errorOnExist) {
|
|
6413
|
+
throw new Error(`'${dest}' already exists`);
|
|
6414
|
+
}
|
|
6415
|
+
}
|
|
6416
|
+
function copyFile(srcStat, src2, dest, opts2) {
|
|
6417
|
+
fs13.copyFileSync(src2, dest);
|
|
6418
|
+
if (opts2.preserveTimestamps) handleTimestamps(srcStat.mode, src2, dest);
|
|
6419
|
+
return setDestMode(dest, srcStat.mode);
|
|
6420
|
+
}
|
|
6421
|
+
function handleTimestamps(srcMode, src2, dest) {
|
|
6422
|
+
if (fileIsNotWritable(srcMode)) makeFileWritable(dest, srcMode);
|
|
6423
|
+
return setDestTimestamps(src2, dest);
|
|
6424
|
+
}
|
|
6425
|
+
function fileIsNotWritable(srcMode) {
|
|
6426
|
+
return (srcMode & 128) === 0;
|
|
6427
|
+
}
|
|
6428
|
+
function makeFileWritable(dest, srcMode) {
|
|
6429
|
+
return setDestMode(dest, srcMode | 128);
|
|
6430
|
+
}
|
|
6431
|
+
function setDestMode(dest, srcMode) {
|
|
6432
|
+
return fs13.chmodSync(dest, srcMode);
|
|
6433
|
+
}
|
|
6434
|
+
function setDestTimestamps(src2, dest) {
|
|
6435
|
+
const updatedSrcStat = fs13.statSync(src2);
|
|
6436
|
+
return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
6437
|
+
}
|
|
6438
|
+
function onDir(srcStat, destStat, src2, dest, opts2) {
|
|
6439
|
+
if (!destStat) return mkDirAndCopy(srcStat.mode, src2, dest, opts2);
|
|
6440
|
+
return copyDir(src2, dest, opts2);
|
|
6441
|
+
}
|
|
6442
|
+
function mkDirAndCopy(srcMode, src2, dest, opts2) {
|
|
6443
|
+
fs13.mkdirSync(dest);
|
|
6444
|
+
copyDir(src2, dest, opts2);
|
|
6445
|
+
return setDestMode(dest, srcMode);
|
|
6446
|
+
}
|
|
6447
|
+
function copyDir(src2, dest, opts2) {
|
|
6448
|
+
const dir = fs13.opendirSync(src2);
|
|
6449
|
+
try {
|
|
6450
|
+
let dirent;
|
|
6451
|
+
while ((dirent = dir.readSync()) !== null) {
|
|
6452
|
+
copyDirItem(dirent.name, src2, dest, opts2);
|
|
6453
|
+
}
|
|
6454
|
+
} finally {
|
|
6455
|
+
dir.closeSync();
|
|
6456
|
+
}
|
|
6457
|
+
}
|
|
6458
|
+
function copyDirItem(item, src2, dest, opts2) {
|
|
6459
|
+
const srcItem = path17.join(src2, item);
|
|
6460
|
+
const destItem = path17.join(dest, item);
|
|
6461
|
+
if (opts2.filter && !opts2.filter(srcItem, destItem)) return;
|
|
6462
|
+
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts2);
|
|
6463
|
+
return getStats(destStat, srcItem, destItem, opts2);
|
|
6464
|
+
}
|
|
6465
|
+
function onLink(destStat, src2, dest, opts2) {
|
|
6466
|
+
let resolvedSrc = fs13.readlinkSync(src2);
|
|
6467
|
+
if (opts2.dereference) {
|
|
6468
|
+
resolvedSrc = path17.resolve(process.cwd(), resolvedSrc);
|
|
6469
|
+
}
|
|
6470
|
+
if (!destStat) {
|
|
6471
|
+
return fs13.symlinkSync(resolvedSrc, dest);
|
|
6472
|
+
} else {
|
|
6473
|
+
let resolvedDest;
|
|
6474
|
+
try {
|
|
6475
|
+
resolvedDest = fs13.readlinkSync(dest);
|
|
6476
|
+
} catch (err) {
|
|
6477
|
+
if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs13.symlinkSync(resolvedSrc, dest);
|
|
6478
|
+
throw err;
|
|
6479
|
+
}
|
|
6480
|
+
if (opts2.dereference) {
|
|
6481
|
+
resolvedDest = path17.resolve(process.cwd(), resolvedDest);
|
|
6482
|
+
}
|
|
6483
|
+
if (resolvedSrc !== resolvedDest) {
|
|
6484
|
+
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
6485
|
+
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
6486
|
+
}
|
|
6487
|
+
if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
6488
|
+
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
|
|
6489
|
+
}
|
|
6490
|
+
}
|
|
6491
|
+
return copyLink(resolvedSrc, dest);
|
|
6492
|
+
}
|
|
6493
|
+
}
|
|
6494
|
+
function copyLink(resolvedSrc, dest) {
|
|
6495
|
+
fs13.unlinkSync(dest);
|
|
6496
|
+
return fs13.symlinkSync(resolvedSrc, dest);
|
|
6497
|
+
}
|
|
6498
|
+
module.exports = copySync2;
|
|
6499
|
+
}
|
|
6500
|
+
});
|
|
6501
|
+
|
|
6502
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/copy/index.js
|
|
6503
|
+
var require_copy4 = __commonJS({
|
|
6504
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/copy/index.js"(exports, module) {
|
|
6505
|
+
"use strict";
|
|
6506
|
+
var u = require_universalify().fromPromise;
|
|
6507
|
+
module.exports = {
|
|
6508
|
+
copy: u(require_copy3()),
|
|
6509
|
+
copySync: require_copy_sync2()
|
|
6510
|
+
};
|
|
6511
|
+
}
|
|
6512
|
+
});
|
|
6513
|
+
|
|
6514
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/remove/index.js
|
|
6515
|
+
var require_remove2 = __commonJS({
|
|
6516
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/remove/index.js"(exports, module) {
|
|
6517
|
+
"use strict";
|
|
6518
|
+
var fs13 = require_graceful_fs();
|
|
6519
|
+
var u = require_universalify().fromCallback;
|
|
6520
|
+
function remove(path17, callback) {
|
|
6521
|
+
fs13.rm(path17, { recursive: true, force: true }, callback);
|
|
6522
|
+
}
|
|
6523
|
+
function removeSync(path17) {
|
|
6524
|
+
fs13.rmSync(path17, { recursive: true, force: true });
|
|
6525
|
+
}
|
|
6526
|
+
module.exports = {
|
|
6527
|
+
remove: u(remove),
|
|
6528
|
+
removeSync
|
|
6529
|
+
};
|
|
6530
|
+
}
|
|
6531
|
+
});
|
|
6532
|
+
|
|
6533
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/empty/index.js
|
|
6534
|
+
var require_empty2 = __commonJS({
|
|
6535
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/empty/index.js"(exports, module) {
|
|
6536
|
+
"use strict";
|
|
6537
|
+
var u = require_universalify().fromPromise;
|
|
6538
|
+
var fs13 = require_fs2();
|
|
6539
|
+
var path17 = __require("path");
|
|
6540
|
+
var mkdir = require_mkdirs2();
|
|
6541
|
+
var remove = require_remove2();
|
|
6542
|
+
var emptyDir = u(async function emptyDir2(dir) {
|
|
6543
|
+
let items;
|
|
6544
|
+
try {
|
|
6545
|
+
items = await fs13.readdir(dir);
|
|
6546
|
+
} catch {
|
|
6547
|
+
return mkdir.mkdirs(dir);
|
|
6548
|
+
}
|
|
6549
|
+
return Promise.all(items.map((item) => remove.remove(path17.join(dir, item))));
|
|
6550
|
+
});
|
|
6551
|
+
function emptyDirSync(dir) {
|
|
6552
|
+
let items;
|
|
6553
|
+
try {
|
|
6554
|
+
items = fs13.readdirSync(dir);
|
|
6555
|
+
} catch {
|
|
6556
|
+
return mkdir.mkdirsSync(dir);
|
|
6557
|
+
}
|
|
6558
|
+
items.forEach((item) => {
|
|
6559
|
+
item = path17.join(dir, item);
|
|
6560
|
+
remove.removeSync(item);
|
|
6561
|
+
});
|
|
6562
|
+
}
|
|
6563
|
+
module.exports = {
|
|
6564
|
+
emptyDirSync,
|
|
6565
|
+
emptydirSync: emptyDirSync,
|
|
6566
|
+
emptyDir,
|
|
6567
|
+
emptydir: emptyDir
|
|
6568
|
+
};
|
|
6569
|
+
}
|
|
6570
|
+
});
|
|
6571
|
+
|
|
6572
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/file.js
|
|
6573
|
+
var require_file2 = __commonJS({
|
|
6574
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/file.js"(exports, module) {
|
|
6575
|
+
"use strict";
|
|
6576
|
+
var u = require_universalify().fromPromise;
|
|
6577
|
+
var path17 = __require("path");
|
|
6578
|
+
var fs13 = require_fs2();
|
|
6579
|
+
var mkdir = require_mkdirs2();
|
|
6580
|
+
async function createFile(file) {
|
|
6581
|
+
let stats;
|
|
6582
|
+
try {
|
|
6583
|
+
stats = await fs13.stat(file);
|
|
6584
|
+
} catch {
|
|
6585
|
+
}
|
|
6586
|
+
if (stats && stats.isFile()) return;
|
|
6587
|
+
const dir = path17.dirname(file);
|
|
6588
|
+
let dirStats = null;
|
|
6589
|
+
try {
|
|
6590
|
+
dirStats = await fs13.stat(dir);
|
|
6591
|
+
} catch (err) {
|
|
6592
|
+
if (err.code === "ENOENT") {
|
|
6593
|
+
await mkdir.mkdirs(dir);
|
|
6594
|
+
await fs13.writeFile(file, "");
|
|
6595
|
+
return;
|
|
6596
|
+
} else {
|
|
6597
|
+
throw err;
|
|
6598
|
+
}
|
|
6599
|
+
}
|
|
6600
|
+
if (dirStats.isDirectory()) {
|
|
6601
|
+
await fs13.writeFile(file, "");
|
|
6602
|
+
} else {
|
|
6603
|
+
await fs13.readdir(dir);
|
|
6604
|
+
}
|
|
6605
|
+
}
|
|
6606
|
+
function createFileSync(file) {
|
|
6607
|
+
let stats;
|
|
6608
|
+
try {
|
|
6609
|
+
stats = fs13.statSync(file);
|
|
6610
|
+
} catch {
|
|
6611
|
+
}
|
|
6612
|
+
if (stats && stats.isFile()) return;
|
|
6613
|
+
const dir = path17.dirname(file);
|
|
6614
|
+
try {
|
|
6615
|
+
if (!fs13.statSync(dir).isDirectory()) {
|
|
6616
|
+
fs13.readdirSync(dir);
|
|
6617
|
+
}
|
|
6618
|
+
} catch (err) {
|
|
6619
|
+
if (err && err.code === "ENOENT") mkdir.mkdirsSync(dir);
|
|
6620
|
+
else throw err;
|
|
6621
|
+
}
|
|
6622
|
+
fs13.writeFileSync(file, "");
|
|
6623
|
+
}
|
|
6624
|
+
module.exports = {
|
|
6625
|
+
createFile: u(createFile),
|
|
6626
|
+
createFileSync
|
|
6627
|
+
};
|
|
6628
|
+
}
|
|
6629
|
+
});
|
|
6630
|
+
|
|
6631
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/link.js
|
|
6632
|
+
var require_link2 = __commonJS({
|
|
6633
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/link.js"(exports, module) {
|
|
6634
|
+
"use strict";
|
|
6635
|
+
var u = require_universalify().fromPromise;
|
|
6636
|
+
var path17 = __require("path");
|
|
6637
|
+
var fs13 = require_fs2();
|
|
6638
|
+
var mkdir = require_mkdirs2();
|
|
6639
|
+
var { pathExists } = require_path_exists2();
|
|
6640
|
+
var { areIdentical } = require_stat2();
|
|
6641
|
+
async function createLink(srcpath, dstpath) {
|
|
6642
|
+
let dstStat;
|
|
6643
|
+
try {
|
|
6644
|
+
dstStat = await fs13.lstat(dstpath, { bigint: true });
|
|
6645
|
+
} catch {
|
|
6646
|
+
}
|
|
6647
|
+
let srcStat;
|
|
6648
|
+
try {
|
|
6649
|
+
srcStat = await fs13.lstat(srcpath, { bigint: true });
|
|
6650
|
+
} catch (err) {
|
|
6651
|
+
err.message = err.message.replace("lstat", "ensureLink");
|
|
6652
|
+
throw err;
|
|
6653
|
+
}
|
|
6654
|
+
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
6655
|
+
const dir = path17.dirname(dstpath);
|
|
6656
|
+
const dirExists = await pathExists(dir);
|
|
6657
|
+
if (!dirExists) {
|
|
6658
|
+
await mkdir.mkdirs(dir);
|
|
6659
|
+
}
|
|
6660
|
+
await fs13.link(srcpath, dstpath);
|
|
6661
|
+
}
|
|
6662
|
+
function createLinkSync(srcpath, dstpath) {
|
|
6663
|
+
let dstStat;
|
|
6664
|
+
try {
|
|
6665
|
+
dstStat = fs13.lstatSync(dstpath, { bigint: true });
|
|
6666
|
+
} catch {
|
|
6667
|
+
}
|
|
6668
|
+
try {
|
|
6669
|
+
const srcStat = fs13.lstatSync(srcpath, { bigint: true });
|
|
6670
|
+
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
6671
|
+
} catch (err) {
|
|
6672
|
+
err.message = err.message.replace("lstat", "ensureLink");
|
|
6673
|
+
throw err;
|
|
6674
|
+
}
|
|
6675
|
+
const dir = path17.dirname(dstpath);
|
|
6676
|
+
const dirExists = fs13.existsSync(dir);
|
|
6677
|
+
if (dirExists) return fs13.linkSync(srcpath, dstpath);
|
|
6678
|
+
mkdir.mkdirsSync(dir);
|
|
6679
|
+
return fs13.linkSync(srcpath, dstpath);
|
|
6680
|
+
}
|
|
6681
|
+
module.exports = {
|
|
6682
|
+
createLink: u(createLink),
|
|
6683
|
+
createLinkSync
|
|
6684
|
+
};
|
|
6685
|
+
}
|
|
6686
|
+
});
|
|
6687
|
+
|
|
6688
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/symlink-paths.js
|
|
6689
|
+
var require_symlink_paths2 = __commonJS({
|
|
6690
|
+
"../../../../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) {
|
|
6691
|
+
"use strict";
|
|
6692
|
+
var path17 = __require("path");
|
|
6693
|
+
var fs13 = require_fs2();
|
|
6694
|
+
var { pathExists } = require_path_exists2();
|
|
6695
|
+
var u = require_universalify().fromPromise;
|
|
6696
|
+
async function symlinkPaths(srcpath, dstpath) {
|
|
6697
|
+
if (path17.isAbsolute(srcpath)) {
|
|
6698
|
+
try {
|
|
6699
|
+
await fs13.lstat(srcpath);
|
|
6700
|
+
} catch (err) {
|
|
6701
|
+
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
6702
|
+
throw err;
|
|
6703
|
+
}
|
|
6704
|
+
return {
|
|
6705
|
+
toCwd: srcpath,
|
|
6706
|
+
toDst: srcpath
|
|
6707
|
+
};
|
|
6708
|
+
}
|
|
6709
|
+
const dstdir = path17.dirname(dstpath);
|
|
6710
|
+
const relativeToDst = path17.join(dstdir, srcpath);
|
|
6711
|
+
const exists = await pathExists(relativeToDst);
|
|
6712
|
+
if (exists) {
|
|
6713
|
+
return {
|
|
6714
|
+
toCwd: relativeToDst,
|
|
6715
|
+
toDst: srcpath
|
|
6716
|
+
};
|
|
6717
|
+
}
|
|
6718
|
+
try {
|
|
6719
|
+
await fs13.lstat(srcpath);
|
|
6720
|
+
} catch (err) {
|
|
6721
|
+
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
6722
|
+
throw err;
|
|
6723
|
+
}
|
|
6724
|
+
return {
|
|
6725
|
+
toCwd: srcpath,
|
|
6726
|
+
toDst: path17.relative(dstdir, srcpath)
|
|
6727
|
+
};
|
|
6728
|
+
}
|
|
6729
|
+
function symlinkPathsSync(srcpath, dstpath) {
|
|
6730
|
+
if (path17.isAbsolute(srcpath)) {
|
|
6731
|
+
const exists2 = fs13.existsSync(srcpath);
|
|
6732
|
+
if (!exists2) throw new Error("absolute srcpath does not exist");
|
|
6733
|
+
return {
|
|
6734
|
+
toCwd: srcpath,
|
|
6735
|
+
toDst: srcpath
|
|
6736
|
+
};
|
|
6737
|
+
}
|
|
6738
|
+
const dstdir = path17.dirname(dstpath);
|
|
6739
|
+
const relativeToDst = path17.join(dstdir, srcpath);
|
|
6740
|
+
const exists = fs13.existsSync(relativeToDst);
|
|
6741
|
+
if (exists) {
|
|
6742
|
+
return {
|
|
6743
|
+
toCwd: relativeToDst,
|
|
6744
|
+
toDst: srcpath
|
|
6745
|
+
};
|
|
6746
|
+
}
|
|
6747
|
+
const srcExists = fs13.existsSync(srcpath);
|
|
6748
|
+
if (!srcExists) throw new Error("relative srcpath does not exist");
|
|
6749
|
+
return {
|
|
6750
|
+
toCwd: srcpath,
|
|
6751
|
+
toDst: path17.relative(dstdir, srcpath)
|
|
6752
|
+
};
|
|
6753
|
+
}
|
|
6754
|
+
module.exports = {
|
|
6755
|
+
symlinkPaths: u(symlinkPaths),
|
|
6756
|
+
symlinkPathsSync
|
|
6757
|
+
};
|
|
6758
|
+
}
|
|
6759
|
+
});
|
|
6760
|
+
|
|
6761
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/symlink-type.js
|
|
6762
|
+
var require_symlink_type2 = __commonJS({
|
|
6763
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module) {
|
|
6764
|
+
"use strict";
|
|
6765
|
+
var fs13 = require_fs2();
|
|
6766
|
+
var u = require_universalify().fromPromise;
|
|
6767
|
+
async function symlinkType(srcpath, type) {
|
|
6768
|
+
if (type) return type;
|
|
6769
|
+
let stats;
|
|
6770
|
+
try {
|
|
6771
|
+
stats = await fs13.lstat(srcpath);
|
|
6772
|
+
} catch {
|
|
6773
|
+
return "file";
|
|
6774
|
+
}
|
|
6775
|
+
return stats && stats.isDirectory() ? "dir" : "file";
|
|
6776
|
+
}
|
|
6777
|
+
function symlinkTypeSync(srcpath, type) {
|
|
6778
|
+
if (type) return type;
|
|
6779
|
+
let stats;
|
|
6780
|
+
try {
|
|
6781
|
+
stats = fs13.lstatSync(srcpath);
|
|
6782
|
+
} catch {
|
|
6783
|
+
return "file";
|
|
6784
|
+
}
|
|
6785
|
+
return stats && stats.isDirectory() ? "dir" : "file";
|
|
6786
|
+
}
|
|
6787
|
+
module.exports = {
|
|
6788
|
+
symlinkType: u(symlinkType),
|
|
6789
|
+
symlinkTypeSync
|
|
6790
|
+
};
|
|
6791
|
+
}
|
|
6792
|
+
});
|
|
6793
|
+
|
|
6794
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/symlink.js
|
|
6795
|
+
var require_symlink2 = __commonJS({
|
|
6796
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) {
|
|
6797
|
+
"use strict";
|
|
6798
|
+
var u = require_universalify().fromPromise;
|
|
6799
|
+
var path17 = __require("path");
|
|
6800
|
+
var fs13 = require_fs2();
|
|
6801
|
+
var { mkdirs, mkdirsSync } = require_mkdirs2();
|
|
6802
|
+
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths2();
|
|
6803
|
+
var { symlinkType, symlinkTypeSync } = require_symlink_type2();
|
|
6804
|
+
var { pathExists } = require_path_exists2();
|
|
6805
|
+
var { areIdentical } = require_stat2();
|
|
6806
|
+
async function createSymlink(srcpath, dstpath, type) {
|
|
6807
|
+
let stats;
|
|
6808
|
+
try {
|
|
6809
|
+
stats = await fs13.lstat(dstpath);
|
|
6810
|
+
} catch {
|
|
6811
|
+
}
|
|
6812
|
+
if (stats && stats.isSymbolicLink()) {
|
|
6813
|
+
let srcStat;
|
|
6814
|
+
if (path17.isAbsolute(srcpath)) {
|
|
6815
|
+
srcStat = await fs13.stat(srcpath, { bigint: true });
|
|
6816
|
+
} else {
|
|
6817
|
+
const dstdir = path17.dirname(dstpath);
|
|
6818
|
+
const relativeToDst = path17.join(dstdir, srcpath);
|
|
6819
|
+
try {
|
|
6820
|
+
srcStat = await fs13.stat(relativeToDst, { bigint: true });
|
|
6821
|
+
} catch {
|
|
6822
|
+
srcStat = await fs13.stat(srcpath, { bigint: true });
|
|
6823
|
+
}
|
|
6824
|
+
}
|
|
6825
|
+
const dstStat = await fs13.stat(dstpath, { bigint: true });
|
|
6826
|
+
if (areIdentical(srcStat, dstStat)) return;
|
|
6827
|
+
}
|
|
6828
|
+
const relative = await symlinkPaths(srcpath, dstpath);
|
|
6829
|
+
srcpath = relative.toDst;
|
|
6830
|
+
const toType = await symlinkType(relative.toCwd, type);
|
|
6831
|
+
const dir = path17.dirname(dstpath);
|
|
6832
|
+
if (!await pathExists(dir)) {
|
|
6833
|
+
await mkdirs(dir);
|
|
6834
|
+
}
|
|
6835
|
+
return fs13.symlink(srcpath, dstpath, toType);
|
|
6836
|
+
}
|
|
6837
|
+
function createSymlinkSync2(srcpath, dstpath, type) {
|
|
6838
|
+
let stats;
|
|
6839
|
+
try {
|
|
6840
|
+
stats = fs13.lstatSync(dstpath);
|
|
6841
|
+
} catch {
|
|
6842
|
+
}
|
|
6843
|
+
if (stats && stats.isSymbolicLink()) {
|
|
6844
|
+
let srcStat;
|
|
6845
|
+
if (path17.isAbsolute(srcpath)) {
|
|
6846
|
+
srcStat = fs13.statSync(srcpath, { bigint: true });
|
|
6847
|
+
} else {
|
|
6848
|
+
const dstdir = path17.dirname(dstpath);
|
|
6849
|
+
const relativeToDst = path17.join(dstdir, srcpath);
|
|
6850
|
+
try {
|
|
6851
|
+
srcStat = fs13.statSync(relativeToDst, { bigint: true });
|
|
6852
|
+
} catch {
|
|
6853
|
+
srcStat = fs13.statSync(srcpath, { bigint: true });
|
|
6854
|
+
}
|
|
6855
|
+
}
|
|
6856
|
+
const dstStat = fs13.statSync(dstpath, { bigint: true });
|
|
6857
|
+
if (areIdentical(srcStat, dstStat)) return;
|
|
6858
|
+
}
|
|
6859
|
+
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
6860
|
+
srcpath = relative.toDst;
|
|
6861
|
+
type = symlinkTypeSync(relative.toCwd, type);
|
|
6862
|
+
const dir = path17.dirname(dstpath);
|
|
6863
|
+
const exists = fs13.existsSync(dir);
|
|
6864
|
+
if (exists) return fs13.symlinkSync(srcpath, dstpath, type);
|
|
6865
|
+
mkdirsSync(dir);
|
|
6866
|
+
return fs13.symlinkSync(srcpath, dstpath, type);
|
|
6867
|
+
}
|
|
6868
|
+
module.exports = {
|
|
6869
|
+
createSymlink: u(createSymlink),
|
|
6870
|
+
createSymlinkSync: createSymlinkSync2
|
|
6871
|
+
};
|
|
6872
|
+
}
|
|
6873
|
+
});
|
|
6874
|
+
|
|
6875
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/index.js
|
|
6876
|
+
var require_ensure2 = __commonJS({
|
|
6877
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/index.js"(exports, module) {
|
|
6878
|
+
"use strict";
|
|
6879
|
+
var { createFile, createFileSync } = require_file2();
|
|
6880
|
+
var { createLink, createLinkSync } = require_link2();
|
|
6881
|
+
var { createSymlink, createSymlinkSync: createSymlinkSync2 } = require_symlink2();
|
|
6882
|
+
module.exports = {
|
|
6883
|
+
// file
|
|
6884
|
+
createFile,
|
|
6885
|
+
createFileSync,
|
|
6886
|
+
ensureFile: createFile,
|
|
6887
|
+
ensureFileSync: createFileSync,
|
|
6888
|
+
// link
|
|
6889
|
+
createLink,
|
|
6890
|
+
createLinkSync,
|
|
6891
|
+
ensureLink: createLink,
|
|
6892
|
+
ensureLinkSync: createLinkSync,
|
|
6893
|
+
// symlink
|
|
6894
|
+
createSymlink,
|
|
6895
|
+
createSymlinkSync: createSymlinkSync2,
|
|
6896
|
+
ensureSymlink: createSymlink,
|
|
6897
|
+
ensureSymlinkSync: createSymlinkSync2
|
|
6898
|
+
};
|
|
6899
|
+
}
|
|
6900
|
+
});
|
|
6901
|
+
|
|
6902
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/json/jsonfile.js
|
|
6903
|
+
var require_jsonfile3 = __commonJS({
|
|
6904
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/json/jsonfile.js"(exports, module) {
|
|
6905
|
+
"use strict";
|
|
6906
|
+
var jsonFile = require_jsonfile();
|
|
6907
|
+
module.exports = {
|
|
6908
|
+
// jsonfile exports
|
|
6909
|
+
readJson: jsonFile.readFile,
|
|
6910
|
+
readJsonSync: jsonFile.readFileSync,
|
|
6911
|
+
writeJson: jsonFile.writeFile,
|
|
6912
|
+
writeJsonSync: jsonFile.writeFileSync
|
|
6913
|
+
};
|
|
6914
|
+
}
|
|
6915
|
+
});
|
|
6916
|
+
|
|
6917
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/output-file/index.js
|
|
6918
|
+
var require_output_file2 = __commonJS({
|
|
6919
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/output-file/index.js"(exports, module) {
|
|
6920
|
+
"use strict";
|
|
6921
|
+
var u = require_universalify().fromPromise;
|
|
6922
|
+
var fs13 = require_fs2();
|
|
6923
|
+
var path17 = __require("path");
|
|
6924
|
+
var mkdir = require_mkdirs2();
|
|
6925
|
+
var pathExists = require_path_exists2().pathExists;
|
|
6926
|
+
async function outputFile(file, data, encoding = "utf-8") {
|
|
6927
|
+
const dir = path17.dirname(file);
|
|
6928
|
+
if (!await pathExists(dir)) {
|
|
6929
|
+
await mkdir.mkdirs(dir);
|
|
6930
|
+
}
|
|
6931
|
+
return fs13.writeFile(file, data, encoding);
|
|
6932
|
+
}
|
|
6933
|
+
function outputFileSync(file, ...args) {
|
|
6934
|
+
const dir = path17.dirname(file);
|
|
6935
|
+
if (!fs13.existsSync(dir)) {
|
|
6936
|
+
mkdir.mkdirsSync(dir);
|
|
6937
|
+
}
|
|
6938
|
+
fs13.writeFileSync(file, ...args);
|
|
6939
|
+
}
|
|
6940
|
+
module.exports = {
|
|
6941
|
+
outputFile: u(outputFile),
|
|
6942
|
+
outputFileSync
|
|
6943
|
+
};
|
|
6944
|
+
}
|
|
6945
|
+
});
|
|
6946
|
+
|
|
6947
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/json/output-json.js
|
|
6948
|
+
var require_output_json2 = __commonJS({
|
|
6949
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/json/output-json.js"(exports, module) {
|
|
6950
|
+
"use strict";
|
|
6951
|
+
var { stringify } = require_utils2();
|
|
6952
|
+
var { outputFile } = require_output_file2();
|
|
6953
|
+
async function outputJson(file, data, options = {}) {
|
|
6954
|
+
const str = stringify(data, options);
|
|
6955
|
+
await outputFile(file, str, options);
|
|
6956
|
+
}
|
|
6957
|
+
module.exports = outputJson;
|
|
6958
|
+
}
|
|
6959
|
+
});
|
|
6960
|
+
|
|
6961
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/json/output-json-sync.js
|
|
6962
|
+
var require_output_json_sync2 = __commonJS({
|
|
6963
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module) {
|
|
6964
|
+
"use strict";
|
|
6965
|
+
var { stringify } = require_utils2();
|
|
6966
|
+
var { outputFileSync } = require_output_file2();
|
|
6967
|
+
function outputJsonSync(file, data, options) {
|
|
6968
|
+
const str = stringify(data, options);
|
|
6969
|
+
outputFileSync(file, str, options);
|
|
6970
|
+
}
|
|
6971
|
+
module.exports = outputJsonSync;
|
|
6972
|
+
}
|
|
6973
|
+
});
|
|
6974
|
+
|
|
6975
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/json/index.js
|
|
6976
|
+
var require_json2 = __commonJS({
|
|
6977
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/json/index.js"(exports, module) {
|
|
6978
|
+
"use strict";
|
|
6979
|
+
var u = require_universalify().fromPromise;
|
|
6980
|
+
var jsonFile = require_jsonfile3();
|
|
6981
|
+
jsonFile.outputJson = u(require_output_json2());
|
|
6982
|
+
jsonFile.outputJsonSync = require_output_json_sync2();
|
|
6983
|
+
jsonFile.outputJSON = jsonFile.outputJson;
|
|
6984
|
+
jsonFile.outputJSONSync = jsonFile.outputJsonSync;
|
|
6985
|
+
jsonFile.writeJSON = jsonFile.writeJson;
|
|
6986
|
+
jsonFile.writeJSONSync = jsonFile.writeJsonSync;
|
|
6987
|
+
jsonFile.readJSON = jsonFile.readJson;
|
|
6988
|
+
jsonFile.readJSONSync = jsonFile.readJsonSync;
|
|
6989
|
+
module.exports = jsonFile;
|
|
6990
|
+
}
|
|
6991
|
+
});
|
|
6992
|
+
|
|
6993
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/move/move.js
|
|
6994
|
+
var require_move3 = __commonJS({
|
|
6995
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/move/move.js"(exports, module) {
|
|
6996
|
+
"use strict";
|
|
6997
|
+
var fs13 = require_fs2();
|
|
6998
|
+
var path17 = __require("path");
|
|
6999
|
+
var { copy: copy2 } = require_copy4();
|
|
7000
|
+
var { remove } = require_remove2();
|
|
7001
|
+
var { mkdirp } = require_mkdirs2();
|
|
7002
|
+
var { pathExists } = require_path_exists2();
|
|
7003
|
+
var stat = require_stat2();
|
|
7004
|
+
async function move(src2, dest, opts2 = {}) {
|
|
7005
|
+
const overwrite = opts2.overwrite || opts2.clobber || false;
|
|
7006
|
+
const { srcStat, isChangingCase = false } = await stat.checkPaths(src2, dest, "move", opts2);
|
|
7007
|
+
await stat.checkParentPaths(src2, srcStat, dest, "move");
|
|
7008
|
+
const destParent = path17.dirname(dest);
|
|
7009
|
+
const parsedParentPath = path17.parse(destParent);
|
|
7010
|
+
if (parsedParentPath.root !== destParent) {
|
|
7011
|
+
await mkdirp(destParent);
|
|
7012
|
+
}
|
|
7013
|
+
return doRename(src2, dest, overwrite, isChangingCase);
|
|
7014
|
+
}
|
|
7015
|
+
async function doRename(src2, dest, overwrite, isChangingCase) {
|
|
7016
|
+
if (!isChangingCase) {
|
|
7017
|
+
if (overwrite) {
|
|
7018
|
+
await remove(dest);
|
|
7019
|
+
} else if (await pathExists(dest)) {
|
|
7020
|
+
throw new Error("dest already exists.");
|
|
7021
|
+
}
|
|
7022
|
+
}
|
|
7023
|
+
try {
|
|
7024
|
+
await fs13.rename(src2, dest);
|
|
7025
|
+
} catch (err) {
|
|
7026
|
+
if (err.code !== "EXDEV") {
|
|
7027
|
+
throw err;
|
|
7028
|
+
}
|
|
7029
|
+
await moveAcrossDevice(src2, dest, overwrite);
|
|
7030
|
+
}
|
|
7031
|
+
}
|
|
7032
|
+
async function moveAcrossDevice(src2, dest, overwrite) {
|
|
7033
|
+
const opts2 = {
|
|
7034
|
+
overwrite,
|
|
7035
|
+
errorOnExist: true,
|
|
7036
|
+
preserveTimestamps: true
|
|
7037
|
+
};
|
|
7038
|
+
await copy2(src2, dest, opts2);
|
|
7039
|
+
return remove(src2);
|
|
7040
|
+
}
|
|
7041
|
+
module.exports = move;
|
|
7042
|
+
}
|
|
7043
|
+
});
|
|
7044
|
+
|
|
7045
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/move/move-sync.js
|
|
7046
|
+
var require_move_sync2 = __commonJS({
|
|
7047
|
+
"../../../../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) {
|
|
7048
|
+
"use strict";
|
|
7049
|
+
var fs13 = require_graceful_fs();
|
|
7050
|
+
var path17 = __require("path");
|
|
7051
|
+
var copySync2 = require_copy4().copySync;
|
|
7052
|
+
var removeSync = require_remove2().removeSync;
|
|
7053
|
+
var mkdirpSync = require_mkdirs2().mkdirpSync;
|
|
7054
|
+
var stat = require_stat2();
|
|
7055
|
+
function moveSync(src2, dest, opts2) {
|
|
7056
|
+
opts2 = opts2 || {};
|
|
7057
|
+
const overwrite = opts2.overwrite || opts2.clobber || false;
|
|
7058
|
+
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src2, dest, "move", opts2);
|
|
7059
|
+
stat.checkParentPathsSync(src2, srcStat, dest, "move");
|
|
7060
|
+
if (!isParentRoot(dest)) mkdirpSync(path17.dirname(dest));
|
|
7061
|
+
return doRename(src2, dest, overwrite, isChangingCase);
|
|
7062
|
+
}
|
|
7063
|
+
function isParentRoot(dest) {
|
|
7064
|
+
const parent = path17.dirname(dest);
|
|
7065
|
+
const parsedPath = path17.parse(parent);
|
|
7066
|
+
return parsedPath.root === parent;
|
|
7067
|
+
}
|
|
7068
|
+
function doRename(src2, dest, overwrite, isChangingCase) {
|
|
7069
|
+
if (isChangingCase) return rename(src2, dest, overwrite);
|
|
7070
|
+
if (overwrite) {
|
|
7071
|
+
removeSync(dest);
|
|
7072
|
+
return rename(src2, dest, overwrite);
|
|
7073
|
+
}
|
|
7074
|
+
if (fs13.existsSync(dest)) throw new Error("dest already exists.");
|
|
7075
|
+
return rename(src2, dest, overwrite);
|
|
7076
|
+
}
|
|
7077
|
+
function rename(src2, dest, overwrite) {
|
|
7078
|
+
try {
|
|
7079
|
+
fs13.renameSync(src2, dest);
|
|
7080
|
+
} catch (err) {
|
|
7081
|
+
if (err.code !== "EXDEV") throw err;
|
|
7082
|
+
return moveAcrossDevice(src2, dest, overwrite);
|
|
7083
|
+
}
|
|
7084
|
+
}
|
|
7085
|
+
function moveAcrossDevice(src2, dest, overwrite) {
|
|
7086
|
+
const opts2 = {
|
|
7087
|
+
overwrite,
|
|
7088
|
+
errorOnExist: true,
|
|
7089
|
+
preserveTimestamps: true
|
|
7090
|
+
};
|
|
7091
|
+
copySync2(src2, dest, opts2);
|
|
7092
|
+
return removeSync(src2);
|
|
7093
|
+
}
|
|
7094
|
+
module.exports = moveSync;
|
|
7095
|
+
}
|
|
7096
|
+
});
|
|
7097
|
+
|
|
7098
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/move/index.js
|
|
7099
|
+
var require_move4 = __commonJS({
|
|
7100
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/move/index.js"(exports, module) {
|
|
7101
|
+
"use strict";
|
|
7102
|
+
var u = require_universalify().fromPromise;
|
|
7103
|
+
module.exports = {
|
|
7104
|
+
move: u(require_move3()),
|
|
7105
|
+
moveSync: require_move_sync2()
|
|
7106
|
+
};
|
|
7107
|
+
}
|
|
7108
|
+
});
|
|
7109
|
+
|
|
7110
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/index.js
|
|
7111
|
+
var require_lib2 = __commonJS({
|
|
7112
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/index.js"(exports, module) {
|
|
7113
|
+
"use strict";
|
|
7114
|
+
module.exports = {
|
|
7115
|
+
// Export promiseified graceful-fs:
|
|
7116
|
+
...require_fs2(),
|
|
7117
|
+
// Export extra methods:
|
|
7118
|
+
...require_copy4(),
|
|
7119
|
+
...require_empty2(),
|
|
7120
|
+
...require_ensure2(),
|
|
7121
|
+
...require_json2(),
|
|
7122
|
+
...require_mkdirs2(),
|
|
7123
|
+
...require_move4(),
|
|
7124
|
+
...require_output_file2(),
|
|
7125
|
+
...require_path_exists2(),
|
|
7126
|
+
...require_remove2()
|
|
7127
|
+
};
|
|
7128
|
+
}
|
|
7129
|
+
});
|
|
7130
|
+
|
|
5832
7131
|
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/truncate-utf8-bytes/1.0.2/a125ab6f857e769c1c35dafd31e6b108b9a2517e088148da14ad32169c2567ee/node_modules/truncate-utf8-bytes/lib/truncate.js
|
|
5833
7132
|
var require_truncate = __commonJS({
|
|
5834
7133
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/truncate-utf8-bytes/1.0.2/a125ab6f857e769c1c35dafd31e6b108b9a2517e088148da14ad32169c2567ee/node_modules/truncate-utf8-bytes/lib/truncate.js"(exports, module) {
|
|
@@ -6472,9 +7771,9 @@ var require_node_gyp_build_optional_packages = __commonJS({
|
|
|
6472
7771
|
}
|
|
6473
7772
|
});
|
|
6474
7773
|
|
|
6475
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr-extract/3.0.3/
|
|
7774
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr-extract/3.0.3/dc63a7e9c8306acc1418464548648c97e4a5c8c81989d7240121ad9e55103078/node_modules/msgpackr-extract/index.js
|
|
6476
7775
|
var require_msgpackr_extract = __commonJS({
|
|
6477
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr-extract/3.0.3/
|
|
7776
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr-extract/3.0.3/dc63a7e9c8306acc1418464548648c97e4a5c8c81989d7240121ad9e55103078/node_modules/msgpackr-extract/index.js"(exports, module) {
|
|
6478
7777
|
module.exports = require_node_gyp_build_optional_packages()(__dirname);
|
|
6479
7778
|
}
|
|
6480
7779
|
});
|
|
@@ -7047,7 +8346,7 @@ import fs9 from "node:fs";
|
|
|
7047
8346
|
import path13 from "node:path";
|
|
7048
8347
|
import util6 from "node:util";
|
|
7049
8348
|
init_rimraf();
|
|
7050
|
-
var import_fs_extra2 = __toESM(
|
|
8349
|
+
var import_fs_extra2 = __toESM(require_lib2(), 1);
|
|
7051
8350
|
|
|
7052
8351
|
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/make-empty-dir/4.0.0/3607722a2f7d328bdf182e4db3290941113e732fd2d785b1a5837ab89bb24489/node_modules/make-empty-dir/index.js
|
|
7053
8352
|
init_rimraf();
|
|
@@ -7684,7 +8983,7 @@ function createCafsStore(storeDir, opts2) {
|
|
|
7684
8983
|
import fs11 from "node:fs";
|
|
7685
8984
|
import { createRequire as createRequire2 } from "node:module";
|
|
7686
8985
|
|
|
7687
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/
|
|
8986
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/46dd53c5eb8ac19961b8dcfdc6cb3c46229e7d03ddda6f31cf5a680868f31b80/node_modules/msgpackr/unpack.js
|
|
7688
8987
|
var decoder;
|
|
7689
8988
|
try {
|
|
7690
8989
|
decoder = new TextDecoder();
|
|
@@ -8801,7 +10100,7 @@ function setReadStruct(updatedReadStruct, loadedStructs, saveState3) {
|
|
|
8801
10100
|
onSaveState = saveState3;
|
|
8802
10101
|
}
|
|
8803
10102
|
|
|
8804
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/
|
|
10103
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/46dd53c5eb8ac19961b8dcfdc6cb3c46229e7d03ddda6f31cf5a680868f31b80/node_modules/msgpackr/pack.js
|
|
8805
10104
|
var textEncoder;
|
|
8806
10105
|
try {
|
|
8807
10106
|
textEncoder = new TextEncoder();
|
|
@@ -9867,7 +11166,7 @@ var REUSE_BUFFER_MODE = 512;
|
|
|
9867
11166
|
var RESET_BUFFER_MODE = 1024;
|
|
9868
11167
|
var RESERVE_START_SPACE = 2048;
|
|
9869
11168
|
|
|
9870
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/
|
|
11169
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/46dd53c5eb8ac19961b8dcfdc6cb3c46229e7d03ddda6f31cf5a680868f31b80/node_modules/msgpackr/struct.js
|
|
9871
11170
|
var ASCII = 3;
|
|
9872
11171
|
var NUMBER = 0;
|
|
9873
11172
|
var UTF8 = 2;
|
|
@@ -10582,7 +11881,7 @@ function prepareStructures2(structures, packr2) {
|
|
|
10582
11881
|
}
|
|
10583
11882
|
setReadStruct(readStruct2, onLoadedStructures2, saveState2);
|
|
10584
11883
|
|
|
10585
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/
|
|
11884
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/46dd53c5eb8ac19961b8dcfdc6cb3c46229e7d03ddda6f31cf5a680868f31b80/node_modules/msgpackr/node-index.js
|
|
10586
11885
|
import { createRequire } from "module";
|
|
10587
11886
|
var nativeAccelerationDisabled = process.env.MSGPACKR_NATIVE_ACCELERATION_DISABLED !== void 0 && process.env.MSGPACKR_NATIVE_ACCELERATION_DISABLED.toLowerCase() === "true";
|
|
10588
11887
|
if (!nativeAccelerationDisabled) {
|