@storm-software/workspace-tools 1.31.12 → 1.31.13
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/CHANGELOG.md +7 -0
- package/index.js +2398 -2213
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +242 -57
- package/src/executors/design-tokens/executor.js +1475 -1290
- package/src/executors/tsup/executor.js +2370 -2185
- package/src/executors/tsup-browser/executor.js +2376 -2191
- package/src/executors/tsup-neutral/executor.js +2376 -2191
- package/src/executors/tsup-node/executor.js +2376 -2191
- package/src/generators/browser-library/generator.js +945 -760
- package/src/generators/config-schema/generator.js +440 -255
- package/src/generators/neutral-library/generator.js +945 -760
- package/src/generators/node-library/generator.js +945 -760
- package/src/generators/preset/generator.js +442 -257
|
@@ -169,11 +169,11 @@ function __metadata(metadataKey, metadataValue) {
|
|
|
169
169
|
}
|
|
170
170
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
171
171
|
function adopt(value) {
|
|
172
|
-
return value instanceof P ? value : new P(function(
|
|
173
|
-
|
|
172
|
+
return value instanceof P ? value : new P(function(resolve2) {
|
|
173
|
+
resolve2(value);
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
-
return new (P || (P = Promise))(function(
|
|
176
|
+
return new (P || (P = Promise))(function(resolve2, reject) {
|
|
177
177
|
function fulfilled(value) {
|
|
178
178
|
try {
|
|
179
179
|
step(generator.next(value));
|
|
@@ -189,7 +189,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
function step(result) {
|
|
192
|
-
result.done ?
|
|
192
|
+
result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
193
193
|
}
|
|
194
194
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
195
195
|
});
|
|
@@ -395,14 +395,14 @@ function __asyncValues(o) {
|
|
|
395
395
|
}, i);
|
|
396
396
|
function verb(n) {
|
|
397
397
|
i[n] = o[n] && function(v) {
|
|
398
|
-
return new Promise(function(
|
|
399
|
-
v = o[n](v), settle(
|
|
398
|
+
return new Promise(function(resolve2, reject) {
|
|
399
|
+
v = o[n](v), settle(resolve2, reject, v.done, v.value);
|
|
400
400
|
});
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
|
-
function settle(
|
|
403
|
+
function settle(resolve2, reject, d, v) {
|
|
404
404
|
Promise.resolve(v).then(function(v2) {
|
|
405
|
-
|
|
405
|
+
resolve2({ value: v2, done: d });
|
|
406
406
|
}, reject);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
@@ -606,7 +606,7 @@ var require_format_files = __commonJS({
|
|
|
606
606
|
"use strict";
|
|
607
607
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
608
608
|
exports.formatFiles = void 0;
|
|
609
|
-
var
|
|
609
|
+
var path4 = require("path");
|
|
610
610
|
var nx_1 = require_nx();
|
|
611
611
|
var { updateJson: updateJson2, readJson: readJson2, sortObjectByKeys } = (0, nx_1.requireNx)();
|
|
612
612
|
sortObjectByKeys = sortObjectByKeys ?? require("nx/src/utils/object-sort").sortObjectByKeys;
|
|
@@ -623,7 +623,7 @@ var require_format_files = __commonJS({
|
|
|
623
623
|
const changedPrettierInTree = getChangedPrettierConfigInTree(tree);
|
|
624
624
|
await Promise.all(Array.from(files).map(async (file) => {
|
|
625
625
|
try {
|
|
626
|
-
const systemPath =
|
|
626
|
+
const systemPath = path4.join(tree.root, file.path);
|
|
627
627
|
const resolvedOptions = await prettier.resolveConfig(systemPath, {
|
|
628
628
|
editorconfig: true
|
|
629
629
|
});
|
|
@@ -667,9 +667,9 @@ var require_format_files = __commonJS({
|
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
function getRootTsConfigPath(tree) {
|
|
670
|
-
for (const
|
|
671
|
-
if (tree.exists(
|
|
672
|
-
return
|
|
670
|
+
for (const path5 of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
671
|
+
if (tree.exists(path5)) {
|
|
672
|
+
return path5;
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
return null;
|
|
@@ -962,8 +962,8 @@ var require_binary_extensions = __commonJS({
|
|
|
962
962
|
".zip",
|
|
963
963
|
".zipx"
|
|
964
964
|
]);
|
|
965
|
-
function isBinaryPath(
|
|
966
|
-
return binaryExtensions.has((0, path_1.extname)(
|
|
965
|
+
function isBinaryPath(path4) {
|
|
966
|
+
return binaryExtensions.has((0, path_1.extname)(path4).toLowerCase());
|
|
967
967
|
}
|
|
968
968
|
exports.isBinaryPath = isBinaryPath;
|
|
969
969
|
}
|
|
@@ -1146,8 +1146,8 @@ var require_package = __commonJS({
|
|
|
1146
1146
|
var require_ejs = __commonJS({
|
|
1147
1147
|
"node_modules/.pnpm/ejs@3.1.9/node_modules/ejs/lib/ejs.js"(exports) {
|
|
1148
1148
|
"use strict";
|
|
1149
|
-
var
|
|
1150
|
-
var
|
|
1149
|
+
var fs2 = require("fs");
|
|
1150
|
+
var path4 = require("path");
|
|
1151
1151
|
var utils = require_utils();
|
|
1152
1152
|
var scopeOptionWarned = false;
|
|
1153
1153
|
var _VERSION_STRING = require_package().version;
|
|
@@ -1174,14 +1174,14 @@ var require_ejs = __commonJS({
|
|
|
1174
1174
|
var _BOM = /^\uFEFF/;
|
|
1175
1175
|
var _JS_IDENTIFIER = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/;
|
|
1176
1176
|
exports.cache = utils.cache;
|
|
1177
|
-
exports.fileLoader =
|
|
1177
|
+
exports.fileLoader = fs2.readFileSync;
|
|
1178
1178
|
exports.localsName = _DEFAULT_LOCALS_NAME;
|
|
1179
1179
|
exports.promiseImpl = new Function("return this;")().Promise;
|
|
1180
1180
|
exports.resolveInclude = function(name, filename, isDir) {
|
|
1181
|
-
var
|
|
1182
|
-
var extname =
|
|
1183
|
-
var
|
|
1184
|
-
var includePath =
|
|
1181
|
+
var dirname2 = path4.dirname;
|
|
1182
|
+
var extname = path4.extname;
|
|
1183
|
+
var resolve2 = path4.resolve;
|
|
1184
|
+
var includePath = resolve2(isDir ? filename : dirname2(filename), name);
|
|
1185
1185
|
var ext = extname(name);
|
|
1186
1186
|
if (!ext) {
|
|
1187
1187
|
includePath += ".ejs";
|
|
@@ -1192,35 +1192,35 @@ var require_ejs = __commonJS({
|
|
|
1192
1192
|
var filePath;
|
|
1193
1193
|
if (paths.some(function(v) {
|
|
1194
1194
|
filePath = exports.resolveInclude(name, v, true);
|
|
1195
|
-
return
|
|
1195
|
+
return fs2.existsSync(filePath);
|
|
1196
1196
|
})) {
|
|
1197
1197
|
return filePath;
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
|
-
function getIncludePath(
|
|
1200
|
+
function getIncludePath(path5, options) {
|
|
1201
1201
|
var includePath;
|
|
1202
1202
|
var filePath;
|
|
1203
1203
|
var views = options.views;
|
|
1204
|
-
var match = /^[A-Za-z]+:\\|^\//.exec(
|
|
1204
|
+
var match = /^[A-Za-z]+:\\|^\//.exec(path5);
|
|
1205
1205
|
if (match && match.length) {
|
|
1206
|
-
|
|
1206
|
+
path5 = path5.replace(/^\/*/, "");
|
|
1207
1207
|
if (Array.isArray(options.root)) {
|
|
1208
|
-
includePath = resolvePaths(
|
|
1208
|
+
includePath = resolvePaths(path5, options.root);
|
|
1209
1209
|
} else {
|
|
1210
|
-
includePath = exports.resolveInclude(
|
|
1210
|
+
includePath = exports.resolveInclude(path5, options.root || "/", true);
|
|
1211
1211
|
}
|
|
1212
1212
|
} else {
|
|
1213
1213
|
if (options.filename) {
|
|
1214
|
-
filePath = exports.resolveInclude(
|
|
1215
|
-
if (
|
|
1214
|
+
filePath = exports.resolveInclude(path5, options.filename);
|
|
1215
|
+
if (fs2.existsSync(filePath)) {
|
|
1216
1216
|
includePath = filePath;
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
if (!includePath && Array.isArray(views)) {
|
|
1220
|
-
includePath = resolvePaths(
|
|
1220
|
+
includePath = resolvePaths(path5, views);
|
|
1221
1221
|
}
|
|
1222
1222
|
if (!includePath && typeof options.includer !== "function") {
|
|
1223
|
-
throw new Error('Could not find the include file "' + options.escapeFunction(
|
|
1223
|
+
throw new Error('Could not find the include file "' + options.escapeFunction(path5) + '"');
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
return includePath;
|
|
@@ -1256,10 +1256,10 @@ var require_ejs = __commonJS({
|
|
|
1256
1256
|
var result;
|
|
1257
1257
|
if (!cb) {
|
|
1258
1258
|
if (typeof exports.promiseImpl == "function") {
|
|
1259
|
-
return new exports.promiseImpl(function(
|
|
1259
|
+
return new exports.promiseImpl(function(resolve2, reject) {
|
|
1260
1260
|
try {
|
|
1261
1261
|
result = handleCache(options)(data);
|
|
1262
|
-
|
|
1262
|
+
resolve2(result);
|
|
1263
1263
|
} catch (err) {
|
|
1264
1264
|
reject(err);
|
|
1265
1265
|
}
|
|
@@ -1279,11 +1279,11 @@ var require_ejs = __commonJS({
|
|
|
1279
1279
|
function fileLoader(filePath) {
|
|
1280
1280
|
return exports.fileLoader(filePath);
|
|
1281
1281
|
}
|
|
1282
|
-
function includeFile(
|
|
1282
|
+
function includeFile(path5, options) {
|
|
1283
1283
|
var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
|
|
1284
|
-
opts.filename = getIncludePath(
|
|
1284
|
+
opts.filename = getIncludePath(path5, opts);
|
|
1285
1285
|
if (typeof options.includer === "function") {
|
|
1286
|
-
var includerResult = options.includer(
|
|
1286
|
+
var includerResult = options.includer(path5, opts.filename);
|
|
1287
1287
|
if (includerResult) {
|
|
1288
1288
|
if (includerResult.filename) {
|
|
1289
1289
|
opts.filename = includerResult.filename;
|
|
@@ -1518,12 +1518,12 @@ var require_ejs = __commonJS({
|
|
|
1518
1518
|
throw e;
|
|
1519
1519
|
}
|
|
1520
1520
|
var returnedFn = opts.client ? fn : function anonymous(data) {
|
|
1521
|
-
var include = function(
|
|
1521
|
+
var include = function(path5, includeData) {
|
|
1522
1522
|
var d = utils.shallowCopy(utils.createNullProtoObjWherePossible(), data);
|
|
1523
1523
|
if (includeData) {
|
|
1524
1524
|
d = utils.shallowCopy(d, includeData);
|
|
1525
1525
|
}
|
|
1526
|
-
return includeFile(
|
|
1526
|
+
return includeFile(path5, opts)(d);
|
|
1527
1527
|
};
|
|
1528
1528
|
return fn.apply(
|
|
1529
1529
|
opts.context,
|
|
@@ -1532,7 +1532,7 @@ var require_ejs = __commonJS({
|
|
|
1532
1532
|
};
|
|
1533
1533
|
if (opts.filename && typeof Object.defineProperty === "function") {
|
|
1534
1534
|
var filename = opts.filename;
|
|
1535
|
-
var basename =
|
|
1535
|
+
var basename = path4.basename(filename, path4.extname(filename));
|
|
1536
1536
|
try {
|
|
1537
1537
|
Object.defineProperty(returnedFn, "name", {
|
|
1538
1538
|
value: basename,
|
|
@@ -1695,7 +1695,7 @@ var require_generate_files = __commonJS({
|
|
|
1695
1695
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1696
1696
|
exports.generateFiles = void 0;
|
|
1697
1697
|
var fs_1 = require("fs");
|
|
1698
|
-
var
|
|
1698
|
+
var path4 = require("path");
|
|
1699
1699
|
var nx_1 = require_nx();
|
|
1700
1700
|
var binary_extensions_1 = require_binary_extensions();
|
|
1701
1701
|
var { logger } = (0, nx_1.requireNx)();
|
|
@@ -1727,8 +1727,8 @@ var require_generate_files = __commonJS({
|
|
|
1727
1727
|
}
|
|
1728
1728
|
exports.generateFiles = generateFiles2;
|
|
1729
1729
|
function computePath(srcFolder, target, filePath, substitutions) {
|
|
1730
|
-
const relativeFromSrcFolder =
|
|
1731
|
-
let computedPath =
|
|
1730
|
+
const relativeFromSrcFolder = path4.relative(srcFolder, filePath);
|
|
1731
|
+
let computedPath = path4.join(target, relativeFromSrcFolder);
|
|
1732
1732
|
if (computedPath.endsWith(".template")) {
|
|
1733
1733
|
computedPath = computedPath.substring(0, computedPath.length - 9);
|
|
1734
1734
|
}
|
|
@@ -1741,7 +1741,7 @@ var require_generate_files = __commonJS({
|
|
|
1741
1741
|
let res = [];
|
|
1742
1742
|
try {
|
|
1743
1743
|
(0, fs_1.readdirSync)(parent).forEach((c) => {
|
|
1744
|
-
const child =
|
|
1744
|
+
const child = path4.join(parent, c);
|
|
1745
1745
|
try {
|
|
1746
1746
|
const s = (0, fs_1.statSync)(child);
|
|
1747
1747
|
if (!s.isDirectory()) {
|
|
@@ -2172,7 +2172,7 @@ var require_semver = __commonJS({
|
|
|
2172
2172
|
var require_parse = __commonJS({
|
|
2173
2173
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/parse.js"(exports, module2) {
|
|
2174
2174
|
var SemVer = require_semver();
|
|
2175
|
-
var
|
|
2175
|
+
var parse2 = (version, options, throwErrors = false) => {
|
|
2176
2176
|
if (version instanceof SemVer) {
|
|
2177
2177
|
return version;
|
|
2178
2178
|
}
|
|
@@ -2185,16 +2185,16 @@ var require_parse = __commonJS({
|
|
|
2185
2185
|
throw er;
|
|
2186
2186
|
}
|
|
2187
2187
|
};
|
|
2188
|
-
module2.exports =
|
|
2188
|
+
module2.exports = parse2;
|
|
2189
2189
|
}
|
|
2190
2190
|
});
|
|
2191
2191
|
|
|
2192
2192
|
// node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/valid.js
|
|
2193
2193
|
var require_valid = __commonJS({
|
|
2194
2194
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/valid.js"(exports, module2) {
|
|
2195
|
-
var
|
|
2195
|
+
var parse2 = require_parse();
|
|
2196
2196
|
var valid = (version, options) => {
|
|
2197
|
-
const v =
|
|
2197
|
+
const v = parse2(version, options);
|
|
2198
2198
|
return v ? v.version : null;
|
|
2199
2199
|
};
|
|
2200
2200
|
module2.exports = valid;
|
|
@@ -2204,9 +2204,9 @@ var require_valid = __commonJS({
|
|
|
2204
2204
|
// node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/clean.js
|
|
2205
2205
|
var require_clean = __commonJS({
|
|
2206
2206
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/clean.js"(exports, module2) {
|
|
2207
|
-
var
|
|
2207
|
+
var parse2 = require_parse();
|
|
2208
2208
|
var clean = (version, options) => {
|
|
2209
|
-
const s =
|
|
2209
|
+
const s = parse2(version.trim().replace(/^[=v]+/, ""), options);
|
|
2210
2210
|
return s ? s.version : null;
|
|
2211
2211
|
};
|
|
2212
2212
|
module2.exports = clean;
|
|
@@ -2239,10 +2239,10 @@ var require_inc = __commonJS({
|
|
|
2239
2239
|
// node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/diff.js
|
|
2240
2240
|
var require_diff = __commonJS({
|
|
2241
2241
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/diff.js"(exports, module2) {
|
|
2242
|
-
var
|
|
2242
|
+
var parse2 = require_parse();
|
|
2243
2243
|
var diff = (version1, version2) => {
|
|
2244
|
-
const v1 =
|
|
2245
|
-
const v2 =
|
|
2244
|
+
const v1 = parse2(version1, null, true);
|
|
2245
|
+
const v2 = parse2(version2, null, true);
|
|
2246
2246
|
const comparison = v1.compare(v2);
|
|
2247
2247
|
if (comparison === 0) {
|
|
2248
2248
|
return null;
|
|
@@ -2310,9 +2310,9 @@ var require_patch = __commonJS({
|
|
|
2310
2310
|
// node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/prerelease.js
|
|
2311
2311
|
var require_prerelease = __commonJS({
|
|
2312
2312
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/prerelease.js"(exports, module2) {
|
|
2313
|
-
var
|
|
2313
|
+
var parse2 = require_parse();
|
|
2314
2314
|
var prerelease = (version, options) => {
|
|
2315
|
-
const parsed =
|
|
2315
|
+
const parsed = parse2(version, options);
|
|
2316
2316
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
2317
2317
|
};
|
|
2318
2318
|
module2.exports = prerelease;
|
|
@@ -2484,7 +2484,7 @@ var require_cmp = __commonJS({
|
|
|
2484
2484
|
var require_coerce = __commonJS({
|
|
2485
2485
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/coerce.js"(exports, module2) {
|
|
2486
2486
|
var SemVer = require_semver();
|
|
2487
|
-
var
|
|
2487
|
+
var parse2 = require_parse();
|
|
2488
2488
|
var { safeRe: re, t } = require_re();
|
|
2489
2489
|
var coerce = (version, options) => {
|
|
2490
2490
|
if (version instanceof SemVer) {
|
|
@@ -2513,7 +2513,7 @@ var require_coerce = __commonJS({
|
|
|
2513
2513
|
if (match === null) {
|
|
2514
2514
|
return null;
|
|
2515
2515
|
}
|
|
2516
|
-
return
|
|
2516
|
+
return parse2(`${match[2]}.${match[3] || "0"}.${match[4] || "0"}`, options);
|
|
2517
2517
|
};
|
|
2518
2518
|
module2.exports = coerce;
|
|
2519
2519
|
}
|
|
@@ -2538,7 +2538,7 @@ var require_yallist = __commonJS({
|
|
|
2538
2538
|
"node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js"(exports, module2) {
|
|
2539
2539
|
"use strict";
|
|
2540
2540
|
module2.exports = Yallist;
|
|
2541
|
-
Yallist.Node =
|
|
2541
|
+
Yallist.Node = Node2;
|
|
2542
2542
|
Yallist.create = Yallist;
|
|
2543
2543
|
function Yallist(list) {
|
|
2544
2544
|
var self = this;
|
|
@@ -2852,7 +2852,7 @@ var require_yallist = __commonJS({
|
|
|
2852
2852
|
return this;
|
|
2853
2853
|
};
|
|
2854
2854
|
function insert(self, node, value) {
|
|
2855
|
-
var inserted = node === self.head ? new
|
|
2855
|
+
var inserted = node === self.head ? new Node2(value, null, node, self) : new Node2(value, node, node.next, self);
|
|
2856
2856
|
if (inserted.next === null) {
|
|
2857
2857
|
self.tail = inserted;
|
|
2858
2858
|
}
|
|
@@ -2863,22 +2863,22 @@ var require_yallist = __commonJS({
|
|
|
2863
2863
|
return inserted;
|
|
2864
2864
|
}
|
|
2865
2865
|
function push(self, item) {
|
|
2866
|
-
self.tail = new
|
|
2866
|
+
self.tail = new Node2(item, self.tail, null, self);
|
|
2867
2867
|
if (!self.head) {
|
|
2868
2868
|
self.head = self.tail;
|
|
2869
2869
|
}
|
|
2870
2870
|
self.length++;
|
|
2871
2871
|
}
|
|
2872
2872
|
function unshift(self, item) {
|
|
2873
|
-
self.head = new
|
|
2873
|
+
self.head = new Node2(item, null, self.head, self);
|
|
2874
2874
|
if (!self.tail) {
|
|
2875
2875
|
self.tail = self.head;
|
|
2876
2876
|
}
|
|
2877
2877
|
self.length++;
|
|
2878
2878
|
}
|
|
2879
|
-
function
|
|
2880
|
-
if (!(this instanceof
|
|
2881
|
-
return new
|
|
2879
|
+
function Node2(value, prev, next, list) {
|
|
2880
|
+
if (!(this instanceof Node2)) {
|
|
2881
|
+
return new Node2(value, prev, next, list);
|
|
2882
2882
|
}
|
|
2883
2883
|
this.list = list;
|
|
2884
2884
|
this.value = value;
|
|
@@ -4110,7 +4110,7 @@ var require_semver2 = __commonJS({
|
|
|
4110
4110
|
var constants = require_constants();
|
|
4111
4111
|
var SemVer = require_semver();
|
|
4112
4112
|
var identifiers = require_identifiers();
|
|
4113
|
-
var
|
|
4113
|
+
var parse2 = require_parse();
|
|
4114
4114
|
var valid = require_valid();
|
|
4115
4115
|
var clean = require_clean();
|
|
4116
4116
|
var inc = require_inc();
|
|
@@ -4148,7 +4148,7 @@ var require_semver2 = __commonJS({
|
|
|
4148
4148
|
var simplifyRange = require_simplify();
|
|
4149
4149
|
var subset = require_subset();
|
|
4150
4150
|
module2.exports = {
|
|
4151
|
-
parse,
|
|
4151
|
+
parse: parse2,
|
|
4152
4152
|
valid,
|
|
4153
4153
|
clean,
|
|
4154
4154
|
inc,
|
|
@@ -4235,7 +4235,7 @@ var require_old = __commonJS({
|
|
|
4235
4235
|
"node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js"(exports) {
|
|
4236
4236
|
var pathModule = require("path");
|
|
4237
4237
|
var isWindows = process.platform === "win32";
|
|
4238
|
-
var
|
|
4238
|
+
var fs2 = require("fs");
|
|
4239
4239
|
var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
|
|
4240
4240
|
function rethrow() {
|
|
4241
4241
|
var callback;
|
|
@@ -4300,7 +4300,7 @@ var require_old = __commonJS({
|
|
|
4300
4300
|
base = m[0];
|
|
4301
4301
|
previous = "";
|
|
4302
4302
|
if (isWindows && !knownHard[base]) {
|
|
4303
|
-
|
|
4303
|
+
fs2.lstatSync(base);
|
|
4304
4304
|
knownHard[base] = true;
|
|
4305
4305
|
}
|
|
4306
4306
|
}
|
|
@@ -4318,7 +4318,7 @@ var require_old = __commonJS({
|
|
|
4318
4318
|
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
|
4319
4319
|
resolvedLink = cache[base];
|
|
4320
4320
|
} else {
|
|
4321
|
-
var stat =
|
|
4321
|
+
var stat = fs2.lstatSync(base);
|
|
4322
4322
|
if (!stat.isSymbolicLink()) {
|
|
4323
4323
|
knownHard[base] = true;
|
|
4324
4324
|
if (cache)
|
|
@@ -4333,8 +4333,8 @@ var require_old = __commonJS({
|
|
|
4333
4333
|
}
|
|
4334
4334
|
}
|
|
4335
4335
|
if (linkTarget === null) {
|
|
4336
|
-
|
|
4337
|
-
linkTarget =
|
|
4336
|
+
fs2.statSync(base);
|
|
4337
|
+
linkTarget = fs2.readlinkSync(base);
|
|
4338
4338
|
}
|
|
4339
4339
|
resolvedLink = pathModule.resolve(previous, linkTarget);
|
|
4340
4340
|
if (cache)
|
|
@@ -4371,7 +4371,7 @@ var require_old = __commonJS({
|
|
|
4371
4371
|
base = m[0];
|
|
4372
4372
|
previous = "";
|
|
4373
4373
|
if (isWindows && !knownHard[base]) {
|
|
4374
|
-
|
|
4374
|
+
fs2.lstat(base, function(err) {
|
|
4375
4375
|
if (err)
|
|
4376
4376
|
return cb(err);
|
|
4377
4377
|
knownHard[base] = true;
|
|
@@ -4399,7 +4399,7 @@ var require_old = __commonJS({
|
|
|
4399
4399
|
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
|
4400
4400
|
return gotResolvedLink(cache[base]);
|
|
4401
4401
|
}
|
|
4402
|
-
return
|
|
4402
|
+
return fs2.lstat(base, gotStat);
|
|
4403
4403
|
}
|
|
4404
4404
|
function gotStat(err, stat) {
|
|
4405
4405
|
if (err)
|
|
@@ -4416,10 +4416,10 @@ var require_old = __commonJS({
|
|
|
4416
4416
|
return gotTarget(null, seenLinks[id], base);
|
|
4417
4417
|
}
|
|
4418
4418
|
}
|
|
4419
|
-
|
|
4419
|
+
fs2.stat(base, function(err2) {
|
|
4420
4420
|
if (err2)
|
|
4421
4421
|
return cb(err2);
|
|
4422
|
-
|
|
4422
|
+
fs2.readlink(base, function(err3, target) {
|
|
4423
4423
|
if (!isWindows)
|
|
4424
4424
|
seenLinks[id] = target;
|
|
4425
4425
|
gotTarget(err3, target);
|
|
@@ -4451,9 +4451,9 @@ var require_fs = __commonJS({
|
|
|
4451
4451
|
realpath.realpathSync = realpathSync;
|
|
4452
4452
|
realpath.monkeypatch = monkeypatch;
|
|
4453
4453
|
realpath.unmonkeypatch = unmonkeypatch;
|
|
4454
|
-
var
|
|
4455
|
-
var origRealpath =
|
|
4456
|
-
var origRealpathSync =
|
|
4454
|
+
var fs2 = require("fs");
|
|
4455
|
+
var origRealpath = fs2.realpath;
|
|
4456
|
+
var origRealpathSync = fs2.realpathSync;
|
|
4457
4457
|
var version = process.version;
|
|
4458
4458
|
var ok = /^v[0-5]\./.test(version);
|
|
4459
4459
|
var old = require_old();
|
|
@@ -4491,12 +4491,12 @@ var require_fs = __commonJS({
|
|
|
4491
4491
|
}
|
|
4492
4492
|
}
|
|
4493
4493
|
function monkeypatch() {
|
|
4494
|
-
|
|
4495
|
-
|
|
4494
|
+
fs2.realpath = realpath;
|
|
4495
|
+
fs2.realpathSync = realpathSync;
|
|
4496
4496
|
}
|
|
4497
4497
|
function unmonkeypatch() {
|
|
4498
|
-
|
|
4499
|
-
|
|
4498
|
+
fs2.realpath = origRealpath;
|
|
4499
|
+
fs2.realpathSync = origRealpathSync;
|
|
4500
4500
|
}
|
|
4501
4501
|
}
|
|
4502
4502
|
});
|
|
@@ -4731,7 +4731,7 @@ var require_minimatch = __commonJS({
|
|
|
4731
4731
|
"node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
4732
4732
|
module2.exports = minimatch;
|
|
4733
4733
|
minimatch.Minimatch = Minimatch;
|
|
4734
|
-
var
|
|
4734
|
+
var path4 = function() {
|
|
4735
4735
|
try {
|
|
4736
4736
|
return require("path");
|
|
4737
4737
|
} catch (e) {
|
|
@@ -4739,7 +4739,7 @@ var require_minimatch = __commonJS({
|
|
|
4739
4739
|
}() || {
|
|
4740
4740
|
sep: "/"
|
|
4741
4741
|
};
|
|
4742
|
-
minimatch.sep =
|
|
4742
|
+
minimatch.sep = path4.sep;
|
|
4743
4743
|
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
4744
4744
|
var expand = require_brace_expansion();
|
|
4745
4745
|
var plTypes = {
|
|
@@ -4830,8 +4830,8 @@ var require_minimatch = __commonJS({
|
|
|
4830
4830
|
if (!options)
|
|
4831
4831
|
options = {};
|
|
4832
4832
|
pattern = pattern.trim();
|
|
4833
|
-
if (!options.allowWindowsEscape &&
|
|
4834
|
-
pattern = pattern.split(
|
|
4833
|
+
if (!options.allowWindowsEscape && path4.sep !== "/") {
|
|
4834
|
+
pattern = pattern.split(path4.sep).join("/");
|
|
4835
4835
|
}
|
|
4836
4836
|
this.options = options;
|
|
4837
4837
|
this.set = [];
|
|
@@ -4922,9 +4922,9 @@ var require_minimatch = __commonJS({
|
|
|
4922
4922
|
throw new TypeError("pattern is too long");
|
|
4923
4923
|
}
|
|
4924
4924
|
};
|
|
4925
|
-
Minimatch.prototype.parse =
|
|
4925
|
+
Minimatch.prototype.parse = parse2;
|
|
4926
4926
|
var SUBPARSE = {};
|
|
4927
|
-
function
|
|
4927
|
+
function parse2(pattern, isSub) {
|
|
4928
4928
|
assertValidPattern(pattern);
|
|
4929
4929
|
var options = this.options;
|
|
4930
4930
|
if (pattern === "**") {
|
|
@@ -5208,8 +5208,8 @@ var require_minimatch = __commonJS({
|
|
|
5208
5208
|
if (f === "/" && partial)
|
|
5209
5209
|
return true;
|
|
5210
5210
|
var options = this.options;
|
|
5211
|
-
if (
|
|
5212
|
-
f = f.split(
|
|
5211
|
+
if (path4.sep !== "/") {
|
|
5212
|
+
f = f.split(path4.sep).join("/");
|
|
5213
5213
|
}
|
|
5214
5214
|
f = f.split(slashSplit);
|
|
5215
5215
|
this.debug(this.pattern, "split", f);
|
|
@@ -5367,12 +5367,12 @@ var require_inherits = __commonJS({
|
|
|
5367
5367
|
var require_path_is_absolute = __commonJS({
|
|
5368
5368
|
"node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(exports, module2) {
|
|
5369
5369
|
"use strict";
|
|
5370
|
-
function posix(
|
|
5371
|
-
return
|
|
5370
|
+
function posix(path4) {
|
|
5371
|
+
return path4.charAt(0) === "/";
|
|
5372
5372
|
}
|
|
5373
|
-
function win32(
|
|
5373
|
+
function win32(path4) {
|
|
5374
5374
|
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
|
5375
|
-
var result = splitDeviceRe.exec(
|
|
5375
|
+
var result = splitDeviceRe.exec(path4);
|
|
5376
5376
|
var device = result[1] || "";
|
|
5377
5377
|
var isUnc = Boolean(device && device.charAt(1) !== ":");
|
|
5378
5378
|
return Boolean(result[2] || isUnc);
|
|
@@ -5396,8 +5396,8 @@ var require_common = __commonJS({
|
|
|
5396
5396
|
function ownProp(obj, field) {
|
|
5397
5397
|
return Object.prototype.hasOwnProperty.call(obj, field);
|
|
5398
5398
|
}
|
|
5399
|
-
var
|
|
5400
|
-
var
|
|
5399
|
+
var fs2 = require("fs");
|
|
5400
|
+
var path4 = require("path");
|
|
5401
5401
|
var minimatch = require_minimatch();
|
|
5402
5402
|
var isAbsolute = require_path_is_absolute();
|
|
5403
5403
|
var Minimatch = minimatch.Minimatch;
|
|
@@ -5451,7 +5451,7 @@ var require_common = __commonJS({
|
|
|
5451
5451
|
self.stat = !!options.stat;
|
|
5452
5452
|
self.noprocess = !!options.noprocess;
|
|
5453
5453
|
self.absolute = !!options.absolute;
|
|
5454
|
-
self.fs = options.fs ||
|
|
5454
|
+
self.fs = options.fs || fs2;
|
|
5455
5455
|
self.maxLength = options.maxLength || Infinity;
|
|
5456
5456
|
self.cache = options.cache || /* @__PURE__ */ Object.create(null);
|
|
5457
5457
|
self.statCache = options.statCache || /* @__PURE__ */ Object.create(null);
|
|
@@ -5462,11 +5462,11 @@ var require_common = __commonJS({
|
|
|
5462
5462
|
if (!ownProp(options, "cwd"))
|
|
5463
5463
|
self.cwd = cwd;
|
|
5464
5464
|
else {
|
|
5465
|
-
self.cwd =
|
|
5465
|
+
self.cwd = path4.resolve(options.cwd);
|
|
5466
5466
|
self.changedCwd = self.cwd !== cwd;
|
|
5467
5467
|
}
|
|
5468
|
-
self.root = options.root ||
|
|
5469
|
-
self.root =
|
|
5468
|
+
self.root = options.root || path4.resolve(self.cwd, "/");
|
|
5469
|
+
self.root = path4.resolve(self.root);
|
|
5470
5470
|
if (process.platform === "win32")
|
|
5471
5471
|
self.root = self.root.replace(/\\/g, "/");
|
|
5472
5472
|
self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd);
|
|
@@ -5548,30 +5548,30 @@ var require_common = __commonJS({
|
|
|
5548
5548
|
function makeAbs(self, f) {
|
|
5549
5549
|
var abs = f;
|
|
5550
5550
|
if (f.charAt(0) === "/") {
|
|
5551
|
-
abs =
|
|
5551
|
+
abs = path4.join(self.root, f);
|
|
5552
5552
|
} else if (isAbsolute(f) || f === "") {
|
|
5553
5553
|
abs = f;
|
|
5554
5554
|
} else if (self.changedCwd) {
|
|
5555
|
-
abs =
|
|
5555
|
+
abs = path4.resolve(self.cwd, f);
|
|
5556
5556
|
} else {
|
|
5557
|
-
abs =
|
|
5557
|
+
abs = path4.resolve(f);
|
|
5558
5558
|
}
|
|
5559
5559
|
if (process.platform === "win32")
|
|
5560
5560
|
abs = abs.replace(/\\/g, "/");
|
|
5561
5561
|
return abs;
|
|
5562
5562
|
}
|
|
5563
|
-
function isIgnored(self,
|
|
5563
|
+
function isIgnored(self, path5) {
|
|
5564
5564
|
if (!self.ignore.length)
|
|
5565
5565
|
return false;
|
|
5566
5566
|
return self.ignore.some(function(item) {
|
|
5567
|
-
return item.matcher.match(
|
|
5567
|
+
return item.matcher.match(path5) || !!(item.gmatcher && item.gmatcher.match(path5));
|
|
5568
5568
|
});
|
|
5569
5569
|
}
|
|
5570
|
-
function childrenIgnored(self,
|
|
5570
|
+
function childrenIgnored(self, path5) {
|
|
5571
5571
|
if (!self.ignore.length)
|
|
5572
5572
|
return false;
|
|
5573
5573
|
return self.ignore.some(function(item) {
|
|
5574
|
-
return !!(item.gmatcher && item.gmatcher.match(
|
|
5574
|
+
return !!(item.gmatcher && item.gmatcher.match(path5));
|
|
5575
5575
|
});
|
|
5576
5576
|
}
|
|
5577
5577
|
}
|
|
@@ -5587,7 +5587,7 @@ var require_sync = __commonJS({
|
|
|
5587
5587
|
var Minimatch = minimatch.Minimatch;
|
|
5588
5588
|
var Glob = require_glob().Glob;
|
|
5589
5589
|
var util2 = require("util");
|
|
5590
|
-
var
|
|
5590
|
+
var path4 = require("path");
|
|
5591
5591
|
var assert = require("assert");
|
|
5592
5592
|
var isAbsolute = require_path_is_absolute();
|
|
5593
5593
|
var common = require_common();
|
|
@@ -5715,7 +5715,7 @@ var require_sync = __commonJS({
|
|
|
5715
5715
|
e = prefix + e;
|
|
5716
5716
|
}
|
|
5717
5717
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
5718
|
-
e =
|
|
5718
|
+
e = path4.join(this.root, e);
|
|
5719
5719
|
}
|
|
5720
5720
|
this._emitMatch(index, e);
|
|
5721
5721
|
}
|
|
@@ -5864,9 +5864,9 @@ var require_sync = __commonJS({
|
|
|
5864
5864
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
5865
5865
|
var trail = /[\/\\]$/.test(prefix);
|
|
5866
5866
|
if (prefix.charAt(0) === "/") {
|
|
5867
|
-
prefix =
|
|
5867
|
+
prefix = path4.join(this.root, prefix);
|
|
5868
5868
|
} else {
|
|
5869
|
-
prefix =
|
|
5869
|
+
prefix = path4.resolve(this.root, prefix);
|
|
5870
5870
|
if (trail)
|
|
5871
5871
|
prefix += "/";
|
|
5872
5872
|
}
|
|
@@ -6061,7 +6061,7 @@ var require_glob = __commonJS({
|
|
|
6061
6061
|
var Minimatch = minimatch.Minimatch;
|
|
6062
6062
|
var inherits = require_inherits();
|
|
6063
6063
|
var EE = require("events").EventEmitter;
|
|
6064
|
-
var
|
|
6064
|
+
var path4 = require("path");
|
|
6065
6065
|
var assert = require("assert");
|
|
6066
6066
|
var isAbsolute = require_path_is_absolute();
|
|
6067
6067
|
var globSync = require_sync();
|
|
@@ -6344,7 +6344,7 @@ var require_glob = __commonJS({
|
|
|
6344
6344
|
e = prefix + e;
|
|
6345
6345
|
}
|
|
6346
6346
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
6347
|
-
e =
|
|
6347
|
+
e = path4.join(this.root, e);
|
|
6348
6348
|
}
|
|
6349
6349
|
this._emitMatch(index, e);
|
|
6350
6350
|
}
|
|
@@ -6531,9 +6531,9 @@ var require_glob = __commonJS({
|
|
|
6531
6531
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
6532
6532
|
var trail = /[\/\\]$/.test(prefix);
|
|
6533
6533
|
if (prefix.charAt(0) === "/") {
|
|
6534
|
-
prefix =
|
|
6534
|
+
prefix = path4.join(this.root, prefix);
|
|
6535
6535
|
} else {
|
|
6536
|
-
prefix =
|
|
6536
|
+
prefix = path4.resolve(this.root, prefix);
|
|
6537
6537
|
if (trail)
|
|
6538
6538
|
prefix += "/";
|
|
6539
6539
|
}
|
|
@@ -6611,8 +6611,8 @@ var require_glob = __commonJS({
|
|
|
6611
6611
|
var require_rimraf = __commonJS({
|
|
6612
6612
|
"node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports, module2) {
|
|
6613
6613
|
var assert = require("assert");
|
|
6614
|
-
var
|
|
6615
|
-
var
|
|
6614
|
+
var path4 = require("path");
|
|
6615
|
+
var fs2 = require("fs");
|
|
6616
6616
|
var glob = void 0;
|
|
6617
6617
|
try {
|
|
6618
6618
|
glob = require_glob();
|
|
@@ -6634,9 +6634,9 @@ var require_rimraf = __commonJS({
|
|
|
6634
6634
|
"readdir"
|
|
6635
6635
|
];
|
|
6636
6636
|
methods.forEach((m) => {
|
|
6637
|
-
options[m] = options[m] ||
|
|
6637
|
+
options[m] = options[m] || fs2[m];
|
|
6638
6638
|
m = m + "Sync";
|
|
6639
|
-
options[m] = options[m] ||
|
|
6639
|
+
options[m] = options[m] || fs2[m];
|
|
6640
6640
|
});
|
|
6641
6641
|
options.maxBusyTries = options.maxBusyTries || 3;
|
|
6642
6642
|
options.emfileWait = options.emfileWait || 1e3;
|
|
@@ -6793,7 +6793,7 @@ var require_rimraf = __commonJS({
|
|
|
6793
6793
|
return options.rmdir(p, cb);
|
|
6794
6794
|
let errState;
|
|
6795
6795
|
files.forEach((f) => {
|
|
6796
|
-
rimraf(
|
|
6796
|
+
rimraf(path4.join(p, f), options, (er2) => {
|
|
6797
6797
|
if (errState)
|
|
6798
6798
|
return;
|
|
6799
6799
|
if (er2)
|
|
@@ -6868,7 +6868,7 @@ var require_rimraf = __commonJS({
|
|
|
6868
6868
|
var rmkidsSync = (p, options) => {
|
|
6869
6869
|
assert(p);
|
|
6870
6870
|
assert(options);
|
|
6871
|
-
options.readdirSync(p).forEach((f) => rimrafSync(
|
|
6871
|
+
options.readdirSync(p).forEach((f) => rimrafSync(path4.join(p, f), options));
|
|
6872
6872
|
const retries = isWindows ? 100 : 1;
|
|
6873
6873
|
let i = 0;
|
|
6874
6874
|
do {
|
|
@@ -6891,11 +6891,11 @@ var require_rimraf = __commonJS({
|
|
|
6891
6891
|
// node_modules/.pnpm/tmp@0.2.1/node_modules/tmp/lib/tmp.js
|
|
6892
6892
|
var require_tmp = __commonJS({
|
|
6893
6893
|
"node_modules/.pnpm/tmp@0.2.1/node_modules/tmp/lib/tmp.js"(exports, module2) {
|
|
6894
|
-
var
|
|
6894
|
+
var fs2 = require("fs");
|
|
6895
6895
|
var os = require("os");
|
|
6896
|
-
var
|
|
6896
|
+
var path4 = require("path");
|
|
6897
6897
|
var crypto = require("crypto");
|
|
6898
|
-
var _c = { fs:
|
|
6898
|
+
var _c = { fs: fs2.constants, os: os.constants };
|
|
6899
6899
|
var rimraf = require_rimraf();
|
|
6900
6900
|
var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
6901
6901
|
var TEMPLATE_PATTERN = /XXXXXX/;
|
|
@@ -6908,7 +6908,7 @@ var require_tmp = __commonJS({
|
|
|
6908
6908
|
var FILE_MODE = 384;
|
|
6909
6909
|
var EXIT = "exit";
|
|
6910
6910
|
var _removeObjects = [];
|
|
6911
|
-
var FN_RMDIR_SYNC =
|
|
6911
|
+
var FN_RMDIR_SYNC = fs2.rmdirSync.bind(fs2);
|
|
6912
6912
|
var FN_RIMRAF_SYNC = rimraf.sync;
|
|
6913
6913
|
var _gracefulCleanup = false;
|
|
6914
6914
|
function tmpName(options, callback) {
|
|
@@ -6922,7 +6922,7 @@ var require_tmp = __commonJS({
|
|
|
6922
6922
|
(function _getUniqueName() {
|
|
6923
6923
|
try {
|
|
6924
6924
|
const name = _generateTmpName(opts);
|
|
6925
|
-
|
|
6925
|
+
fs2.stat(name, function(err) {
|
|
6926
6926
|
if (!err) {
|
|
6927
6927
|
if (tries-- > 0)
|
|
6928
6928
|
return _getUniqueName();
|
|
@@ -6942,7 +6942,7 @@ var require_tmp = __commonJS({
|
|
|
6942
6942
|
do {
|
|
6943
6943
|
const name = _generateTmpName(opts);
|
|
6944
6944
|
try {
|
|
6945
|
-
|
|
6945
|
+
fs2.statSync(name);
|
|
6946
6946
|
} catch (e) {
|
|
6947
6947
|
return name;
|
|
6948
6948
|
}
|
|
@@ -6954,11 +6954,11 @@ var require_tmp = __commonJS({
|
|
|
6954
6954
|
tmpName(opts, function _tmpNameCreated(err, name) {
|
|
6955
6955
|
if (err)
|
|
6956
6956
|
return cb(err);
|
|
6957
|
-
|
|
6957
|
+
fs2.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) {
|
|
6958
6958
|
if (err2)
|
|
6959
6959
|
return cb(err2);
|
|
6960
6960
|
if (opts.discardDescriptor) {
|
|
6961
|
-
return
|
|
6961
|
+
return fs2.close(fd, function _discardCallback(possibleErr) {
|
|
6962
6962
|
return cb(possibleErr, name, void 0, _prepareTmpFileRemoveCallback(name, -1, opts, false));
|
|
6963
6963
|
});
|
|
6964
6964
|
} else {
|
|
@@ -6972,9 +6972,9 @@ var require_tmp = __commonJS({
|
|
|
6972
6972
|
const args = _parseArguments(options), opts = args[0];
|
|
6973
6973
|
const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
|
|
6974
6974
|
const name = tmpNameSync(opts);
|
|
6975
|
-
var fd =
|
|
6975
|
+
var fd = fs2.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
|
|
6976
6976
|
if (opts.discardDescriptor) {
|
|
6977
|
-
|
|
6977
|
+
fs2.closeSync(fd);
|
|
6978
6978
|
fd = void 0;
|
|
6979
6979
|
}
|
|
6980
6980
|
return {
|
|
@@ -6988,7 +6988,7 @@ var require_tmp = __commonJS({
|
|
|
6988
6988
|
tmpName(opts, function _tmpNameCreated(err, name) {
|
|
6989
6989
|
if (err)
|
|
6990
6990
|
return cb(err);
|
|
6991
|
-
|
|
6991
|
+
fs2.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) {
|
|
6992
6992
|
if (err2)
|
|
6993
6993
|
return cb(err2);
|
|
6994
6994
|
cb(null, name, _prepareTmpDirRemoveCallback(name, opts, false));
|
|
@@ -6998,7 +6998,7 @@ var require_tmp = __commonJS({
|
|
|
6998
6998
|
function dirSync(options) {
|
|
6999
6999
|
const args = _parseArguments(options), opts = args[0];
|
|
7000
7000
|
const name = tmpNameSync(opts);
|
|
7001
|
-
|
|
7001
|
+
fs2.mkdirSync(name, opts.mode || DIR_MODE);
|
|
7002
7002
|
return {
|
|
7003
7003
|
name,
|
|
7004
7004
|
removeCallback: _prepareTmpDirRemoveCallback(name, opts, true)
|
|
@@ -7012,23 +7012,23 @@ var require_tmp = __commonJS({
|
|
|
7012
7012
|
next();
|
|
7013
7013
|
};
|
|
7014
7014
|
if (0 <= fdPath[0])
|
|
7015
|
-
|
|
7016
|
-
|
|
7015
|
+
fs2.close(fdPath[0], function() {
|
|
7016
|
+
fs2.unlink(fdPath[1], _handler);
|
|
7017
7017
|
});
|
|
7018
7018
|
else
|
|
7019
|
-
|
|
7019
|
+
fs2.unlink(fdPath[1], _handler);
|
|
7020
7020
|
}
|
|
7021
7021
|
function _removeFileSync(fdPath) {
|
|
7022
7022
|
let rethrownException = null;
|
|
7023
7023
|
try {
|
|
7024
7024
|
if (0 <= fdPath[0])
|
|
7025
|
-
|
|
7025
|
+
fs2.closeSync(fdPath[0]);
|
|
7026
7026
|
} catch (e) {
|
|
7027
7027
|
if (!_isEBADF(e) && !_isENOENT(e))
|
|
7028
7028
|
throw e;
|
|
7029
7029
|
} finally {
|
|
7030
7030
|
try {
|
|
7031
|
-
|
|
7031
|
+
fs2.unlinkSync(fdPath[1]);
|
|
7032
7032
|
} catch (e) {
|
|
7033
7033
|
if (!_isENOENT(e))
|
|
7034
7034
|
rethrownException = e;
|
|
@@ -7046,7 +7046,7 @@ var require_tmp = __commonJS({
|
|
|
7046
7046
|
return sync ? removeCallbackSync : removeCallback;
|
|
7047
7047
|
}
|
|
7048
7048
|
function _prepareTmpDirRemoveCallback(name, opts, sync) {
|
|
7049
|
-
const removeFunction = opts.unsafeCleanup ? rimraf :
|
|
7049
|
+
const removeFunction = opts.unsafeCleanup ? rimraf : fs2.rmdir.bind(fs2);
|
|
7050
7050
|
const removeFunctionSync = opts.unsafeCleanup ? FN_RIMRAF_SYNC : FN_RMDIR_SYNC;
|
|
7051
7051
|
const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name, sync);
|
|
7052
7052
|
const removeCallback = _prepareRemoveCallback(removeFunction, name, sync, removeCallbackSync);
|
|
@@ -7116,9 +7116,9 @@ var require_tmp = __commonJS({
|
|
|
7116
7116
|
function _generateTmpName(opts) {
|
|
7117
7117
|
const tmpDir = opts.tmpdir;
|
|
7118
7118
|
if (!_isUndefined(opts.name))
|
|
7119
|
-
return
|
|
7119
|
+
return path4.join(tmpDir, opts.dir, opts.name);
|
|
7120
7120
|
if (!_isUndefined(opts.template))
|
|
7121
|
-
return
|
|
7121
|
+
return path4.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
|
|
7122
7122
|
const name = [
|
|
7123
7123
|
opts.prefix ? opts.prefix : "tmp",
|
|
7124
7124
|
"-",
|
|
@@ -7127,7 +7127,7 @@ var require_tmp = __commonJS({
|
|
|
7127
7127
|
_randomChars(12),
|
|
7128
7128
|
opts.postfix ? "-" + opts.postfix : ""
|
|
7129
7129
|
].join("");
|
|
7130
|
-
return
|
|
7130
|
+
return path4.join(tmpDir, opts.dir, name);
|
|
7131
7131
|
}
|
|
7132
7132
|
function _assertAndSanitizeOptions(options) {
|
|
7133
7133
|
options.tmpdir = _getTmpDir(options);
|
|
@@ -7148,9 +7148,9 @@ var require_tmp = __commonJS({
|
|
|
7148
7148
|
options.detachDescriptor = !!options.detachDescriptor;
|
|
7149
7149
|
options.discardDescriptor = !!options.discardDescriptor;
|
|
7150
7150
|
options.unsafeCleanup = !!options.unsafeCleanup;
|
|
7151
|
-
options.dir = _isUndefined(options.dir) ? "" :
|
|
7152
|
-
options.template = _isUndefined(options.template) ? void 0 :
|
|
7153
|
-
options.template = _isBlank(options.template) ? void 0 :
|
|
7151
|
+
options.dir = _isUndefined(options.dir) ? "" : path4.relative(tmpDir, _resolvePath(options.dir, tmpDir));
|
|
7152
|
+
options.template = _isUndefined(options.template) ? void 0 : path4.relative(tmpDir, _resolvePath(options.template, tmpDir));
|
|
7153
|
+
options.template = _isBlank(options.template) ? void 0 : path4.relative(options.dir, options.template);
|
|
7154
7154
|
options.name = _isUndefined(options.name) ? void 0 : _sanitizeName(options.name);
|
|
7155
7155
|
options.prefix = _isUndefined(options.prefix) ? "" : options.prefix;
|
|
7156
7156
|
options.postfix = _isUndefined(options.postfix) ? "" : options.postfix;
|
|
@@ -7158,9 +7158,9 @@ var require_tmp = __commonJS({
|
|
|
7158
7158
|
function _resolvePath(name, tmpDir) {
|
|
7159
7159
|
const sanitizedName = _sanitizeName(name);
|
|
7160
7160
|
if (sanitizedName.startsWith(tmpDir)) {
|
|
7161
|
-
return
|
|
7161
|
+
return path4.resolve(sanitizedName);
|
|
7162
7162
|
} else {
|
|
7163
|
-
return
|
|
7163
|
+
return path4.resolve(path4.join(tmpDir, sanitizedName));
|
|
7164
7164
|
}
|
|
7165
7165
|
}
|
|
7166
7166
|
function _sanitizeName(name) {
|
|
@@ -7171,13 +7171,13 @@ var require_tmp = __commonJS({
|
|
|
7171
7171
|
}
|
|
7172
7172
|
function _assertIsRelative(name, option, tmpDir) {
|
|
7173
7173
|
if (option === "name") {
|
|
7174
|
-
if (
|
|
7174
|
+
if (path4.isAbsolute(name))
|
|
7175
7175
|
throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
|
|
7176
|
-
let basename =
|
|
7176
|
+
let basename = path4.basename(name);
|
|
7177
7177
|
if (basename === ".." || basename === "." || basename !== name)
|
|
7178
7178
|
throw new Error(`${option} option must not contain a path, found "${name}".`);
|
|
7179
7179
|
} else {
|
|
7180
|
-
if (
|
|
7180
|
+
if (path4.isAbsolute(name) && !name.startsWith(tmpDir)) {
|
|
7181
7181
|
throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
|
|
7182
7182
|
}
|
|
7183
7183
|
let resolvedPath = _resolvePath(name, tmpDir);
|
|
@@ -7198,7 +7198,7 @@ var require_tmp = __commonJS({
|
|
|
7198
7198
|
_gracefulCleanup = true;
|
|
7199
7199
|
}
|
|
7200
7200
|
function _getTmpDir(options) {
|
|
7201
|
-
return
|
|
7201
|
+
return path4.resolve(_sanitizeName(options && options.tmpdir || os.tmpdir()));
|
|
7202
7202
|
}
|
|
7203
7203
|
process.addListener(EXIT, _garbageCollector);
|
|
7204
7204
|
Object.defineProperty(module2.exports, "tmpdir", {
|
|
@@ -7809,17 +7809,17 @@ var require_ignore = __commonJS({
|
|
|
7809
7809
|
var throwError = (message, Ctor) => {
|
|
7810
7810
|
throw new Ctor(message);
|
|
7811
7811
|
};
|
|
7812
|
-
var checkPath = (
|
|
7813
|
-
if (!isString(
|
|
7812
|
+
var checkPath = (path4, originalPath, doThrow) => {
|
|
7813
|
+
if (!isString(path4)) {
|
|
7814
7814
|
return doThrow(
|
|
7815
7815
|
`path must be a string, but got \`${originalPath}\``,
|
|
7816
7816
|
TypeError
|
|
7817
7817
|
);
|
|
7818
7818
|
}
|
|
7819
|
-
if (!
|
|
7819
|
+
if (!path4) {
|
|
7820
7820
|
return doThrow(`path must not be empty`, TypeError);
|
|
7821
7821
|
}
|
|
7822
|
-
if (checkPath.isNotRelative(
|
|
7822
|
+
if (checkPath.isNotRelative(path4)) {
|
|
7823
7823
|
const r = "`path.relative()`d";
|
|
7824
7824
|
return doThrow(
|
|
7825
7825
|
`path should be a ${r} string, but got "${originalPath}"`,
|
|
@@ -7828,7 +7828,7 @@ var require_ignore = __commonJS({
|
|
|
7828
7828
|
}
|
|
7829
7829
|
return true;
|
|
7830
7830
|
};
|
|
7831
|
-
var isNotRelative = (
|
|
7831
|
+
var isNotRelative = (path4) => REGEX_TEST_INVALID_PATH.test(path4);
|
|
7832
7832
|
checkPath.isNotRelative = isNotRelative;
|
|
7833
7833
|
checkPath.convert = (p) => p;
|
|
7834
7834
|
var Ignore = class {
|
|
@@ -7887,7 +7887,7 @@ var require_ignore = __commonJS({
|
|
|
7887
7887
|
// setting `checkUnignored` to `false` could reduce additional
|
|
7888
7888
|
// path matching.
|
|
7889
7889
|
// @returns {TestResult} true if a file is ignored
|
|
7890
|
-
_testOne(
|
|
7890
|
+
_testOne(path4, checkUnignored) {
|
|
7891
7891
|
let ignored = false;
|
|
7892
7892
|
let unignored = false;
|
|
7893
7893
|
this._rules.forEach((rule) => {
|
|
@@ -7895,7 +7895,7 @@ var require_ignore = __commonJS({
|
|
|
7895
7895
|
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
|
|
7896
7896
|
return;
|
|
7897
7897
|
}
|
|
7898
|
-
const matched = rule.regex.test(
|
|
7898
|
+
const matched = rule.regex.test(path4);
|
|
7899
7899
|
if (matched) {
|
|
7900
7900
|
ignored = !negative;
|
|
7901
7901
|
unignored = negative;
|
|
@@ -7908,24 +7908,24 @@ var require_ignore = __commonJS({
|
|
|
7908
7908
|
}
|
|
7909
7909
|
// @returns {TestResult}
|
|
7910
7910
|
_test(originalPath, cache, checkUnignored, slices) {
|
|
7911
|
-
const
|
|
7911
|
+
const path4 = originalPath && checkPath.convert(originalPath);
|
|
7912
7912
|
checkPath(
|
|
7913
|
-
|
|
7913
|
+
path4,
|
|
7914
7914
|
originalPath,
|
|
7915
7915
|
this._allowRelativePaths ? RETURN_FALSE : throwError
|
|
7916
7916
|
);
|
|
7917
|
-
return this._t(
|
|
7917
|
+
return this._t(path4, cache, checkUnignored, slices);
|
|
7918
7918
|
}
|
|
7919
|
-
_t(
|
|
7920
|
-
if (
|
|
7921
|
-
return cache[
|
|
7919
|
+
_t(path4, cache, checkUnignored, slices) {
|
|
7920
|
+
if (path4 in cache) {
|
|
7921
|
+
return cache[path4];
|
|
7922
7922
|
}
|
|
7923
7923
|
if (!slices) {
|
|
7924
|
-
slices =
|
|
7924
|
+
slices = path4.split(SLASH);
|
|
7925
7925
|
}
|
|
7926
7926
|
slices.pop();
|
|
7927
7927
|
if (!slices.length) {
|
|
7928
|
-
return cache[
|
|
7928
|
+
return cache[path4] = this._testOne(path4, checkUnignored);
|
|
7929
7929
|
}
|
|
7930
7930
|
const parent = this._t(
|
|
7931
7931
|
slices.join(SLASH) + SLASH,
|
|
@@ -7933,24 +7933,24 @@ var require_ignore = __commonJS({
|
|
|
7933
7933
|
checkUnignored,
|
|
7934
7934
|
slices
|
|
7935
7935
|
);
|
|
7936
|
-
return cache[
|
|
7936
|
+
return cache[path4] = parent.ignored ? parent : this._testOne(path4, checkUnignored);
|
|
7937
7937
|
}
|
|
7938
|
-
ignores(
|
|
7939
|
-
return this._test(
|
|
7938
|
+
ignores(path4) {
|
|
7939
|
+
return this._test(path4, this._ignoreCache, false).ignored;
|
|
7940
7940
|
}
|
|
7941
7941
|
createFilter() {
|
|
7942
|
-
return (
|
|
7942
|
+
return (path4) => !this.ignores(path4);
|
|
7943
7943
|
}
|
|
7944
7944
|
filter(paths) {
|
|
7945
7945
|
return makeArray(paths).filter(this.createFilter());
|
|
7946
7946
|
}
|
|
7947
7947
|
// @returns {TestResult}
|
|
7948
|
-
test(
|
|
7949
|
-
return this._test(
|
|
7948
|
+
test(path4) {
|
|
7949
|
+
return this._test(path4, this._testCache, true);
|
|
7950
7950
|
}
|
|
7951
7951
|
};
|
|
7952
7952
|
var factory = (options) => new Ignore(options);
|
|
7953
|
-
var isPathValid = (
|
|
7953
|
+
var isPathValid = (path4) => checkPath(path4 && checkPath.convert(path4), path4, RETURN_FALSE);
|
|
7954
7954
|
factory.isPathValid = isPathValid;
|
|
7955
7955
|
factory.default = factory;
|
|
7956
7956
|
module2.exports = factory;
|
|
@@ -7961,7 +7961,7 @@ var require_ignore = __commonJS({
|
|
|
7961
7961
|
const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
|
|
7962
7962
|
checkPath.convert = makePosix;
|
|
7963
7963
|
const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
|
7964
|
-
checkPath.isNotRelative = (
|
|
7964
|
+
checkPath.isNotRelative = (path4) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path4) || isNotRelative(path4);
|
|
7965
7965
|
}
|
|
7966
7966
|
}
|
|
7967
7967
|
});
|
|
@@ -8002,8 +8002,8 @@ var require_visit_not_ignored_files = __commonJS({
|
|
|
8002
8002
|
}
|
|
8003
8003
|
}
|
|
8004
8004
|
exports.visitNotIgnoredFiles = visitNotIgnoredFiles;
|
|
8005
|
-
function normalizePathRelativeToRoot(
|
|
8006
|
-
return (0, path_1.relative)(root, (0, path_1.join)(root,
|
|
8005
|
+
function normalizePathRelativeToRoot(path4, root) {
|
|
8006
|
+
return (0, path_1.relative)(root, (0, path_1.join)(root, path4)).split(path_1.sep).join("/");
|
|
8007
8007
|
}
|
|
8008
8008
|
}
|
|
8009
8009
|
});
|
|
@@ -8384,8 +8384,8 @@ var require_invoke_nx_generator = __commonJS({
|
|
|
8384
8384
|
}
|
|
8385
8385
|
return fileChanges;
|
|
8386
8386
|
}
|
|
8387
|
-
normalize(
|
|
8388
|
-
return (0, path_1.relative)(this.root, (0, path_1.join)(this.root,
|
|
8387
|
+
normalize(path4) {
|
|
8388
|
+
return (0, path_1.relative)(this.root, (0, path_1.join)(this.root, path4));
|
|
8389
8389
|
}
|
|
8390
8390
|
read(filePath, encoding) {
|
|
8391
8391
|
return encoding ? this.tree.read(filePath).toString(encoding) : this.tree.read(filePath);
|
|
@@ -9144,7 +9144,7 @@ var require_Observable = __commonJS({
|
|
|
9144
9144
|
Observable2.prototype.forEach = function(next, promiseCtor) {
|
|
9145
9145
|
var _this = this;
|
|
9146
9146
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
9147
|
-
return new promiseCtor(function(
|
|
9147
|
+
return new promiseCtor(function(resolve2, reject) {
|
|
9148
9148
|
var subscriber = new Subscriber_1.SafeSubscriber({
|
|
9149
9149
|
next: function(value) {
|
|
9150
9150
|
try {
|
|
@@ -9155,7 +9155,7 @@ var require_Observable = __commonJS({
|
|
|
9155
9155
|
}
|
|
9156
9156
|
},
|
|
9157
9157
|
error: reject,
|
|
9158
|
-
complete:
|
|
9158
|
+
complete: resolve2
|
|
9159
9159
|
});
|
|
9160
9160
|
_this.subscribe(subscriber);
|
|
9161
9161
|
});
|
|
@@ -9177,14 +9177,14 @@ var require_Observable = __commonJS({
|
|
|
9177
9177
|
Observable2.prototype.toPromise = function(promiseCtor) {
|
|
9178
9178
|
var _this = this;
|
|
9179
9179
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
9180
|
-
return new promiseCtor(function(
|
|
9180
|
+
return new promiseCtor(function(resolve2, reject) {
|
|
9181
9181
|
var value;
|
|
9182
9182
|
_this.subscribe(function(x) {
|
|
9183
9183
|
return value = x;
|
|
9184
9184
|
}, function(err) {
|
|
9185
9185
|
return reject(err);
|
|
9186
9186
|
}, function() {
|
|
9187
|
-
return
|
|
9187
|
+
return resolve2(value);
|
|
9188
9188
|
});
|
|
9189
9189
|
});
|
|
9190
9190
|
};
|
|
@@ -11336,11 +11336,11 @@ var require_innerFrom = __commonJS({
|
|
|
11336
11336
|
"use strict";
|
|
11337
11337
|
var __awaiter2 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
11338
11338
|
function adopt(value) {
|
|
11339
|
-
return value instanceof P ? value : new P(function(
|
|
11340
|
-
|
|
11339
|
+
return value instanceof P ? value : new P(function(resolve2) {
|
|
11340
|
+
resolve2(value);
|
|
11341
11341
|
});
|
|
11342
11342
|
}
|
|
11343
|
-
return new (P || (P = Promise))(function(
|
|
11343
|
+
return new (P || (P = Promise))(function(resolve2, reject) {
|
|
11344
11344
|
function fulfilled(value) {
|
|
11345
11345
|
try {
|
|
11346
11346
|
step(generator.next(value));
|
|
@@ -11356,7 +11356,7 @@ var require_innerFrom = __commonJS({
|
|
|
11356
11356
|
}
|
|
11357
11357
|
}
|
|
11358
11358
|
function step(result) {
|
|
11359
|
-
result.done ?
|
|
11359
|
+
result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
11360
11360
|
}
|
|
11361
11361
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11362
11362
|
});
|
|
@@ -11446,14 +11446,14 @@ var require_innerFrom = __commonJS({
|
|
|
11446
11446
|
}, i);
|
|
11447
11447
|
function verb(n) {
|
|
11448
11448
|
i[n] = o[n] && function(v) {
|
|
11449
|
-
return new Promise(function(
|
|
11450
|
-
v = o[n](v), settle(
|
|
11449
|
+
return new Promise(function(resolve2, reject) {
|
|
11450
|
+
v = o[n](v), settle(resolve2, reject, v.done, v.value);
|
|
11451
11451
|
});
|
|
11452
11452
|
};
|
|
11453
11453
|
}
|
|
11454
|
-
function settle(
|
|
11454
|
+
function settle(resolve2, reject, d, v) {
|
|
11455
11455
|
Promise.resolve(v).then(function(v2) {
|
|
11456
|
-
|
|
11456
|
+
resolve2({ value: v2, done: d });
|
|
11457
11457
|
}, reject);
|
|
11458
11458
|
}
|
|
11459
11459
|
};
|
|
@@ -11571,7 +11571,7 @@ var require_innerFrom = __commonJS({
|
|
|
11571
11571
|
exports.fromIterable = fromIterable;
|
|
11572
11572
|
function fromAsyncIterable(asyncIterable) {
|
|
11573
11573
|
return new Observable_1.Observable(function(subscriber) {
|
|
11574
|
-
|
|
11574
|
+
process3(asyncIterable, subscriber).catch(function(err) {
|
|
11575
11575
|
return subscriber.error(err);
|
|
11576
11576
|
});
|
|
11577
11577
|
});
|
|
@@ -11581,7 +11581,7 @@ var require_innerFrom = __commonJS({
|
|
|
11581
11581
|
return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
|
|
11582
11582
|
}
|
|
11583
11583
|
exports.fromReadableStreamLike = fromReadableStreamLike;
|
|
11584
|
-
function
|
|
11584
|
+
function process3(asyncIterable, subscriber) {
|
|
11585
11585
|
var asyncIterable_1, asyncIterable_1_1;
|
|
11586
11586
|
var e_2, _a;
|
|
11587
11587
|
return __awaiter2(this, void 0, void 0, function() {
|
|
@@ -12080,7 +12080,7 @@ var require_lastValueFrom = __commonJS({
|
|
|
12080
12080
|
var EmptyError_1 = require_EmptyError();
|
|
12081
12081
|
function lastValueFrom(source, config) {
|
|
12082
12082
|
var hasConfig = typeof config === "object";
|
|
12083
|
-
return new Promise(function(
|
|
12083
|
+
return new Promise(function(resolve2, reject) {
|
|
12084
12084
|
var _hasValue = false;
|
|
12085
12085
|
var _value;
|
|
12086
12086
|
source.subscribe({
|
|
@@ -12091,9 +12091,9 @@ var require_lastValueFrom = __commonJS({
|
|
|
12091
12091
|
error: reject,
|
|
12092
12092
|
complete: function() {
|
|
12093
12093
|
if (_hasValue) {
|
|
12094
|
-
|
|
12094
|
+
resolve2(_value);
|
|
12095
12095
|
} else if (hasConfig) {
|
|
12096
|
-
|
|
12096
|
+
resolve2(config.defaultValue);
|
|
12097
12097
|
} else {
|
|
12098
12098
|
reject(new EmptyError_1.EmptyError());
|
|
12099
12099
|
}
|
|
@@ -12115,16 +12115,16 @@ var require_firstValueFrom = __commonJS({
|
|
|
12115
12115
|
var Subscriber_1 = require_Subscriber();
|
|
12116
12116
|
function firstValueFrom(source, config) {
|
|
12117
12117
|
var hasConfig = typeof config === "object";
|
|
12118
|
-
return new Promise(function(
|
|
12118
|
+
return new Promise(function(resolve2, reject) {
|
|
12119
12119
|
var subscriber = new Subscriber_1.SafeSubscriber({
|
|
12120
12120
|
next: function(value) {
|
|
12121
|
-
|
|
12121
|
+
resolve2(value);
|
|
12122
12122
|
subscriber.unsubscribe();
|
|
12123
12123
|
},
|
|
12124
12124
|
error: reject,
|
|
12125
12125
|
complete: function() {
|
|
12126
12126
|
if (hasConfig) {
|
|
12127
|
-
|
|
12127
|
+
resolve2(config.defaultValue);
|
|
12128
12128
|
} else {
|
|
12129
12129
|
reject(new EmptyError_1.EmptyError());
|
|
12130
12130
|
}
|
|
@@ -18236,9 +18236,9 @@ var require_devkit = __commonJS({
|
|
|
18236
18236
|
var require_resolve_from = __commonJS({
|
|
18237
18237
|
"node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js"(exports, module2) {
|
|
18238
18238
|
"use strict";
|
|
18239
|
-
var
|
|
18239
|
+
var path4 = require("path");
|
|
18240
18240
|
var Module = require("module");
|
|
18241
|
-
var
|
|
18241
|
+
var fs2 = require("fs");
|
|
18242
18242
|
var resolveFrom = (fromDir, moduleId, silent) => {
|
|
18243
18243
|
if (typeof fromDir !== "string") {
|
|
18244
18244
|
throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
|
|
@@ -18247,17 +18247,17 @@ var require_resolve_from = __commonJS({
|
|
|
18247
18247
|
throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
|
|
18248
18248
|
}
|
|
18249
18249
|
try {
|
|
18250
|
-
fromDir =
|
|
18250
|
+
fromDir = fs2.realpathSync(fromDir);
|
|
18251
18251
|
} catch (err) {
|
|
18252
18252
|
if (err.code === "ENOENT") {
|
|
18253
|
-
fromDir =
|
|
18253
|
+
fromDir = path4.resolve(fromDir);
|
|
18254
18254
|
} else if (silent) {
|
|
18255
18255
|
return null;
|
|
18256
18256
|
} else {
|
|
18257
18257
|
throw err;
|
|
18258
18258
|
}
|
|
18259
18259
|
}
|
|
18260
|
-
const fromFile =
|
|
18260
|
+
const fromFile = path4.join(fromDir, "noop.js");
|
|
18261
18261
|
const resolveFileName = () => Module._resolveFilename(moduleId, {
|
|
18262
18262
|
id: fromFile,
|
|
18263
18263
|
filename: fromFile,
|
|
@@ -18329,7 +18329,7 @@ var require_parent_module = __commonJS({
|
|
|
18329
18329
|
var require_import_fresh = __commonJS({
|
|
18330
18330
|
"node_modules/.pnpm/import-fresh@3.3.0/node_modules/import-fresh/index.js"(exports, module2) {
|
|
18331
18331
|
"use strict";
|
|
18332
|
-
var
|
|
18332
|
+
var path4 = require("path");
|
|
18333
18333
|
var resolveFrom = require_resolve_from();
|
|
18334
18334
|
var parentModule = require_parent_module();
|
|
18335
18335
|
module2.exports = (moduleId) => {
|
|
@@ -18337,7 +18337,7 @@ var require_import_fresh = __commonJS({
|
|
|
18337
18337
|
throw new TypeError("Expected a string");
|
|
18338
18338
|
}
|
|
18339
18339
|
const parentPath = parentModule(__filename);
|
|
18340
|
-
const cwd = parentPath ?
|
|
18340
|
+
const cwd = parentPath ? path4.dirname(parentPath) : __dirname;
|
|
18341
18341
|
const filePath = resolveFrom(cwd, moduleId);
|
|
18342
18342
|
const oldModule = require.cache[filePath];
|
|
18343
18343
|
if (oldModule && oldModule.parent) {
|
|
@@ -19779,15 +19779,15 @@ var require_route = __commonJS({
|
|
|
19779
19779
|
};
|
|
19780
19780
|
}
|
|
19781
19781
|
function wrapConversion(toModel, graph) {
|
|
19782
|
-
var
|
|
19782
|
+
var path4 = [graph[toModel].parent, toModel];
|
|
19783
19783
|
var fn = conversions[graph[toModel].parent][toModel];
|
|
19784
19784
|
var cur = graph[toModel].parent;
|
|
19785
19785
|
while (graph[cur].parent) {
|
|
19786
|
-
|
|
19786
|
+
path4.unshift(graph[cur].parent);
|
|
19787
19787
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
19788
19788
|
cur = graph[cur].parent;
|
|
19789
19789
|
}
|
|
19790
|
-
fn.conversion =
|
|
19790
|
+
fn.conversion = path4;
|
|
19791
19791
|
return fn;
|
|
19792
19792
|
}
|
|
19793
19793
|
module2.exports = function(fromModel) {
|
|
@@ -23783,7 +23783,7 @@ ${error.message}`;
|
|
|
23783
23783
|
return typescript.sys.fileExists(fileName);
|
|
23784
23784
|
});
|
|
23785
23785
|
if (filePath !== void 0) {
|
|
23786
|
-
const { config, error } = typescript.readConfigFile(filePath, (
|
|
23786
|
+
const { config, error } = typescript.readConfigFile(filePath, (path4) => typescript.sys.readFile(path4));
|
|
23787
23787
|
if (error) {
|
|
23788
23788
|
throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
|
|
23789
23789
|
}
|
|
@@ -23906,42 +23906,42 @@ var require_defaults = __commonJS({
|
|
|
23906
23906
|
var require_env_paths = __commonJS({
|
|
23907
23907
|
"node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports, module2) {
|
|
23908
23908
|
"use strict";
|
|
23909
|
-
var
|
|
23909
|
+
var path4 = require("path");
|
|
23910
23910
|
var os = require("os");
|
|
23911
23911
|
var homedir = os.homedir();
|
|
23912
23912
|
var tmpdir = os.tmpdir();
|
|
23913
23913
|
var { env } = process;
|
|
23914
23914
|
var macos = (name) => {
|
|
23915
|
-
const library =
|
|
23915
|
+
const library = path4.join(homedir, "Library");
|
|
23916
23916
|
return {
|
|
23917
|
-
data:
|
|
23918
|
-
config:
|
|
23919
|
-
cache:
|
|
23920
|
-
log:
|
|
23921
|
-
temp:
|
|
23917
|
+
data: path4.join(library, "Application Support", name),
|
|
23918
|
+
config: path4.join(library, "Preferences", name),
|
|
23919
|
+
cache: path4.join(library, "Caches", name),
|
|
23920
|
+
log: path4.join(library, "Logs", name),
|
|
23921
|
+
temp: path4.join(tmpdir, name)
|
|
23922
23922
|
};
|
|
23923
23923
|
};
|
|
23924
23924
|
var windows = (name) => {
|
|
23925
|
-
const appData = env.APPDATA ||
|
|
23926
|
-
const localAppData = env.LOCALAPPDATA ||
|
|
23925
|
+
const appData = env.APPDATA || path4.join(homedir, "AppData", "Roaming");
|
|
23926
|
+
const localAppData = env.LOCALAPPDATA || path4.join(homedir, "AppData", "Local");
|
|
23927
23927
|
return {
|
|
23928
23928
|
// Data/config/cache/log are invented by me as Windows isn't opinionated about this
|
|
23929
|
-
data:
|
|
23930
|
-
config:
|
|
23931
|
-
cache:
|
|
23932
|
-
log:
|
|
23933
|
-
temp:
|
|
23929
|
+
data: path4.join(localAppData, name, "Data"),
|
|
23930
|
+
config: path4.join(appData, name, "Config"),
|
|
23931
|
+
cache: path4.join(localAppData, name, "Cache"),
|
|
23932
|
+
log: path4.join(localAppData, name, "Log"),
|
|
23933
|
+
temp: path4.join(tmpdir, name)
|
|
23934
23934
|
};
|
|
23935
23935
|
};
|
|
23936
23936
|
var linux = (name) => {
|
|
23937
|
-
const username =
|
|
23937
|
+
const username = path4.basename(homedir);
|
|
23938
23938
|
return {
|
|
23939
|
-
data:
|
|
23940
|
-
config:
|
|
23941
|
-
cache:
|
|
23939
|
+
data: path4.join(env.XDG_DATA_HOME || path4.join(homedir, ".local", "share"), name),
|
|
23940
|
+
config: path4.join(env.XDG_CONFIG_HOME || path4.join(homedir, ".config"), name),
|
|
23941
|
+
cache: path4.join(env.XDG_CACHE_HOME || path4.join(homedir, ".cache"), name),
|
|
23942
23942
|
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
23943
|
-
log:
|
|
23944
|
-
temp:
|
|
23943
|
+
log: path4.join(env.XDG_STATE_HOME || path4.join(homedir, ".local", "state"), name),
|
|
23944
|
+
temp: path4.join(tmpdir, username, name)
|
|
23945
23945
|
};
|
|
23946
23946
|
};
|
|
23947
23947
|
var envPaths = (name, options) => {
|
|
@@ -24014,11 +24014,11 @@ var require_util = __commonJS({
|
|
|
24014
24014
|
return result;
|
|
24015
24015
|
}
|
|
24016
24016
|
exports.emplace = emplace;
|
|
24017
|
-
function getPropertyByPath(source,
|
|
24018
|
-
if (typeof
|
|
24019
|
-
return source[
|
|
24017
|
+
function getPropertyByPath(source, path4) {
|
|
24018
|
+
if (typeof path4 === "string" && Object.prototype.hasOwnProperty.call(source, path4)) {
|
|
24019
|
+
return source[path4];
|
|
24020
24020
|
}
|
|
24021
|
-
const parsedPath = typeof
|
|
24021
|
+
const parsedPath = typeof path4 === "string" ? path4.split(".") : path4;
|
|
24022
24022
|
return parsedPath.reduce((previous, key) => {
|
|
24023
24023
|
if (previous === void 0) {
|
|
24024
24024
|
return previous;
|
|
@@ -24031,9 +24031,9 @@ var require_util = __commonJS({
|
|
|
24031
24031
|
return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
|
|
24032
24032
|
}
|
|
24033
24033
|
exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
24034
|
-
async function isDirectory(
|
|
24034
|
+
async function isDirectory(path4) {
|
|
24035
24035
|
try {
|
|
24036
|
-
const stat = await fs_1.promises.stat(
|
|
24036
|
+
const stat = await fs_1.promises.stat(path4);
|
|
24037
24037
|
return stat.isDirectory();
|
|
24038
24038
|
} catch (e) {
|
|
24039
24039
|
if (e.code === "ENOENT") {
|
|
@@ -24043,9 +24043,9 @@ var require_util = __commonJS({
|
|
|
24043
24043
|
}
|
|
24044
24044
|
}
|
|
24045
24045
|
exports.isDirectory = isDirectory;
|
|
24046
|
-
function isDirectorySync(
|
|
24046
|
+
function isDirectorySync(path4) {
|
|
24047
24047
|
try {
|
|
24048
|
-
const stat = fs_1.default.statSync(
|
|
24048
|
+
const stat = fs_1.default.statSync(path4);
|
|
24049
24049
|
return stat.isDirectory();
|
|
24050
24050
|
} catch (e) {
|
|
24051
24051
|
if (e.code === "ENOENT") {
|
|
@@ -24143,7 +24143,7 @@ var require_ExplorerBase = __commonJS({
|
|
|
24143
24143
|
const idx = importStack.indexOf(fullPath);
|
|
24144
24144
|
if (idx !== -1) {
|
|
24145
24145
|
throw new Error(`Circular import detected:
|
|
24146
|
-
${[...importStack, fullPath].map((
|
|
24146
|
+
${[...importStack, fullPath].map((path4, i) => `${i + 1}. ${path4}`).join("\n")} (same as ${idx + 1}.)`);
|
|
24147
24147
|
}
|
|
24148
24148
|
}
|
|
24149
24149
|
}
|
|
@@ -24328,9 +24328,9 @@ var require_Explorer = __commonJS({
|
|
|
24328
24328
|
throw error;
|
|
24329
24329
|
}
|
|
24330
24330
|
}
|
|
24331
|
-
async #fileExists(
|
|
24331
|
+
async #fileExists(path4) {
|
|
24332
24332
|
try {
|
|
24333
|
-
await promises_1.default.stat(
|
|
24333
|
+
await promises_1.default.stat(path4);
|
|
24334
24334
|
return true;
|
|
24335
24335
|
} catch (e) {
|
|
24336
24336
|
return false;
|
|
@@ -24486,9 +24486,9 @@ var require_ExplorerSync = __commonJS({
|
|
|
24486
24486
|
throw error;
|
|
24487
24487
|
}
|
|
24488
24488
|
}
|
|
24489
|
-
#fileExists(
|
|
24489
|
+
#fileExists(path4) {
|
|
24490
24490
|
try {
|
|
24491
|
-
fs_1.default.statSync(
|
|
24491
|
+
fs_1.default.statSync(path4);
|
|
24492
24492
|
return true;
|
|
24493
24493
|
} catch (e) {
|
|
24494
24494
|
return false;
|
|
@@ -24608,7 +24608,7 @@ var require_dist = __commonJS({
|
|
|
24608
24608
|
};
|
|
24609
24609
|
}
|
|
24610
24610
|
function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
|
|
24611
|
-
const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((
|
|
24611
|
+
const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path4) => path4.replace("{name}", moduleName));
|
|
24612
24612
|
if (userConfiguredOptions.mergeSearchPlaces) {
|
|
24613
24613
|
return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
|
|
24614
24614
|
}
|
|
@@ -25575,15 +25575,15 @@ var require_route2 = __commonJS({
|
|
|
25575
25575
|
};
|
|
25576
25576
|
}
|
|
25577
25577
|
function wrapConversion(toModel, graph) {
|
|
25578
|
-
const
|
|
25578
|
+
const path4 = [graph[toModel].parent, toModel];
|
|
25579
25579
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
25580
25580
|
let cur = graph[toModel].parent;
|
|
25581
25581
|
while (graph[cur].parent) {
|
|
25582
|
-
|
|
25582
|
+
path4.unshift(graph[cur].parent);
|
|
25583
25583
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
25584
25584
|
cur = graph[cur].parent;
|
|
25585
25585
|
}
|
|
25586
|
-
fn.conversion =
|
|
25586
|
+
fn.conversion = path4;
|
|
25587
25587
|
return fn;
|
|
25588
25588
|
}
|
|
25589
25589
|
module2.exports = function(fromModel) {
|
|
@@ -27629,8 +27629,8 @@ var require_prompt = __commonJS({
|
|
|
27629
27629
|
throw new Error("expected prompt to have a custom render method");
|
|
27630
27630
|
}
|
|
27631
27631
|
run() {
|
|
27632
|
-
return new Promise(async (
|
|
27633
|
-
this.once("submit",
|
|
27632
|
+
return new Promise(async (resolve2, reject) => {
|
|
27633
|
+
this.once("submit", resolve2);
|
|
27634
27634
|
this.once("cancel", reject);
|
|
27635
27635
|
if (await this.skip()) {
|
|
27636
27636
|
this.render = () => {
|
|
@@ -28174,7 +28174,7 @@ var require_array = __commonJS({
|
|
|
28174
28174
|
return this.render();
|
|
28175
28175
|
};
|
|
28176
28176
|
clearTimeout(this.numberTimeout);
|
|
28177
|
-
return new Promise((
|
|
28177
|
+
return new Promise((resolve2) => {
|
|
28178
28178
|
let len = this.choices.length;
|
|
28179
28179
|
let num = this.num;
|
|
28180
28180
|
let handle = (val = false, res) => {
|
|
@@ -28182,7 +28182,7 @@ var require_array = __commonJS({
|
|
|
28182
28182
|
if (val)
|
|
28183
28183
|
res = number(num);
|
|
28184
28184
|
this.num = "";
|
|
28185
|
-
|
|
28185
|
+
resolve2(res);
|
|
28186
28186
|
};
|
|
28187
28187
|
if (num === "0" || num.length === 1 && Number(num + "0") > len) {
|
|
28188
28188
|
return handle(true);
|
|
@@ -31031,8 +31031,8 @@ var require_project_name_and_root_utils = __commonJS({
|
|
|
31031
31031
|
function getCwd() {
|
|
31032
31032
|
return process.env.INIT_CWD?.startsWith(workspaceRoot) ? process.env.INIT_CWD : process.cwd();
|
|
31033
31033
|
}
|
|
31034
|
-
function setCwd(
|
|
31035
|
-
process.env.INIT_CWD = (0, path_1.join)(workspaceRoot,
|
|
31034
|
+
function setCwd(path4) {
|
|
31035
|
+
process.env.INIT_CWD = (0, path_1.join)(workspaceRoot, path4);
|
|
31036
31036
|
}
|
|
31037
31037
|
exports.setCwd = setCwd;
|
|
31038
31038
|
}
|
|
@@ -31406,9 +31406,9 @@ var require_ts_config = __commonJS({
|
|
|
31406
31406
|
}
|
|
31407
31407
|
exports.readTsConfig = readTsConfig;
|
|
31408
31408
|
function getRootTsConfigPathInTree(tree) {
|
|
31409
|
-
for (const
|
|
31410
|
-
if (tree.exists(
|
|
31411
|
-
return
|
|
31409
|
+
for (const path4 of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
31410
|
+
if (tree.exists(path4)) {
|
|
31411
|
+
return path4;
|
|
31412
31412
|
}
|
|
31413
31413
|
}
|
|
31414
31414
|
return "tsconfig.base.json";
|
|
@@ -31478,7 +31478,7 @@ var require_run_type_check = __commonJS({
|
|
|
31478
31478
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31479
31479
|
exports.getFormattedDiagnostic = exports.runTypeCheck = exports.runTypeCheckWatch = void 0;
|
|
31480
31480
|
var chalk2 = require_source();
|
|
31481
|
-
var
|
|
31481
|
+
var path4 = require("path");
|
|
31482
31482
|
var code_frames_1 = require("nx/src/utils/code-frames");
|
|
31483
31483
|
var highlight_1 = require_highlight();
|
|
31484
31484
|
var ts_config_1 = require_ts_config();
|
|
@@ -31511,7 +31511,7 @@ var require_run_type_check = __commonJS({
|
|
|
31511
31511
|
options: {
|
|
31512
31512
|
...compilerOptions,
|
|
31513
31513
|
incremental: true,
|
|
31514
|
-
tsBuildInfoFile:
|
|
31514
|
+
tsBuildInfoFile: path4.join(cacheDir, ".tsbuildinfo")
|
|
31515
31515
|
}
|
|
31516
31516
|
});
|
|
31517
31517
|
} else {
|
|
@@ -31576,7 +31576,7 @@ var require_run_type_check = __commonJS({
|
|
|
31576
31576
|
const pos = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start);
|
|
31577
31577
|
const line = pos.line + 1;
|
|
31578
31578
|
const column = pos.character + 1;
|
|
31579
|
-
const fileName =
|
|
31579
|
+
const fileName = path4.relative(workspaceRoot, diagnostic.file.fileName);
|
|
31580
31580
|
message = `${chalk2.underline.blue(`${fileName}:${line}:${column}`)} - ` + message;
|
|
31581
31581
|
const code = diagnostic.file.getFullText(diagnostic.file.getSourceFile());
|
|
31582
31582
|
message += "\n" + (0, code_frames_1.codeFrameColumns)(code, {
|
|
@@ -31894,9 +31894,9 @@ var require_ts_config2 = __commonJS({
|
|
|
31894
31894
|
}
|
|
31895
31895
|
exports.readTsConfig = readTsConfig;
|
|
31896
31896
|
function getRootTsConfigPathInTree(tree) {
|
|
31897
|
-
for (const
|
|
31898
|
-
if (tree.exists(
|
|
31899
|
-
return
|
|
31897
|
+
for (const path4 of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
31898
|
+
if (tree.exists(path4)) {
|
|
31899
|
+
return path4;
|
|
31900
31900
|
}
|
|
31901
31901
|
}
|
|
31902
31902
|
return "tsconfig.base.json";
|
|
@@ -32419,8 +32419,8 @@ var require_universalify = __commonJS({
|
|
|
32419
32419
|
if (typeof args[args.length - 1] === "function")
|
|
32420
32420
|
fn.apply(this, args);
|
|
32421
32421
|
else {
|
|
32422
|
-
return new Promise((
|
|
32423
|
-
args.push((err, res) => err != null ? reject(err) :
|
|
32422
|
+
return new Promise((resolve2, reject) => {
|
|
32423
|
+
args.push((err, res) => err != null ? reject(err) : resolve2(res));
|
|
32424
32424
|
fn.apply(this, args);
|
|
32425
32425
|
});
|
|
32426
32426
|
}
|
|
@@ -32467,56 +32467,56 @@ var require_polyfills = __commonJS({
|
|
|
32467
32467
|
}
|
|
32468
32468
|
var chdir;
|
|
32469
32469
|
module2.exports = patch;
|
|
32470
|
-
function patch(
|
|
32470
|
+
function patch(fs2) {
|
|
32471
32471
|
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
32472
|
-
patchLchmod(
|
|
32473
|
-
}
|
|
32474
|
-
if (!
|
|
32475
|
-
patchLutimes(
|
|
32476
|
-
}
|
|
32477
|
-
|
|
32478
|
-
|
|
32479
|
-
|
|
32480
|
-
|
|
32481
|
-
|
|
32482
|
-
|
|
32483
|
-
|
|
32484
|
-
|
|
32485
|
-
|
|
32486
|
-
|
|
32487
|
-
|
|
32488
|
-
|
|
32489
|
-
|
|
32490
|
-
|
|
32491
|
-
|
|
32492
|
-
|
|
32493
|
-
|
|
32494
|
-
|
|
32495
|
-
if (
|
|
32496
|
-
|
|
32472
|
+
patchLchmod(fs2);
|
|
32473
|
+
}
|
|
32474
|
+
if (!fs2.lutimes) {
|
|
32475
|
+
patchLutimes(fs2);
|
|
32476
|
+
}
|
|
32477
|
+
fs2.chown = chownFix(fs2.chown);
|
|
32478
|
+
fs2.fchown = chownFix(fs2.fchown);
|
|
32479
|
+
fs2.lchown = chownFix(fs2.lchown);
|
|
32480
|
+
fs2.chmod = chmodFix(fs2.chmod);
|
|
32481
|
+
fs2.fchmod = chmodFix(fs2.fchmod);
|
|
32482
|
+
fs2.lchmod = chmodFix(fs2.lchmod);
|
|
32483
|
+
fs2.chownSync = chownFixSync(fs2.chownSync);
|
|
32484
|
+
fs2.fchownSync = chownFixSync(fs2.fchownSync);
|
|
32485
|
+
fs2.lchownSync = chownFixSync(fs2.lchownSync);
|
|
32486
|
+
fs2.chmodSync = chmodFixSync(fs2.chmodSync);
|
|
32487
|
+
fs2.fchmodSync = chmodFixSync(fs2.fchmodSync);
|
|
32488
|
+
fs2.lchmodSync = chmodFixSync(fs2.lchmodSync);
|
|
32489
|
+
fs2.stat = statFix(fs2.stat);
|
|
32490
|
+
fs2.fstat = statFix(fs2.fstat);
|
|
32491
|
+
fs2.lstat = statFix(fs2.lstat);
|
|
32492
|
+
fs2.statSync = statFixSync(fs2.statSync);
|
|
32493
|
+
fs2.fstatSync = statFixSync(fs2.fstatSync);
|
|
32494
|
+
fs2.lstatSync = statFixSync(fs2.lstatSync);
|
|
32495
|
+
if (fs2.chmod && !fs2.lchmod) {
|
|
32496
|
+
fs2.lchmod = function(path4, mode, cb) {
|
|
32497
32497
|
if (cb)
|
|
32498
32498
|
process.nextTick(cb);
|
|
32499
32499
|
};
|
|
32500
|
-
|
|
32500
|
+
fs2.lchmodSync = function() {
|
|
32501
32501
|
};
|
|
32502
32502
|
}
|
|
32503
|
-
if (
|
|
32504
|
-
|
|
32503
|
+
if (fs2.chown && !fs2.lchown) {
|
|
32504
|
+
fs2.lchown = function(path4, uid, gid, cb) {
|
|
32505
32505
|
if (cb)
|
|
32506
32506
|
process.nextTick(cb);
|
|
32507
32507
|
};
|
|
32508
|
-
|
|
32508
|
+
fs2.lchownSync = function() {
|
|
32509
32509
|
};
|
|
32510
32510
|
}
|
|
32511
32511
|
if (platform === "win32") {
|
|
32512
|
-
|
|
32512
|
+
fs2.rename = typeof fs2.rename !== "function" ? fs2.rename : function(fs$rename) {
|
|
32513
32513
|
function rename(from, to, cb) {
|
|
32514
32514
|
var start = Date.now();
|
|
32515
32515
|
var backoff = 0;
|
|
32516
32516
|
fs$rename(from, to, function CB(er) {
|
|
32517
32517
|
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
32518
32518
|
setTimeout(function() {
|
|
32519
|
-
|
|
32519
|
+
fs2.stat(to, function(stater, st) {
|
|
32520
32520
|
if (stater && stater.code === "ENOENT")
|
|
32521
32521
|
fs$rename(from, to, CB);
|
|
32522
32522
|
else
|
|
@@ -32534,9 +32534,9 @@ var require_polyfills = __commonJS({
|
|
|
32534
32534
|
if (Object.setPrototypeOf)
|
|
32535
32535
|
Object.setPrototypeOf(rename, fs$rename);
|
|
32536
32536
|
return rename;
|
|
32537
|
-
}(
|
|
32537
|
+
}(fs2.rename);
|
|
32538
32538
|
}
|
|
32539
|
-
|
|
32539
|
+
fs2.read = typeof fs2.read !== "function" ? fs2.read : function(fs$read) {
|
|
32540
32540
|
function read(fd, buffer, offset, length, position, callback_) {
|
|
32541
32541
|
var callback;
|
|
32542
32542
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -32544,23 +32544,23 @@ var require_polyfills = __commonJS({
|
|
|
32544
32544
|
callback = function(er, _, __) {
|
|
32545
32545
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
32546
32546
|
eagCounter++;
|
|
32547
|
-
return fs$read.call(
|
|
32547
|
+
return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
|
|
32548
32548
|
}
|
|
32549
32549
|
callback_.apply(this, arguments);
|
|
32550
32550
|
};
|
|
32551
32551
|
}
|
|
32552
|
-
return fs$read.call(
|
|
32552
|
+
return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
|
|
32553
32553
|
}
|
|
32554
32554
|
if (Object.setPrototypeOf)
|
|
32555
32555
|
Object.setPrototypeOf(read, fs$read);
|
|
32556
32556
|
return read;
|
|
32557
|
-
}(
|
|
32558
|
-
|
|
32557
|
+
}(fs2.read);
|
|
32558
|
+
fs2.readSync = typeof fs2.readSync !== "function" ? fs2.readSync : function(fs$readSync) {
|
|
32559
32559
|
return function(fd, buffer, offset, length, position) {
|
|
32560
32560
|
var eagCounter = 0;
|
|
32561
32561
|
while (true) {
|
|
32562
32562
|
try {
|
|
32563
|
-
return fs$readSync.call(
|
|
32563
|
+
return fs$readSync.call(fs2, fd, buffer, offset, length, position);
|
|
32564
32564
|
} catch (er) {
|
|
32565
32565
|
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
32566
32566
|
eagCounter++;
|
|
@@ -32570,11 +32570,11 @@ var require_polyfills = __commonJS({
|
|
|
32570
32570
|
}
|
|
32571
32571
|
}
|
|
32572
32572
|
};
|
|
32573
|
-
}(
|
|
32574
|
-
function patchLchmod(
|
|
32575
|
-
|
|
32576
|
-
|
|
32577
|
-
|
|
32573
|
+
}(fs2.readSync);
|
|
32574
|
+
function patchLchmod(fs3) {
|
|
32575
|
+
fs3.lchmod = function(path4, mode, callback) {
|
|
32576
|
+
fs3.open(
|
|
32577
|
+
path4,
|
|
32578
32578
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
32579
32579
|
mode,
|
|
32580
32580
|
function(err, fd) {
|
|
@@ -32583,8 +32583,8 @@ var require_polyfills = __commonJS({
|
|
|
32583
32583
|
callback(err);
|
|
32584
32584
|
return;
|
|
32585
32585
|
}
|
|
32586
|
-
|
|
32587
|
-
|
|
32586
|
+
fs3.fchmod(fd, mode, function(err2) {
|
|
32587
|
+
fs3.close(fd, function(err22) {
|
|
32588
32588
|
if (callback)
|
|
32589
32589
|
callback(err2 || err22);
|
|
32590
32590
|
});
|
|
@@ -32592,68 +32592,68 @@ var require_polyfills = __commonJS({
|
|
|
32592
32592
|
}
|
|
32593
32593
|
);
|
|
32594
32594
|
};
|
|
32595
|
-
|
|
32596
|
-
var fd =
|
|
32595
|
+
fs3.lchmodSync = function(path4, mode) {
|
|
32596
|
+
var fd = fs3.openSync(path4, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
32597
32597
|
var threw = true;
|
|
32598
32598
|
var ret;
|
|
32599
32599
|
try {
|
|
32600
|
-
ret =
|
|
32600
|
+
ret = fs3.fchmodSync(fd, mode);
|
|
32601
32601
|
threw = false;
|
|
32602
32602
|
} finally {
|
|
32603
32603
|
if (threw) {
|
|
32604
32604
|
try {
|
|
32605
|
-
|
|
32605
|
+
fs3.closeSync(fd);
|
|
32606
32606
|
} catch (er) {
|
|
32607
32607
|
}
|
|
32608
32608
|
} else {
|
|
32609
|
-
|
|
32609
|
+
fs3.closeSync(fd);
|
|
32610
32610
|
}
|
|
32611
32611
|
}
|
|
32612
32612
|
return ret;
|
|
32613
32613
|
};
|
|
32614
32614
|
}
|
|
32615
|
-
function patchLutimes(
|
|
32616
|
-
if (constants.hasOwnProperty("O_SYMLINK") &&
|
|
32617
|
-
|
|
32618
|
-
|
|
32615
|
+
function patchLutimes(fs3) {
|
|
32616
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) {
|
|
32617
|
+
fs3.lutimes = function(path4, at, mt, cb) {
|
|
32618
|
+
fs3.open(path4, constants.O_SYMLINK, function(er, fd) {
|
|
32619
32619
|
if (er) {
|
|
32620
32620
|
if (cb)
|
|
32621
32621
|
cb(er);
|
|
32622
32622
|
return;
|
|
32623
32623
|
}
|
|
32624
|
-
|
|
32625
|
-
|
|
32624
|
+
fs3.futimes(fd, at, mt, function(er2) {
|
|
32625
|
+
fs3.close(fd, function(er22) {
|
|
32626
32626
|
if (cb)
|
|
32627
32627
|
cb(er2 || er22);
|
|
32628
32628
|
});
|
|
32629
32629
|
});
|
|
32630
32630
|
});
|
|
32631
32631
|
};
|
|
32632
|
-
|
|
32633
|
-
var fd =
|
|
32632
|
+
fs3.lutimesSync = function(path4, at, mt) {
|
|
32633
|
+
var fd = fs3.openSync(path4, constants.O_SYMLINK);
|
|
32634
32634
|
var ret;
|
|
32635
32635
|
var threw = true;
|
|
32636
32636
|
try {
|
|
32637
|
-
ret =
|
|
32637
|
+
ret = fs3.futimesSync(fd, at, mt);
|
|
32638
32638
|
threw = false;
|
|
32639
32639
|
} finally {
|
|
32640
32640
|
if (threw) {
|
|
32641
32641
|
try {
|
|
32642
|
-
|
|
32642
|
+
fs3.closeSync(fd);
|
|
32643
32643
|
} catch (er) {
|
|
32644
32644
|
}
|
|
32645
32645
|
} else {
|
|
32646
|
-
|
|
32646
|
+
fs3.closeSync(fd);
|
|
32647
32647
|
}
|
|
32648
32648
|
}
|
|
32649
32649
|
return ret;
|
|
32650
32650
|
};
|
|
32651
|
-
} else if (
|
|
32652
|
-
|
|
32651
|
+
} else if (fs3.futimes) {
|
|
32652
|
+
fs3.lutimes = function(_a, _b, _c, cb) {
|
|
32653
32653
|
if (cb)
|
|
32654
32654
|
process.nextTick(cb);
|
|
32655
32655
|
};
|
|
32656
|
-
|
|
32656
|
+
fs3.lutimesSync = function() {
|
|
32657
32657
|
};
|
|
32658
32658
|
}
|
|
32659
32659
|
}
|
|
@@ -32661,7 +32661,7 @@ var require_polyfills = __commonJS({
|
|
|
32661
32661
|
if (!orig)
|
|
32662
32662
|
return orig;
|
|
32663
32663
|
return function(target, mode, cb) {
|
|
32664
|
-
return orig.call(
|
|
32664
|
+
return orig.call(fs2, target, mode, function(er) {
|
|
32665
32665
|
if (chownErOk(er))
|
|
32666
32666
|
er = null;
|
|
32667
32667
|
if (cb)
|
|
@@ -32674,7 +32674,7 @@ var require_polyfills = __commonJS({
|
|
|
32674
32674
|
return orig;
|
|
32675
32675
|
return function(target, mode) {
|
|
32676
32676
|
try {
|
|
32677
|
-
return orig.call(
|
|
32677
|
+
return orig.call(fs2, target, mode);
|
|
32678
32678
|
} catch (er) {
|
|
32679
32679
|
if (!chownErOk(er))
|
|
32680
32680
|
throw er;
|
|
@@ -32685,7 +32685,7 @@ var require_polyfills = __commonJS({
|
|
|
32685
32685
|
if (!orig)
|
|
32686
32686
|
return orig;
|
|
32687
32687
|
return function(target, uid, gid, cb) {
|
|
32688
|
-
return orig.call(
|
|
32688
|
+
return orig.call(fs2, target, uid, gid, function(er) {
|
|
32689
32689
|
if (chownErOk(er))
|
|
32690
32690
|
er = null;
|
|
32691
32691
|
if (cb)
|
|
@@ -32698,7 +32698,7 @@ var require_polyfills = __commonJS({
|
|
|
32698
32698
|
return orig;
|
|
32699
32699
|
return function(target, uid, gid) {
|
|
32700
32700
|
try {
|
|
32701
|
-
return orig.call(
|
|
32701
|
+
return orig.call(fs2, target, uid, gid);
|
|
32702
32702
|
} catch (er) {
|
|
32703
32703
|
if (!chownErOk(er))
|
|
32704
32704
|
throw er;
|
|
@@ -32723,14 +32723,14 @@ var require_polyfills = __commonJS({
|
|
|
32723
32723
|
if (cb)
|
|
32724
32724
|
cb.apply(this, arguments);
|
|
32725
32725
|
}
|
|
32726
|
-
return options ? orig.call(
|
|
32726
|
+
return options ? orig.call(fs2, target, options, callback) : orig.call(fs2, target, callback);
|
|
32727
32727
|
};
|
|
32728
32728
|
}
|
|
32729
32729
|
function statFixSync(orig) {
|
|
32730
32730
|
if (!orig)
|
|
32731
32731
|
return orig;
|
|
32732
32732
|
return function(target, options) {
|
|
32733
|
-
var stats = options ? orig.call(
|
|
32733
|
+
var stats = options ? orig.call(fs2, target, options) : orig.call(fs2, target);
|
|
32734
32734
|
if (stats) {
|
|
32735
32735
|
if (stats.uid < 0)
|
|
32736
32736
|
stats.uid += 4294967296;
|
|
@@ -32761,17 +32761,17 @@ var require_legacy_streams = __commonJS({
|
|
|
32761
32761
|
"node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
|
|
32762
32762
|
var Stream = require("stream").Stream;
|
|
32763
32763
|
module2.exports = legacy;
|
|
32764
|
-
function legacy(
|
|
32764
|
+
function legacy(fs2) {
|
|
32765
32765
|
return {
|
|
32766
32766
|
ReadStream,
|
|
32767
32767
|
WriteStream
|
|
32768
32768
|
};
|
|
32769
|
-
function ReadStream(
|
|
32769
|
+
function ReadStream(path4, options) {
|
|
32770
32770
|
if (!(this instanceof ReadStream))
|
|
32771
|
-
return new ReadStream(
|
|
32771
|
+
return new ReadStream(path4, options);
|
|
32772
32772
|
Stream.call(this);
|
|
32773
32773
|
var self = this;
|
|
32774
|
-
this.path =
|
|
32774
|
+
this.path = path4;
|
|
32775
32775
|
this.fd = null;
|
|
32776
32776
|
this.readable = true;
|
|
32777
32777
|
this.paused = false;
|
|
@@ -32806,7 +32806,7 @@ var require_legacy_streams = __commonJS({
|
|
|
32806
32806
|
});
|
|
32807
32807
|
return;
|
|
32808
32808
|
}
|
|
32809
|
-
|
|
32809
|
+
fs2.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
32810
32810
|
if (err) {
|
|
32811
32811
|
self.emit("error", err);
|
|
32812
32812
|
self.readable = false;
|
|
@@ -32817,11 +32817,11 @@ var require_legacy_streams = __commonJS({
|
|
|
32817
32817
|
self._read();
|
|
32818
32818
|
});
|
|
32819
32819
|
}
|
|
32820
|
-
function WriteStream(
|
|
32820
|
+
function WriteStream(path4, options) {
|
|
32821
32821
|
if (!(this instanceof WriteStream))
|
|
32822
|
-
return new WriteStream(
|
|
32822
|
+
return new WriteStream(path4, options);
|
|
32823
32823
|
Stream.call(this);
|
|
32824
|
-
this.path =
|
|
32824
|
+
this.path = path4;
|
|
32825
32825
|
this.fd = null;
|
|
32826
32826
|
this.writable = true;
|
|
32827
32827
|
this.flags = "w";
|
|
@@ -32846,7 +32846,7 @@ var require_legacy_streams = __commonJS({
|
|
|
32846
32846
|
this.busy = false;
|
|
32847
32847
|
this._queue = [];
|
|
32848
32848
|
if (this.fd === null) {
|
|
32849
|
-
this._open =
|
|
32849
|
+
this._open = fs2.open;
|
|
32850
32850
|
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
32851
32851
|
this.flush();
|
|
32852
32852
|
}
|
|
@@ -32881,7 +32881,7 @@ var require_clone = __commonJS({
|
|
|
32881
32881
|
// node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
|
|
32882
32882
|
var require_graceful_fs = __commonJS({
|
|
32883
32883
|
"node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
|
|
32884
|
-
var
|
|
32884
|
+
var fs2 = require("fs");
|
|
32885
32885
|
var polyfills = require_polyfills();
|
|
32886
32886
|
var legacy = require_legacy_streams();
|
|
32887
32887
|
var clone = require_clone();
|
|
@@ -32913,12 +32913,12 @@ var require_graceful_fs = __commonJS({
|
|
|
32913
32913
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
32914
32914
|
console.error(m);
|
|
32915
32915
|
};
|
|
32916
|
-
if (!
|
|
32916
|
+
if (!fs2[gracefulQueue]) {
|
|
32917
32917
|
queue = global[gracefulQueue] || [];
|
|
32918
|
-
publishQueue(
|
|
32919
|
-
|
|
32918
|
+
publishQueue(fs2, queue);
|
|
32919
|
+
fs2.close = function(fs$close) {
|
|
32920
32920
|
function close(fd, cb) {
|
|
32921
|
-
return fs$close.call(
|
|
32921
|
+
return fs$close.call(fs2, fd, function(err) {
|
|
32922
32922
|
if (!err) {
|
|
32923
32923
|
resetQueue();
|
|
32924
32924
|
}
|
|
@@ -32930,48 +32930,48 @@ var require_graceful_fs = __commonJS({
|
|
|
32930
32930
|
value: fs$close
|
|
32931
32931
|
});
|
|
32932
32932
|
return close;
|
|
32933
|
-
}(
|
|
32934
|
-
|
|
32933
|
+
}(fs2.close);
|
|
32934
|
+
fs2.closeSync = function(fs$closeSync) {
|
|
32935
32935
|
function closeSync(fd) {
|
|
32936
|
-
fs$closeSync.apply(
|
|
32936
|
+
fs$closeSync.apply(fs2, arguments);
|
|
32937
32937
|
resetQueue();
|
|
32938
32938
|
}
|
|
32939
32939
|
Object.defineProperty(closeSync, previousSymbol, {
|
|
32940
32940
|
value: fs$closeSync
|
|
32941
32941
|
});
|
|
32942
32942
|
return closeSync;
|
|
32943
|
-
}(
|
|
32943
|
+
}(fs2.closeSync);
|
|
32944
32944
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
32945
32945
|
process.on("exit", function() {
|
|
32946
|
-
debug(
|
|
32947
|
-
require("assert").equal(
|
|
32946
|
+
debug(fs2[gracefulQueue]);
|
|
32947
|
+
require("assert").equal(fs2[gracefulQueue].length, 0);
|
|
32948
32948
|
});
|
|
32949
32949
|
}
|
|
32950
32950
|
}
|
|
32951
32951
|
var queue;
|
|
32952
32952
|
if (!global[gracefulQueue]) {
|
|
32953
|
-
publishQueue(global,
|
|
32954
|
-
}
|
|
32955
|
-
module2.exports = patch(clone(
|
|
32956
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
32957
|
-
module2.exports = patch(
|
|
32958
|
-
|
|
32959
|
-
}
|
|
32960
|
-
function patch(
|
|
32961
|
-
polyfills(
|
|
32962
|
-
|
|
32963
|
-
|
|
32964
|
-
|
|
32965
|
-
var fs$readFile =
|
|
32966
|
-
|
|
32967
|
-
function readFile(
|
|
32953
|
+
publishQueue(global, fs2[gracefulQueue]);
|
|
32954
|
+
}
|
|
32955
|
+
module2.exports = patch(clone(fs2));
|
|
32956
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs2.__patched) {
|
|
32957
|
+
module2.exports = patch(fs2);
|
|
32958
|
+
fs2.__patched = true;
|
|
32959
|
+
}
|
|
32960
|
+
function patch(fs3) {
|
|
32961
|
+
polyfills(fs3);
|
|
32962
|
+
fs3.gracefulify = patch;
|
|
32963
|
+
fs3.createReadStream = createReadStream;
|
|
32964
|
+
fs3.createWriteStream = createWriteStream;
|
|
32965
|
+
var fs$readFile = fs3.readFile;
|
|
32966
|
+
fs3.readFile = readFile;
|
|
32967
|
+
function readFile(path4, options, cb) {
|
|
32968
32968
|
if (typeof options === "function")
|
|
32969
32969
|
cb = options, options = null;
|
|
32970
|
-
return go$readFile(
|
|
32971
|
-
function go$readFile(
|
|
32972
|
-
return fs$readFile(
|
|
32970
|
+
return go$readFile(path4, options, cb);
|
|
32971
|
+
function go$readFile(path5, options2, cb2, startTime) {
|
|
32972
|
+
return fs$readFile(path5, options2, function(err) {
|
|
32973
32973
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
32974
|
-
enqueue([go$readFile, [
|
|
32974
|
+
enqueue([go$readFile, [path5, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
32975
32975
|
else {
|
|
32976
32976
|
if (typeof cb2 === "function")
|
|
32977
32977
|
cb2.apply(this, arguments);
|
|
@@ -32979,16 +32979,16 @@ var require_graceful_fs = __commonJS({
|
|
|
32979
32979
|
});
|
|
32980
32980
|
}
|
|
32981
32981
|
}
|
|
32982
|
-
var fs$writeFile =
|
|
32983
|
-
|
|
32984
|
-
function writeFile(
|
|
32982
|
+
var fs$writeFile = fs3.writeFile;
|
|
32983
|
+
fs3.writeFile = writeFile;
|
|
32984
|
+
function writeFile(path4, data, options, cb) {
|
|
32985
32985
|
if (typeof options === "function")
|
|
32986
32986
|
cb = options, options = null;
|
|
32987
|
-
return go$writeFile(
|
|
32988
|
-
function go$writeFile(
|
|
32989
|
-
return fs$writeFile(
|
|
32987
|
+
return go$writeFile(path4, data, options, cb);
|
|
32988
|
+
function go$writeFile(path5, data2, options2, cb2, startTime) {
|
|
32989
|
+
return fs$writeFile(path5, data2, options2, function(err) {
|
|
32990
32990
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
32991
|
-
enqueue([go$writeFile, [
|
|
32991
|
+
enqueue([go$writeFile, [path5, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
32992
32992
|
else {
|
|
32993
32993
|
if (typeof cb2 === "function")
|
|
32994
32994
|
cb2.apply(this, arguments);
|
|
@@ -32996,17 +32996,17 @@ var require_graceful_fs = __commonJS({
|
|
|
32996
32996
|
});
|
|
32997
32997
|
}
|
|
32998
32998
|
}
|
|
32999
|
-
var fs$appendFile =
|
|
32999
|
+
var fs$appendFile = fs3.appendFile;
|
|
33000
33000
|
if (fs$appendFile)
|
|
33001
|
-
|
|
33002
|
-
function appendFile(
|
|
33001
|
+
fs3.appendFile = appendFile;
|
|
33002
|
+
function appendFile(path4, data, options, cb) {
|
|
33003
33003
|
if (typeof options === "function")
|
|
33004
33004
|
cb = options, options = null;
|
|
33005
|
-
return go$appendFile(
|
|
33006
|
-
function go$appendFile(
|
|
33007
|
-
return fs$appendFile(
|
|
33005
|
+
return go$appendFile(path4, data, options, cb);
|
|
33006
|
+
function go$appendFile(path5, data2, options2, cb2, startTime) {
|
|
33007
|
+
return fs$appendFile(path5, data2, options2, function(err) {
|
|
33008
33008
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33009
|
-
enqueue([go$appendFile, [
|
|
33009
|
+
enqueue([go$appendFile, [path5, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
33010
33010
|
else {
|
|
33011
33011
|
if (typeof cb2 === "function")
|
|
33012
33012
|
cb2.apply(this, arguments);
|
|
@@ -33014,9 +33014,9 @@ var require_graceful_fs = __commonJS({
|
|
|
33014
33014
|
});
|
|
33015
33015
|
}
|
|
33016
33016
|
}
|
|
33017
|
-
var fs$copyFile =
|
|
33017
|
+
var fs$copyFile = fs3.copyFile;
|
|
33018
33018
|
if (fs$copyFile)
|
|
33019
|
-
|
|
33019
|
+
fs3.copyFile = copyFile;
|
|
33020
33020
|
function copyFile(src, dest, flags, cb) {
|
|
33021
33021
|
if (typeof flags === "function") {
|
|
33022
33022
|
cb = flags;
|
|
@@ -33034,34 +33034,34 @@ var require_graceful_fs = __commonJS({
|
|
|
33034
33034
|
});
|
|
33035
33035
|
}
|
|
33036
33036
|
}
|
|
33037
|
-
var fs$readdir =
|
|
33038
|
-
|
|
33037
|
+
var fs$readdir = fs3.readdir;
|
|
33038
|
+
fs3.readdir = readdir;
|
|
33039
33039
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
33040
|
-
function readdir(
|
|
33040
|
+
function readdir(path4, options, cb) {
|
|
33041
33041
|
if (typeof options === "function")
|
|
33042
33042
|
cb = options, options = null;
|
|
33043
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
33044
|
-
return fs$readdir(
|
|
33045
|
-
|
|
33043
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path5, options2, cb2, startTime) {
|
|
33044
|
+
return fs$readdir(path5, fs$readdirCallback(
|
|
33045
|
+
path5,
|
|
33046
33046
|
options2,
|
|
33047
33047
|
cb2,
|
|
33048
33048
|
startTime
|
|
33049
33049
|
));
|
|
33050
|
-
} : function go$readdir2(
|
|
33051
|
-
return fs$readdir(
|
|
33052
|
-
|
|
33050
|
+
} : function go$readdir2(path5, options2, cb2, startTime) {
|
|
33051
|
+
return fs$readdir(path5, options2, fs$readdirCallback(
|
|
33052
|
+
path5,
|
|
33053
33053
|
options2,
|
|
33054
33054
|
cb2,
|
|
33055
33055
|
startTime
|
|
33056
33056
|
));
|
|
33057
33057
|
};
|
|
33058
|
-
return go$readdir(
|
|
33059
|
-
function fs$readdirCallback(
|
|
33058
|
+
return go$readdir(path4, options, cb);
|
|
33059
|
+
function fs$readdirCallback(path5, options2, cb2, startTime) {
|
|
33060
33060
|
return function(err, files) {
|
|
33061
33061
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33062
33062
|
enqueue([
|
|
33063
33063
|
go$readdir,
|
|
33064
|
-
[
|
|
33064
|
+
[path5, options2, cb2],
|
|
33065
33065
|
err,
|
|
33066
33066
|
startTime || Date.now(),
|
|
33067
33067
|
Date.now()
|
|
@@ -33076,21 +33076,21 @@ var require_graceful_fs = __commonJS({
|
|
|
33076
33076
|
}
|
|
33077
33077
|
}
|
|
33078
33078
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
33079
|
-
var legStreams = legacy(
|
|
33079
|
+
var legStreams = legacy(fs3);
|
|
33080
33080
|
ReadStream = legStreams.ReadStream;
|
|
33081
33081
|
WriteStream = legStreams.WriteStream;
|
|
33082
33082
|
}
|
|
33083
|
-
var fs$ReadStream =
|
|
33083
|
+
var fs$ReadStream = fs3.ReadStream;
|
|
33084
33084
|
if (fs$ReadStream) {
|
|
33085
33085
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
33086
33086
|
ReadStream.prototype.open = ReadStream$open;
|
|
33087
33087
|
}
|
|
33088
|
-
var fs$WriteStream =
|
|
33088
|
+
var fs$WriteStream = fs3.WriteStream;
|
|
33089
33089
|
if (fs$WriteStream) {
|
|
33090
33090
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
33091
33091
|
WriteStream.prototype.open = WriteStream$open;
|
|
33092
33092
|
}
|
|
33093
|
-
Object.defineProperty(
|
|
33093
|
+
Object.defineProperty(fs3, "ReadStream", {
|
|
33094
33094
|
get: function() {
|
|
33095
33095
|
return ReadStream;
|
|
33096
33096
|
},
|
|
@@ -33100,7 +33100,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33100
33100
|
enumerable: true,
|
|
33101
33101
|
configurable: true
|
|
33102
33102
|
});
|
|
33103
|
-
Object.defineProperty(
|
|
33103
|
+
Object.defineProperty(fs3, "WriteStream", {
|
|
33104
33104
|
get: function() {
|
|
33105
33105
|
return WriteStream;
|
|
33106
33106
|
},
|
|
@@ -33111,7 +33111,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33111
33111
|
configurable: true
|
|
33112
33112
|
});
|
|
33113
33113
|
var FileReadStream = ReadStream;
|
|
33114
|
-
Object.defineProperty(
|
|
33114
|
+
Object.defineProperty(fs3, "FileReadStream", {
|
|
33115
33115
|
get: function() {
|
|
33116
33116
|
return FileReadStream;
|
|
33117
33117
|
},
|
|
@@ -33122,7 +33122,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33122
33122
|
configurable: true
|
|
33123
33123
|
});
|
|
33124
33124
|
var FileWriteStream = WriteStream;
|
|
33125
|
-
Object.defineProperty(
|
|
33125
|
+
Object.defineProperty(fs3, "FileWriteStream", {
|
|
33126
33126
|
get: function() {
|
|
33127
33127
|
return FileWriteStream;
|
|
33128
33128
|
},
|
|
@@ -33132,7 +33132,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33132
33132
|
enumerable: true,
|
|
33133
33133
|
configurable: true
|
|
33134
33134
|
});
|
|
33135
|
-
function ReadStream(
|
|
33135
|
+
function ReadStream(path4, options) {
|
|
33136
33136
|
if (this instanceof ReadStream)
|
|
33137
33137
|
return fs$ReadStream.apply(this, arguments), this;
|
|
33138
33138
|
else
|
|
@@ -33152,7 +33152,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33152
33152
|
}
|
|
33153
33153
|
});
|
|
33154
33154
|
}
|
|
33155
|
-
function WriteStream(
|
|
33155
|
+
function WriteStream(path4, options) {
|
|
33156
33156
|
if (this instanceof WriteStream)
|
|
33157
33157
|
return fs$WriteStream.apply(this, arguments), this;
|
|
33158
33158
|
else
|
|
@@ -33170,22 +33170,22 @@ var require_graceful_fs = __commonJS({
|
|
|
33170
33170
|
}
|
|
33171
33171
|
});
|
|
33172
33172
|
}
|
|
33173
|
-
function createReadStream(
|
|
33174
|
-
return new
|
|
33173
|
+
function createReadStream(path4, options) {
|
|
33174
|
+
return new fs3.ReadStream(path4, options);
|
|
33175
33175
|
}
|
|
33176
|
-
function createWriteStream(
|
|
33177
|
-
return new
|
|
33176
|
+
function createWriteStream(path4, options) {
|
|
33177
|
+
return new fs3.WriteStream(path4, options);
|
|
33178
33178
|
}
|
|
33179
|
-
var fs$open =
|
|
33180
|
-
|
|
33181
|
-
function open(
|
|
33179
|
+
var fs$open = fs3.open;
|
|
33180
|
+
fs3.open = open;
|
|
33181
|
+
function open(path4, flags, mode, cb) {
|
|
33182
33182
|
if (typeof mode === "function")
|
|
33183
33183
|
cb = mode, mode = null;
|
|
33184
|
-
return go$open(
|
|
33185
|
-
function go$open(
|
|
33186
|
-
return fs$open(
|
|
33184
|
+
return go$open(path4, flags, mode, cb);
|
|
33185
|
+
function go$open(path5, flags2, mode2, cb2, startTime) {
|
|
33186
|
+
return fs$open(path5, flags2, mode2, function(err, fd) {
|
|
33187
33187
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33188
|
-
enqueue([go$open, [
|
|
33188
|
+
enqueue([go$open, [path5, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
33189
33189
|
else {
|
|
33190
33190
|
if (typeof cb2 === "function")
|
|
33191
33191
|
cb2.apply(this, arguments);
|
|
@@ -33193,20 +33193,20 @@ var require_graceful_fs = __commonJS({
|
|
|
33193
33193
|
});
|
|
33194
33194
|
}
|
|
33195
33195
|
}
|
|
33196
|
-
return
|
|
33196
|
+
return fs3;
|
|
33197
33197
|
}
|
|
33198
33198
|
function enqueue(elem) {
|
|
33199
33199
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
33200
|
-
|
|
33200
|
+
fs2[gracefulQueue].push(elem);
|
|
33201
33201
|
retry();
|
|
33202
33202
|
}
|
|
33203
33203
|
var retryTimer;
|
|
33204
33204
|
function resetQueue() {
|
|
33205
33205
|
var now = Date.now();
|
|
33206
|
-
for (var i = 0; i <
|
|
33207
|
-
if (
|
|
33208
|
-
|
|
33209
|
-
|
|
33206
|
+
for (var i = 0; i < fs2[gracefulQueue].length; ++i) {
|
|
33207
|
+
if (fs2[gracefulQueue][i].length > 2) {
|
|
33208
|
+
fs2[gracefulQueue][i][3] = now;
|
|
33209
|
+
fs2[gracefulQueue][i][4] = now;
|
|
33210
33210
|
}
|
|
33211
33211
|
}
|
|
33212
33212
|
retry();
|
|
@@ -33214,9 +33214,9 @@ var require_graceful_fs = __commonJS({
|
|
|
33214
33214
|
function retry() {
|
|
33215
33215
|
clearTimeout(retryTimer);
|
|
33216
33216
|
retryTimer = void 0;
|
|
33217
|
-
if (
|
|
33217
|
+
if (fs2[gracefulQueue].length === 0)
|
|
33218
33218
|
return;
|
|
33219
|
-
var elem =
|
|
33219
|
+
var elem = fs2[gracefulQueue].shift();
|
|
33220
33220
|
var fn = elem[0];
|
|
33221
33221
|
var args = elem[1];
|
|
33222
33222
|
var err = elem[2];
|
|
@@ -33238,7 +33238,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33238
33238
|
debug("RETRY", fn.name, args);
|
|
33239
33239
|
fn.apply(null, args.concat([startTime]));
|
|
33240
33240
|
} else {
|
|
33241
|
-
|
|
33241
|
+
fs2[gracefulQueue].push(elem);
|
|
33242
33242
|
}
|
|
33243
33243
|
}
|
|
33244
33244
|
if (retryTimer === void 0) {
|
|
@@ -33253,7 +33253,7 @@ var require_fs2 = __commonJS({
|
|
|
33253
33253
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/fs/index.js"(exports) {
|
|
33254
33254
|
"use strict";
|
|
33255
33255
|
var u = require_universalify().fromCallback;
|
|
33256
|
-
var
|
|
33256
|
+
var fs2 = require_graceful_fs();
|
|
33257
33257
|
var api = [
|
|
33258
33258
|
"access",
|
|
33259
33259
|
"appendFile",
|
|
@@ -33290,70 +33290,70 @@ var require_fs2 = __commonJS({
|
|
|
33290
33290
|
"utimes",
|
|
33291
33291
|
"writeFile"
|
|
33292
33292
|
].filter((key) => {
|
|
33293
|
-
return typeof
|
|
33293
|
+
return typeof fs2[key] === "function";
|
|
33294
33294
|
});
|
|
33295
|
-
Object.assign(exports,
|
|
33295
|
+
Object.assign(exports, fs2);
|
|
33296
33296
|
api.forEach((method) => {
|
|
33297
|
-
exports[method] = u(
|
|
33297
|
+
exports[method] = u(fs2[method]);
|
|
33298
33298
|
});
|
|
33299
33299
|
exports.exists = function(filename, callback) {
|
|
33300
33300
|
if (typeof callback === "function") {
|
|
33301
|
-
return
|
|
33301
|
+
return fs2.exists(filename, callback);
|
|
33302
33302
|
}
|
|
33303
|
-
return new Promise((
|
|
33304
|
-
return
|
|
33303
|
+
return new Promise((resolve2) => {
|
|
33304
|
+
return fs2.exists(filename, resolve2);
|
|
33305
33305
|
});
|
|
33306
33306
|
};
|
|
33307
33307
|
exports.read = function(fd, buffer, offset, length, position, callback) {
|
|
33308
33308
|
if (typeof callback === "function") {
|
|
33309
|
-
return
|
|
33309
|
+
return fs2.read(fd, buffer, offset, length, position, callback);
|
|
33310
33310
|
}
|
|
33311
|
-
return new Promise((
|
|
33312
|
-
|
|
33311
|
+
return new Promise((resolve2, reject) => {
|
|
33312
|
+
fs2.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
|
|
33313
33313
|
if (err)
|
|
33314
33314
|
return reject(err);
|
|
33315
|
-
|
|
33315
|
+
resolve2({ bytesRead, buffer: buffer2 });
|
|
33316
33316
|
});
|
|
33317
33317
|
});
|
|
33318
33318
|
};
|
|
33319
33319
|
exports.write = function(fd, buffer, ...args) {
|
|
33320
33320
|
if (typeof args[args.length - 1] === "function") {
|
|
33321
|
-
return
|
|
33321
|
+
return fs2.write(fd, buffer, ...args);
|
|
33322
33322
|
}
|
|
33323
|
-
return new Promise((
|
|
33324
|
-
|
|
33323
|
+
return new Promise((resolve2, reject) => {
|
|
33324
|
+
fs2.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
|
|
33325
33325
|
if (err)
|
|
33326
33326
|
return reject(err);
|
|
33327
|
-
|
|
33327
|
+
resolve2({ bytesWritten, buffer: buffer2 });
|
|
33328
33328
|
});
|
|
33329
33329
|
});
|
|
33330
33330
|
};
|
|
33331
33331
|
exports.readv = function(fd, buffers, ...args) {
|
|
33332
33332
|
if (typeof args[args.length - 1] === "function") {
|
|
33333
|
-
return
|
|
33333
|
+
return fs2.readv(fd, buffers, ...args);
|
|
33334
33334
|
}
|
|
33335
|
-
return new Promise((
|
|
33336
|
-
|
|
33335
|
+
return new Promise((resolve2, reject) => {
|
|
33336
|
+
fs2.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
|
|
33337
33337
|
if (err)
|
|
33338
33338
|
return reject(err);
|
|
33339
|
-
|
|
33339
|
+
resolve2({ bytesRead, buffers: buffers2 });
|
|
33340
33340
|
});
|
|
33341
33341
|
});
|
|
33342
33342
|
};
|
|
33343
33343
|
exports.writev = function(fd, buffers, ...args) {
|
|
33344
33344
|
if (typeof args[args.length - 1] === "function") {
|
|
33345
|
-
return
|
|
33345
|
+
return fs2.writev(fd, buffers, ...args);
|
|
33346
33346
|
}
|
|
33347
|
-
return new Promise((
|
|
33348
|
-
|
|
33347
|
+
return new Promise((resolve2, reject) => {
|
|
33348
|
+
fs2.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
|
|
33349
33349
|
if (err)
|
|
33350
33350
|
return reject(err);
|
|
33351
|
-
|
|
33351
|
+
resolve2({ bytesWritten, buffers: buffers2 });
|
|
33352
33352
|
});
|
|
33353
33353
|
});
|
|
33354
33354
|
};
|
|
33355
|
-
if (typeof
|
|
33356
|
-
exports.realpath.native = u(
|
|
33355
|
+
if (typeof fs2.realpath.native === "function") {
|
|
33356
|
+
exports.realpath.native = u(fs2.realpath.native);
|
|
33357
33357
|
} else {
|
|
33358
33358
|
process.emitWarning(
|
|
33359
33359
|
"fs.realpath.native is not a function. Is fs being monkey-patched?",
|
|
@@ -33368,10 +33368,10 @@ var require_fs2 = __commonJS({
|
|
|
33368
33368
|
var require_utils3 = __commonJS({
|
|
33369
33369
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) {
|
|
33370
33370
|
"use strict";
|
|
33371
|
-
var
|
|
33371
|
+
var path4 = require("path");
|
|
33372
33372
|
module2.exports.checkPath = function checkPath(pth) {
|
|
33373
33373
|
if (process.platform === "win32") {
|
|
33374
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
33374
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path4.parse(pth).root, ""));
|
|
33375
33375
|
if (pathHasInvalidWinCharacters) {
|
|
33376
33376
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
33377
33377
|
error.code = "EINVAL";
|
|
@@ -33386,7 +33386,7 @@ var require_utils3 = __commonJS({
|
|
|
33386
33386
|
var require_make_dir = __commonJS({
|
|
33387
33387
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module2) {
|
|
33388
33388
|
"use strict";
|
|
33389
|
-
var
|
|
33389
|
+
var fs2 = require_fs2();
|
|
33390
33390
|
var { checkPath } = require_utils3();
|
|
33391
33391
|
var getMode = (options) => {
|
|
33392
33392
|
const defaults = { mode: 511 };
|
|
@@ -33396,14 +33396,14 @@ var require_make_dir = __commonJS({
|
|
|
33396
33396
|
};
|
|
33397
33397
|
module2.exports.makeDir = async (dir, options) => {
|
|
33398
33398
|
checkPath(dir);
|
|
33399
|
-
return
|
|
33399
|
+
return fs2.mkdir(dir, {
|
|
33400
33400
|
mode: getMode(options),
|
|
33401
33401
|
recursive: true
|
|
33402
33402
|
});
|
|
33403
33403
|
};
|
|
33404
33404
|
module2.exports.makeDirSync = (dir, options) => {
|
|
33405
33405
|
checkPath(dir);
|
|
33406
|
-
return
|
|
33406
|
+
return fs2.mkdirSync(dir, {
|
|
33407
33407
|
mode: getMode(options),
|
|
33408
33408
|
recursive: true
|
|
33409
33409
|
});
|
|
@@ -33435,13 +33435,13 @@ var require_path_exists = __commonJS({
|
|
|
33435
33435
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/path-exists/index.js"(exports, module2) {
|
|
33436
33436
|
"use strict";
|
|
33437
33437
|
var u = require_universalify().fromPromise;
|
|
33438
|
-
var
|
|
33439
|
-
function pathExists(
|
|
33440
|
-
return
|
|
33438
|
+
var fs2 = require_fs2();
|
|
33439
|
+
function pathExists(path4) {
|
|
33440
|
+
return fs2.access(path4).then(() => true).catch(() => false);
|
|
33441
33441
|
}
|
|
33442
33442
|
module2.exports = {
|
|
33443
33443
|
pathExists: u(pathExists),
|
|
33444
|
-
pathExistsSync:
|
|
33444
|
+
pathExistsSync: fs2.existsSync
|
|
33445
33445
|
};
|
|
33446
33446
|
}
|
|
33447
33447
|
});
|
|
@@ -33450,16 +33450,16 @@ var require_path_exists = __commonJS({
|
|
|
33450
33450
|
var require_utimes = __commonJS({
|
|
33451
33451
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/utimes.js"(exports, module2) {
|
|
33452
33452
|
"use strict";
|
|
33453
|
-
var
|
|
33453
|
+
var fs2 = require_fs2();
|
|
33454
33454
|
var u = require_universalify().fromPromise;
|
|
33455
|
-
async function utimesMillis(
|
|
33456
|
-
const fd = await
|
|
33455
|
+
async function utimesMillis(path4, atime, mtime) {
|
|
33456
|
+
const fd = await fs2.open(path4, "r+");
|
|
33457
33457
|
let closeErr = null;
|
|
33458
33458
|
try {
|
|
33459
|
-
await
|
|
33459
|
+
await fs2.futimes(fd, atime, mtime);
|
|
33460
33460
|
} finally {
|
|
33461
33461
|
try {
|
|
33462
|
-
await
|
|
33462
|
+
await fs2.close(fd);
|
|
33463
33463
|
} catch (e) {
|
|
33464
33464
|
closeErr = e;
|
|
33465
33465
|
}
|
|
@@ -33468,10 +33468,10 @@ var require_utimes = __commonJS({
|
|
|
33468
33468
|
throw closeErr;
|
|
33469
33469
|
}
|
|
33470
33470
|
}
|
|
33471
|
-
function utimesMillisSync(
|
|
33472
|
-
const fd =
|
|
33473
|
-
|
|
33474
|
-
return
|
|
33471
|
+
function utimesMillisSync(path4, atime, mtime) {
|
|
33472
|
+
const fd = fs2.openSync(path4, "r+");
|
|
33473
|
+
fs2.futimesSync(fd, atime, mtime);
|
|
33474
|
+
return fs2.closeSync(fd);
|
|
33475
33475
|
}
|
|
33476
33476
|
module2.exports = {
|
|
33477
33477
|
utimesMillis: u(utimesMillis),
|
|
@@ -33484,11 +33484,11 @@ var require_utimes = __commonJS({
|
|
|
33484
33484
|
var require_stat = __commonJS({
|
|
33485
33485
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
|
|
33486
33486
|
"use strict";
|
|
33487
|
-
var
|
|
33488
|
-
var
|
|
33487
|
+
var fs2 = require_fs2();
|
|
33488
|
+
var path4 = require("path");
|
|
33489
33489
|
var u = require_universalify().fromPromise;
|
|
33490
33490
|
function getStats(src, dest, opts) {
|
|
33491
|
-
const statFunc = opts.dereference ? (file) =>
|
|
33491
|
+
const statFunc = opts.dereference ? (file) => fs2.stat(file, { bigint: true }) : (file) => fs2.lstat(file, { bigint: true });
|
|
33492
33492
|
return Promise.all([
|
|
33493
33493
|
statFunc(src),
|
|
33494
33494
|
statFunc(dest).catch((err) => {
|
|
@@ -33500,7 +33500,7 @@ var require_stat = __commonJS({
|
|
|
33500
33500
|
}
|
|
33501
33501
|
function getStatsSync(src, dest, opts) {
|
|
33502
33502
|
let destStat;
|
|
33503
|
-
const statFunc = opts.dereference ? (file) =>
|
|
33503
|
+
const statFunc = opts.dereference ? (file) => fs2.statSync(file, { bigint: true }) : (file) => fs2.lstatSync(file, { bigint: true });
|
|
33504
33504
|
const srcStat = statFunc(src);
|
|
33505
33505
|
try {
|
|
33506
33506
|
destStat = statFunc(dest);
|
|
@@ -33515,8 +33515,8 @@ var require_stat = __commonJS({
|
|
|
33515
33515
|
const { srcStat, destStat } = await getStats(src, dest, opts);
|
|
33516
33516
|
if (destStat) {
|
|
33517
33517
|
if (areIdentical(srcStat, destStat)) {
|
|
33518
|
-
const srcBaseName =
|
|
33519
|
-
const destBaseName =
|
|
33518
|
+
const srcBaseName = path4.basename(src);
|
|
33519
|
+
const destBaseName = path4.basename(dest);
|
|
33520
33520
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
33521
33521
|
return { srcStat, destStat, isChangingCase: true };
|
|
33522
33522
|
}
|
|
@@ -33538,8 +33538,8 @@ var require_stat = __commonJS({
|
|
|
33538
33538
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
33539
33539
|
if (destStat) {
|
|
33540
33540
|
if (areIdentical(srcStat, destStat)) {
|
|
33541
|
-
const srcBaseName =
|
|
33542
|
-
const destBaseName =
|
|
33541
|
+
const srcBaseName = path4.basename(src);
|
|
33542
|
+
const destBaseName = path4.basename(dest);
|
|
33543
33543
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
33544
33544
|
return { srcStat, destStat, isChangingCase: true };
|
|
33545
33545
|
}
|
|
@@ -33558,13 +33558,13 @@ var require_stat = __commonJS({
|
|
|
33558
33558
|
return { srcStat, destStat };
|
|
33559
33559
|
}
|
|
33560
33560
|
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
33561
|
-
const srcParent =
|
|
33562
|
-
const destParent =
|
|
33563
|
-
if (destParent === srcParent || destParent ===
|
|
33561
|
+
const srcParent = path4.resolve(path4.dirname(src));
|
|
33562
|
+
const destParent = path4.resolve(path4.dirname(dest));
|
|
33563
|
+
if (destParent === srcParent || destParent === path4.parse(destParent).root)
|
|
33564
33564
|
return;
|
|
33565
33565
|
let destStat;
|
|
33566
33566
|
try {
|
|
33567
|
-
destStat = await
|
|
33567
|
+
destStat = await fs2.stat(destParent, { bigint: true });
|
|
33568
33568
|
} catch (err) {
|
|
33569
33569
|
if (err.code === "ENOENT")
|
|
33570
33570
|
return;
|
|
@@ -33576,13 +33576,13 @@ var require_stat = __commonJS({
|
|
|
33576
33576
|
return checkParentPaths(src, srcStat, destParent, funcName);
|
|
33577
33577
|
}
|
|
33578
33578
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
33579
|
-
const srcParent =
|
|
33580
|
-
const destParent =
|
|
33581
|
-
if (destParent === srcParent || destParent ===
|
|
33579
|
+
const srcParent = path4.resolve(path4.dirname(src));
|
|
33580
|
+
const destParent = path4.resolve(path4.dirname(dest));
|
|
33581
|
+
if (destParent === srcParent || destParent === path4.parse(destParent).root)
|
|
33582
33582
|
return;
|
|
33583
33583
|
let destStat;
|
|
33584
33584
|
try {
|
|
33585
|
-
destStat =
|
|
33585
|
+
destStat = fs2.statSync(destParent, { bigint: true });
|
|
33586
33586
|
} catch (err) {
|
|
33587
33587
|
if (err.code === "ENOENT")
|
|
33588
33588
|
return;
|
|
@@ -33597,8 +33597,8 @@ var require_stat = __commonJS({
|
|
|
33597
33597
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
33598
33598
|
}
|
|
33599
33599
|
function isSrcSubdir(src, dest) {
|
|
33600
|
-
const srcArr =
|
|
33601
|
-
const destArr =
|
|
33600
|
+
const srcArr = path4.resolve(src).split(path4.sep).filter((i) => i);
|
|
33601
|
+
const destArr = path4.resolve(dest).split(path4.sep).filter((i) => i);
|
|
33602
33602
|
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
33603
33603
|
}
|
|
33604
33604
|
function errMsg(src, dest, funcName) {
|
|
@@ -33622,8 +33622,8 @@ var require_stat = __commonJS({
|
|
|
33622
33622
|
var require_copy = __commonJS({
|
|
33623
33623
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
|
|
33624
33624
|
"use strict";
|
|
33625
|
-
var
|
|
33626
|
-
var
|
|
33625
|
+
var fs2 = require_fs2();
|
|
33626
|
+
var path4 = require("path");
|
|
33627
33627
|
var { mkdirs } = require_mkdirs();
|
|
33628
33628
|
var { pathExists } = require_path_exists();
|
|
33629
33629
|
var { utimesMillis } = require_utimes();
|
|
@@ -33646,7 +33646,7 @@ var require_copy = __commonJS({
|
|
|
33646
33646
|
const include = await runFilter(src, dest, opts);
|
|
33647
33647
|
if (!include)
|
|
33648
33648
|
return;
|
|
33649
|
-
const destParent =
|
|
33649
|
+
const destParent = path4.dirname(dest);
|
|
33650
33650
|
const dirExists = await pathExists(destParent);
|
|
33651
33651
|
if (!dirExists) {
|
|
33652
33652
|
await mkdirs(destParent);
|
|
@@ -33659,7 +33659,7 @@ var require_copy = __commonJS({
|
|
|
33659
33659
|
return opts.filter(src, dest);
|
|
33660
33660
|
}
|
|
33661
33661
|
async function getStatsAndPerformCopy(destStat, src, dest, opts) {
|
|
33662
|
-
const statFn = opts.dereference ?
|
|
33662
|
+
const statFn = opts.dereference ? fs2.stat : fs2.lstat;
|
|
33663
33663
|
const srcStat = await statFn(src);
|
|
33664
33664
|
if (srcStat.isDirectory())
|
|
33665
33665
|
return onDir(srcStat, destStat, src, dest, opts);
|
|
@@ -33677,7 +33677,7 @@ var require_copy = __commonJS({
|
|
|
33677
33677
|
if (!destStat)
|
|
33678
33678
|
return copyFile(srcStat, src, dest, opts);
|
|
33679
33679
|
if (opts.overwrite) {
|
|
33680
|
-
await
|
|
33680
|
+
await fs2.unlink(dest);
|
|
33681
33681
|
return copyFile(srcStat, src, dest, opts);
|
|
33682
33682
|
}
|
|
33683
33683
|
if (opts.errorOnExist) {
|
|
@@ -33685,30 +33685,30 @@ var require_copy = __commonJS({
|
|
|
33685
33685
|
}
|
|
33686
33686
|
}
|
|
33687
33687
|
async function copyFile(srcStat, src, dest, opts) {
|
|
33688
|
-
await
|
|
33688
|
+
await fs2.copyFile(src, dest);
|
|
33689
33689
|
if (opts.preserveTimestamps) {
|
|
33690
33690
|
if (fileIsNotWritable(srcStat.mode)) {
|
|
33691
33691
|
await makeFileWritable(dest, srcStat.mode);
|
|
33692
33692
|
}
|
|
33693
|
-
const updatedSrcStat = await
|
|
33693
|
+
const updatedSrcStat = await fs2.stat(src);
|
|
33694
33694
|
await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
33695
33695
|
}
|
|
33696
|
-
return
|
|
33696
|
+
return fs2.chmod(dest, srcStat.mode);
|
|
33697
33697
|
}
|
|
33698
33698
|
function fileIsNotWritable(srcMode) {
|
|
33699
33699
|
return (srcMode & 128) === 0;
|
|
33700
33700
|
}
|
|
33701
33701
|
function makeFileWritable(dest, srcMode) {
|
|
33702
|
-
return
|
|
33702
|
+
return fs2.chmod(dest, srcMode | 128);
|
|
33703
33703
|
}
|
|
33704
33704
|
async function onDir(srcStat, destStat, src, dest, opts) {
|
|
33705
33705
|
if (!destStat) {
|
|
33706
|
-
await
|
|
33706
|
+
await fs2.mkdir(dest);
|
|
33707
33707
|
}
|
|
33708
|
-
const items = await
|
|
33708
|
+
const items = await fs2.readdir(src);
|
|
33709
33709
|
await Promise.all(items.map(async (item) => {
|
|
33710
|
-
const srcItem =
|
|
33711
|
-
const destItem =
|
|
33710
|
+
const srcItem = path4.join(src, item);
|
|
33711
|
+
const destItem = path4.join(dest, item);
|
|
33712
33712
|
const include = await runFilter(srcItem, destItem, opts);
|
|
33713
33713
|
if (!include)
|
|
33714
33714
|
return;
|
|
@@ -33716,27 +33716,27 @@ var require_copy = __commonJS({
|
|
|
33716
33716
|
return getStatsAndPerformCopy(destStat2, srcItem, destItem, opts);
|
|
33717
33717
|
}));
|
|
33718
33718
|
if (!destStat) {
|
|
33719
|
-
await
|
|
33719
|
+
await fs2.chmod(dest, srcStat.mode);
|
|
33720
33720
|
}
|
|
33721
33721
|
}
|
|
33722
33722
|
async function onLink(destStat, src, dest, opts) {
|
|
33723
|
-
let resolvedSrc = await
|
|
33723
|
+
let resolvedSrc = await fs2.readlink(src);
|
|
33724
33724
|
if (opts.dereference) {
|
|
33725
|
-
resolvedSrc =
|
|
33725
|
+
resolvedSrc = path4.resolve(process.cwd(), resolvedSrc);
|
|
33726
33726
|
}
|
|
33727
33727
|
if (!destStat) {
|
|
33728
|
-
return
|
|
33728
|
+
return fs2.symlink(resolvedSrc, dest);
|
|
33729
33729
|
}
|
|
33730
33730
|
let resolvedDest = null;
|
|
33731
33731
|
try {
|
|
33732
|
-
resolvedDest = await
|
|
33732
|
+
resolvedDest = await fs2.readlink(dest);
|
|
33733
33733
|
} catch (e) {
|
|
33734
33734
|
if (e.code === "EINVAL" || e.code === "UNKNOWN")
|
|
33735
|
-
return
|
|
33735
|
+
return fs2.symlink(resolvedSrc, dest);
|
|
33736
33736
|
throw e;
|
|
33737
33737
|
}
|
|
33738
33738
|
if (opts.dereference) {
|
|
33739
|
-
resolvedDest =
|
|
33739
|
+
resolvedDest = path4.resolve(process.cwd(), resolvedDest);
|
|
33740
33740
|
}
|
|
33741
33741
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
33742
33742
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -33744,8 +33744,8 @@ var require_copy = __commonJS({
|
|
|
33744
33744
|
if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
33745
33745
|
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
|
|
33746
33746
|
}
|
|
33747
|
-
await
|
|
33748
|
-
return
|
|
33747
|
+
await fs2.unlink(dest);
|
|
33748
|
+
return fs2.symlink(resolvedSrc, dest);
|
|
33749
33749
|
}
|
|
33750
33750
|
module2.exports = copy;
|
|
33751
33751
|
}
|
|
@@ -33755,8 +33755,8 @@ var require_copy = __commonJS({
|
|
|
33755
33755
|
var require_copy_sync = __commonJS({
|
|
33756
33756
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module2) {
|
|
33757
33757
|
"use strict";
|
|
33758
|
-
var
|
|
33759
|
-
var
|
|
33758
|
+
var fs2 = require_graceful_fs();
|
|
33759
|
+
var path4 = require("path");
|
|
33760
33760
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
33761
33761
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
33762
33762
|
var stat = require_stat();
|
|
@@ -33778,13 +33778,13 @@ var require_copy_sync = __commonJS({
|
|
|
33778
33778
|
stat.checkParentPathsSync(src, srcStat, dest, "copy");
|
|
33779
33779
|
if (opts.filter && !opts.filter(src, dest))
|
|
33780
33780
|
return;
|
|
33781
|
-
const destParent =
|
|
33782
|
-
if (!
|
|
33781
|
+
const destParent = path4.dirname(dest);
|
|
33782
|
+
if (!fs2.existsSync(destParent))
|
|
33783
33783
|
mkdirsSync(destParent);
|
|
33784
33784
|
return getStats(destStat, src, dest, opts);
|
|
33785
33785
|
}
|
|
33786
33786
|
function getStats(destStat, src, dest, opts) {
|
|
33787
|
-
const statSync = opts.dereference ?
|
|
33787
|
+
const statSync = opts.dereference ? fs2.statSync : fs2.lstatSync;
|
|
33788
33788
|
const srcStat = statSync(src);
|
|
33789
33789
|
if (srcStat.isDirectory())
|
|
33790
33790
|
return onDir(srcStat, destStat, src, dest, opts);
|
|
@@ -33805,14 +33805,14 @@ var require_copy_sync = __commonJS({
|
|
|
33805
33805
|
}
|
|
33806
33806
|
function mayCopyFile(srcStat, src, dest, opts) {
|
|
33807
33807
|
if (opts.overwrite) {
|
|
33808
|
-
|
|
33808
|
+
fs2.unlinkSync(dest);
|
|
33809
33809
|
return copyFile(srcStat, src, dest, opts);
|
|
33810
33810
|
} else if (opts.errorOnExist) {
|
|
33811
33811
|
throw new Error(`'${dest}' already exists`);
|
|
33812
33812
|
}
|
|
33813
33813
|
}
|
|
33814
33814
|
function copyFile(srcStat, src, dest, opts) {
|
|
33815
|
-
|
|
33815
|
+
fs2.copyFileSync(src, dest);
|
|
33816
33816
|
if (opts.preserveTimestamps)
|
|
33817
33817
|
handleTimestamps(srcStat.mode, src, dest);
|
|
33818
33818
|
return setDestMode(dest, srcStat.mode);
|
|
@@ -33829,10 +33829,10 @@ var require_copy_sync = __commonJS({
|
|
|
33829
33829
|
return setDestMode(dest, srcMode | 128);
|
|
33830
33830
|
}
|
|
33831
33831
|
function setDestMode(dest, srcMode) {
|
|
33832
|
-
return
|
|
33832
|
+
return fs2.chmodSync(dest, srcMode);
|
|
33833
33833
|
}
|
|
33834
33834
|
function setDestTimestamps(src, dest) {
|
|
33835
|
-
const updatedSrcStat =
|
|
33835
|
+
const updatedSrcStat = fs2.statSync(src);
|
|
33836
33836
|
return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
33837
33837
|
}
|
|
33838
33838
|
function onDir(srcStat, destStat, src, dest, opts) {
|
|
@@ -33841,39 +33841,39 @@ var require_copy_sync = __commonJS({
|
|
|
33841
33841
|
return copyDir(src, dest, opts);
|
|
33842
33842
|
}
|
|
33843
33843
|
function mkDirAndCopy(srcMode, src, dest, opts) {
|
|
33844
|
-
|
|
33844
|
+
fs2.mkdirSync(dest);
|
|
33845
33845
|
copyDir(src, dest, opts);
|
|
33846
33846
|
return setDestMode(dest, srcMode);
|
|
33847
33847
|
}
|
|
33848
33848
|
function copyDir(src, dest, opts) {
|
|
33849
|
-
|
|
33849
|
+
fs2.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
33850
33850
|
}
|
|
33851
33851
|
function copyDirItem(item, src, dest, opts) {
|
|
33852
|
-
const srcItem =
|
|
33853
|
-
const destItem =
|
|
33852
|
+
const srcItem = path4.join(src, item);
|
|
33853
|
+
const destItem = path4.join(dest, item);
|
|
33854
33854
|
if (opts.filter && !opts.filter(srcItem, destItem))
|
|
33855
33855
|
return;
|
|
33856
33856
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
33857
33857
|
return getStats(destStat, srcItem, destItem, opts);
|
|
33858
33858
|
}
|
|
33859
33859
|
function onLink(destStat, src, dest, opts) {
|
|
33860
|
-
let resolvedSrc =
|
|
33860
|
+
let resolvedSrc = fs2.readlinkSync(src);
|
|
33861
33861
|
if (opts.dereference) {
|
|
33862
|
-
resolvedSrc =
|
|
33862
|
+
resolvedSrc = path4.resolve(process.cwd(), resolvedSrc);
|
|
33863
33863
|
}
|
|
33864
33864
|
if (!destStat) {
|
|
33865
|
-
return
|
|
33865
|
+
return fs2.symlinkSync(resolvedSrc, dest);
|
|
33866
33866
|
} else {
|
|
33867
33867
|
let resolvedDest;
|
|
33868
33868
|
try {
|
|
33869
|
-
resolvedDest =
|
|
33869
|
+
resolvedDest = fs2.readlinkSync(dest);
|
|
33870
33870
|
} catch (err) {
|
|
33871
33871
|
if (err.code === "EINVAL" || err.code === "UNKNOWN")
|
|
33872
|
-
return
|
|
33872
|
+
return fs2.symlinkSync(resolvedSrc, dest);
|
|
33873
33873
|
throw err;
|
|
33874
33874
|
}
|
|
33875
33875
|
if (opts.dereference) {
|
|
33876
|
-
resolvedDest =
|
|
33876
|
+
resolvedDest = path4.resolve(process.cwd(), resolvedDest);
|
|
33877
33877
|
}
|
|
33878
33878
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
33879
33879
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -33885,8 +33885,8 @@ var require_copy_sync = __commonJS({
|
|
|
33885
33885
|
}
|
|
33886
33886
|
}
|
|
33887
33887
|
function copyLink(resolvedSrc, dest) {
|
|
33888
|
-
|
|
33889
|
-
return
|
|
33888
|
+
fs2.unlinkSync(dest);
|
|
33889
|
+
return fs2.symlinkSync(resolvedSrc, dest);
|
|
33890
33890
|
}
|
|
33891
33891
|
module2.exports = copySync;
|
|
33892
33892
|
}
|
|
@@ -33908,13 +33908,13 @@ var require_copy2 = __commonJS({
|
|
|
33908
33908
|
var require_remove = __commonJS({
|
|
33909
33909
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/remove/index.js"(exports, module2) {
|
|
33910
33910
|
"use strict";
|
|
33911
|
-
var
|
|
33911
|
+
var fs2 = require_graceful_fs();
|
|
33912
33912
|
var u = require_universalify().fromCallback;
|
|
33913
|
-
function remove(
|
|
33914
|
-
|
|
33913
|
+
function remove(path4, callback) {
|
|
33914
|
+
fs2.rm(path4, { recursive: true, force: true }, callback);
|
|
33915
33915
|
}
|
|
33916
|
-
function removeSync(
|
|
33917
|
-
|
|
33916
|
+
function removeSync(path4) {
|
|
33917
|
+
fs2.rmSync(path4, { recursive: true, force: true });
|
|
33918
33918
|
}
|
|
33919
33919
|
module2.exports = {
|
|
33920
33920
|
remove: u(remove),
|
|
@@ -33928,28 +33928,28 @@ var require_empty2 = __commonJS({
|
|
|
33928
33928
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/empty/index.js"(exports, module2) {
|
|
33929
33929
|
"use strict";
|
|
33930
33930
|
var u = require_universalify().fromPromise;
|
|
33931
|
-
var
|
|
33932
|
-
var
|
|
33931
|
+
var fs2 = require_fs2();
|
|
33932
|
+
var path4 = require("path");
|
|
33933
33933
|
var mkdir = require_mkdirs();
|
|
33934
33934
|
var remove = require_remove();
|
|
33935
33935
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
33936
33936
|
let items;
|
|
33937
33937
|
try {
|
|
33938
|
-
items = await
|
|
33938
|
+
items = await fs2.readdir(dir);
|
|
33939
33939
|
} catch {
|
|
33940
33940
|
return mkdir.mkdirs(dir);
|
|
33941
33941
|
}
|
|
33942
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
33942
|
+
return Promise.all(items.map((item) => remove.remove(path4.join(dir, item))));
|
|
33943
33943
|
});
|
|
33944
33944
|
function emptyDirSync(dir) {
|
|
33945
33945
|
let items;
|
|
33946
33946
|
try {
|
|
33947
|
-
items =
|
|
33947
|
+
items = fs2.readdirSync(dir);
|
|
33948
33948
|
} catch {
|
|
33949
33949
|
return mkdir.mkdirsSync(dir);
|
|
33950
33950
|
}
|
|
33951
33951
|
items.forEach((item) => {
|
|
33952
|
-
item =
|
|
33952
|
+
item = path4.join(dir, item);
|
|
33953
33953
|
remove.removeSync(item);
|
|
33954
33954
|
});
|
|
33955
33955
|
}
|
|
@@ -33967,48 +33967,48 @@ var require_file = __commonJS({
|
|
|
33967
33967
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
|
|
33968
33968
|
"use strict";
|
|
33969
33969
|
var u = require_universalify().fromPromise;
|
|
33970
|
-
var
|
|
33971
|
-
var
|
|
33970
|
+
var path4 = require("path");
|
|
33971
|
+
var fs2 = require_fs2();
|
|
33972
33972
|
var mkdir = require_mkdirs();
|
|
33973
33973
|
async function createFile(file) {
|
|
33974
33974
|
let stats;
|
|
33975
33975
|
try {
|
|
33976
|
-
stats = await
|
|
33976
|
+
stats = await fs2.stat(file);
|
|
33977
33977
|
} catch {
|
|
33978
33978
|
}
|
|
33979
33979
|
if (stats && stats.isFile())
|
|
33980
33980
|
return;
|
|
33981
|
-
const dir =
|
|
33981
|
+
const dir = path4.dirname(file);
|
|
33982
33982
|
let dirStats = null;
|
|
33983
33983
|
try {
|
|
33984
|
-
dirStats = await
|
|
33984
|
+
dirStats = await fs2.stat(dir);
|
|
33985
33985
|
} catch (err) {
|
|
33986
33986
|
if (err.code === "ENOENT") {
|
|
33987
33987
|
await mkdir.mkdirs(dir);
|
|
33988
|
-
await
|
|
33988
|
+
await fs2.writeFile(file, "");
|
|
33989
33989
|
return;
|
|
33990
33990
|
} else {
|
|
33991
33991
|
throw err;
|
|
33992
33992
|
}
|
|
33993
33993
|
}
|
|
33994
33994
|
if (dirStats.isDirectory()) {
|
|
33995
|
-
await
|
|
33995
|
+
await fs2.writeFile(file, "");
|
|
33996
33996
|
} else {
|
|
33997
|
-
await
|
|
33997
|
+
await fs2.readdir(dir);
|
|
33998
33998
|
}
|
|
33999
33999
|
}
|
|
34000
34000
|
function createFileSync(file) {
|
|
34001
34001
|
let stats;
|
|
34002
34002
|
try {
|
|
34003
|
-
stats =
|
|
34003
|
+
stats = fs2.statSync(file);
|
|
34004
34004
|
} catch {
|
|
34005
34005
|
}
|
|
34006
34006
|
if (stats && stats.isFile())
|
|
34007
34007
|
return;
|
|
34008
|
-
const dir =
|
|
34008
|
+
const dir = path4.dirname(file);
|
|
34009
34009
|
try {
|
|
34010
|
-
if (!
|
|
34011
|
-
|
|
34010
|
+
if (!fs2.statSync(dir).isDirectory()) {
|
|
34011
|
+
fs2.readdirSync(dir);
|
|
34012
34012
|
}
|
|
34013
34013
|
} catch (err) {
|
|
34014
34014
|
if (err && err.code === "ENOENT")
|
|
@@ -34016,7 +34016,7 @@ var require_file = __commonJS({
|
|
|
34016
34016
|
else
|
|
34017
34017
|
throw err;
|
|
34018
34018
|
}
|
|
34019
|
-
|
|
34019
|
+
fs2.writeFileSync(file, "");
|
|
34020
34020
|
}
|
|
34021
34021
|
module2.exports = {
|
|
34022
34022
|
createFile: u(createFile),
|
|
@@ -34030,53 +34030,53 @@ var require_link = __commonJS({
|
|
|
34030
34030
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
|
|
34031
34031
|
"use strict";
|
|
34032
34032
|
var u = require_universalify().fromPromise;
|
|
34033
|
-
var
|
|
34034
|
-
var
|
|
34033
|
+
var path4 = require("path");
|
|
34034
|
+
var fs2 = require_fs2();
|
|
34035
34035
|
var mkdir = require_mkdirs();
|
|
34036
34036
|
var { pathExists } = require_path_exists();
|
|
34037
34037
|
var { areIdentical } = require_stat();
|
|
34038
34038
|
async function createLink(srcpath, dstpath) {
|
|
34039
34039
|
let dstStat;
|
|
34040
34040
|
try {
|
|
34041
|
-
dstStat = await
|
|
34041
|
+
dstStat = await fs2.lstat(dstpath);
|
|
34042
34042
|
} catch {
|
|
34043
34043
|
}
|
|
34044
34044
|
let srcStat;
|
|
34045
34045
|
try {
|
|
34046
|
-
srcStat = await
|
|
34046
|
+
srcStat = await fs2.lstat(srcpath);
|
|
34047
34047
|
} catch (err) {
|
|
34048
34048
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
34049
34049
|
throw err;
|
|
34050
34050
|
}
|
|
34051
34051
|
if (dstStat && areIdentical(srcStat, dstStat))
|
|
34052
34052
|
return;
|
|
34053
|
-
const dir =
|
|
34053
|
+
const dir = path4.dirname(dstpath);
|
|
34054
34054
|
const dirExists = await pathExists(dir);
|
|
34055
34055
|
if (!dirExists) {
|
|
34056
34056
|
await mkdir.mkdirs(dir);
|
|
34057
34057
|
}
|
|
34058
|
-
await
|
|
34058
|
+
await fs2.link(srcpath, dstpath);
|
|
34059
34059
|
}
|
|
34060
34060
|
function createLinkSync(srcpath, dstpath) {
|
|
34061
34061
|
let dstStat;
|
|
34062
34062
|
try {
|
|
34063
|
-
dstStat =
|
|
34063
|
+
dstStat = fs2.lstatSync(dstpath);
|
|
34064
34064
|
} catch {
|
|
34065
34065
|
}
|
|
34066
34066
|
try {
|
|
34067
|
-
const srcStat =
|
|
34067
|
+
const srcStat = fs2.lstatSync(srcpath);
|
|
34068
34068
|
if (dstStat && areIdentical(srcStat, dstStat))
|
|
34069
34069
|
return;
|
|
34070
34070
|
} catch (err) {
|
|
34071
34071
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
34072
34072
|
throw err;
|
|
34073
34073
|
}
|
|
34074
|
-
const dir =
|
|
34075
|
-
const dirExists =
|
|
34074
|
+
const dir = path4.dirname(dstpath);
|
|
34075
|
+
const dirExists = fs2.existsSync(dir);
|
|
34076
34076
|
if (dirExists)
|
|
34077
|
-
return
|
|
34077
|
+
return fs2.linkSync(srcpath, dstpath);
|
|
34078
34078
|
mkdir.mkdirsSync(dir);
|
|
34079
|
-
return
|
|
34079
|
+
return fs2.linkSync(srcpath, dstpath);
|
|
34080
34080
|
}
|
|
34081
34081
|
module2.exports = {
|
|
34082
34082
|
createLink: u(createLink),
|
|
@@ -34089,14 +34089,14 @@ var require_link = __commonJS({
|
|
|
34089
34089
|
var require_symlink_paths = __commonJS({
|
|
34090
34090
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
|
|
34091
34091
|
"use strict";
|
|
34092
|
-
var
|
|
34093
|
-
var
|
|
34092
|
+
var path4 = require("path");
|
|
34093
|
+
var fs2 = require_fs2();
|
|
34094
34094
|
var { pathExists } = require_path_exists();
|
|
34095
34095
|
var u = require_universalify().fromPromise;
|
|
34096
34096
|
async function symlinkPaths(srcpath, dstpath) {
|
|
34097
|
-
if (
|
|
34097
|
+
if (path4.isAbsolute(srcpath)) {
|
|
34098
34098
|
try {
|
|
34099
|
-
await
|
|
34099
|
+
await fs2.lstat(srcpath);
|
|
34100
34100
|
} catch (err) {
|
|
34101
34101
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
34102
34102
|
throw err;
|
|
@@ -34106,8 +34106,8 @@ var require_symlink_paths = __commonJS({
|
|
|
34106
34106
|
toDst: srcpath
|
|
34107
34107
|
};
|
|
34108
34108
|
}
|
|
34109
|
-
const dstdir =
|
|
34110
|
-
const relativeToDst =
|
|
34109
|
+
const dstdir = path4.dirname(dstpath);
|
|
34110
|
+
const relativeToDst = path4.join(dstdir, srcpath);
|
|
34111
34111
|
const exists = await pathExists(relativeToDst);
|
|
34112
34112
|
if (exists) {
|
|
34113
34113
|
return {
|
|
@@ -34116,19 +34116,19 @@ var require_symlink_paths = __commonJS({
|
|
|
34116
34116
|
};
|
|
34117
34117
|
}
|
|
34118
34118
|
try {
|
|
34119
|
-
await
|
|
34119
|
+
await fs2.lstat(srcpath);
|
|
34120
34120
|
} catch (err) {
|
|
34121
34121
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
34122
34122
|
throw err;
|
|
34123
34123
|
}
|
|
34124
34124
|
return {
|
|
34125
34125
|
toCwd: srcpath,
|
|
34126
|
-
toDst:
|
|
34126
|
+
toDst: path4.relative(dstdir, srcpath)
|
|
34127
34127
|
};
|
|
34128
34128
|
}
|
|
34129
34129
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
34130
|
-
if (
|
|
34131
|
-
const exists2 =
|
|
34130
|
+
if (path4.isAbsolute(srcpath)) {
|
|
34131
|
+
const exists2 = fs2.existsSync(srcpath);
|
|
34132
34132
|
if (!exists2)
|
|
34133
34133
|
throw new Error("absolute srcpath does not exist");
|
|
34134
34134
|
return {
|
|
@@ -34136,21 +34136,21 @@ var require_symlink_paths = __commonJS({
|
|
|
34136
34136
|
toDst: srcpath
|
|
34137
34137
|
};
|
|
34138
34138
|
}
|
|
34139
|
-
const dstdir =
|
|
34140
|
-
const relativeToDst =
|
|
34141
|
-
const exists =
|
|
34139
|
+
const dstdir = path4.dirname(dstpath);
|
|
34140
|
+
const relativeToDst = path4.join(dstdir, srcpath);
|
|
34141
|
+
const exists = fs2.existsSync(relativeToDst);
|
|
34142
34142
|
if (exists) {
|
|
34143
34143
|
return {
|
|
34144
34144
|
toCwd: relativeToDst,
|
|
34145
34145
|
toDst: srcpath
|
|
34146
34146
|
};
|
|
34147
34147
|
}
|
|
34148
|
-
const srcExists =
|
|
34148
|
+
const srcExists = fs2.existsSync(srcpath);
|
|
34149
34149
|
if (!srcExists)
|
|
34150
34150
|
throw new Error("relative srcpath does not exist");
|
|
34151
34151
|
return {
|
|
34152
34152
|
toCwd: srcpath,
|
|
34153
|
-
toDst:
|
|
34153
|
+
toDst: path4.relative(dstdir, srcpath)
|
|
34154
34154
|
};
|
|
34155
34155
|
}
|
|
34156
34156
|
module2.exports = {
|
|
@@ -34164,14 +34164,14 @@ var require_symlink_paths = __commonJS({
|
|
|
34164
34164
|
var require_symlink_type = __commonJS({
|
|
34165
34165
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module2) {
|
|
34166
34166
|
"use strict";
|
|
34167
|
-
var
|
|
34167
|
+
var fs2 = require_fs2();
|
|
34168
34168
|
var u = require_universalify().fromPromise;
|
|
34169
34169
|
async function symlinkType(srcpath, type) {
|
|
34170
34170
|
if (type)
|
|
34171
34171
|
return type;
|
|
34172
34172
|
let stats;
|
|
34173
34173
|
try {
|
|
34174
|
-
stats = await
|
|
34174
|
+
stats = await fs2.lstat(srcpath);
|
|
34175
34175
|
} catch {
|
|
34176
34176
|
return "file";
|
|
34177
34177
|
}
|
|
@@ -34182,7 +34182,7 @@ var require_symlink_type = __commonJS({
|
|
|
34182
34182
|
return type;
|
|
34183
34183
|
let stats;
|
|
34184
34184
|
try {
|
|
34185
|
-
stats =
|
|
34185
|
+
stats = fs2.lstatSync(srcpath);
|
|
34186
34186
|
} catch {
|
|
34187
34187
|
return "file";
|
|
34188
34188
|
}
|
|
@@ -34200,8 +34200,8 @@ var require_symlink = __commonJS({
|
|
|
34200
34200
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
|
|
34201
34201
|
"use strict";
|
|
34202
34202
|
var u = require_universalify().fromPromise;
|
|
34203
|
-
var
|
|
34204
|
-
var
|
|
34203
|
+
var path4 = require("path");
|
|
34204
|
+
var fs2 = require_fs2();
|
|
34205
34205
|
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
34206
34206
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
34207
34207
|
var { symlinkType, symlinkTypeSync } = require_symlink_type();
|
|
@@ -34210,13 +34210,13 @@ var require_symlink = __commonJS({
|
|
|
34210
34210
|
async function createSymlink(srcpath, dstpath, type) {
|
|
34211
34211
|
let stats;
|
|
34212
34212
|
try {
|
|
34213
|
-
stats = await
|
|
34213
|
+
stats = await fs2.lstat(dstpath);
|
|
34214
34214
|
} catch {
|
|
34215
34215
|
}
|
|
34216
34216
|
if (stats && stats.isSymbolicLink()) {
|
|
34217
34217
|
const [srcStat, dstStat] = await Promise.all([
|
|
34218
|
-
|
|
34219
|
-
|
|
34218
|
+
fs2.stat(srcpath),
|
|
34219
|
+
fs2.stat(dstpath)
|
|
34220
34220
|
]);
|
|
34221
34221
|
if (areIdentical(srcStat, dstStat))
|
|
34222
34222
|
return;
|
|
@@ -34224,33 +34224,33 @@ var require_symlink = __commonJS({
|
|
|
34224
34224
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
34225
34225
|
srcpath = relative.toDst;
|
|
34226
34226
|
const toType = await symlinkType(relative.toCwd, type);
|
|
34227
|
-
const dir =
|
|
34227
|
+
const dir = path4.dirname(dstpath);
|
|
34228
34228
|
if (!await pathExists(dir)) {
|
|
34229
34229
|
await mkdirs(dir);
|
|
34230
34230
|
}
|
|
34231
|
-
return
|
|
34231
|
+
return fs2.symlink(srcpath, dstpath, toType);
|
|
34232
34232
|
}
|
|
34233
34233
|
function createSymlinkSync(srcpath, dstpath, type) {
|
|
34234
34234
|
let stats;
|
|
34235
34235
|
try {
|
|
34236
|
-
stats =
|
|
34236
|
+
stats = fs2.lstatSync(dstpath);
|
|
34237
34237
|
} catch {
|
|
34238
34238
|
}
|
|
34239
34239
|
if (stats && stats.isSymbolicLink()) {
|
|
34240
|
-
const srcStat =
|
|
34241
|
-
const dstStat =
|
|
34240
|
+
const srcStat = fs2.statSync(srcpath);
|
|
34241
|
+
const dstStat = fs2.statSync(dstpath);
|
|
34242
34242
|
if (areIdentical(srcStat, dstStat))
|
|
34243
34243
|
return;
|
|
34244
34244
|
}
|
|
34245
34245
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
34246
34246
|
srcpath = relative.toDst;
|
|
34247
34247
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
34248
|
-
const dir =
|
|
34249
|
-
const exists =
|
|
34248
|
+
const dir = path4.dirname(dstpath);
|
|
34249
|
+
const exists = fs2.existsSync(dir);
|
|
34250
34250
|
if (exists)
|
|
34251
|
-
return
|
|
34251
|
+
return fs2.symlinkSync(srcpath, dstpath, type);
|
|
34252
34252
|
mkdirsSync(dir);
|
|
34253
|
-
return
|
|
34253
|
+
return fs2.symlinkSync(srcpath, dstpath, type);
|
|
34254
34254
|
}
|
|
34255
34255
|
module2.exports = {
|
|
34256
34256
|
createSymlink: u(createSymlink),
|
|
@@ -34318,9 +34318,9 @@ var require_jsonfile = __commonJS({
|
|
|
34318
34318
|
if (typeof options === "string") {
|
|
34319
34319
|
options = { encoding: options };
|
|
34320
34320
|
}
|
|
34321
|
-
const
|
|
34321
|
+
const fs2 = options.fs || _fs;
|
|
34322
34322
|
const shouldThrow = "throws" in options ? options.throws : true;
|
|
34323
|
-
let data = await universalify.fromCallback(
|
|
34323
|
+
let data = await universalify.fromCallback(fs2.readFile)(file, options);
|
|
34324
34324
|
data = stripBom(data);
|
|
34325
34325
|
let obj;
|
|
34326
34326
|
try {
|
|
@@ -34340,10 +34340,10 @@ var require_jsonfile = __commonJS({
|
|
|
34340
34340
|
if (typeof options === "string") {
|
|
34341
34341
|
options = { encoding: options };
|
|
34342
34342
|
}
|
|
34343
|
-
const
|
|
34343
|
+
const fs2 = options.fs || _fs;
|
|
34344
34344
|
const shouldThrow = "throws" in options ? options.throws : true;
|
|
34345
34345
|
try {
|
|
34346
|
-
let content =
|
|
34346
|
+
let content = fs2.readFileSync(file, options);
|
|
34347
34347
|
content = stripBom(content);
|
|
34348
34348
|
return JSON.parse(content, options.reviver);
|
|
34349
34349
|
} catch (err) {
|
|
@@ -34356,15 +34356,15 @@ var require_jsonfile = __commonJS({
|
|
|
34356
34356
|
}
|
|
34357
34357
|
}
|
|
34358
34358
|
async function _writeFile(file, obj, options = {}) {
|
|
34359
|
-
const
|
|
34359
|
+
const fs2 = options.fs || _fs;
|
|
34360
34360
|
const str = stringify(obj, options);
|
|
34361
|
-
await universalify.fromCallback(
|
|
34361
|
+
await universalify.fromCallback(fs2.writeFile)(file, str, options);
|
|
34362
34362
|
}
|
|
34363
34363
|
var writeFile = universalify.fromPromise(_writeFile);
|
|
34364
34364
|
function writeFileSync(file, obj, options = {}) {
|
|
34365
|
-
const
|
|
34365
|
+
const fs2 = options.fs || _fs;
|
|
34366
34366
|
const str = stringify(obj, options);
|
|
34367
|
-
return
|
|
34367
|
+
return fs2.writeFileSync(file, str, options);
|
|
34368
34368
|
}
|
|
34369
34369
|
var jsonfile = {
|
|
34370
34370
|
readFile,
|
|
@@ -34396,23 +34396,23 @@ var require_output_file = __commonJS({
|
|
|
34396
34396
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/output-file/index.js"(exports, module2) {
|
|
34397
34397
|
"use strict";
|
|
34398
34398
|
var u = require_universalify().fromPromise;
|
|
34399
|
-
var
|
|
34400
|
-
var
|
|
34399
|
+
var fs2 = require_fs2();
|
|
34400
|
+
var path4 = require("path");
|
|
34401
34401
|
var mkdir = require_mkdirs();
|
|
34402
34402
|
var pathExists = require_path_exists().pathExists;
|
|
34403
34403
|
async function outputFile(file, data, encoding = "utf-8") {
|
|
34404
|
-
const dir =
|
|
34404
|
+
const dir = path4.dirname(file);
|
|
34405
34405
|
if (!await pathExists(dir)) {
|
|
34406
34406
|
await mkdir.mkdirs(dir);
|
|
34407
34407
|
}
|
|
34408
|
-
return
|
|
34408
|
+
return fs2.writeFile(file, data, encoding);
|
|
34409
34409
|
}
|
|
34410
34410
|
function outputFileSync(file, ...args) {
|
|
34411
|
-
const dir =
|
|
34412
|
-
if (!
|
|
34411
|
+
const dir = path4.dirname(file);
|
|
34412
|
+
if (!fs2.existsSync(dir)) {
|
|
34413
34413
|
mkdir.mkdirsSync(dir);
|
|
34414
34414
|
}
|
|
34415
|
-
|
|
34415
|
+
fs2.writeFileSync(file, ...args);
|
|
34416
34416
|
}
|
|
34417
34417
|
module2.exports = {
|
|
34418
34418
|
outputFile: u(outputFile),
|
|
@@ -34471,8 +34471,8 @@ var require_json2 = __commonJS({
|
|
|
34471
34471
|
var require_move = __commonJS({
|
|
34472
34472
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move.js"(exports, module2) {
|
|
34473
34473
|
"use strict";
|
|
34474
|
-
var
|
|
34475
|
-
var
|
|
34474
|
+
var fs2 = require_fs2();
|
|
34475
|
+
var path4 = require("path");
|
|
34476
34476
|
var { copy } = require_copy2();
|
|
34477
34477
|
var { remove } = require_remove();
|
|
34478
34478
|
var { mkdirp } = require_mkdirs();
|
|
@@ -34482,8 +34482,8 @@ var require_move = __commonJS({
|
|
|
34482
34482
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
34483
34483
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
|
|
34484
34484
|
await stat.checkParentPaths(src, srcStat, dest, "move");
|
|
34485
|
-
const destParent =
|
|
34486
|
-
const parsedParentPath =
|
|
34485
|
+
const destParent = path4.dirname(dest);
|
|
34486
|
+
const parsedParentPath = path4.parse(destParent);
|
|
34487
34487
|
if (parsedParentPath.root !== destParent) {
|
|
34488
34488
|
await mkdirp(destParent);
|
|
34489
34489
|
}
|
|
@@ -34498,7 +34498,7 @@ var require_move = __commonJS({
|
|
|
34498
34498
|
}
|
|
34499
34499
|
}
|
|
34500
34500
|
try {
|
|
34501
|
-
await
|
|
34501
|
+
await fs2.rename(src, dest);
|
|
34502
34502
|
} catch (err) {
|
|
34503
34503
|
if (err.code !== "EXDEV") {
|
|
34504
34504
|
throw err;
|
|
@@ -34523,8 +34523,8 @@ var require_move = __commonJS({
|
|
|
34523
34523
|
var require_move_sync = __commonJS({
|
|
34524
34524
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move-sync.js"(exports, module2) {
|
|
34525
34525
|
"use strict";
|
|
34526
|
-
var
|
|
34527
|
-
var
|
|
34526
|
+
var fs2 = require_graceful_fs();
|
|
34527
|
+
var path4 = require("path");
|
|
34528
34528
|
var copySync = require_copy2().copySync;
|
|
34529
34529
|
var removeSync = require_remove().removeSync;
|
|
34530
34530
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -34535,12 +34535,12 @@ var require_move_sync = __commonJS({
|
|
|
34535
34535
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
34536
34536
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
34537
34537
|
if (!isParentRoot(dest))
|
|
34538
|
-
mkdirpSync(
|
|
34538
|
+
mkdirpSync(path4.dirname(dest));
|
|
34539
34539
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
34540
34540
|
}
|
|
34541
34541
|
function isParentRoot(dest) {
|
|
34542
|
-
const parent =
|
|
34543
|
-
const parsedPath =
|
|
34542
|
+
const parent = path4.dirname(dest);
|
|
34543
|
+
const parsedPath = path4.parse(parent);
|
|
34544
34544
|
return parsedPath.root === parent;
|
|
34545
34545
|
}
|
|
34546
34546
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -34550,13 +34550,13 @@ var require_move_sync = __commonJS({
|
|
|
34550
34550
|
removeSync(dest);
|
|
34551
34551
|
return rename(src, dest, overwrite);
|
|
34552
34552
|
}
|
|
34553
|
-
if (
|
|
34553
|
+
if (fs2.existsSync(dest))
|
|
34554
34554
|
throw new Error("dest already exists.");
|
|
34555
34555
|
return rename(src, dest, overwrite);
|
|
34556
34556
|
}
|
|
34557
34557
|
function rename(src, dest, overwrite) {
|
|
34558
34558
|
try {
|
|
34559
|
-
|
|
34559
|
+
fs2.renameSync(src, dest);
|
|
34560
34560
|
} catch (err) {
|
|
34561
34561
|
if (err.code !== "EXDEV")
|
|
34562
34562
|
throw err;
|
|
@@ -35034,16 +35034,16 @@ var require_buildable_libs_utils = __commonJS({
|
|
|
35034
35034
|
dependencies.forEach((dep) => {
|
|
35035
35035
|
if (dep.outputs && dep.outputs.length > 0) {
|
|
35036
35036
|
paths[dep.name] = dep.outputs;
|
|
35037
|
-
for (const
|
|
35037
|
+
for (const path4 of pathsKeys) {
|
|
35038
35038
|
const nestedName = `${dep.name}/`;
|
|
35039
|
-
if (
|
|
35040
|
-
const nestedPart =
|
|
35039
|
+
if (path4.startsWith(nestedName)) {
|
|
35040
|
+
const nestedPart = path4.slice(nestedName.length);
|
|
35041
35041
|
let mappedPaths = dep.outputs.map((output) => `${output}/${nestedPart}`);
|
|
35042
35042
|
const { root } = dep.node?.data || {};
|
|
35043
35043
|
if (root) {
|
|
35044
|
-
mappedPaths = mappedPaths.concat(paths[
|
|
35044
|
+
mappedPaths = mappedPaths.concat(paths[path4].flatMap((path5) => dep.outputs.map((output) => path5.replace(root, output))));
|
|
35045
35045
|
}
|
|
35046
|
-
paths[
|
|
35046
|
+
paths[path4] = mappedPaths;
|
|
35047
35047
|
}
|
|
35048
35048
|
}
|
|
35049
35049
|
}
|
|
@@ -35177,7 +35177,7 @@ var require_minimatch2 = __commonJS({
|
|
|
35177
35177
|
"node_modules/.pnpm/minimatch@3.0.5/node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
35178
35178
|
module2.exports = minimatch;
|
|
35179
35179
|
minimatch.Minimatch = Minimatch;
|
|
35180
|
-
var
|
|
35180
|
+
var path4 = (() => {
|
|
35181
35181
|
try {
|
|
35182
35182
|
return require("path");
|
|
35183
35183
|
} catch (e) {
|
|
@@ -35185,7 +35185,7 @@ var require_minimatch2 = __commonJS({
|
|
|
35185
35185
|
})() || {
|
|
35186
35186
|
sep: "/"
|
|
35187
35187
|
};
|
|
35188
|
-
minimatch.sep =
|
|
35188
|
+
minimatch.sep = path4.sep;
|
|
35189
35189
|
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
35190
35190
|
var expand = require_brace_expansion();
|
|
35191
35191
|
var plTypes = {
|
|
@@ -35279,8 +35279,8 @@ var require_minimatch2 = __commonJS({
|
|
|
35279
35279
|
if (!options)
|
|
35280
35280
|
options = {};
|
|
35281
35281
|
pattern = pattern.trim();
|
|
35282
|
-
if (
|
|
35283
|
-
pattern = pattern.split(
|
|
35282
|
+
if (path4.sep !== "/") {
|
|
35283
|
+
pattern = pattern.split(path4.sep).join("/");
|
|
35284
35284
|
}
|
|
35285
35285
|
this.options = options;
|
|
35286
35286
|
this.set = [];
|
|
@@ -35370,9 +35370,9 @@ var require_minimatch2 = __commonJS({
|
|
|
35370
35370
|
throw new TypeError("pattern is too long");
|
|
35371
35371
|
}
|
|
35372
35372
|
};
|
|
35373
|
-
Minimatch.prototype.parse =
|
|
35373
|
+
Minimatch.prototype.parse = parse2;
|
|
35374
35374
|
var SUBPARSE = {};
|
|
35375
|
-
function
|
|
35375
|
+
function parse2(pattern, isSub) {
|
|
35376
35376
|
assertValidPattern(pattern);
|
|
35377
35377
|
var options = this.options;
|
|
35378
35378
|
if (!options.noglobstar && pattern === "**")
|
|
@@ -35653,8 +35653,8 @@ var require_minimatch2 = __commonJS({
|
|
|
35653
35653
|
if (f === "/" && partial)
|
|
35654
35654
|
return true;
|
|
35655
35655
|
var options = this.options;
|
|
35656
|
-
if (
|
|
35657
|
-
f = f.split(
|
|
35656
|
+
if (path4.sep !== "/") {
|
|
35657
|
+
f = f.split(path4.sep).join("/");
|
|
35658
35658
|
}
|
|
35659
35659
|
f = f.split(slashSplit);
|
|
35660
35660
|
this.debug(this.pattern, "split", f);
|
|
@@ -35836,7 +35836,7 @@ var require_path = __commonJS({
|
|
|
35836
35836
|
"use strict";
|
|
35837
35837
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35838
35838
|
exports.removeLeadingDotSegment = exports.escape = exports.makeAbsolute = exports.unixify = void 0;
|
|
35839
|
-
var
|
|
35839
|
+
var path4 = require("path");
|
|
35840
35840
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
35841
35841
|
var UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
|
|
35842
35842
|
function unixify(filepath) {
|
|
@@ -35844,7 +35844,7 @@ var require_path = __commonJS({
|
|
|
35844
35844
|
}
|
|
35845
35845
|
exports.unixify = unixify;
|
|
35846
35846
|
function makeAbsolute(cwd, filepath) {
|
|
35847
|
-
return
|
|
35847
|
+
return path4.resolve(cwd, filepath);
|
|
35848
35848
|
}
|
|
35849
35849
|
exports.makeAbsolute = makeAbsolute;
|
|
35850
35850
|
function escape(pattern) {
|
|
@@ -36874,7 +36874,7 @@ var require_parse2 = __commonJS({
|
|
|
36874
36874
|
CHAR_NO_BREAK_SPACE,
|
|
36875
36875
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE
|
|
36876
36876
|
} = require_constants2();
|
|
36877
|
-
var
|
|
36877
|
+
var parse2 = (input, options = {}) => {
|
|
36878
36878
|
if (typeof input !== "string") {
|
|
36879
36879
|
throw new TypeError("Expected a string");
|
|
36880
36880
|
}
|
|
@@ -37080,7 +37080,7 @@ var require_parse2 = __commonJS({
|
|
|
37080
37080
|
push({ type: "eos" });
|
|
37081
37081
|
return ast;
|
|
37082
37082
|
};
|
|
37083
|
-
module2.exports =
|
|
37083
|
+
module2.exports = parse2;
|
|
37084
37084
|
}
|
|
37085
37085
|
});
|
|
37086
37086
|
|
|
@@ -37091,7 +37091,7 @@ var require_braces = __commonJS({
|
|
|
37091
37091
|
var stringify = require_stringify();
|
|
37092
37092
|
var compile = require_compile();
|
|
37093
37093
|
var expand = require_expand2();
|
|
37094
|
-
var
|
|
37094
|
+
var parse2 = require_parse2();
|
|
37095
37095
|
var braces = (input, options = {}) => {
|
|
37096
37096
|
let output = [];
|
|
37097
37097
|
if (Array.isArray(input)) {
|
|
@@ -37111,7 +37111,7 @@ var require_braces = __commonJS({
|
|
|
37111
37111
|
}
|
|
37112
37112
|
return output;
|
|
37113
37113
|
};
|
|
37114
|
-
braces.parse = (input, options = {}) =>
|
|
37114
|
+
braces.parse = (input, options = {}) => parse2(input, options);
|
|
37115
37115
|
braces.stringify = (input, options = {}) => {
|
|
37116
37116
|
if (typeof input === "string") {
|
|
37117
37117
|
return stringify(braces.parse(input, options), options);
|
|
@@ -37151,7 +37151,7 @@ var require_braces = __commonJS({
|
|
|
37151
37151
|
var require_constants3 = __commonJS({
|
|
37152
37152
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module2) {
|
|
37153
37153
|
"use strict";
|
|
37154
|
-
var
|
|
37154
|
+
var path4 = require("path");
|
|
37155
37155
|
var WIN_SLASH = "\\\\/";
|
|
37156
37156
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
37157
37157
|
var DOT_LITERAL = "\\.";
|
|
@@ -37321,7 +37321,7 @@ var require_constants3 = __commonJS({
|
|
|
37321
37321
|
/* | */
|
|
37322
37322
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
37323
37323
|
/* \uFEFF */
|
|
37324
|
-
SEP:
|
|
37324
|
+
SEP: path4.sep,
|
|
37325
37325
|
/**
|
|
37326
37326
|
* Create EXTGLOB_CHARS
|
|
37327
37327
|
*/
|
|
@@ -37348,7 +37348,7 @@ var require_constants3 = __commonJS({
|
|
|
37348
37348
|
var require_utils6 = __commonJS({
|
|
37349
37349
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
|
|
37350
37350
|
"use strict";
|
|
37351
|
-
var
|
|
37351
|
+
var path4 = require("path");
|
|
37352
37352
|
var win32 = process.platform === "win32";
|
|
37353
37353
|
var {
|
|
37354
37354
|
REGEX_BACKSLASH,
|
|
@@ -37377,7 +37377,7 @@ var require_utils6 = __commonJS({
|
|
|
37377
37377
|
if (options && typeof options.windows === "boolean") {
|
|
37378
37378
|
return options.windows;
|
|
37379
37379
|
}
|
|
37380
|
-
return win32 === true ||
|
|
37380
|
+
return win32 === true || path4.sep === "\\";
|
|
37381
37381
|
};
|
|
37382
37382
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
37383
37383
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -37769,7 +37769,7 @@ var require_parse3 = __commonJS({
|
|
|
37769
37769
|
var syntaxError = (type, char) => {
|
|
37770
37770
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
37771
37771
|
};
|
|
37772
|
-
var
|
|
37772
|
+
var parse2 = (input, options) => {
|
|
37773
37773
|
if (typeof input !== "string") {
|
|
37774
37774
|
throw new TypeError("Expected a string");
|
|
37775
37775
|
}
|
|
@@ -37919,7 +37919,7 @@ var require_parse3 = __commonJS({
|
|
|
37919
37919
|
output = token.close = `)$))${extglobStar}`;
|
|
37920
37920
|
}
|
|
37921
37921
|
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
|
37922
|
-
const expression =
|
|
37922
|
+
const expression = parse2(rest, { ...options, fastpaths: false }).output;
|
|
37923
37923
|
output = token.close = `)${expression})${extglobStar})`;
|
|
37924
37924
|
}
|
|
37925
37925
|
if (token.prev.type === "bos") {
|
|
@@ -38448,7 +38448,7 @@ var require_parse3 = __commonJS({
|
|
|
38448
38448
|
}
|
|
38449
38449
|
return state;
|
|
38450
38450
|
};
|
|
38451
|
-
|
|
38451
|
+
parse2.fastpaths = (input, options) => {
|
|
38452
38452
|
const opts = { ...options };
|
|
38453
38453
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
38454
38454
|
const len = input.length;
|
|
@@ -38517,7 +38517,7 @@ var require_parse3 = __commonJS({
|
|
|
38517
38517
|
}
|
|
38518
38518
|
return source;
|
|
38519
38519
|
};
|
|
38520
|
-
module2.exports =
|
|
38520
|
+
module2.exports = parse2;
|
|
38521
38521
|
}
|
|
38522
38522
|
});
|
|
38523
38523
|
|
|
@@ -38525,9 +38525,9 @@ var require_parse3 = __commonJS({
|
|
|
38525
38525
|
var require_picomatch = __commonJS({
|
|
38526
38526
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module2) {
|
|
38527
38527
|
"use strict";
|
|
38528
|
-
var
|
|
38528
|
+
var path4 = require("path");
|
|
38529
38529
|
var scan = require_scan2();
|
|
38530
|
-
var
|
|
38530
|
+
var parse2 = require_parse3();
|
|
38531
38531
|
var utils = require_utils6();
|
|
38532
38532
|
var constants = require_constants3();
|
|
38533
38533
|
var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
@@ -38611,13 +38611,13 @@ var require_picomatch = __commonJS({
|
|
|
38611
38611
|
};
|
|
38612
38612
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
38613
38613
|
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
38614
|
-
return regex.test(
|
|
38614
|
+
return regex.test(path4.basename(input));
|
|
38615
38615
|
};
|
|
38616
38616
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
38617
38617
|
picomatch.parse = (pattern, options) => {
|
|
38618
38618
|
if (Array.isArray(pattern))
|
|
38619
38619
|
return pattern.map((p) => picomatch.parse(p, options));
|
|
38620
|
-
return
|
|
38620
|
+
return parse2(pattern, { ...options, fastpaths: false });
|
|
38621
38621
|
};
|
|
38622
38622
|
picomatch.scan = (input, options) => scan(input, options);
|
|
38623
38623
|
picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
|
@@ -38643,10 +38643,10 @@ var require_picomatch = __commonJS({
|
|
|
38643
38643
|
}
|
|
38644
38644
|
let parsed = { negated: false, fastpaths: true };
|
|
38645
38645
|
if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
|
|
38646
|
-
parsed.output =
|
|
38646
|
+
parsed.output = parse2.fastpaths(input, options);
|
|
38647
38647
|
}
|
|
38648
38648
|
if (!parsed.output) {
|
|
38649
|
-
parsed =
|
|
38649
|
+
parsed = parse2(input, options);
|
|
38650
38650
|
}
|
|
38651
38651
|
return picomatch.compileRe(parsed, options, returnOutput, returnState);
|
|
38652
38652
|
};
|
|
@@ -38841,7 +38841,7 @@ var require_pattern = __commonJS({
|
|
|
38841
38841
|
"use strict";
|
|
38842
38842
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38843
38843
|
exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
38844
|
-
var
|
|
38844
|
+
var path4 = require("path");
|
|
38845
38845
|
var globParent = require_glob_parent();
|
|
38846
38846
|
var micromatch = require_micromatch();
|
|
38847
38847
|
var GLOBSTAR = "**";
|
|
@@ -38923,7 +38923,7 @@ var require_pattern = __commonJS({
|
|
|
38923
38923
|
}
|
|
38924
38924
|
exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
38925
38925
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
38926
|
-
const basename =
|
|
38926
|
+
const basename = path4.basename(pattern);
|
|
38927
38927
|
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
|
|
38928
38928
|
}
|
|
38929
38929
|
exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
@@ -39136,10 +39136,10 @@ var require_utils7 = __commonJS({
|
|
|
39136
39136
|
exports.array = array;
|
|
39137
39137
|
var errno = require_errno();
|
|
39138
39138
|
exports.errno = errno;
|
|
39139
|
-
var
|
|
39140
|
-
exports.fs =
|
|
39141
|
-
var
|
|
39142
|
-
exports.path =
|
|
39139
|
+
var fs2 = require_fs3();
|
|
39140
|
+
exports.fs = fs2;
|
|
39141
|
+
var path4 = require_path();
|
|
39142
|
+
exports.path = path4;
|
|
39143
39143
|
var pattern = require_pattern();
|
|
39144
39144
|
exports.pattern = pattern;
|
|
39145
39145
|
var stream = require_stream();
|
|
@@ -39239,8 +39239,8 @@ var require_async2 = __commonJS({
|
|
|
39239
39239
|
"use strict";
|
|
39240
39240
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39241
39241
|
exports.read = void 0;
|
|
39242
|
-
function read(
|
|
39243
|
-
settings.fs.lstat(
|
|
39242
|
+
function read(path4, settings, callback) {
|
|
39243
|
+
settings.fs.lstat(path4, (lstatError, lstat) => {
|
|
39244
39244
|
if (lstatError !== null) {
|
|
39245
39245
|
callFailureCallback(callback, lstatError);
|
|
39246
39246
|
return;
|
|
@@ -39249,7 +39249,7 @@ var require_async2 = __commonJS({
|
|
|
39249
39249
|
callSuccessCallback(callback, lstat);
|
|
39250
39250
|
return;
|
|
39251
39251
|
}
|
|
39252
|
-
settings.fs.stat(
|
|
39252
|
+
settings.fs.stat(path4, (statError, stat) => {
|
|
39253
39253
|
if (statError !== null) {
|
|
39254
39254
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
39255
39255
|
callFailureCallback(callback, statError);
|
|
@@ -39281,13 +39281,13 @@ var require_sync2 = __commonJS({
|
|
|
39281
39281
|
"use strict";
|
|
39282
39282
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39283
39283
|
exports.read = void 0;
|
|
39284
|
-
function read(
|
|
39285
|
-
const lstat = settings.fs.lstatSync(
|
|
39284
|
+
function read(path4, settings) {
|
|
39285
|
+
const lstat = settings.fs.lstatSync(path4);
|
|
39286
39286
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
39287
39287
|
return lstat;
|
|
39288
39288
|
}
|
|
39289
39289
|
try {
|
|
39290
|
-
const stat = settings.fs.statSync(
|
|
39290
|
+
const stat = settings.fs.statSync(path4);
|
|
39291
39291
|
if (settings.markSymbolicLink) {
|
|
39292
39292
|
stat.isSymbolicLink = () => true;
|
|
39293
39293
|
}
|
|
@@ -39309,12 +39309,12 @@ var require_fs4 = __commonJS({
|
|
|
39309
39309
|
"use strict";
|
|
39310
39310
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39311
39311
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
39312
|
-
var
|
|
39312
|
+
var fs2 = require("fs");
|
|
39313
39313
|
exports.FILE_SYSTEM_ADAPTER = {
|
|
39314
|
-
lstat:
|
|
39315
|
-
stat:
|
|
39316
|
-
lstatSync:
|
|
39317
|
-
statSync:
|
|
39314
|
+
lstat: fs2.lstat,
|
|
39315
|
+
stat: fs2.stat,
|
|
39316
|
+
lstatSync: fs2.lstatSync,
|
|
39317
|
+
statSync: fs2.statSync
|
|
39318
39318
|
};
|
|
39319
39319
|
function createFileSystemAdapter(fsMethods) {
|
|
39320
39320
|
if (fsMethods === void 0) {
|
|
@@ -39331,12 +39331,12 @@ var require_settings = __commonJS({
|
|
|
39331
39331
|
"node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
|
|
39332
39332
|
"use strict";
|
|
39333
39333
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39334
|
-
var
|
|
39334
|
+
var fs2 = require_fs4();
|
|
39335
39335
|
var Settings = class {
|
|
39336
39336
|
constructor(_options = {}) {
|
|
39337
39337
|
this._options = _options;
|
|
39338
39338
|
this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
|
|
39339
|
-
this.fs =
|
|
39339
|
+
this.fs = fs2.createFileSystemAdapter(this._options.fs);
|
|
39340
39340
|
this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
|
|
39341
39341
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
39342
39342
|
}
|
|
@@ -39358,17 +39358,17 @@ var require_out = __commonJS({
|
|
|
39358
39358
|
var sync = require_sync2();
|
|
39359
39359
|
var settings_1 = require_settings();
|
|
39360
39360
|
exports.Settings = settings_1.default;
|
|
39361
|
-
function stat(
|
|
39361
|
+
function stat(path4, optionsOrSettingsOrCallback, callback) {
|
|
39362
39362
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
39363
|
-
async.read(
|
|
39363
|
+
async.read(path4, getSettings(), optionsOrSettingsOrCallback);
|
|
39364
39364
|
return;
|
|
39365
39365
|
}
|
|
39366
|
-
async.read(
|
|
39366
|
+
async.read(path4, getSettings(optionsOrSettingsOrCallback), callback);
|
|
39367
39367
|
}
|
|
39368
39368
|
exports.stat = stat;
|
|
39369
|
-
function statSync(
|
|
39369
|
+
function statSync(path4, optionsOrSettings) {
|
|
39370
39370
|
const settings = getSettings(optionsOrSettings);
|
|
39371
|
-
return sync.read(
|
|
39371
|
+
return sync.read(path4, settings);
|
|
39372
39372
|
}
|
|
39373
39373
|
exports.statSync = statSync;
|
|
39374
39374
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -39494,8 +39494,8 @@ var require_utils8 = __commonJS({
|
|
|
39494
39494
|
"use strict";
|
|
39495
39495
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39496
39496
|
exports.fs = void 0;
|
|
39497
|
-
var
|
|
39498
|
-
exports.fs =
|
|
39497
|
+
var fs2 = require_fs5();
|
|
39498
|
+
exports.fs = fs2;
|
|
39499
39499
|
}
|
|
39500
39500
|
});
|
|
39501
39501
|
|
|
@@ -39587,16 +39587,16 @@ var require_async3 = __commonJS({
|
|
|
39587
39587
|
return;
|
|
39588
39588
|
}
|
|
39589
39589
|
const tasks = names3.map((name) => {
|
|
39590
|
-
const
|
|
39590
|
+
const path4 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
39591
39591
|
return (done) => {
|
|
39592
|
-
fsStat.stat(
|
|
39592
|
+
fsStat.stat(path4, settings.fsStatSettings, (error, stats) => {
|
|
39593
39593
|
if (error !== null) {
|
|
39594
39594
|
done(error);
|
|
39595
39595
|
return;
|
|
39596
39596
|
}
|
|
39597
39597
|
const entry = {
|
|
39598
39598
|
name,
|
|
39599
|
-
path,
|
|
39599
|
+
path: path4,
|
|
39600
39600
|
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
39601
39601
|
};
|
|
39602
39602
|
if (settings.stats) {
|
|
@@ -39690,14 +39690,14 @@ var require_fs6 = __commonJS({
|
|
|
39690
39690
|
"use strict";
|
|
39691
39691
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39692
39692
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
39693
|
-
var
|
|
39693
|
+
var fs2 = require("fs");
|
|
39694
39694
|
exports.FILE_SYSTEM_ADAPTER = {
|
|
39695
|
-
lstat:
|
|
39696
|
-
stat:
|
|
39697
|
-
lstatSync:
|
|
39698
|
-
statSync:
|
|
39699
|
-
readdir:
|
|
39700
|
-
readdirSync:
|
|
39695
|
+
lstat: fs2.lstat,
|
|
39696
|
+
stat: fs2.stat,
|
|
39697
|
+
lstatSync: fs2.lstatSync,
|
|
39698
|
+
statSync: fs2.statSync,
|
|
39699
|
+
readdir: fs2.readdir,
|
|
39700
|
+
readdirSync: fs2.readdirSync
|
|
39701
39701
|
};
|
|
39702
39702
|
function createFileSystemAdapter(fsMethods) {
|
|
39703
39703
|
if (fsMethods === void 0) {
|
|
@@ -39714,15 +39714,15 @@ var require_settings2 = __commonJS({
|
|
|
39714
39714
|
"node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
|
|
39715
39715
|
"use strict";
|
|
39716
39716
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39717
|
-
var
|
|
39717
|
+
var path4 = require("path");
|
|
39718
39718
|
var fsStat = require_out();
|
|
39719
|
-
var
|
|
39719
|
+
var fs2 = require_fs6();
|
|
39720
39720
|
var Settings = class {
|
|
39721
39721
|
constructor(_options = {}) {
|
|
39722
39722
|
this._options = _options;
|
|
39723
39723
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
39724
|
-
this.fs =
|
|
39725
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
39724
|
+
this.fs = fs2.createFileSystemAdapter(this._options.fs);
|
|
39725
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path4.sep);
|
|
39726
39726
|
this.stats = this._getValue(this._options.stats, false);
|
|
39727
39727
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
39728
39728
|
this.fsStatSettings = new fsStat.Settings({
|
|
@@ -39749,17 +39749,17 @@ var require_out2 = __commonJS({
|
|
|
39749
39749
|
var sync = require_sync3();
|
|
39750
39750
|
var settings_1 = require_settings2();
|
|
39751
39751
|
exports.Settings = settings_1.default;
|
|
39752
|
-
function scandir(
|
|
39752
|
+
function scandir(path4, optionsOrSettingsOrCallback, callback) {
|
|
39753
39753
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
39754
|
-
async.read(
|
|
39754
|
+
async.read(path4, getSettings(), optionsOrSettingsOrCallback);
|
|
39755
39755
|
return;
|
|
39756
39756
|
}
|
|
39757
|
-
async.read(
|
|
39757
|
+
async.read(path4, getSettings(optionsOrSettingsOrCallback), callback);
|
|
39758
39758
|
}
|
|
39759
39759
|
exports.scandir = scandir;
|
|
39760
|
-
function scandirSync(
|
|
39760
|
+
function scandirSync(path4, optionsOrSettings) {
|
|
39761
39761
|
const settings = getSettings(optionsOrSettings);
|
|
39762
|
-
return sync.read(
|
|
39762
|
+
return sync.read(path4, settings);
|
|
39763
39763
|
}
|
|
39764
39764
|
exports.scandirSync = scandirSync;
|
|
39765
39765
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -39997,26 +39997,26 @@ var require_queue2 = __commonJS({
|
|
|
39997
39997
|
queue.drained = drained;
|
|
39998
39998
|
return queue;
|
|
39999
39999
|
function push(value) {
|
|
40000
|
-
var p = new Promise(function(
|
|
40000
|
+
var p = new Promise(function(resolve2, reject) {
|
|
40001
40001
|
pushCb(value, function(err, result) {
|
|
40002
40002
|
if (err) {
|
|
40003
40003
|
reject(err);
|
|
40004
40004
|
return;
|
|
40005
40005
|
}
|
|
40006
|
-
|
|
40006
|
+
resolve2(result);
|
|
40007
40007
|
});
|
|
40008
40008
|
});
|
|
40009
40009
|
p.catch(noop);
|
|
40010
40010
|
return p;
|
|
40011
40011
|
}
|
|
40012
40012
|
function unshift(value) {
|
|
40013
|
-
var p = new Promise(function(
|
|
40013
|
+
var p = new Promise(function(resolve2, reject) {
|
|
40014
40014
|
unshiftCb(value, function(err, result) {
|
|
40015
40015
|
if (err) {
|
|
40016
40016
|
reject(err);
|
|
40017
40017
|
return;
|
|
40018
40018
|
}
|
|
40019
|
-
|
|
40019
|
+
resolve2(result);
|
|
40020
40020
|
});
|
|
40021
40021
|
});
|
|
40022
40022
|
p.catch(noop);
|
|
@@ -40024,15 +40024,15 @@ var require_queue2 = __commonJS({
|
|
|
40024
40024
|
}
|
|
40025
40025
|
function drained() {
|
|
40026
40026
|
if (queue.idle()) {
|
|
40027
|
-
return new Promise(function(
|
|
40028
|
-
|
|
40027
|
+
return new Promise(function(resolve2) {
|
|
40028
|
+
resolve2();
|
|
40029
40029
|
});
|
|
40030
40030
|
}
|
|
40031
40031
|
var previousDrain = queue.drain;
|
|
40032
|
-
var p = new Promise(function(
|
|
40032
|
+
var p = new Promise(function(resolve2) {
|
|
40033
40033
|
queue.drain = function() {
|
|
40034
40034
|
previousDrain();
|
|
40035
|
-
|
|
40035
|
+
resolve2();
|
|
40036
40036
|
};
|
|
40037
40037
|
});
|
|
40038
40038
|
return p;
|
|
@@ -40363,7 +40363,7 @@ var require_settings3 = __commonJS({
|
|
|
40363
40363
|
"node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
|
|
40364
40364
|
"use strict";
|
|
40365
40365
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40366
|
-
var
|
|
40366
|
+
var path4 = require("path");
|
|
40367
40367
|
var fsScandir = require_out2();
|
|
40368
40368
|
var Settings = class {
|
|
40369
40369
|
constructor(_options = {}) {
|
|
@@ -40373,7 +40373,7 @@ var require_settings3 = __commonJS({
|
|
|
40373
40373
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
40374
40374
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
40375
40375
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
40376
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
40376
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path4.sep);
|
|
40377
40377
|
this.fsScandirSettings = new fsScandir.Settings({
|
|
40378
40378
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
40379
40379
|
fs: this._options.fs,
|
|
@@ -40435,7 +40435,7 @@ var require_reader2 = __commonJS({
|
|
|
40435
40435
|
"node_modules/.pnpm/fast-glob@3.2.7/node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
40436
40436
|
"use strict";
|
|
40437
40437
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40438
|
-
var
|
|
40438
|
+
var path4 = require("path");
|
|
40439
40439
|
var fsStat = require_out();
|
|
40440
40440
|
var utils = require_utils7();
|
|
40441
40441
|
var Reader = class {
|
|
@@ -40448,7 +40448,7 @@ var require_reader2 = __commonJS({
|
|
|
40448
40448
|
});
|
|
40449
40449
|
}
|
|
40450
40450
|
_getFullEntryPath(filepath) {
|
|
40451
|
-
return
|
|
40451
|
+
return path4.resolve(this._settings.cwd, filepath);
|
|
40452
40452
|
}
|
|
40453
40453
|
_makeEntry(stats, pattern) {
|
|
40454
40454
|
const entry = {
|
|
@@ -40515,9 +40515,9 @@ var require_stream3 = __commonJS({
|
|
|
40515
40515
|
});
|
|
40516
40516
|
}
|
|
40517
40517
|
_getStat(filepath) {
|
|
40518
|
-
return new Promise((
|
|
40518
|
+
return new Promise((resolve2, reject) => {
|
|
40519
40519
|
this._stat(filepath, this._fsStatSettings, (error, stats) => {
|
|
40520
|
-
return error === null ?
|
|
40520
|
+
return error === null ? resolve2(stats) : reject(error);
|
|
40521
40521
|
});
|
|
40522
40522
|
});
|
|
40523
40523
|
}
|
|
@@ -40800,7 +40800,7 @@ var require_provider = __commonJS({
|
|
|
40800
40800
|
"node_modules/.pnpm/fast-glob@3.2.7/node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
40801
40801
|
"use strict";
|
|
40802
40802
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40803
|
-
var
|
|
40803
|
+
var path4 = require("path");
|
|
40804
40804
|
var deep_1 = require_deep();
|
|
40805
40805
|
var entry_1 = require_entry();
|
|
40806
40806
|
var error_1 = require_error();
|
|
@@ -40814,7 +40814,7 @@ var require_provider = __commonJS({
|
|
|
40814
40814
|
this.entryTransformer = new entry_2.default(this._settings);
|
|
40815
40815
|
}
|
|
40816
40816
|
_getRootDirectory(task) {
|
|
40817
|
-
return
|
|
40817
|
+
return path4.resolve(this._settings.cwd, task.base);
|
|
40818
40818
|
}
|
|
40819
40819
|
_getReaderOptions(task) {
|
|
40820
40820
|
const basePath = task.base === "." ? "" : task.base;
|
|
@@ -40865,11 +40865,11 @@ var require_async6 = __commonJS({
|
|
|
40865
40865
|
const root = this._getRootDirectory(task);
|
|
40866
40866
|
const options = this._getReaderOptions(task);
|
|
40867
40867
|
const entries = [];
|
|
40868
|
-
return new Promise((
|
|
40868
|
+
return new Promise((resolve2, reject) => {
|
|
40869
40869
|
const stream = this.api(root, task, options);
|
|
40870
40870
|
stream.once("error", reject);
|
|
40871
40871
|
stream.on("data", (entry) => entries.push(options.transform(entry)));
|
|
40872
|
-
stream.once("end", () =>
|
|
40872
|
+
stream.once("end", () => resolve2(entries));
|
|
40873
40873
|
});
|
|
40874
40874
|
}
|
|
40875
40875
|
api(root, task, options) {
|
|
@@ -41000,16 +41000,16 @@ var require_settings4 = __commonJS({
|
|
|
41000
41000
|
"use strict";
|
|
41001
41001
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41002
41002
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
41003
|
-
var
|
|
41003
|
+
var fs2 = require("fs");
|
|
41004
41004
|
var os = require("os");
|
|
41005
41005
|
var CPU_COUNT = Math.max(os.cpus().length, 1);
|
|
41006
41006
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
41007
|
-
lstat:
|
|
41008
|
-
lstatSync:
|
|
41009
|
-
stat:
|
|
41010
|
-
statSync:
|
|
41011
|
-
readdir:
|
|
41012
|
-
readdirSync:
|
|
41007
|
+
lstat: fs2.lstat,
|
|
41008
|
+
lstatSync: fs2.lstatSync,
|
|
41009
|
+
stat: fs2.stat,
|
|
41010
|
+
statSync: fs2.statSync,
|
|
41011
|
+
readdir: fs2.readdir,
|
|
41012
|
+
readdirSync: fs2.readdirSync
|
|
41013
41013
|
};
|
|
41014
41014
|
var Settings = class {
|
|
41015
41015
|
constructor(_options = {}) {
|
|
@@ -41126,14 +41126,14 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41126
41126
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41127
41127
|
exports.CopyAssetsHandler = exports.defaultFileEventHandler = void 0;
|
|
41128
41128
|
var minimatch = require_minimatch2();
|
|
41129
|
-
var
|
|
41129
|
+
var path4 = require("path");
|
|
41130
41130
|
var fse = require_lib4();
|
|
41131
41131
|
var ignore_1 = require_ignore();
|
|
41132
41132
|
var fg = require_out4();
|
|
41133
41133
|
var devkit_1 = require_devkit();
|
|
41134
41134
|
var client_1 = require("nx/src/daemon/client/client");
|
|
41135
41135
|
var defaultFileEventHandler = (events) => {
|
|
41136
|
-
const dirs = new Set(events.map((event) =>
|
|
41136
|
+
const dirs = new Set(events.map((event) => path4.dirname(event.dest)));
|
|
41137
41137
|
dirs.forEach((d) => fse.ensureDirSync(d));
|
|
41138
41138
|
events.forEach((event) => {
|
|
41139
41139
|
if (event.type === "create" || event.type === "update") {
|
|
@@ -41155,8 +41155,8 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41155
41155
|
this.outputDir = opts.outputDir;
|
|
41156
41156
|
this.callback = opts.callback ?? exports.defaultFileEventHandler;
|
|
41157
41157
|
this.ignore = (0, ignore_1.default)();
|
|
41158
|
-
const gitignore =
|
|
41159
|
-
const nxignore =
|
|
41158
|
+
const gitignore = path4.join(opts.rootDir, ".gitignore");
|
|
41159
|
+
const nxignore = path4.join(opts.rootDir, ".nxignore");
|
|
41160
41160
|
if (fse.existsSync(gitignore))
|
|
41161
41161
|
this.ignore.add(fse.readFileSync(gitignore).toString());
|
|
41162
41162
|
if (fse.existsSync(nxignore))
|
|
@@ -41169,15 +41169,15 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41169
41169
|
let ignore = null;
|
|
41170
41170
|
if (typeof f === "string") {
|
|
41171
41171
|
pattern = f;
|
|
41172
|
-
input =
|
|
41173
|
-
output =
|
|
41172
|
+
input = path4.relative(opts.rootDir, opts.projectDir);
|
|
41173
|
+
output = path4.relative(opts.rootDir, opts.outputDir);
|
|
41174
41174
|
} else {
|
|
41175
41175
|
isGlob = true;
|
|
41176
|
-
pattern =
|
|
41176
|
+
pattern = path4.join(f.input, f.glob);
|
|
41177
41177
|
input = f.input;
|
|
41178
|
-
output =
|
|
41178
|
+
output = path4.join(path4.relative(opts.rootDir, opts.outputDir), f.output);
|
|
41179
41179
|
if (f.ignore)
|
|
41180
|
-
ignore = f.ignore.map((ig) =>
|
|
41180
|
+
ignore = f.ignore.map((ig) => path4.join(f.input, ig));
|
|
41181
41181
|
}
|
|
41182
41182
|
return {
|
|
41183
41183
|
isGlob,
|
|
@@ -41229,15 +41229,15 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41229
41229
|
async processWatchEvents(events) {
|
|
41230
41230
|
const fileEvents = [];
|
|
41231
41231
|
for (const event of events) {
|
|
41232
|
-
const pathFromRoot =
|
|
41232
|
+
const pathFromRoot = path4.relative(this.rootDir, event.path);
|
|
41233
41233
|
for (const ag of this.assetGlobs) {
|
|
41234
41234
|
if (minimatch(pathFromRoot, ag.pattern) && !ag.ignore?.some((ig) => minimatch(pathFromRoot, ig)) && !this.ignore.ignores(pathFromRoot)) {
|
|
41235
|
-
const relPath =
|
|
41235
|
+
const relPath = path4.relative(ag.input, pathFromRoot);
|
|
41236
41236
|
const destPath = relPath.startsWith("..") ? pathFromRoot : relPath;
|
|
41237
41237
|
fileEvents.push({
|
|
41238
41238
|
type: event.type,
|
|
41239
|
-
src:
|
|
41240
|
-
dest:
|
|
41239
|
+
src: path4.join(this.rootDir, pathFromRoot),
|
|
41240
|
+
dest: path4.join(this.rootDir, ag.output, destPath)
|
|
41241
41241
|
});
|
|
41242
41242
|
break;
|
|
41243
41243
|
}
|
|
@@ -41249,12 +41249,12 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41249
41249
|
filesToEvent(files, assetGlob) {
|
|
41250
41250
|
return files.reduce((acc, src) => {
|
|
41251
41251
|
if (!assetGlob.ignore?.some((ig) => minimatch(src, ig)) && !this.ignore.ignores(src)) {
|
|
41252
|
-
const relPath =
|
|
41252
|
+
const relPath = path4.relative(assetGlob.input, src);
|
|
41253
41253
|
const dest = relPath.startsWith("..") ? src : relPath;
|
|
41254
41254
|
acc.push({
|
|
41255
41255
|
type: "create",
|
|
41256
|
-
src:
|
|
41257
|
-
dest:
|
|
41256
|
+
src: path4.join(this.rootDir, src),
|
|
41257
|
+
dest: path4.join(this.rootDir, assetGlob.output, dest)
|
|
41258
41258
|
});
|
|
41259
41259
|
}
|
|
41260
41260
|
return acc;
|
|
@@ -41614,12 +41614,12 @@ var require_generator = __commonJS({
|
|
|
41614
41614
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41615
41615
|
exports.setupVerdaccio = void 0;
|
|
41616
41616
|
var devkit_1 = require_devkit();
|
|
41617
|
-
var
|
|
41617
|
+
var path4 = require("path");
|
|
41618
41618
|
var versions_1 = require_versions2();
|
|
41619
41619
|
var child_process_1 = require("child_process");
|
|
41620
41620
|
async function setupVerdaccio2(tree, options) {
|
|
41621
41621
|
if (!tree.exists(".verdaccio/config.yml")) {
|
|
41622
|
-
(0, devkit_1.generateFiles)(tree,
|
|
41622
|
+
(0, devkit_1.generateFiles)(tree, path4.join(__dirname, "files"), ".verdaccio", {
|
|
41623
41623
|
npmUplinkRegistry: (0, child_process_1.execSync)("npm config get registry")?.toString()?.trim() ?? "https://registry.npmjs.org"
|
|
41624
41624
|
});
|
|
41625
41625
|
}
|
|
@@ -42381,7 +42381,7 @@ var require_eslint_file = __commonJS({
|
|
|
42381
42381
|
if ((0, flat_config_1.useFlatConfig)(tree)) {
|
|
42382
42382
|
const fileName = (0, devkit_1.joinPathFragments)(root, "eslint.config.js");
|
|
42383
42383
|
const block = (0, ast_utils_1.generateAst)({
|
|
42384
|
-
ignores: ignorePatterns.map((
|
|
42384
|
+
ignores: ignorePatterns.map((path4) => (0, ast_utils_1.mapFilePath)(path4, root))
|
|
42385
42385
|
});
|
|
42386
42386
|
tree.write(fileName, (0, ast_utils_1.addBlockToFlatConfigExport)(tree.read(fileName, "utf8"), block));
|
|
42387
42387
|
} else {
|
|
@@ -43562,7 +43562,6 @@ var LogLevelLabel = {
|
|
|
43562
43562
|
|
|
43563
43563
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
43564
43564
|
var import_fs = require("fs");
|
|
43565
|
-
var import_find_workspace_root = require("nx/src/utils/find-workspace-root.js");
|
|
43566
43565
|
var import_path = require("path");
|
|
43567
43566
|
|
|
43568
43567
|
// node_modules/.pnpm/zod@3.22.4/node_modules/zod/lib/index.mjs
|
|
@@ -43906,8 +43905,8 @@ function getErrorMap() {
|
|
|
43906
43905
|
return overrideErrorMap;
|
|
43907
43906
|
}
|
|
43908
43907
|
var makeIssue = (params) => {
|
|
43909
|
-
const { data, path, errorMaps, issueData } = params;
|
|
43910
|
-
const fullPath = [...
|
|
43908
|
+
const { data, path: path4, errorMaps, issueData } = params;
|
|
43909
|
+
const fullPath = [...path4, ...issueData.path || []];
|
|
43911
43910
|
const fullIssue = {
|
|
43912
43911
|
...issueData,
|
|
43913
43912
|
path: fullPath
|
|
@@ -44005,11 +44004,11 @@ var errorUtil;
|
|
|
44005
44004
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
|
|
44006
44005
|
})(errorUtil || (errorUtil = {}));
|
|
44007
44006
|
var ParseInputLazyPath = class {
|
|
44008
|
-
constructor(parent, value,
|
|
44007
|
+
constructor(parent, value, path4, key) {
|
|
44009
44008
|
this._cachedPath = [];
|
|
44010
44009
|
this.parent = parent;
|
|
44011
44010
|
this.data = value;
|
|
44012
|
-
this._path =
|
|
44011
|
+
this._path = path4;
|
|
44013
44012
|
this._key = key;
|
|
44014
44013
|
}
|
|
44015
44014
|
get path() {
|
|
@@ -47197,6 +47196,195 @@ var StormConfigSchema = objectType({
|
|
|
47197
47196
|
"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
47198
47197
|
);
|
|
47199
47198
|
|
|
47199
|
+
// packages/config-tools/src/utilities/find-workspace-root.ts
|
|
47200
|
+
var path3 = __toESM(require("path"), 1);
|
|
47201
|
+
|
|
47202
|
+
// node_modules/.pnpm/locate-path@7.2.0/node_modules/locate-path/index.js
|
|
47203
|
+
var import_node_process = __toESM(require("node:process"), 1);
|
|
47204
|
+
var import_node_path = __toESM(require("node:path"), 1);
|
|
47205
|
+
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
47206
|
+
var import_node_url = require("node:url");
|
|
47207
|
+
|
|
47208
|
+
// node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js
|
|
47209
|
+
var Node = class {
|
|
47210
|
+
value;
|
|
47211
|
+
next;
|
|
47212
|
+
constructor(value) {
|
|
47213
|
+
this.value = value;
|
|
47214
|
+
}
|
|
47215
|
+
};
|
|
47216
|
+
var Queue = class {
|
|
47217
|
+
#head;
|
|
47218
|
+
#tail;
|
|
47219
|
+
#size;
|
|
47220
|
+
constructor() {
|
|
47221
|
+
this.clear();
|
|
47222
|
+
}
|
|
47223
|
+
enqueue(value) {
|
|
47224
|
+
const node = new Node(value);
|
|
47225
|
+
if (this.#head) {
|
|
47226
|
+
this.#tail.next = node;
|
|
47227
|
+
this.#tail = node;
|
|
47228
|
+
} else {
|
|
47229
|
+
this.#head = node;
|
|
47230
|
+
this.#tail = node;
|
|
47231
|
+
}
|
|
47232
|
+
this.#size++;
|
|
47233
|
+
}
|
|
47234
|
+
dequeue() {
|
|
47235
|
+
const current = this.#head;
|
|
47236
|
+
if (!current) {
|
|
47237
|
+
return;
|
|
47238
|
+
}
|
|
47239
|
+
this.#head = this.#head.next;
|
|
47240
|
+
this.#size--;
|
|
47241
|
+
return current.value;
|
|
47242
|
+
}
|
|
47243
|
+
clear() {
|
|
47244
|
+
this.#head = void 0;
|
|
47245
|
+
this.#tail = void 0;
|
|
47246
|
+
this.#size = 0;
|
|
47247
|
+
}
|
|
47248
|
+
get size() {
|
|
47249
|
+
return this.#size;
|
|
47250
|
+
}
|
|
47251
|
+
*[Symbol.iterator]() {
|
|
47252
|
+
let current = this.#head;
|
|
47253
|
+
while (current) {
|
|
47254
|
+
yield current.value;
|
|
47255
|
+
current = current.next;
|
|
47256
|
+
}
|
|
47257
|
+
}
|
|
47258
|
+
};
|
|
47259
|
+
|
|
47260
|
+
// node_modules/.pnpm/locate-path@7.2.0/node_modules/locate-path/index.js
|
|
47261
|
+
var typeMappings = {
|
|
47262
|
+
directory: "isDirectory",
|
|
47263
|
+
file: "isFile"
|
|
47264
|
+
};
|
|
47265
|
+
function checkType(type) {
|
|
47266
|
+
if (Object.hasOwnProperty.call(typeMappings, type)) {
|
|
47267
|
+
return;
|
|
47268
|
+
}
|
|
47269
|
+
throw new Error(`Invalid type specified: ${type}`);
|
|
47270
|
+
}
|
|
47271
|
+
var matchType = (type, stat) => stat[typeMappings[type]]();
|
|
47272
|
+
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
47273
|
+
function locatePathSync(paths, {
|
|
47274
|
+
cwd = import_node_process.default.cwd(),
|
|
47275
|
+
type = "file",
|
|
47276
|
+
allowSymlinks = true
|
|
47277
|
+
} = {}) {
|
|
47278
|
+
checkType(type);
|
|
47279
|
+
cwd = toPath(cwd);
|
|
47280
|
+
const statFunction = allowSymlinks ? import_node_fs.default.statSync : import_node_fs.default.lstatSync;
|
|
47281
|
+
for (const path_ of paths) {
|
|
47282
|
+
try {
|
|
47283
|
+
const stat = statFunction(import_node_path.default.resolve(cwd, path_), {
|
|
47284
|
+
throwIfNoEntry: false
|
|
47285
|
+
});
|
|
47286
|
+
if (!stat) {
|
|
47287
|
+
continue;
|
|
47288
|
+
}
|
|
47289
|
+
if (matchType(type, stat)) {
|
|
47290
|
+
return path_;
|
|
47291
|
+
}
|
|
47292
|
+
} catch {
|
|
47293
|
+
}
|
|
47294
|
+
}
|
|
47295
|
+
}
|
|
47296
|
+
|
|
47297
|
+
// packages/config-tools/src/utilities/find-up.ts
|
|
47298
|
+
var path2 = __toESM(require("path"), 1);
|
|
47299
|
+
var import_url = require("url");
|
|
47300
|
+
var findUpStop = Symbol("findUpStop");
|
|
47301
|
+
function toPath2(urlOrPath) {
|
|
47302
|
+
return urlOrPath instanceof URL ? (0, import_url.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
47303
|
+
}
|
|
47304
|
+
function findUpMultipleSync(names3, options = { limit: 1, type: "file" }) {
|
|
47305
|
+
let directory = path2.resolve(toPath2(options.cwd) ?? "");
|
|
47306
|
+
const { root } = path2.parse(directory);
|
|
47307
|
+
const stopAt = path2.resolve(directory, toPath2(options.stopAt) ?? root);
|
|
47308
|
+
const limit = options.limit ?? Number.POSITIVE_INFINITY;
|
|
47309
|
+
if (typeof names3 === "function") {
|
|
47310
|
+
const foundPath = names3(options.cwd);
|
|
47311
|
+
return locatePathSync([foundPath], options);
|
|
47312
|
+
}
|
|
47313
|
+
const runNameMatcher = (name) => {
|
|
47314
|
+
const paths = [name].flat();
|
|
47315
|
+
const runMatcher = (locateOptions) => {
|
|
47316
|
+
if (typeof name !== "function") {
|
|
47317
|
+
return locatePathSync(paths, locateOptions);
|
|
47318
|
+
}
|
|
47319
|
+
const foundPath = name(locateOptions.cwd);
|
|
47320
|
+
if (typeof foundPath === "string") {
|
|
47321
|
+
return locatePathSync([foundPath], locateOptions);
|
|
47322
|
+
}
|
|
47323
|
+
return foundPath;
|
|
47324
|
+
};
|
|
47325
|
+
const matches = [];
|
|
47326
|
+
while (true) {
|
|
47327
|
+
const foundPath = runMatcher({ ...options, cwd: directory });
|
|
47328
|
+
if (foundPath) {
|
|
47329
|
+
matches.push(path2.resolve(directory, foundPath));
|
|
47330
|
+
}
|
|
47331
|
+
if (directory === stopAt || matches.length >= limit) {
|
|
47332
|
+
break;
|
|
47333
|
+
}
|
|
47334
|
+
directory = path2.dirname(directory);
|
|
47335
|
+
}
|
|
47336
|
+
return matches;
|
|
47337
|
+
};
|
|
47338
|
+
return (names3 && Array.isArray(names3) ? names3 : [names3]).map((name) => runNameMatcher(name)).flat();
|
|
47339
|
+
}
|
|
47340
|
+
function findUpSync(names3, options = { limit: 1, type: "file" }) {
|
|
47341
|
+
const matches = findUpMultipleSync(names3, options);
|
|
47342
|
+
return matches[0];
|
|
47343
|
+
}
|
|
47344
|
+
|
|
47345
|
+
// packages/config-tools/src/utilities/find-workspace-root.ts
|
|
47346
|
+
var rootFiles = [
|
|
47347
|
+
"lerna.json",
|
|
47348
|
+
"nx.json",
|
|
47349
|
+
"turbo.json",
|
|
47350
|
+
"npm-workspace.json",
|
|
47351
|
+
"yarn-workspace.json",
|
|
47352
|
+
"pnpm-workspace.json",
|
|
47353
|
+
"npm-workspace.yaml",
|
|
47354
|
+
"yarn-workspace.yaml",
|
|
47355
|
+
"pnpm-workspace.yaml",
|
|
47356
|
+
"npm-workspace.yml",
|
|
47357
|
+
"yarn-workspace.yml",
|
|
47358
|
+
"pnpm-workspace.yml",
|
|
47359
|
+
"npm-lock.json",
|
|
47360
|
+
"yarn-lock.json",
|
|
47361
|
+
"pnpm-lock.json",
|
|
47362
|
+
"npm-lock.yaml",
|
|
47363
|
+
"yarn-lock.yaml",
|
|
47364
|
+
"pnpm-lock.yaml",
|
|
47365
|
+
"npm-lock.yml",
|
|
47366
|
+
"yarn-lock.yml",
|
|
47367
|
+
"pnpm-lock.yml",
|
|
47368
|
+
"bun.lockb"
|
|
47369
|
+
];
|
|
47370
|
+
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
47371
|
+
const result = process.env.STORM_WORKSPACE_ROOT ? process.env.STORM_WORKSPACE_ROOT : process.env.NX_WORKSPACE_ROOT_PATH ? process.env.NX_WORKSPACE_ROOT_PATH : findUpSync(rootFiles, {
|
|
47372
|
+
cwd: pathInsideMonorepo ?? process.cwd(),
|
|
47373
|
+
type: "file",
|
|
47374
|
+
limit: 1
|
|
47375
|
+
});
|
|
47376
|
+
if (!result) {
|
|
47377
|
+
throw new Error(
|
|
47378
|
+
`Cannot find workspace root upwards from known path. Files search list includes:
|
|
47379
|
+
${rootFiles.join(
|
|
47380
|
+
"\n"
|
|
47381
|
+
)}
|
|
47382
|
+
Path: ${path3}`
|
|
47383
|
+
);
|
|
47384
|
+
}
|
|
47385
|
+
return result;
|
|
47386
|
+
}
|
|
47387
|
+
|
|
47200
47388
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
47201
47389
|
var DefaultColorConfig = {
|
|
47202
47390
|
primary: "#1fb2a6",
|
|
@@ -47232,10 +47420,7 @@ var getDefaultConfig = (config = {}) => {
|
|
|
47232
47420
|
let repository = "https://github.com/storm-software/storm-stack";
|
|
47233
47421
|
let license = DefaultStormConfig.license;
|
|
47234
47422
|
let homepage = DefaultStormConfig.homepage;
|
|
47235
|
-
const workspaceRoot =
|
|
47236
|
-
if (typeof workspaceRoot !== "string") {
|
|
47237
|
-
throw new Error("Could not find workspace root");
|
|
47238
|
-
}
|
|
47423
|
+
const workspaceRoot = findWorkspaceRoot(process.cwd());
|
|
47239
47424
|
if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
|
|
47240
47425
|
const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
|
|
47241
47426
|
encoding: "utf-8"
|