@storm-software/workspace-tools 1.56.4 → 1.56.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/index.js +2593 -3976
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +436 -2550
- package/src/executors/design-tokens/executor.js +828 -2942
- package/src/executors/npm-publish/executor.js +11023 -114
- package/src/executors/tsup/executor.js +2345 -3922
- package/src/executors/tsup-browser/executor.js +2356 -3933
- package/src/executors/tsup-neutral/executor.js +2356 -3933
- package/src/executors/tsup-node/executor.js +2356 -3933
- package/src/executors/typia/executor.js +217 -2331
- package/src/generators/browser-library/generator.js +429 -2543
- package/src/generators/config-schema/generator.js +191 -2305
- package/src/generators/neutral-library/generator.js +429 -2543
- package/src/generators/node-library/generator.js +429 -2543
- package/src/generators/preset/generator.js +188 -2302
- package/src/utils/index.js +2139 -3716
|
@@ -606,7 +606,7 @@ var require_format_files = __commonJS({
|
|
|
606
606
|
"use strict";
|
|
607
607
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
608
608
|
exports2.formatFiles = void 0;
|
|
609
|
-
var
|
|
609
|
+
var path = 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 = path.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 path2 of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
671
|
+
if (tree.exists(path2)) {
|
|
672
|
+
return path2;
|
|
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(path) {
|
|
966
|
+
return binaryExtensions.has((0, path_1.extname)(path).toLowerCase());
|
|
967
967
|
}
|
|
968
968
|
exports2.isBinaryPath = isBinaryPath;
|
|
969
969
|
}
|
|
@@ -1147,7 +1147,7 @@ var require_ejs = __commonJS({
|
|
|
1147
1147
|
"node_modules/.pnpm/ejs@3.1.9/node_modules/ejs/lib/ejs.js"(exports2) {
|
|
1148
1148
|
"use strict";
|
|
1149
1149
|
var fs = require("fs");
|
|
1150
|
-
var
|
|
1150
|
+
var path = require("path");
|
|
1151
1151
|
var utils = require_utils();
|
|
1152
1152
|
var scopeOptionWarned = false;
|
|
1153
1153
|
var _VERSION_STRING = require_package().version;
|
|
@@ -1178,9 +1178,9 @@ var require_ejs = __commonJS({
|
|
|
1178
1178
|
exports2.localsName = _DEFAULT_LOCALS_NAME;
|
|
1179
1179
|
exports2.promiseImpl = new Function("return this;")().Promise;
|
|
1180
1180
|
exports2.resolveInclude = function(name, filename, isDir) {
|
|
1181
|
-
var dirname =
|
|
1182
|
-
var extname =
|
|
1183
|
-
var resolve =
|
|
1181
|
+
var dirname = path.dirname;
|
|
1182
|
+
var extname = path.extname;
|
|
1183
|
+
var resolve = path.resolve;
|
|
1184
1184
|
var includePath = resolve(isDir ? filename : dirname(filename), name);
|
|
1185
1185
|
var ext = extname(name);
|
|
1186
1186
|
if (!ext) {
|
|
@@ -1197,30 +1197,30 @@ var require_ejs = __commonJS({
|
|
|
1197
1197
|
return filePath;
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
|
-
function getIncludePath(
|
|
1200
|
+
function getIncludePath(path2, 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(path2);
|
|
1205
1205
|
if (match && match.length) {
|
|
1206
|
-
|
|
1206
|
+
path2 = path2.replace(/^\/*/, "");
|
|
1207
1207
|
if (Array.isArray(options.root)) {
|
|
1208
|
-
includePath = resolvePaths(
|
|
1208
|
+
includePath = resolvePaths(path2, options.root);
|
|
1209
1209
|
} else {
|
|
1210
|
-
includePath = exports2.resolveInclude(
|
|
1210
|
+
includePath = exports2.resolveInclude(path2, options.root || "/", true);
|
|
1211
1211
|
}
|
|
1212
1212
|
} else {
|
|
1213
1213
|
if (options.filename) {
|
|
1214
|
-
filePath = exports2.resolveInclude(
|
|
1214
|
+
filePath = exports2.resolveInclude(path2, options.filename);
|
|
1215
1215
|
if (fs.existsSync(filePath)) {
|
|
1216
1216
|
includePath = filePath;
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
if (!includePath && Array.isArray(views)) {
|
|
1220
|
-
includePath = resolvePaths(
|
|
1220
|
+
includePath = resolvePaths(path2, 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(path2) + '"');
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
return includePath;
|
|
@@ -1279,11 +1279,11 @@ var require_ejs = __commonJS({
|
|
|
1279
1279
|
function fileLoader(filePath) {
|
|
1280
1280
|
return exports2.fileLoader(filePath);
|
|
1281
1281
|
}
|
|
1282
|
-
function includeFile(
|
|
1282
|
+
function includeFile(path2, options) {
|
|
1283
1283
|
var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
|
|
1284
|
-
opts.filename = getIncludePath(
|
|
1284
|
+
opts.filename = getIncludePath(path2, opts);
|
|
1285
1285
|
if (typeof options.includer === "function") {
|
|
1286
|
-
var includerResult = options.includer(
|
|
1286
|
+
var includerResult = options.includer(path2, 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(path2, 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(path2, 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 = path.basename(filename, path.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(exports2, "__esModule", { value: true });
|
|
1696
1696
|
exports2.generateFiles = void 0;
|
|
1697
1697
|
var fs_1 = require("fs");
|
|
1698
|
-
var
|
|
1698
|
+
var path = 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
|
exports2.generateFiles = generateFiles2;
|
|
1729
1729
|
function computePath(srcFolder, target, filePath, substitutions) {
|
|
1730
|
-
const relativeFromSrcFolder =
|
|
1731
|
-
let computedPath =
|
|
1730
|
+
const relativeFromSrcFolder = path.relative(srcFolder, filePath);
|
|
1731
|
+
let computedPath = path.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 = path.join(parent, c);
|
|
1745
1745
|
try {
|
|
1746
1746
|
const s = (0, fs_1.statSync)(child);
|
|
1747
1747
|
if (!s.isDirectory()) {
|
|
@@ -4107,7 +4107,7 @@ var require_subset = __commonJS({
|
|
|
4107
4107
|
var require_semver2 = __commonJS({
|
|
4108
4108
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/index.js"(exports2, module2) {
|
|
4109
4109
|
var internalRe = require_re();
|
|
4110
|
-
var
|
|
4110
|
+
var constants = require_constants();
|
|
4111
4111
|
var SemVer = require_semver();
|
|
4112
4112
|
var identifiers = require_identifiers();
|
|
4113
4113
|
var parse = require_parse();
|
|
@@ -4189,8 +4189,8 @@ var require_semver2 = __commonJS({
|
|
|
4189
4189
|
re: internalRe.re,
|
|
4190
4190
|
src: internalRe.src,
|
|
4191
4191
|
tokens: internalRe.t,
|
|
4192
|
-
SEMVER_SPEC_VERSION:
|
|
4193
|
-
RELEASE_TYPES:
|
|
4192
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
4193
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
4194
4194
|
compareIdentifiers: identifiers.compareIdentifiers,
|
|
4195
4195
|
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
4196
4196
|
};
|
|
@@ -4731,7 +4731,7 @@ var require_minimatch = __commonJS({
|
|
|
4731
4731
|
"node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports2, module2) {
|
|
4732
4732
|
module2.exports = minimatch;
|
|
4733
4733
|
minimatch.Minimatch = Minimatch;
|
|
4734
|
-
var
|
|
4734
|
+
var path = 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 = path.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 && path.sep !== "/") {
|
|
4834
|
+
pattern = pattern.split(path.sep).join("/");
|
|
4835
4835
|
}
|
|
4836
4836
|
this.options = options;
|
|
4837
4837
|
this.set = [];
|
|
@@ -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 (path.sep !== "/") {
|
|
5212
|
+
f = f.split(path.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"(exports2, module2) {
|
|
5369
5369
|
"use strict";
|
|
5370
|
-
function posix(
|
|
5371
|
-
return
|
|
5370
|
+
function posix(path) {
|
|
5371
|
+
return path.charAt(0) === "/";
|
|
5372
5372
|
}
|
|
5373
|
-
function win32(
|
|
5373
|
+
function win32(path) {
|
|
5374
5374
|
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
|
5375
|
-
var result = splitDeviceRe.exec(
|
|
5375
|
+
var result = splitDeviceRe.exec(path);
|
|
5376
5376
|
var device = result[1] || "";
|
|
5377
5377
|
var isUnc = Boolean(device && device.charAt(1) !== ":");
|
|
5378
5378
|
return Boolean(result[2] || isUnc);
|
|
@@ -5397,7 +5397,7 @@ var require_common = __commonJS({
|
|
|
5397
5397
|
return Object.prototype.hasOwnProperty.call(obj, field);
|
|
5398
5398
|
}
|
|
5399
5399
|
var fs = require("fs");
|
|
5400
|
-
var
|
|
5400
|
+
var path = require("path");
|
|
5401
5401
|
var minimatch = require_minimatch();
|
|
5402
5402
|
var isAbsolute = require_path_is_absolute();
|
|
5403
5403
|
var Minimatch = minimatch.Minimatch;
|
|
@@ -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 = path.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 || path.resolve(self.cwd, "/");
|
|
5469
|
+
self.root = path.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 = path.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 = path.resolve(self.cwd, f);
|
|
5556
5556
|
} else {
|
|
5557
|
-
abs =
|
|
5557
|
+
abs = path.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, path2) {
|
|
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(path2) || !!(item.gmatcher && item.gmatcher.match(path2));
|
|
5568
5568
|
});
|
|
5569
5569
|
}
|
|
5570
|
-
function childrenIgnored(self,
|
|
5570
|
+
function childrenIgnored(self, path2) {
|
|
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(path2));
|
|
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 path = 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 = path.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 = path.join(this.root, prefix);
|
|
5868
5868
|
} else {
|
|
5869
|
-
prefix =
|
|
5869
|
+
prefix = path.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 path = 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 = path.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 = path.join(this.root, prefix);
|
|
6535
6535
|
} else {
|
|
6536
|
-
prefix =
|
|
6536
|
+
prefix = path.resolve(this.root, prefix);
|
|
6537
6537
|
if (trail)
|
|
6538
6538
|
prefix += "/";
|
|
6539
6539
|
}
|
|
@@ -6611,7 +6611,7 @@ var require_glob = __commonJS({
|
|
|
6611
6611
|
var require_rimraf = __commonJS({
|
|
6612
6612
|
"node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports2, module2) {
|
|
6613
6613
|
var assert = require("assert");
|
|
6614
|
-
var
|
|
6614
|
+
var path = require("path");
|
|
6615
6615
|
var fs = require("fs");
|
|
6616
6616
|
var glob = void 0;
|
|
6617
6617
|
try {
|
|
@@ -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(path.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(path.join(p, f), options));
|
|
6872
6872
|
const retries = isWindows ? 100 : 1;
|
|
6873
6873
|
let i = 0;
|
|
6874
6874
|
do {
|
|
@@ -6892,16 +6892,16 @@ var require_rimraf = __commonJS({
|
|
|
6892
6892
|
var require_tmp = __commonJS({
|
|
6893
6893
|
"node_modules/.pnpm/tmp@0.2.1/node_modules/tmp/lib/tmp.js"(exports2, module2) {
|
|
6894
6894
|
var fs = require("fs");
|
|
6895
|
-
var
|
|
6896
|
-
var
|
|
6895
|
+
var os = require("os");
|
|
6896
|
+
var path = require("path");
|
|
6897
6897
|
var crypto = require("crypto");
|
|
6898
|
-
var _c = { fs: fs.constants, os:
|
|
6898
|
+
var _c = { fs: fs.constants, os: os.constants };
|
|
6899
6899
|
var rimraf = require_rimraf();
|
|
6900
6900
|
var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
6901
6901
|
var TEMPLATE_PATTERN = /XXXXXX/;
|
|
6902
6902
|
var DEFAULT_TRIES = 3;
|
|
6903
6903
|
var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR);
|
|
6904
|
-
var IS_WIN32 =
|
|
6904
|
+
var IS_WIN32 = os.platform() === "win32";
|
|
6905
6905
|
var EBADF = _c.EBADF || _c.os.errno.EBADF;
|
|
6906
6906
|
var ENOENT = _c.ENOENT || _c.os.errno.ENOENT;
|
|
6907
6907
|
var DIR_MODE = 448;
|
|
@@ -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 path.join(tmpDir, opts.dir, opts.name);
|
|
7120
7120
|
if (!_isUndefined(opts.template))
|
|
7121
|
-
return
|
|
7121
|
+
return path.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 path.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) ? "" : path.relative(tmpDir, _resolvePath(options.dir, tmpDir));
|
|
7152
|
+
options.template = _isUndefined(options.template) ? void 0 : path.relative(tmpDir, _resolvePath(options.template, tmpDir));
|
|
7153
|
+
options.template = _isBlank(options.template) ? void 0 : path.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 path.resolve(sanitizedName);
|
|
7162
7162
|
} else {
|
|
7163
|
-
return
|
|
7163
|
+
return path.resolve(path.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 (path.isAbsolute(name))
|
|
7175
7175
|
throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
|
|
7176
|
-
let basename =
|
|
7176
|
+
let basename = path.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 (path.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 path.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 = (path, originalPath, doThrow) => {
|
|
7813
|
+
if (!isString(path)) {
|
|
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 (!path) {
|
|
7820
7820
|
return doThrow(`path must not be empty`, TypeError);
|
|
7821
7821
|
}
|
|
7822
|
-
if (checkPath.isNotRelative(
|
|
7822
|
+
if (checkPath.isNotRelative(path)) {
|
|
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 = (path) => REGEX_TEST_INVALID_PATH.test(path);
|
|
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(path, 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(path);
|
|
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 path = originalPath && checkPath.convert(originalPath);
|
|
7912
7912
|
checkPath(
|
|
7913
|
-
|
|
7913
|
+
path,
|
|
7914
7914
|
originalPath,
|
|
7915
7915
|
this._allowRelativePaths ? RETURN_FALSE : throwError
|
|
7916
7916
|
);
|
|
7917
|
-
return this._t(
|
|
7917
|
+
return this._t(path, cache, checkUnignored, slices);
|
|
7918
7918
|
}
|
|
7919
|
-
_t(
|
|
7920
|
-
if (
|
|
7921
|
-
return cache[
|
|
7919
|
+
_t(path, cache, checkUnignored, slices) {
|
|
7920
|
+
if (path in cache) {
|
|
7921
|
+
return cache[path];
|
|
7922
7922
|
}
|
|
7923
7923
|
if (!slices) {
|
|
7924
|
-
slices =
|
|
7924
|
+
slices = path.split(SLASH);
|
|
7925
7925
|
}
|
|
7926
7926
|
slices.pop();
|
|
7927
7927
|
if (!slices.length) {
|
|
7928
|
-
return cache[
|
|
7928
|
+
return cache[path] = this._testOne(path, 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[path] = parent.ignored ? parent : this._testOne(path, checkUnignored);
|
|
7937
7937
|
}
|
|
7938
|
-
ignores(
|
|
7939
|
-
return this._test(
|
|
7938
|
+
ignores(path) {
|
|
7939
|
+
return this._test(path, this._ignoreCache, false).ignored;
|
|
7940
7940
|
}
|
|
7941
7941
|
createFilter() {
|
|
7942
|
-
return (
|
|
7942
|
+
return (path) => !this.ignores(path);
|
|
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(path) {
|
|
7949
|
+
return this._test(path, this._testCache, true);
|
|
7950
7950
|
}
|
|
7951
7951
|
};
|
|
7952
7952
|
var factory = (options) => new Ignore(options);
|
|
7953
|
-
var isPathValid = (
|
|
7953
|
+
var isPathValid = (path) => checkPath(path && checkPath.convert(path), path, 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 = (path) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path) || isNotRelative(path);
|
|
7965
7965
|
}
|
|
7966
7966
|
}
|
|
7967
7967
|
});
|
|
@@ -8002,8 +8002,8 @@ var require_visit_not_ignored_files = __commonJS({
|
|
|
8002
8002
|
}
|
|
8003
8003
|
}
|
|
8004
8004
|
exports2.visitNotIgnoredFiles = visitNotIgnoredFiles;
|
|
8005
|
-
function normalizePathRelativeToRoot(
|
|
8006
|
-
return (0, path_1.relative)(root, (0, path_1.join)(root,
|
|
8005
|
+
function normalizePathRelativeToRoot(path, root) {
|
|
8006
|
+
return (0, path_1.relative)(root, (0, path_1.join)(root, path)).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(path) {
|
|
8388
|
+
return (0, path_1.relative)(this.root, (0, path_1.join)(this.root, path));
|
|
8389
8389
|
}
|
|
8390
8390
|
read(filePath, encoding) {
|
|
8391
8391
|
return encoding ? this.tree.read(filePath).toString(encoding) : this.tree.read(filePath);
|
|
@@ -8769,9 +8769,9 @@ var require_noop = __commonJS({
|
|
|
8769
8769
|
"use strict";
|
|
8770
8770
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8771
8771
|
exports2.noop = void 0;
|
|
8772
|
-
function
|
|
8772
|
+
function noop() {
|
|
8773
8773
|
}
|
|
8774
|
-
exports2.noop =
|
|
8774
|
+
exports2.noop = noop;
|
|
8775
8775
|
}
|
|
8776
8776
|
});
|
|
8777
8777
|
|
|
@@ -9061,10 +9061,10 @@ var require_identity = __commonJS({
|
|
|
9061
9061
|
"use strict";
|
|
9062
9062
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9063
9063
|
exports2.identity = void 0;
|
|
9064
|
-
function
|
|
9064
|
+
function identity(x) {
|
|
9065
9065
|
return x;
|
|
9066
9066
|
}
|
|
9067
|
-
exports2.identity =
|
|
9067
|
+
exports2.identity = identity;
|
|
9068
9068
|
}
|
|
9069
9069
|
});
|
|
9070
9070
|
|
|
@@ -11108,10 +11108,10 @@ var require_isAsyncIterable = __commonJS({
|
|
|
11108
11108
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11109
11109
|
exports2.isAsyncIterable = void 0;
|
|
11110
11110
|
var isFunction_1 = require_isFunction();
|
|
11111
|
-
function
|
|
11111
|
+
function isAsyncIterable(obj) {
|
|
11112
11112
|
return Symbol.asyncIterator && isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
|
|
11113
11113
|
}
|
|
11114
|
-
exports2.isAsyncIterable =
|
|
11114
|
+
exports2.isAsyncIterable = isAsyncIterable;
|
|
11115
11115
|
}
|
|
11116
11116
|
});
|
|
11117
11117
|
|
|
@@ -11571,7 +11571,7 @@ var require_innerFrom = __commonJS({
|
|
|
11571
11571
|
exports2.fromIterable = fromIterable;
|
|
11572
11572
|
function fromAsyncIterable(asyncIterable) {
|
|
11573
11573
|
return new Observable_1.Observable(function(subscriber) {
|
|
11574
|
-
|
|
11574
|
+
process2(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
|
exports2.fromReadableStreamLike = fromReadableStreamLike;
|
|
11584
|
-
function
|
|
11584
|
+
function process2(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() {
|
|
@@ -18236,7 +18236,7 @@ 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"(exports2, module2) {
|
|
18238
18238
|
"use strict";
|
|
18239
|
-
var
|
|
18239
|
+
var path = require("path");
|
|
18240
18240
|
var Module = require("module");
|
|
18241
18241
|
var fs = require("fs");
|
|
18242
18242
|
var resolveFrom = (fromDir, moduleId, silent) => {
|
|
@@ -18250,14 +18250,14 @@ var require_resolve_from = __commonJS({
|
|
|
18250
18250
|
fromDir = fs.realpathSync(fromDir);
|
|
18251
18251
|
} catch (err) {
|
|
18252
18252
|
if (err.code === "ENOENT") {
|
|
18253
|
-
fromDir =
|
|
18253
|
+
fromDir = path.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 = path.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"(exports2, module2) {
|
|
18331
18331
|
"use strict";
|
|
18332
|
-
var
|
|
18332
|
+
var path = 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 ? path.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 path = [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
|
+
path.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 = path;
|
|
19791
19791
|
return fn;
|
|
19792
19792
|
}
|
|
19793
19793
|
module2.exports = function(fromModel) {
|
|
@@ -20027,7 +20027,7 @@ var require_has_flag = __commonJS({
|
|
|
20027
20027
|
var require_supports_color = __commonJS({
|
|
20028
20028
|
"node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports2, module2) {
|
|
20029
20029
|
"use strict";
|
|
20030
|
-
var
|
|
20030
|
+
var os = require("os");
|
|
20031
20031
|
var hasFlag = require_has_flag();
|
|
20032
20032
|
var env = process.env;
|
|
20033
20033
|
var forceColor;
|
|
@@ -20065,7 +20065,7 @@ var require_supports_color = __commonJS({
|
|
|
20065
20065
|
}
|
|
20066
20066
|
const min = forceColor ? 1 : 0;
|
|
20067
20067
|
if (process.platform === "win32") {
|
|
20068
|
-
const osRelease =
|
|
20068
|
+
const osRelease = os.release().split(".");
|
|
20069
20069
|
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
20070
20070
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
20071
20071
|
}
|
|
@@ -22929,7 +22929,7 @@ var require_loader = __commonJS({
|
|
|
22929
22929
|
iterator(documents[index]);
|
|
22930
22930
|
}
|
|
22931
22931
|
}
|
|
22932
|
-
function
|
|
22932
|
+
function load(input, options) {
|
|
22933
22933
|
var documents = loadDocuments(input, options);
|
|
22934
22934
|
if (documents.length === 0) {
|
|
22935
22935
|
return void 0;
|
|
@@ -22939,7 +22939,7 @@ var require_loader = __commonJS({
|
|
|
22939
22939
|
throw new YAMLException("expected a single document in the stream, but found more");
|
|
22940
22940
|
}
|
|
22941
22941
|
module2.exports.loadAll = loadAll;
|
|
22942
|
-
module2.exports.load =
|
|
22942
|
+
module2.exports.load = load;
|
|
22943
22943
|
}
|
|
22944
22944
|
});
|
|
22945
22945
|
|
|
@@ -23755,7 +23755,7 @@ ${error.message}`;
|
|
|
23755
23755
|
return typescript.sys.fileExists(fileName);
|
|
23756
23756
|
});
|
|
23757
23757
|
if (filePath !== void 0) {
|
|
23758
|
-
const { config, error } = typescript.readConfigFile(filePath, (
|
|
23758
|
+
const { config, error } = typescript.readConfigFile(filePath, (path) => typescript.sys.readFile(path));
|
|
23759
23759
|
if (error) {
|
|
23760
23760
|
throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
|
|
23761
23761
|
}
|
|
@@ -23878,42 +23878,42 @@ var require_defaults = __commonJS({
|
|
|
23878
23878
|
var require_env_paths = __commonJS({
|
|
23879
23879
|
"node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports2, module2) {
|
|
23880
23880
|
"use strict";
|
|
23881
|
-
var
|
|
23882
|
-
var
|
|
23883
|
-
var homedir =
|
|
23884
|
-
var tmpdir =
|
|
23881
|
+
var path = require("path");
|
|
23882
|
+
var os = require("os");
|
|
23883
|
+
var homedir = os.homedir();
|
|
23884
|
+
var tmpdir = os.tmpdir();
|
|
23885
23885
|
var { env } = process;
|
|
23886
23886
|
var macos = (name) => {
|
|
23887
|
-
const library =
|
|
23887
|
+
const library = path.join(homedir, "Library");
|
|
23888
23888
|
return {
|
|
23889
|
-
data:
|
|
23890
|
-
config:
|
|
23891
|
-
cache:
|
|
23892
|
-
log:
|
|
23893
|
-
temp:
|
|
23889
|
+
data: path.join(library, "Application Support", name),
|
|
23890
|
+
config: path.join(library, "Preferences", name),
|
|
23891
|
+
cache: path.join(library, "Caches", name),
|
|
23892
|
+
log: path.join(library, "Logs", name),
|
|
23893
|
+
temp: path.join(tmpdir, name)
|
|
23894
23894
|
};
|
|
23895
23895
|
};
|
|
23896
23896
|
var windows = (name) => {
|
|
23897
|
-
const appData = env.APPDATA ||
|
|
23898
|
-
const localAppData = env.LOCALAPPDATA ||
|
|
23897
|
+
const appData = env.APPDATA || path.join(homedir, "AppData", "Roaming");
|
|
23898
|
+
const localAppData = env.LOCALAPPDATA || path.join(homedir, "AppData", "Local");
|
|
23899
23899
|
return {
|
|
23900
23900
|
// Data/config/cache/log are invented by me as Windows isn't opinionated about this
|
|
23901
|
-
data:
|
|
23902
|
-
config:
|
|
23903
|
-
cache:
|
|
23904
|
-
log:
|
|
23905
|
-
temp:
|
|
23901
|
+
data: path.join(localAppData, name, "Data"),
|
|
23902
|
+
config: path.join(appData, name, "Config"),
|
|
23903
|
+
cache: path.join(localAppData, name, "Cache"),
|
|
23904
|
+
log: path.join(localAppData, name, "Log"),
|
|
23905
|
+
temp: path.join(tmpdir, name)
|
|
23906
23906
|
};
|
|
23907
23907
|
};
|
|
23908
23908
|
var linux = (name) => {
|
|
23909
|
-
const username =
|
|
23909
|
+
const username = path.basename(homedir);
|
|
23910
23910
|
return {
|
|
23911
|
-
data:
|
|
23912
|
-
config:
|
|
23913
|
-
cache:
|
|
23911
|
+
data: path.join(env.XDG_DATA_HOME || path.join(homedir, ".local", "share"), name),
|
|
23912
|
+
config: path.join(env.XDG_CONFIG_HOME || path.join(homedir, ".config"), name),
|
|
23913
|
+
cache: path.join(env.XDG_CACHE_HOME || path.join(homedir, ".cache"), name),
|
|
23914
23914
|
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
23915
|
-
log:
|
|
23916
|
-
temp:
|
|
23915
|
+
log: path.join(env.XDG_STATE_HOME || path.join(homedir, ".local", "state"), name),
|
|
23916
|
+
temp: path.join(tmpdir, username, name)
|
|
23917
23917
|
};
|
|
23918
23918
|
};
|
|
23919
23919
|
var envPaths = (name, options) => {
|
|
@@ -23986,11 +23986,11 @@ var require_util = __commonJS({
|
|
|
23986
23986
|
return result;
|
|
23987
23987
|
}
|
|
23988
23988
|
exports2.emplace = emplace;
|
|
23989
|
-
function getPropertyByPath(source,
|
|
23990
|
-
if (typeof
|
|
23991
|
-
return source[
|
|
23989
|
+
function getPropertyByPath(source, path) {
|
|
23990
|
+
if (typeof path === "string" && Object.prototype.hasOwnProperty.call(source, path)) {
|
|
23991
|
+
return source[path];
|
|
23992
23992
|
}
|
|
23993
|
-
const parsedPath = typeof
|
|
23993
|
+
const parsedPath = typeof path === "string" ? path.split(".") : path;
|
|
23994
23994
|
return parsedPath.reduce((previous, key) => {
|
|
23995
23995
|
if (previous === void 0) {
|
|
23996
23996
|
return previous;
|
|
@@ -24003,9 +24003,9 @@ var require_util = __commonJS({
|
|
|
24003
24003
|
return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
|
|
24004
24004
|
}
|
|
24005
24005
|
exports2.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
24006
|
-
async function isDirectory(
|
|
24006
|
+
async function isDirectory(path) {
|
|
24007
24007
|
try {
|
|
24008
|
-
const stat = await fs_1.promises.stat(
|
|
24008
|
+
const stat = await fs_1.promises.stat(path);
|
|
24009
24009
|
return stat.isDirectory();
|
|
24010
24010
|
} catch (e) {
|
|
24011
24011
|
if (e.code === "ENOENT") {
|
|
@@ -24015,9 +24015,9 @@ var require_util = __commonJS({
|
|
|
24015
24015
|
}
|
|
24016
24016
|
}
|
|
24017
24017
|
exports2.isDirectory = isDirectory;
|
|
24018
|
-
function isDirectorySync(
|
|
24018
|
+
function isDirectorySync(path) {
|
|
24019
24019
|
try {
|
|
24020
|
-
const stat = fs_1.default.statSync(
|
|
24020
|
+
const stat = fs_1.default.statSync(path);
|
|
24021
24021
|
return stat.isDirectory();
|
|
24022
24022
|
} catch (e) {
|
|
24023
24023
|
if (e.code === "ENOENT") {
|
|
@@ -24115,7 +24115,7 @@ var require_ExplorerBase = __commonJS({
|
|
|
24115
24115
|
const idx = importStack.indexOf(fullPath);
|
|
24116
24116
|
if (idx !== -1) {
|
|
24117
24117
|
throw new Error(`Circular import detected:
|
|
24118
|
-
${[...importStack, fullPath].map((
|
|
24118
|
+
${[...importStack, fullPath].map((path, i) => `${i + 1}. ${path}`).join("\n")} (same as ${idx + 1}.)`);
|
|
24119
24119
|
}
|
|
24120
24120
|
}
|
|
24121
24121
|
}
|
|
@@ -24202,13 +24202,13 @@ var require_Explorer = __commonJS({
|
|
|
24202
24202
|
var Explorer = class extends ExplorerBase_js_1.ExplorerBase {
|
|
24203
24203
|
async load(filepath) {
|
|
24204
24204
|
filepath = path_1.default.resolve(filepath);
|
|
24205
|
-
const
|
|
24205
|
+
const load = async () => {
|
|
24206
24206
|
return await this.config.transform(await this.#readConfiguration(filepath));
|
|
24207
24207
|
};
|
|
24208
24208
|
if (this.loadCache) {
|
|
24209
|
-
return await (0, util_js_1.emplace)(this.loadCache, filepath,
|
|
24209
|
+
return await (0, util_js_1.emplace)(this.loadCache, filepath, load);
|
|
24210
24210
|
}
|
|
24211
|
-
return await
|
|
24211
|
+
return await load();
|
|
24212
24212
|
}
|
|
24213
24213
|
async search(from = "") {
|
|
24214
24214
|
if (this.config.metaConfigFilePath) {
|
|
@@ -24300,9 +24300,9 @@ var require_Explorer = __commonJS({
|
|
|
24300
24300
|
throw error;
|
|
24301
24301
|
}
|
|
24302
24302
|
}
|
|
24303
|
-
async #fileExists(
|
|
24303
|
+
async #fileExists(path) {
|
|
24304
24304
|
try {
|
|
24305
|
-
await promises_1.default.stat(
|
|
24305
|
+
await promises_1.default.stat(path);
|
|
24306
24306
|
return true;
|
|
24307
24307
|
} catch (e) {
|
|
24308
24308
|
return false;
|
|
@@ -24360,13 +24360,13 @@ var require_ExplorerSync = __commonJS({
|
|
|
24360
24360
|
var ExplorerSync = class extends ExplorerBase_js_1.ExplorerBase {
|
|
24361
24361
|
load(filepath) {
|
|
24362
24362
|
filepath = path_1.default.resolve(filepath);
|
|
24363
|
-
const
|
|
24363
|
+
const load = () => {
|
|
24364
24364
|
return this.config.transform(this.#readConfiguration(filepath));
|
|
24365
24365
|
};
|
|
24366
24366
|
if (this.loadCache) {
|
|
24367
|
-
return (0, util_js_1.emplace)(this.loadCache, filepath,
|
|
24367
|
+
return (0, util_js_1.emplace)(this.loadCache, filepath, load);
|
|
24368
24368
|
}
|
|
24369
|
-
return
|
|
24369
|
+
return load();
|
|
24370
24370
|
}
|
|
24371
24371
|
search(from = "") {
|
|
24372
24372
|
if (this.config.metaConfigFilePath) {
|
|
@@ -24458,9 +24458,9 @@ var require_ExplorerSync = __commonJS({
|
|
|
24458
24458
|
throw error;
|
|
24459
24459
|
}
|
|
24460
24460
|
}
|
|
24461
|
-
#fileExists(
|
|
24461
|
+
#fileExists(path) {
|
|
24462
24462
|
try {
|
|
24463
|
-
fs_1.default.statSync(
|
|
24463
|
+
fs_1.default.statSync(path);
|
|
24464
24464
|
return true;
|
|
24465
24465
|
} catch (e) {
|
|
24466
24466
|
return false;
|
|
@@ -24542,7 +24542,7 @@ var require_dist = __commonJS({
|
|
|
24542
24542
|
var Explorer_js_1 = require_Explorer();
|
|
24543
24543
|
var ExplorerSync_js_1 = require_ExplorerSync();
|
|
24544
24544
|
var util_1 = require_util();
|
|
24545
|
-
var
|
|
24545
|
+
var identity = function identity2(x) {
|
|
24546
24546
|
return x;
|
|
24547
24547
|
};
|
|
24548
24548
|
function getUserDefinedOptionsFromMetaConfig() {
|
|
@@ -24553,7 +24553,7 @@ var require_dist = __commonJS({
|
|
|
24553
24553
|
ignoreEmptySearchPlaces: false,
|
|
24554
24554
|
applyPackagePropertyPathToConfiguration: true,
|
|
24555
24555
|
loaders: defaults_1.defaultLoaders,
|
|
24556
|
-
transform:
|
|
24556
|
+
transform: identity,
|
|
24557
24557
|
cache: true,
|
|
24558
24558
|
metaConfigFilePath: null,
|
|
24559
24559
|
mergeImportArrays: true,
|
|
@@ -24580,7 +24580,7 @@ var require_dist = __commonJS({
|
|
|
24580
24580
|
};
|
|
24581
24581
|
}
|
|
24582
24582
|
function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
|
|
24583
|
-
const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((
|
|
24583
|
+
const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path) => path.replace("{name}", moduleName));
|
|
24584
24584
|
if (userConfiguredOptions.mergeSearchPlaces) {
|
|
24585
24585
|
return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
|
|
24586
24586
|
}
|
|
@@ -24625,7 +24625,7 @@ var require_dist = __commonJS({
|
|
|
24625
24625
|
searchPlaces: (0, defaults_1.getDefaultSearchPlaces)(moduleName),
|
|
24626
24626
|
ignoreEmptySearchPlaces: true,
|
|
24627
24627
|
cache: true,
|
|
24628
|
-
transform:
|
|
24628
|
+
transform: identity,
|
|
24629
24629
|
loaders: defaults_1.defaultLoaders,
|
|
24630
24630
|
metaConfigFilePath: null,
|
|
24631
24631
|
mergeImportArrays: true,
|
|
@@ -24641,7 +24641,7 @@ var require_dist = __commonJS({
|
|
|
24641
24641
|
searchPlaces: (0, defaults_1.getDefaultSearchPlacesSync)(moduleName),
|
|
24642
24642
|
ignoreEmptySearchPlaces: true,
|
|
24643
24643
|
cache: true,
|
|
24644
|
-
transform:
|
|
24644
|
+
transform: identity,
|
|
24645
24645
|
loaders: defaults_1.defaultLoadersSync,
|
|
24646
24646
|
metaConfigFilePath: null,
|
|
24647
24647
|
mergeImportArrays: true,
|
|
@@ -25547,15 +25547,15 @@ var require_route2 = __commonJS({
|
|
|
25547
25547
|
};
|
|
25548
25548
|
}
|
|
25549
25549
|
function wrapConversion(toModel, graph) {
|
|
25550
|
-
const
|
|
25550
|
+
const path = [graph[toModel].parent, toModel];
|
|
25551
25551
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
25552
25552
|
let cur = graph[toModel].parent;
|
|
25553
25553
|
while (graph[cur].parent) {
|
|
25554
|
-
|
|
25554
|
+
path.unshift(graph[cur].parent);
|
|
25555
25555
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
25556
25556
|
cur = graph[cur].parent;
|
|
25557
25557
|
}
|
|
25558
|
-
fn.conversion =
|
|
25558
|
+
fn.conversion = path;
|
|
25559
25559
|
return fn;
|
|
25560
25560
|
}
|
|
25561
25561
|
module2.exports = function(fromModel) {
|
|
@@ -25670,7 +25670,7 @@ var require_ansi_styles2 = __commonJS({
|
|
|
25670
25670
|
});
|
|
25671
25671
|
};
|
|
25672
25672
|
var colorConvert;
|
|
25673
|
-
var makeDynamicStyles = (wrap, targetSpace,
|
|
25673
|
+
var makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
|
25674
25674
|
if (colorConvert === void 0) {
|
|
25675
25675
|
colorConvert = require_color_convert2();
|
|
25676
25676
|
}
|
|
@@ -25679,7 +25679,7 @@ var require_ansi_styles2 = __commonJS({
|
|
|
25679
25679
|
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
25680
25680
|
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
25681
25681
|
if (sourceSpace === targetSpace) {
|
|
25682
|
-
styles[name] = wrap(
|
|
25682
|
+
styles[name] = wrap(identity, offset);
|
|
25683
25683
|
} else if (typeof suite === "object") {
|
|
25684
25684
|
styles[name] = wrap(suite[targetSpace], offset);
|
|
25685
25685
|
}
|
|
@@ -25795,7 +25795,7 @@ var require_has_flag2 = __commonJS({
|
|
|
25795
25795
|
var require_supports_color2 = __commonJS({
|
|
25796
25796
|
"node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports2, module2) {
|
|
25797
25797
|
"use strict";
|
|
25798
|
-
var
|
|
25798
|
+
var os = require("os");
|
|
25799
25799
|
var tty = require("tty");
|
|
25800
25800
|
var hasFlag = require_has_flag2();
|
|
25801
25801
|
var { env } = process;
|
|
@@ -25843,7 +25843,7 @@ var require_supports_color2 = __commonJS({
|
|
|
25843
25843
|
return min;
|
|
25844
25844
|
}
|
|
25845
25845
|
if (process.platform === "win32") {
|
|
25846
|
-
const osRelease =
|
|
25846
|
+
const osRelease = os.release().split(".");
|
|
25847
25847
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
25848
25848
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
25849
25849
|
}
|
|
@@ -26224,543 +26224,6 @@ var require_source = __commonJS({
|
|
|
26224
26224
|
}
|
|
26225
26225
|
});
|
|
26226
26226
|
|
|
26227
|
-
// node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
|
26228
|
-
var require_windows = __commonJS({
|
|
26229
|
-
"node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports2, module2) {
|
|
26230
|
-
module2.exports = isexe;
|
|
26231
|
-
isexe.sync = sync;
|
|
26232
|
-
var fs = require("fs");
|
|
26233
|
-
function checkPathExt(path3, options) {
|
|
26234
|
-
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
26235
|
-
if (!pathext) {
|
|
26236
|
-
return true;
|
|
26237
|
-
}
|
|
26238
|
-
pathext = pathext.split(";");
|
|
26239
|
-
if (pathext.indexOf("") !== -1) {
|
|
26240
|
-
return true;
|
|
26241
|
-
}
|
|
26242
|
-
for (var i = 0; i < pathext.length; i++) {
|
|
26243
|
-
var p = pathext[i].toLowerCase();
|
|
26244
|
-
if (p && path3.substr(-p.length).toLowerCase() === p) {
|
|
26245
|
-
return true;
|
|
26246
|
-
}
|
|
26247
|
-
}
|
|
26248
|
-
return false;
|
|
26249
|
-
}
|
|
26250
|
-
function checkStat(stat, path3, options) {
|
|
26251
|
-
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
|
26252
|
-
return false;
|
|
26253
|
-
}
|
|
26254
|
-
return checkPathExt(path3, options);
|
|
26255
|
-
}
|
|
26256
|
-
function isexe(path3, options, cb) {
|
|
26257
|
-
fs.stat(path3, function(er, stat) {
|
|
26258
|
-
cb(er, er ? false : checkStat(stat, path3, options));
|
|
26259
|
-
});
|
|
26260
|
-
}
|
|
26261
|
-
function sync(path3, options) {
|
|
26262
|
-
return checkStat(fs.statSync(path3), path3, options);
|
|
26263
|
-
}
|
|
26264
|
-
}
|
|
26265
|
-
});
|
|
26266
|
-
|
|
26267
|
-
// node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
|
|
26268
|
-
var require_mode = __commonJS({
|
|
26269
|
-
"node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports2, module2) {
|
|
26270
|
-
module2.exports = isexe;
|
|
26271
|
-
isexe.sync = sync;
|
|
26272
|
-
var fs = require("fs");
|
|
26273
|
-
function isexe(path3, options, cb) {
|
|
26274
|
-
fs.stat(path3, function(er, stat) {
|
|
26275
|
-
cb(er, er ? false : checkStat(stat, options));
|
|
26276
|
-
});
|
|
26277
|
-
}
|
|
26278
|
-
function sync(path3, options) {
|
|
26279
|
-
return checkStat(fs.statSync(path3), options);
|
|
26280
|
-
}
|
|
26281
|
-
function checkStat(stat, options) {
|
|
26282
|
-
return stat.isFile() && checkMode(stat, options);
|
|
26283
|
-
}
|
|
26284
|
-
function checkMode(stat, options) {
|
|
26285
|
-
var mod = stat.mode;
|
|
26286
|
-
var uid = stat.uid;
|
|
26287
|
-
var gid = stat.gid;
|
|
26288
|
-
var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
|
|
26289
|
-
var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
|
|
26290
|
-
var u = parseInt("100", 8);
|
|
26291
|
-
var g = parseInt("010", 8);
|
|
26292
|
-
var o = parseInt("001", 8);
|
|
26293
|
-
var ug = u | g;
|
|
26294
|
-
var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
|
|
26295
|
-
return ret;
|
|
26296
|
-
}
|
|
26297
|
-
}
|
|
26298
|
-
});
|
|
26299
|
-
|
|
26300
|
-
// node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
|
26301
|
-
var require_isexe = __commonJS({
|
|
26302
|
-
"node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports2, module2) {
|
|
26303
|
-
var fs = require("fs");
|
|
26304
|
-
var core;
|
|
26305
|
-
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
26306
|
-
core = require_windows();
|
|
26307
|
-
} else {
|
|
26308
|
-
core = require_mode();
|
|
26309
|
-
}
|
|
26310
|
-
module2.exports = isexe;
|
|
26311
|
-
isexe.sync = sync;
|
|
26312
|
-
function isexe(path3, options, cb) {
|
|
26313
|
-
if (typeof options === "function") {
|
|
26314
|
-
cb = options;
|
|
26315
|
-
options = {};
|
|
26316
|
-
}
|
|
26317
|
-
if (!cb) {
|
|
26318
|
-
if (typeof Promise !== "function") {
|
|
26319
|
-
throw new TypeError("callback not provided");
|
|
26320
|
-
}
|
|
26321
|
-
return new Promise(function(resolve, reject) {
|
|
26322
|
-
isexe(path3, options || {}, function(er, is) {
|
|
26323
|
-
if (er) {
|
|
26324
|
-
reject(er);
|
|
26325
|
-
} else {
|
|
26326
|
-
resolve(is);
|
|
26327
|
-
}
|
|
26328
|
-
});
|
|
26329
|
-
});
|
|
26330
|
-
}
|
|
26331
|
-
core(path3, options || {}, function(er, is) {
|
|
26332
|
-
if (er) {
|
|
26333
|
-
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
26334
|
-
er = null;
|
|
26335
|
-
is = false;
|
|
26336
|
-
}
|
|
26337
|
-
}
|
|
26338
|
-
cb(er, is);
|
|
26339
|
-
});
|
|
26340
|
-
}
|
|
26341
|
-
function sync(path3, options) {
|
|
26342
|
-
try {
|
|
26343
|
-
return core.sync(path3, options || {});
|
|
26344
|
-
} catch (er) {
|
|
26345
|
-
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
26346
|
-
return false;
|
|
26347
|
-
} else {
|
|
26348
|
-
throw er;
|
|
26349
|
-
}
|
|
26350
|
-
}
|
|
26351
|
-
}
|
|
26352
|
-
}
|
|
26353
|
-
});
|
|
26354
|
-
|
|
26355
|
-
// node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
26356
|
-
var require_which = __commonJS({
|
|
26357
|
-
"node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module2) {
|
|
26358
|
-
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
26359
|
-
var path3 = require("path");
|
|
26360
|
-
var COLON = isWindows ? ";" : ":";
|
|
26361
|
-
var isexe = require_isexe();
|
|
26362
|
-
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
26363
|
-
var getPathInfo = (cmd, opt) => {
|
|
26364
|
-
const colon = opt.colon || COLON;
|
|
26365
|
-
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
|
|
26366
|
-
// windows always checks the cwd first
|
|
26367
|
-
...isWindows ? [process.cwd()] : [],
|
|
26368
|
-
...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
|
|
26369
|
-
"").split(colon)
|
|
26370
|
-
];
|
|
26371
|
-
const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
26372
|
-
const pathExt = isWindows ? pathExtExe.split(colon) : [""];
|
|
26373
|
-
if (isWindows) {
|
|
26374
|
-
if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
|
|
26375
|
-
pathExt.unshift("");
|
|
26376
|
-
}
|
|
26377
|
-
return {
|
|
26378
|
-
pathEnv,
|
|
26379
|
-
pathExt,
|
|
26380
|
-
pathExtExe
|
|
26381
|
-
};
|
|
26382
|
-
};
|
|
26383
|
-
var which = (cmd, opt, cb) => {
|
|
26384
|
-
if (typeof opt === "function") {
|
|
26385
|
-
cb = opt;
|
|
26386
|
-
opt = {};
|
|
26387
|
-
}
|
|
26388
|
-
if (!opt)
|
|
26389
|
-
opt = {};
|
|
26390
|
-
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
26391
|
-
const found = [];
|
|
26392
|
-
const step = (i) => new Promise((resolve, reject) => {
|
|
26393
|
-
if (i === pathEnv.length)
|
|
26394
|
-
return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
26395
|
-
const ppRaw = pathEnv[i];
|
|
26396
|
-
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
26397
|
-
const pCmd = path3.join(pathPart, cmd);
|
|
26398
|
-
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
26399
|
-
resolve(subStep(p, i, 0));
|
|
26400
|
-
});
|
|
26401
|
-
const subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
26402
|
-
if (ii === pathExt.length)
|
|
26403
|
-
return resolve(step(i + 1));
|
|
26404
|
-
const ext = pathExt[ii];
|
|
26405
|
-
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
26406
|
-
if (!er && is) {
|
|
26407
|
-
if (opt.all)
|
|
26408
|
-
found.push(p + ext);
|
|
26409
|
-
else
|
|
26410
|
-
return resolve(p + ext);
|
|
26411
|
-
}
|
|
26412
|
-
return resolve(subStep(p, i, ii + 1));
|
|
26413
|
-
});
|
|
26414
|
-
});
|
|
26415
|
-
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
26416
|
-
};
|
|
26417
|
-
var whichSync = (cmd, opt) => {
|
|
26418
|
-
opt = opt || {};
|
|
26419
|
-
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
26420
|
-
const found = [];
|
|
26421
|
-
for (let i = 0; i < pathEnv.length; i++) {
|
|
26422
|
-
const ppRaw = pathEnv[i];
|
|
26423
|
-
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
26424
|
-
const pCmd = path3.join(pathPart, cmd);
|
|
26425
|
-
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
26426
|
-
for (let j = 0; j < pathExt.length; j++) {
|
|
26427
|
-
const cur = p + pathExt[j];
|
|
26428
|
-
try {
|
|
26429
|
-
const is = isexe.sync(cur, { pathExt: pathExtExe });
|
|
26430
|
-
if (is) {
|
|
26431
|
-
if (opt.all)
|
|
26432
|
-
found.push(cur);
|
|
26433
|
-
else
|
|
26434
|
-
return cur;
|
|
26435
|
-
}
|
|
26436
|
-
} catch (ex) {
|
|
26437
|
-
}
|
|
26438
|
-
}
|
|
26439
|
-
}
|
|
26440
|
-
if (opt.all && found.length)
|
|
26441
|
-
return found;
|
|
26442
|
-
if (opt.nothrow)
|
|
26443
|
-
return null;
|
|
26444
|
-
throw getNotFoundError(cmd);
|
|
26445
|
-
};
|
|
26446
|
-
module2.exports = which;
|
|
26447
|
-
which.sync = whichSync;
|
|
26448
|
-
}
|
|
26449
|
-
});
|
|
26450
|
-
|
|
26451
|
-
// node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
|
|
26452
|
-
var require_path_key = __commonJS({
|
|
26453
|
-
"node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports2, module2) {
|
|
26454
|
-
"use strict";
|
|
26455
|
-
var pathKey2 = (options = {}) => {
|
|
26456
|
-
const environment = options.env || process.env;
|
|
26457
|
-
const platform = options.platform || process.platform;
|
|
26458
|
-
if (platform !== "win32") {
|
|
26459
|
-
return "PATH";
|
|
26460
|
-
}
|
|
26461
|
-
return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
26462
|
-
};
|
|
26463
|
-
module2.exports = pathKey2;
|
|
26464
|
-
module2.exports.default = pathKey2;
|
|
26465
|
-
}
|
|
26466
|
-
});
|
|
26467
|
-
|
|
26468
|
-
// node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
26469
|
-
var require_resolveCommand = __commonJS({
|
|
26470
|
-
"node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
|
|
26471
|
-
"use strict";
|
|
26472
|
-
var path3 = require("path");
|
|
26473
|
-
var which = require_which();
|
|
26474
|
-
var getPathKey = require_path_key();
|
|
26475
|
-
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
26476
|
-
const env = parsed.options.env || process.env;
|
|
26477
|
-
const cwd = process.cwd();
|
|
26478
|
-
const hasCustomCwd = parsed.options.cwd != null;
|
|
26479
|
-
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
26480
|
-
if (shouldSwitchCwd) {
|
|
26481
|
-
try {
|
|
26482
|
-
process.chdir(parsed.options.cwd);
|
|
26483
|
-
} catch (err) {
|
|
26484
|
-
}
|
|
26485
|
-
}
|
|
26486
|
-
let resolved;
|
|
26487
|
-
try {
|
|
26488
|
-
resolved = which.sync(parsed.command, {
|
|
26489
|
-
path: env[getPathKey({ env })],
|
|
26490
|
-
pathExt: withoutPathExt ? path3.delimiter : void 0
|
|
26491
|
-
});
|
|
26492
|
-
} catch (e) {
|
|
26493
|
-
} finally {
|
|
26494
|
-
if (shouldSwitchCwd) {
|
|
26495
|
-
process.chdir(cwd);
|
|
26496
|
-
}
|
|
26497
|
-
}
|
|
26498
|
-
if (resolved) {
|
|
26499
|
-
resolved = path3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
26500
|
-
}
|
|
26501
|
-
return resolved;
|
|
26502
|
-
}
|
|
26503
|
-
function resolveCommand(parsed) {
|
|
26504
|
-
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
|
26505
|
-
}
|
|
26506
|
-
module2.exports = resolveCommand;
|
|
26507
|
-
}
|
|
26508
|
-
});
|
|
26509
|
-
|
|
26510
|
-
// node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
|
|
26511
|
-
var require_escape = __commonJS({
|
|
26512
|
-
"node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
|
|
26513
|
-
"use strict";
|
|
26514
|
-
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
26515
|
-
function escapeCommand(arg) {
|
|
26516
|
-
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
26517
|
-
return arg;
|
|
26518
|
-
}
|
|
26519
|
-
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
26520
|
-
arg = `${arg}`;
|
|
26521
|
-
arg = arg.replace(/(\\*)"/g, '$1$1\\"');
|
|
26522
|
-
arg = arg.replace(/(\\*)$/, "$1$1");
|
|
26523
|
-
arg = `"${arg}"`;
|
|
26524
|
-
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
26525
|
-
if (doubleEscapeMetaChars) {
|
|
26526
|
-
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
26527
|
-
}
|
|
26528
|
-
return arg;
|
|
26529
|
-
}
|
|
26530
|
-
module2.exports.command = escapeCommand;
|
|
26531
|
-
module2.exports.argument = escapeArgument;
|
|
26532
|
-
}
|
|
26533
|
-
});
|
|
26534
|
-
|
|
26535
|
-
// node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
|
26536
|
-
var require_shebang_regex = __commonJS({
|
|
26537
|
-
"node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports2, module2) {
|
|
26538
|
-
"use strict";
|
|
26539
|
-
module2.exports = /^#!(.*)/;
|
|
26540
|
-
}
|
|
26541
|
-
});
|
|
26542
|
-
|
|
26543
|
-
// node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
|
26544
|
-
var require_shebang_command = __commonJS({
|
|
26545
|
-
"node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports2, module2) {
|
|
26546
|
-
"use strict";
|
|
26547
|
-
var shebangRegex = require_shebang_regex();
|
|
26548
|
-
module2.exports = (string = "") => {
|
|
26549
|
-
const match = string.match(shebangRegex);
|
|
26550
|
-
if (!match) {
|
|
26551
|
-
return null;
|
|
26552
|
-
}
|
|
26553
|
-
const [path3, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
26554
|
-
const binary = path3.split("/").pop();
|
|
26555
|
-
if (binary === "env") {
|
|
26556
|
-
return argument;
|
|
26557
|
-
}
|
|
26558
|
-
return argument ? `${binary} ${argument}` : binary;
|
|
26559
|
-
};
|
|
26560
|
-
}
|
|
26561
|
-
});
|
|
26562
|
-
|
|
26563
|
-
// node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
|
|
26564
|
-
var require_readShebang = __commonJS({
|
|
26565
|
-
"node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
|
|
26566
|
-
"use strict";
|
|
26567
|
-
var fs = require("fs");
|
|
26568
|
-
var shebangCommand = require_shebang_command();
|
|
26569
|
-
function readShebang(command) {
|
|
26570
|
-
const size = 150;
|
|
26571
|
-
const buffer = Buffer.alloc(size);
|
|
26572
|
-
let fd;
|
|
26573
|
-
try {
|
|
26574
|
-
fd = fs.openSync(command, "r");
|
|
26575
|
-
fs.readSync(fd, buffer, 0, size, 0);
|
|
26576
|
-
fs.closeSync(fd);
|
|
26577
|
-
} catch (e) {
|
|
26578
|
-
}
|
|
26579
|
-
return shebangCommand(buffer.toString());
|
|
26580
|
-
}
|
|
26581
|
-
module2.exports = readShebang;
|
|
26582
|
-
}
|
|
26583
|
-
});
|
|
26584
|
-
|
|
26585
|
-
// node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
|
|
26586
|
-
var require_parse2 = __commonJS({
|
|
26587
|
-
"node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
|
|
26588
|
-
"use strict";
|
|
26589
|
-
var path3 = require("path");
|
|
26590
|
-
var resolveCommand = require_resolveCommand();
|
|
26591
|
-
var escape = require_escape();
|
|
26592
|
-
var readShebang = require_readShebang();
|
|
26593
|
-
var isWin = process.platform === "win32";
|
|
26594
|
-
var isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
26595
|
-
var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
26596
|
-
function detectShebang(parsed) {
|
|
26597
|
-
parsed.file = resolveCommand(parsed);
|
|
26598
|
-
const shebang = parsed.file && readShebang(parsed.file);
|
|
26599
|
-
if (shebang) {
|
|
26600
|
-
parsed.args.unshift(parsed.file);
|
|
26601
|
-
parsed.command = shebang;
|
|
26602
|
-
return resolveCommand(parsed);
|
|
26603
|
-
}
|
|
26604
|
-
return parsed.file;
|
|
26605
|
-
}
|
|
26606
|
-
function parseNonShell(parsed) {
|
|
26607
|
-
if (!isWin) {
|
|
26608
|
-
return parsed;
|
|
26609
|
-
}
|
|
26610
|
-
const commandFile = detectShebang(parsed);
|
|
26611
|
-
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
26612
|
-
if (parsed.options.forceShell || needsShell) {
|
|
26613
|
-
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
26614
|
-
parsed.command = path3.normalize(parsed.command);
|
|
26615
|
-
parsed.command = escape.command(parsed.command);
|
|
26616
|
-
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
26617
|
-
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
26618
|
-
parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
|
|
26619
|
-
parsed.command = process.env.comspec || "cmd.exe";
|
|
26620
|
-
parsed.options.windowsVerbatimArguments = true;
|
|
26621
|
-
}
|
|
26622
|
-
return parsed;
|
|
26623
|
-
}
|
|
26624
|
-
function parse(command, args, options) {
|
|
26625
|
-
if (args && !Array.isArray(args)) {
|
|
26626
|
-
options = args;
|
|
26627
|
-
args = null;
|
|
26628
|
-
}
|
|
26629
|
-
args = args ? args.slice(0) : [];
|
|
26630
|
-
options = Object.assign({}, options);
|
|
26631
|
-
const parsed = {
|
|
26632
|
-
command,
|
|
26633
|
-
args,
|
|
26634
|
-
options,
|
|
26635
|
-
file: void 0,
|
|
26636
|
-
original: {
|
|
26637
|
-
command,
|
|
26638
|
-
args
|
|
26639
|
-
}
|
|
26640
|
-
};
|
|
26641
|
-
return options.shell ? parsed : parseNonShell(parsed);
|
|
26642
|
-
}
|
|
26643
|
-
module2.exports = parse;
|
|
26644
|
-
}
|
|
26645
|
-
});
|
|
26646
|
-
|
|
26647
|
-
// node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
|
|
26648
|
-
var require_enoent = __commonJS({
|
|
26649
|
-
"node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
|
|
26650
|
-
"use strict";
|
|
26651
|
-
var isWin = process.platform === "win32";
|
|
26652
|
-
function notFoundError(original, syscall) {
|
|
26653
|
-
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
26654
|
-
code: "ENOENT",
|
|
26655
|
-
errno: "ENOENT",
|
|
26656
|
-
syscall: `${syscall} ${original.command}`,
|
|
26657
|
-
path: original.command,
|
|
26658
|
-
spawnargs: original.args
|
|
26659
|
-
});
|
|
26660
|
-
}
|
|
26661
|
-
function hookChildProcess(cp, parsed) {
|
|
26662
|
-
if (!isWin) {
|
|
26663
|
-
return;
|
|
26664
|
-
}
|
|
26665
|
-
const originalEmit = cp.emit;
|
|
26666
|
-
cp.emit = function(name, arg1) {
|
|
26667
|
-
if (name === "exit") {
|
|
26668
|
-
const err = verifyENOENT(arg1, parsed, "spawn");
|
|
26669
|
-
if (err) {
|
|
26670
|
-
return originalEmit.call(cp, "error", err);
|
|
26671
|
-
}
|
|
26672
|
-
}
|
|
26673
|
-
return originalEmit.apply(cp, arguments);
|
|
26674
|
-
};
|
|
26675
|
-
}
|
|
26676
|
-
function verifyENOENT(status, parsed) {
|
|
26677
|
-
if (isWin && status === 1 && !parsed.file) {
|
|
26678
|
-
return notFoundError(parsed.original, "spawn");
|
|
26679
|
-
}
|
|
26680
|
-
return null;
|
|
26681
|
-
}
|
|
26682
|
-
function verifyENOENTSync(status, parsed) {
|
|
26683
|
-
if (isWin && status === 1 && !parsed.file) {
|
|
26684
|
-
return notFoundError(parsed.original, "spawnSync");
|
|
26685
|
-
}
|
|
26686
|
-
return null;
|
|
26687
|
-
}
|
|
26688
|
-
module2.exports = {
|
|
26689
|
-
hookChildProcess,
|
|
26690
|
-
verifyENOENT,
|
|
26691
|
-
verifyENOENTSync,
|
|
26692
|
-
notFoundError
|
|
26693
|
-
};
|
|
26694
|
-
}
|
|
26695
|
-
});
|
|
26696
|
-
|
|
26697
|
-
// node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
|
|
26698
|
-
var require_cross_spawn = __commonJS({
|
|
26699
|
-
"node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports2, module2) {
|
|
26700
|
-
"use strict";
|
|
26701
|
-
var cp = require("child_process");
|
|
26702
|
-
var parse = require_parse2();
|
|
26703
|
-
var enoent = require_enoent();
|
|
26704
|
-
function spawn(command, args, options) {
|
|
26705
|
-
const parsed = parse(command, args, options);
|
|
26706
|
-
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
26707
|
-
enoent.hookChildProcess(spawned, parsed);
|
|
26708
|
-
return spawned;
|
|
26709
|
-
}
|
|
26710
|
-
function spawnSync(command, args, options) {
|
|
26711
|
-
const parsed = parse(command, args, options);
|
|
26712
|
-
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
26713
|
-
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
26714
|
-
return result;
|
|
26715
|
-
}
|
|
26716
|
-
module2.exports = spawn;
|
|
26717
|
-
module2.exports.spawn = spawn;
|
|
26718
|
-
module2.exports.sync = spawnSync;
|
|
26719
|
-
module2.exports._parse = parse;
|
|
26720
|
-
module2.exports._enoent = enoent;
|
|
26721
|
-
}
|
|
26722
|
-
});
|
|
26723
|
-
|
|
26724
|
-
// node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js
|
|
26725
|
-
var require_merge_stream = __commonJS({
|
|
26726
|
-
"node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports2, module2) {
|
|
26727
|
-
"use strict";
|
|
26728
|
-
var { PassThrough } = require("stream");
|
|
26729
|
-
module2.exports = function() {
|
|
26730
|
-
var sources = [];
|
|
26731
|
-
var output = new PassThrough({ objectMode: true });
|
|
26732
|
-
output.setMaxListeners(0);
|
|
26733
|
-
output.add = add;
|
|
26734
|
-
output.isEmpty = isEmpty;
|
|
26735
|
-
output.on("unpipe", remove);
|
|
26736
|
-
Array.prototype.slice.call(arguments).forEach(add);
|
|
26737
|
-
return output;
|
|
26738
|
-
function add(source) {
|
|
26739
|
-
if (Array.isArray(source)) {
|
|
26740
|
-
source.forEach(add);
|
|
26741
|
-
return this;
|
|
26742
|
-
}
|
|
26743
|
-
sources.push(source);
|
|
26744
|
-
source.once("end", remove.bind(null, source));
|
|
26745
|
-
source.once("error", output.emit.bind(output, "error"));
|
|
26746
|
-
source.pipe(output, { end: false });
|
|
26747
|
-
return this;
|
|
26748
|
-
}
|
|
26749
|
-
function isEmpty() {
|
|
26750
|
-
return sources.length == 0;
|
|
26751
|
-
}
|
|
26752
|
-
function remove(source) {
|
|
26753
|
-
sources = sources.filter(function(it) {
|
|
26754
|
-
return it !== source;
|
|
26755
|
-
});
|
|
26756
|
-
if (!sources.length && output.readable) {
|
|
26757
|
-
output.end();
|
|
26758
|
-
}
|
|
26759
|
-
}
|
|
26760
|
-
};
|
|
26761
|
-
}
|
|
26762
|
-
});
|
|
26763
|
-
|
|
26764
26227
|
// node_modules/.pnpm/ansi-colors@4.1.3/node_modules/ansi-colors/symbols.js
|
|
26765
26228
|
var require_symbols = __commonJS({
|
|
26766
26229
|
"node_modules/.pnpm/ansi-colors@4.1.3/node_modules/ansi-colors/symbols.js"(exports2, module2) {
|
|
@@ -27201,7 +26664,7 @@ var require_utils2 = __commonJS({
|
|
|
27201
26664
|
}
|
|
27202
26665
|
};
|
|
27203
26666
|
exports2.onExit = (callback) => {
|
|
27204
|
-
const
|
|
26667
|
+
const onExit = (quit, code) => {
|
|
27205
26668
|
if (called)
|
|
27206
26669
|
return;
|
|
27207
26670
|
called = true;
|
|
@@ -27211,9 +26674,9 @@ var require_utils2 = __commonJS({
|
|
|
27211
26674
|
}
|
|
27212
26675
|
};
|
|
27213
26676
|
if (fns.length === 0) {
|
|
27214
|
-
process.once("SIGTERM",
|
|
27215
|
-
process.once("SIGINT",
|
|
27216
|
-
process.once("exit",
|
|
26677
|
+
process.once("SIGTERM", onExit.bind(null, true, 15));
|
|
26678
|
+
process.once("SIGINT", onExit.bind(null, true, 2));
|
|
26679
|
+
process.once("exit", onExit);
|
|
27217
26680
|
}
|
|
27218
26681
|
fns.push(callback);
|
|
27219
26682
|
};
|
|
@@ -31584,8 +31047,8 @@ var require_project_name_and_root_utils = __commonJS({
|
|
|
31584
31047
|
function getRelativeCwd() {
|
|
31585
31048
|
return normalizePath((0, path_1.relative)(workspaceRoot, getCwd())).replace(/\/$/, "");
|
|
31586
31049
|
}
|
|
31587
|
-
function setCwd(
|
|
31588
|
-
process.env.INIT_CWD = (0, path_1.join)(workspaceRoot,
|
|
31050
|
+
function setCwd(path) {
|
|
31051
|
+
process.env.INIT_CWD = (0, path_1.join)(workspaceRoot, path);
|
|
31589
31052
|
}
|
|
31590
31053
|
exports2.setCwd = setCwd;
|
|
31591
31054
|
function parseNameForAsProvided(rawName) {
|
|
@@ -31982,9 +31445,9 @@ var require_ts_config = __commonJS({
|
|
|
31982
31445
|
}
|
|
31983
31446
|
exports2.readTsConfig = readTsConfig;
|
|
31984
31447
|
function getRootTsConfigPathInTree(tree) {
|
|
31985
|
-
for (const
|
|
31986
|
-
if (tree.exists(
|
|
31987
|
-
return
|
|
31448
|
+
for (const path of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
31449
|
+
if (tree.exists(path)) {
|
|
31450
|
+
return path;
|
|
31988
31451
|
}
|
|
31989
31452
|
}
|
|
31990
31453
|
return "tsconfig.base.json";
|
|
@@ -32054,7 +31517,7 @@ var require_run_type_check = __commonJS({
|
|
|
32054
31517
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32055
31518
|
exports2.getFormattedDiagnostic = exports2.runTypeCheck = exports2.runTypeCheckWatch = void 0;
|
|
32056
31519
|
var chalk2 = require_source();
|
|
32057
|
-
var
|
|
31520
|
+
var path = require("path");
|
|
32058
31521
|
var code_frames_1 = require("nx/src/utils/code-frames");
|
|
32059
31522
|
var highlight_1 = require_highlight();
|
|
32060
31523
|
var ts_config_1 = require_ts_config();
|
|
@@ -32087,7 +31550,7 @@ var require_run_type_check = __commonJS({
|
|
|
32087
31550
|
options: {
|
|
32088
31551
|
...compilerOptions,
|
|
32089
31552
|
incremental: true,
|
|
32090
|
-
tsBuildInfoFile:
|
|
31553
|
+
tsBuildInfoFile: path.join(cacheDir, ".tsbuildinfo")
|
|
32091
31554
|
}
|
|
32092
31555
|
});
|
|
32093
31556
|
} else {
|
|
@@ -32152,7 +31615,7 @@ var require_run_type_check = __commonJS({
|
|
|
32152
31615
|
const pos = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start);
|
|
32153
31616
|
const line = pos.line + 1;
|
|
32154
31617
|
const column = pos.character + 1;
|
|
32155
|
-
const fileName =
|
|
31618
|
+
const fileName = path.relative(workspaceRoot, diagnostic.file.fileName);
|
|
32156
31619
|
message = `${chalk2.underline.blue(`${fileName}:${line}:${column}`)} - ` + message;
|
|
32157
31620
|
const code = diagnostic.file.getFullText(diagnostic.file.getSourceFile());
|
|
32158
31621
|
message += "\n" + (0, code_frames_1.codeFrameColumns)(code, {
|
|
@@ -32470,9 +31933,9 @@ var require_ts_config2 = __commonJS({
|
|
|
32470
31933
|
}
|
|
32471
31934
|
exports2.readTsConfig = readTsConfig;
|
|
32472
31935
|
function getRootTsConfigPathInTree(tree) {
|
|
32473
|
-
for (const
|
|
32474
|
-
if (tree.exists(
|
|
32475
|
-
return
|
|
31936
|
+
for (const path of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
31937
|
+
if (tree.exists(path)) {
|
|
31938
|
+
return path;
|
|
32476
31939
|
}
|
|
32477
31940
|
}
|
|
32478
31941
|
return "tsconfig.base.json";
|
|
@@ -33019,7 +32482,7 @@ var require_universalify = __commonJS({
|
|
|
33019
32482
|
// node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
33020
32483
|
var require_polyfills = __commonJS({
|
|
33021
32484
|
"node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports2, module2) {
|
|
33022
|
-
var
|
|
32485
|
+
var constants = require("constants");
|
|
33023
32486
|
var origCwd = process.cwd;
|
|
33024
32487
|
var cwd = null;
|
|
33025
32488
|
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
@@ -33044,7 +32507,7 @@ var require_polyfills = __commonJS({
|
|
|
33044
32507
|
var chdir;
|
|
33045
32508
|
module2.exports = patch;
|
|
33046
32509
|
function patch(fs) {
|
|
33047
|
-
if (
|
|
32510
|
+
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
33048
32511
|
patchLchmod(fs);
|
|
33049
32512
|
}
|
|
33050
32513
|
if (!fs.lutimes) {
|
|
@@ -33069,7 +32532,7 @@ var require_polyfills = __commonJS({
|
|
|
33069
32532
|
fs.fstatSync = statFixSync(fs.fstatSync);
|
|
33070
32533
|
fs.lstatSync = statFixSync(fs.lstatSync);
|
|
33071
32534
|
if (fs.chmod && !fs.lchmod) {
|
|
33072
|
-
fs.lchmod = function(
|
|
32535
|
+
fs.lchmod = function(path, mode, cb) {
|
|
33073
32536
|
if (cb)
|
|
33074
32537
|
process.nextTick(cb);
|
|
33075
32538
|
};
|
|
@@ -33077,7 +32540,7 @@ var require_polyfills = __commonJS({
|
|
|
33077
32540
|
};
|
|
33078
32541
|
}
|
|
33079
32542
|
if (fs.chown && !fs.lchown) {
|
|
33080
|
-
fs.lchown = function(
|
|
32543
|
+
fs.lchown = function(path, uid, gid, cb) {
|
|
33081
32544
|
if (cb)
|
|
33082
32545
|
process.nextTick(cb);
|
|
33083
32546
|
};
|
|
@@ -33148,10 +32611,10 @@ var require_polyfills = __commonJS({
|
|
|
33148
32611
|
};
|
|
33149
32612
|
}(fs.readSync);
|
|
33150
32613
|
function patchLchmod(fs2) {
|
|
33151
|
-
fs2.lchmod = function(
|
|
32614
|
+
fs2.lchmod = function(path, mode, callback) {
|
|
33152
32615
|
fs2.open(
|
|
33153
|
-
|
|
33154
|
-
|
|
32616
|
+
path,
|
|
32617
|
+
constants.O_WRONLY | constants.O_SYMLINK,
|
|
33155
32618
|
mode,
|
|
33156
32619
|
function(err, fd) {
|
|
33157
32620
|
if (err) {
|
|
@@ -33168,8 +32631,8 @@ var require_polyfills = __commonJS({
|
|
|
33168
32631
|
}
|
|
33169
32632
|
);
|
|
33170
32633
|
};
|
|
33171
|
-
fs2.lchmodSync = function(
|
|
33172
|
-
var fd = fs2.openSync(
|
|
32634
|
+
fs2.lchmodSync = function(path, mode) {
|
|
32635
|
+
var fd = fs2.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
33173
32636
|
var threw = true;
|
|
33174
32637
|
var ret;
|
|
33175
32638
|
try {
|
|
@@ -33189,9 +32652,9 @@ var require_polyfills = __commonJS({
|
|
|
33189
32652
|
};
|
|
33190
32653
|
}
|
|
33191
32654
|
function patchLutimes(fs2) {
|
|
33192
|
-
if (
|
|
33193
|
-
fs2.lutimes = function(
|
|
33194
|
-
fs2.open(
|
|
32655
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs2.futimes) {
|
|
32656
|
+
fs2.lutimes = function(path, at, mt, cb) {
|
|
32657
|
+
fs2.open(path, constants.O_SYMLINK, function(er, fd) {
|
|
33195
32658
|
if (er) {
|
|
33196
32659
|
if (cb)
|
|
33197
32660
|
cb(er);
|
|
@@ -33205,8 +32668,8 @@ var require_polyfills = __commonJS({
|
|
|
33205
32668
|
});
|
|
33206
32669
|
});
|
|
33207
32670
|
};
|
|
33208
|
-
fs2.lutimesSync = function(
|
|
33209
|
-
var fd = fs2.openSync(
|
|
32671
|
+
fs2.lutimesSync = function(path, at, mt) {
|
|
32672
|
+
var fd = fs2.openSync(path, constants.O_SYMLINK);
|
|
33210
32673
|
var ret;
|
|
33211
32674
|
var threw = true;
|
|
33212
32675
|
try {
|
|
@@ -33342,12 +32805,12 @@ var require_legacy_streams = __commonJS({
|
|
|
33342
32805
|
ReadStream,
|
|
33343
32806
|
WriteStream
|
|
33344
32807
|
};
|
|
33345
|
-
function ReadStream(
|
|
32808
|
+
function ReadStream(path, options) {
|
|
33346
32809
|
if (!(this instanceof ReadStream))
|
|
33347
|
-
return new ReadStream(
|
|
32810
|
+
return new ReadStream(path, options);
|
|
33348
32811
|
Stream.call(this);
|
|
33349
32812
|
var self = this;
|
|
33350
|
-
this.path =
|
|
32813
|
+
this.path = path;
|
|
33351
32814
|
this.fd = null;
|
|
33352
32815
|
this.readable = true;
|
|
33353
32816
|
this.paused = false;
|
|
@@ -33393,11 +32856,11 @@ var require_legacy_streams = __commonJS({
|
|
|
33393
32856
|
self._read();
|
|
33394
32857
|
});
|
|
33395
32858
|
}
|
|
33396
|
-
function WriteStream(
|
|
32859
|
+
function WriteStream(path, options) {
|
|
33397
32860
|
if (!(this instanceof WriteStream))
|
|
33398
|
-
return new WriteStream(
|
|
32861
|
+
return new WriteStream(path, options);
|
|
33399
32862
|
Stream.call(this);
|
|
33400
|
-
this.path =
|
|
32863
|
+
this.path = path;
|
|
33401
32864
|
this.fd = null;
|
|
33402
32865
|
this.writable = true;
|
|
33403
32866
|
this.flags = "w";
|
|
@@ -33471,7 +32934,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33471
32934
|
gracefulQueue = "___graceful-fs.queue";
|
|
33472
32935
|
previousSymbol = "___graceful-fs.previous";
|
|
33473
32936
|
}
|
|
33474
|
-
function
|
|
32937
|
+
function noop() {
|
|
33475
32938
|
}
|
|
33476
32939
|
function publishQueue(context, queue2) {
|
|
33477
32940
|
Object.defineProperty(context, gracefulQueue, {
|
|
@@ -33480,7 +32943,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33480
32943
|
}
|
|
33481
32944
|
});
|
|
33482
32945
|
}
|
|
33483
|
-
var debug =
|
|
32946
|
+
var debug = noop;
|
|
33484
32947
|
if (util2.debuglog)
|
|
33485
32948
|
debug = util2.debuglog("gfs4");
|
|
33486
32949
|
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
@@ -33536,18 +32999,18 @@ var require_graceful_fs = __commonJS({
|
|
|
33536
32999
|
function patch(fs2) {
|
|
33537
33000
|
polyfills(fs2);
|
|
33538
33001
|
fs2.gracefulify = patch;
|
|
33539
|
-
fs2.createReadStream =
|
|
33540
|
-
fs2.createWriteStream =
|
|
33002
|
+
fs2.createReadStream = createReadStream;
|
|
33003
|
+
fs2.createWriteStream = createWriteStream;
|
|
33541
33004
|
var fs$readFile = fs2.readFile;
|
|
33542
33005
|
fs2.readFile = readFile;
|
|
33543
|
-
function readFile(
|
|
33006
|
+
function readFile(path, options, cb) {
|
|
33544
33007
|
if (typeof options === "function")
|
|
33545
33008
|
cb = options, options = null;
|
|
33546
|
-
return go$readFile(
|
|
33547
|
-
function go$readFile(
|
|
33548
|
-
return fs$readFile(
|
|
33009
|
+
return go$readFile(path, options, cb);
|
|
33010
|
+
function go$readFile(path2, options2, cb2, startTime) {
|
|
33011
|
+
return fs$readFile(path2, options2, function(err) {
|
|
33549
33012
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33550
|
-
enqueue([go$readFile, [
|
|
33013
|
+
enqueue([go$readFile, [path2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
33551
33014
|
else {
|
|
33552
33015
|
if (typeof cb2 === "function")
|
|
33553
33016
|
cb2.apply(this, arguments);
|
|
@@ -33557,14 +33020,14 @@ var require_graceful_fs = __commonJS({
|
|
|
33557
33020
|
}
|
|
33558
33021
|
var fs$writeFile = fs2.writeFile;
|
|
33559
33022
|
fs2.writeFile = writeFile;
|
|
33560
|
-
function writeFile(
|
|
33023
|
+
function writeFile(path, data, options, cb) {
|
|
33561
33024
|
if (typeof options === "function")
|
|
33562
33025
|
cb = options, options = null;
|
|
33563
|
-
return go$writeFile(
|
|
33564
|
-
function go$writeFile(
|
|
33565
|
-
return fs$writeFile(
|
|
33026
|
+
return go$writeFile(path, data, options, cb);
|
|
33027
|
+
function go$writeFile(path2, data2, options2, cb2, startTime) {
|
|
33028
|
+
return fs$writeFile(path2, data2, options2, function(err) {
|
|
33566
33029
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33567
|
-
enqueue([go$writeFile, [
|
|
33030
|
+
enqueue([go$writeFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
33568
33031
|
else {
|
|
33569
33032
|
if (typeof cb2 === "function")
|
|
33570
33033
|
cb2.apply(this, arguments);
|
|
@@ -33575,14 +33038,14 @@ var require_graceful_fs = __commonJS({
|
|
|
33575
33038
|
var fs$appendFile = fs2.appendFile;
|
|
33576
33039
|
if (fs$appendFile)
|
|
33577
33040
|
fs2.appendFile = appendFile;
|
|
33578
|
-
function appendFile(
|
|
33041
|
+
function appendFile(path, data, options, cb) {
|
|
33579
33042
|
if (typeof options === "function")
|
|
33580
33043
|
cb = options, options = null;
|
|
33581
|
-
return go$appendFile(
|
|
33582
|
-
function go$appendFile(
|
|
33583
|
-
return fs$appendFile(
|
|
33044
|
+
return go$appendFile(path, data, options, cb);
|
|
33045
|
+
function go$appendFile(path2, data2, options2, cb2, startTime) {
|
|
33046
|
+
return fs$appendFile(path2, data2, options2, function(err) {
|
|
33584
33047
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33585
|
-
enqueue([go$appendFile, [
|
|
33048
|
+
enqueue([go$appendFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
33586
33049
|
else {
|
|
33587
33050
|
if (typeof cb2 === "function")
|
|
33588
33051
|
cb2.apply(this, arguments);
|
|
@@ -33613,31 +33076,31 @@ var require_graceful_fs = __commonJS({
|
|
|
33613
33076
|
var fs$readdir = fs2.readdir;
|
|
33614
33077
|
fs2.readdir = readdir;
|
|
33615
33078
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
33616
|
-
function readdir(
|
|
33079
|
+
function readdir(path, options, cb) {
|
|
33617
33080
|
if (typeof options === "function")
|
|
33618
33081
|
cb = options, options = null;
|
|
33619
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
33620
|
-
return fs$readdir(
|
|
33621
|
-
|
|
33082
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path2, options2, cb2, startTime) {
|
|
33083
|
+
return fs$readdir(path2, fs$readdirCallback(
|
|
33084
|
+
path2,
|
|
33622
33085
|
options2,
|
|
33623
33086
|
cb2,
|
|
33624
33087
|
startTime
|
|
33625
33088
|
));
|
|
33626
|
-
} : function go$readdir2(
|
|
33627
|
-
return fs$readdir(
|
|
33628
|
-
|
|
33089
|
+
} : function go$readdir2(path2, options2, cb2, startTime) {
|
|
33090
|
+
return fs$readdir(path2, options2, fs$readdirCallback(
|
|
33091
|
+
path2,
|
|
33629
33092
|
options2,
|
|
33630
33093
|
cb2,
|
|
33631
33094
|
startTime
|
|
33632
33095
|
));
|
|
33633
33096
|
};
|
|
33634
|
-
return go$readdir(
|
|
33635
|
-
function fs$readdirCallback(
|
|
33097
|
+
return go$readdir(path, options, cb);
|
|
33098
|
+
function fs$readdirCallback(path2, options2, cb2, startTime) {
|
|
33636
33099
|
return function(err, files) {
|
|
33637
33100
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33638
33101
|
enqueue([
|
|
33639
33102
|
go$readdir,
|
|
33640
|
-
[
|
|
33103
|
+
[path2, options2, cb2],
|
|
33641
33104
|
err,
|
|
33642
33105
|
startTime || Date.now(),
|
|
33643
33106
|
Date.now()
|
|
@@ -33708,7 +33171,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33708
33171
|
enumerable: true,
|
|
33709
33172
|
configurable: true
|
|
33710
33173
|
});
|
|
33711
|
-
function ReadStream(
|
|
33174
|
+
function ReadStream(path, options) {
|
|
33712
33175
|
if (this instanceof ReadStream)
|
|
33713
33176
|
return fs$ReadStream.apply(this, arguments), this;
|
|
33714
33177
|
else
|
|
@@ -33728,7 +33191,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33728
33191
|
}
|
|
33729
33192
|
});
|
|
33730
33193
|
}
|
|
33731
|
-
function WriteStream(
|
|
33194
|
+
function WriteStream(path, options) {
|
|
33732
33195
|
if (this instanceof WriteStream)
|
|
33733
33196
|
return fs$WriteStream.apply(this, arguments), this;
|
|
33734
33197
|
else
|
|
@@ -33746,22 +33209,22 @@ var require_graceful_fs = __commonJS({
|
|
|
33746
33209
|
}
|
|
33747
33210
|
});
|
|
33748
33211
|
}
|
|
33749
|
-
function
|
|
33750
|
-
return new fs2.ReadStream(
|
|
33212
|
+
function createReadStream(path, options) {
|
|
33213
|
+
return new fs2.ReadStream(path, options);
|
|
33751
33214
|
}
|
|
33752
|
-
function
|
|
33753
|
-
return new fs2.WriteStream(
|
|
33215
|
+
function createWriteStream(path, options) {
|
|
33216
|
+
return new fs2.WriteStream(path, options);
|
|
33754
33217
|
}
|
|
33755
33218
|
var fs$open = fs2.open;
|
|
33756
33219
|
fs2.open = open;
|
|
33757
|
-
function open(
|
|
33220
|
+
function open(path, flags, mode, cb) {
|
|
33758
33221
|
if (typeof mode === "function")
|
|
33759
33222
|
cb = mode, mode = null;
|
|
33760
|
-
return go$open(
|
|
33761
|
-
function go$open(
|
|
33762
|
-
return fs$open(
|
|
33223
|
+
return go$open(path, flags, mode, cb);
|
|
33224
|
+
function go$open(path2, flags2, mode2, cb2, startTime) {
|
|
33225
|
+
return fs$open(path2, flags2, mode2, function(err, fd) {
|
|
33763
33226
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33764
|
-
enqueue([go$open, [
|
|
33227
|
+
enqueue([go$open, [path2, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
33765
33228
|
else {
|
|
33766
33229
|
if (typeof cb2 === "function")
|
|
33767
33230
|
cb2.apply(this, arguments);
|
|
@@ -33944,10 +33407,10 @@ var require_fs2 = __commonJS({
|
|
|
33944
33407
|
var require_utils3 = __commonJS({
|
|
33945
33408
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports2, module2) {
|
|
33946
33409
|
"use strict";
|
|
33947
|
-
var
|
|
33410
|
+
var path = require("path");
|
|
33948
33411
|
module2.exports.checkPath = function checkPath(pth) {
|
|
33949
33412
|
if (process.platform === "win32") {
|
|
33950
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
33413
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, ""));
|
|
33951
33414
|
if (pathHasInvalidWinCharacters) {
|
|
33952
33415
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
33953
33416
|
error.code = "EINVAL";
|
|
@@ -34012,8 +33475,8 @@ var require_path_exists = __commonJS({
|
|
|
34012
33475
|
"use strict";
|
|
34013
33476
|
var u = require_universalify().fromPromise;
|
|
34014
33477
|
var fs = require_fs2();
|
|
34015
|
-
function pathExists(
|
|
34016
|
-
return fs.access(
|
|
33478
|
+
function pathExists(path) {
|
|
33479
|
+
return fs.access(path).then(() => true).catch(() => false);
|
|
34017
33480
|
}
|
|
34018
33481
|
module2.exports = {
|
|
34019
33482
|
pathExists: u(pathExists),
|
|
@@ -34028,8 +33491,8 @@ var require_utimes = __commonJS({
|
|
|
34028
33491
|
"use strict";
|
|
34029
33492
|
var fs = require_fs2();
|
|
34030
33493
|
var u = require_universalify().fromPromise;
|
|
34031
|
-
async function utimesMillis(
|
|
34032
|
-
const fd = await fs.open(
|
|
33494
|
+
async function utimesMillis(path, atime, mtime) {
|
|
33495
|
+
const fd = await fs.open(path, "r+");
|
|
34033
33496
|
let closeErr = null;
|
|
34034
33497
|
try {
|
|
34035
33498
|
await fs.futimes(fd, atime, mtime);
|
|
@@ -34044,8 +33507,8 @@ var require_utimes = __commonJS({
|
|
|
34044
33507
|
throw closeErr;
|
|
34045
33508
|
}
|
|
34046
33509
|
}
|
|
34047
|
-
function utimesMillisSync(
|
|
34048
|
-
const fd = fs.openSync(
|
|
33510
|
+
function utimesMillisSync(path, atime, mtime) {
|
|
33511
|
+
const fd = fs.openSync(path, "r+");
|
|
34049
33512
|
fs.futimesSync(fd, atime, mtime);
|
|
34050
33513
|
return fs.closeSync(fd);
|
|
34051
33514
|
}
|
|
@@ -34061,7 +33524,7 @@ var require_stat = __commonJS({
|
|
|
34061
33524
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
|
|
34062
33525
|
"use strict";
|
|
34063
33526
|
var fs = require_fs2();
|
|
34064
|
-
var
|
|
33527
|
+
var path = require("path");
|
|
34065
33528
|
var u = require_universalify().fromPromise;
|
|
34066
33529
|
function getStats(src, dest, opts) {
|
|
34067
33530
|
const statFunc = opts.dereference ? (file) => fs.stat(file, { bigint: true }) : (file) => fs.lstat(file, { bigint: true });
|
|
@@ -34091,8 +33554,8 @@ var require_stat = __commonJS({
|
|
|
34091
33554
|
const { srcStat, destStat } = await getStats(src, dest, opts);
|
|
34092
33555
|
if (destStat) {
|
|
34093
33556
|
if (areIdentical(srcStat, destStat)) {
|
|
34094
|
-
const srcBaseName =
|
|
34095
|
-
const destBaseName =
|
|
33557
|
+
const srcBaseName = path.basename(src);
|
|
33558
|
+
const destBaseName = path.basename(dest);
|
|
34096
33559
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
34097
33560
|
return { srcStat, destStat, isChangingCase: true };
|
|
34098
33561
|
}
|
|
@@ -34114,8 +33577,8 @@ var require_stat = __commonJS({
|
|
|
34114
33577
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
34115
33578
|
if (destStat) {
|
|
34116
33579
|
if (areIdentical(srcStat, destStat)) {
|
|
34117
|
-
const srcBaseName =
|
|
34118
|
-
const destBaseName =
|
|
33580
|
+
const srcBaseName = path.basename(src);
|
|
33581
|
+
const destBaseName = path.basename(dest);
|
|
34119
33582
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
34120
33583
|
return { srcStat, destStat, isChangingCase: true };
|
|
34121
33584
|
}
|
|
@@ -34134,9 +33597,9 @@ var require_stat = __commonJS({
|
|
|
34134
33597
|
return { srcStat, destStat };
|
|
34135
33598
|
}
|
|
34136
33599
|
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
34137
|
-
const srcParent =
|
|
34138
|
-
const destParent =
|
|
34139
|
-
if (destParent === srcParent || destParent ===
|
|
33600
|
+
const srcParent = path.resolve(path.dirname(src));
|
|
33601
|
+
const destParent = path.resolve(path.dirname(dest));
|
|
33602
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root)
|
|
34140
33603
|
return;
|
|
34141
33604
|
let destStat;
|
|
34142
33605
|
try {
|
|
@@ -34152,9 +33615,9 @@ var require_stat = __commonJS({
|
|
|
34152
33615
|
return checkParentPaths(src, srcStat, destParent, funcName);
|
|
34153
33616
|
}
|
|
34154
33617
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
34155
|
-
const srcParent =
|
|
34156
|
-
const destParent =
|
|
34157
|
-
if (destParent === srcParent || destParent ===
|
|
33618
|
+
const srcParent = path.resolve(path.dirname(src));
|
|
33619
|
+
const destParent = path.resolve(path.dirname(dest));
|
|
33620
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root)
|
|
34158
33621
|
return;
|
|
34159
33622
|
let destStat;
|
|
34160
33623
|
try {
|
|
@@ -34173,8 +33636,8 @@ var require_stat = __commonJS({
|
|
|
34173
33636
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
34174
33637
|
}
|
|
34175
33638
|
function isSrcSubdir(src, dest) {
|
|
34176
|
-
const srcArr =
|
|
34177
|
-
const destArr =
|
|
33639
|
+
const srcArr = path.resolve(src).split(path.sep).filter((i) => i);
|
|
33640
|
+
const destArr = path.resolve(dest).split(path.sep).filter((i) => i);
|
|
34178
33641
|
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
34179
33642
|
}
|
|
34180
33643
|
function errMsg(src, dest, funcName) {
|
|
@@ -34199,7 +33662,7 @@ var require_copy = __commonJS({
|
|
|
34199
33662
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
|
|
34200
33663
|
"use strict";
|
|
34201
33664
|
var fs = require_fs2();
|
|
34202
|
-
var
|
|
33665
|
+
var path = require("path");
|
|
34203
33666
|
var { mkdirs } = require_mkdirs();
|
|
34204
33667
|
var { pathExists } = require_path_exists();
|
|
34205
33668
|
var { utimesMillis } = require_utimes();
|
|
@@ -34222,7 +33685,7 @@ var require_copy = __commonJS({
|
|
|
34222
33685
|
const include = await runFilter(src, dest, opts);
|
|
34223
33686
|
if (!include)
|
|
34224
33687
|
return;
|
|
34225
|
-
const destParent =
|
|
33688
|
+
const destParent = path.dirname(dest);
|
|
34226
33689
|
const dirExists = await pathExists(destParent);
|
|
34227
33690
|
if (!dirExists) {
|
|
34228
33691
|
await mkdirs(destParent);
|
|
@@ -34283,8 +33746,8 @@ var require_copy = __commonJS({
|
|
|
34283
33746
|
}
|
|
34284
33747
|
const items = await fs.readdir(src);
|
|
34285
33748
|
await Promise.all(items.map(async (item) => {
|
|
34286
|
-
const srcItem =
|
|
34287
|
-
const destItem =
|
|
33749
|
+
const srcItem = path.join(src, item);
|
|
33750
|
+
const destItem = path.join(dest, item);
|
|
34288
33751
|
const include = await runFilter(srcItem, destItem, opts);
|
|
34289
33752
|
if (!include)
|
|
34290
33753
|
return;
|
|
@@ -34298,7 +33761,7 @@ var require_copy = __commonJS({
|
|
|
34298
33761
|
async function onLink(destStat, src, dest, opts) {
|
|
34299
33762
|
let resolvedSrc = await fs.readlink(src);
|
|
34300
33763
|
if (opts.dereference) {
|
|
34301
|
-
resolvedSrc =
|
|
33764
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
|
|
34302
33765
|
}
|
|
34303
33766
|
if (!destStat) {
|
|
34304
33767
|
return fs.symlink(resolvedSrc, dest);
|
|
@@ -34312,7 +33775,7 @@ var require_copy = __commonJS({
|
|
|
34312
33775
|
throw e;
|
|
34313
33776
|
}
|
|
34314
33777
|
if (opts.dereference) {
|
|
34315
|
-
resolvedDest =
|
|
33778
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest);
|
|
34316
33779
|
}
|
|
34317
33780
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
34318
33781
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -34332,7 +33795,7 @@ var require_copy_sync = __commonJS({
|
|
|
34332
33795
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
|
|
34333
33796
|
"use strict";
|
|
34334
33797
|
var fs = require_graceful_fs();
|
|
34335
|
-
var
|
|
33798
|
+
var path = require("path");
|
|
34336
33799
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
34337
33800
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
34338
33801
|
var stat = require_stat();
|
|
@@ -34354,7 +33817,7 @@ var require_copy_sync = __commonJS({
|
|
|
34354
33817
|
stat.checkParentPathsSync(src, srcStat, dest, "copy");
|
|
34355
33818
|
if (opts.filter && !opts.filter(src, dest))
|
|
34356
33819
|
return;
|
|
34357
|
-
const destParent =
|
|
33820
|
+
const destParent = path.dirname(dest);
|
|
34358
33821
|
if (!fs.existsSync(destParent))
|
|
34359
33822
|
mkdirsSync(destParent);
|
|
34360
33823
|
return getStats(destStat, src, dest, opts);
|
|
@@ -34425,8 +33888,8 @@ var require_copy_sync = __commonJS({
|
|
|
34425
33888
|
fs.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
34426
33889
|
}
|
|
34427
33890
|
function copyDirItem(item, src, dest, opts) {
|
|
34428
|
-
const srcItem =
|
|
34429
|
-
const destItem =
|
|
33891
|
+
const srcItem = path.join(src, item);
|
|
33892
|
+
const destItem = path.join(dest, item);
|
|
34430
33893
|
if (opts.filter && !opts.filter(srcItem, destItem))
|
|
34431
33894
|
return;
|
|
34432
33895
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
@@ -34435,7 +33898,7 @@ var require_copy_sync = __commonJS({
|
|
|
34435
33898
|
function onLink(destStat, src, dest, opts) {
|
|
34436
33899
|
let resolvedSrc = fs.readlinkSync(src);
|
|
34437
33900
|
if (opts.dereference) {
|
|
34438
|
-
resolvedSrc =
|
|
33901
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
|
|
34439
33902
|
}
|
|
34440
33903
|
if (!destStat) {
|
|
34441
33904
|
return fs.symlinkSync(resolvedSrc, dest);
|
|
@@ -34449,7 +33912,7 @@ var require_copy_sync = __commonJS({
|
|
|
34449
33912
|
throw err;
|
|
34450
33913
|
}
|
|
34451
33914
|
if (opts.dereference) {
|
|
34452
|
-
resolvedDest =
|
|
33915
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest);
|
|
34453
33916
|
}
|
|
34454
33917
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
34455
33918
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -34486,11 +33949,11 @@ var require_remove = __commonJS({
|
|
|
34486
33949
|
"use strict";
|
|
34487
33950
|
var fs = require_graceful_fs();
|
|
34488
33951
|
var u = require_universalify().fromCallback;
|
|
34489
|
-
function remove(
|
|
34490
|
-
fs.rm(
|
|
33952
|
+
function remove(path, callback) {
|
|
33953
|
+
fs.rm(path, { recursive: true, force: true }, callback);
|
|
34491
33954
|
}
|
|
34492
|
-
function removeSync(
|
|
34493
|
-
fs.rmSync(
|
|
33955
|
+
function removeSync(path) {
|
|
33956
|
+
fs.rmSync(path, { recursive: true, force: true });
|
|
34494
33957
|
}
|
|
34495
33958
|
module2.exports = {
|
|
34496
33959
|
remove: u(remove),
|
|
@@ -34505,7 +33968,7 @@ var require_empty2 = __commonJS({
|
|
|
34505
33968
|
"use strict";
|
|
34506
33969
|
var u = require_universalify().fromPromise;
|
|
34507
33970
|
var fs = require_fs2();
|
|
34508
|
-
var
|
|
33971
|
+
var path = require("path");
|
|
34509
33972
|
var mkdir = require_mkdirs();
|
|
34510
33973
|
var remove = require_remove();
|
|
34511
33974
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -34515,7 +33978,7 @@ var require_empty2 = __commonJS({
|
|
|
34515
33978
|
} catch {
|
|
34516
33979
|
return mkdir.mkdirs(dir);
|
|
34517
33980
|
}
|
|
34518
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
33981
|
+
return Promise.all(items.map((item) => remove.remove(path.join(dir, item))));
|
|
34519
33982
|
});
|
|
34520
33983
|
function emptyDirSync(dir) {
|
|
34521
33984
|
let items;
|
|
@@ -34525,7 +33988,7 @@ var require_empty2 = __commonJS({
|
|
|
34525
33988
|
return mkdir.mkdirsSync(dir);
|
|
34526
33989
|
}
|
|
34527
33990
|
items.forEach((item) => {
|
|
34528
|
-
item =
|
|
33991
|
+
item = path.join(dir, item);
|
|
34529
33992
|
remove.removeSync(item);
|
|
34530
33993
|
});
|
|
34531
33994
|
}
|
|
@@ -34543,7 +34006,7 @@ var require_file = __commonJS({
|
|
|
34543
34006
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
|
|
34544
34007
|
"use strict";
|
|
34545
34008
|
var u = require_universalify().fromPromise;
|
|
34546
|
-
var
|
|
34009
|
+
var path = require("path");
|
|
34547
34010
|
var fs = require_fs2();
|
|
34548
34011
|
var mkdir = require_mkdirs();
|
|
34549
34012
|
async function createFile(file) {
|
|
@@ -34554,7 +34017,7 @@ var require_file = __commonJS({
|
|
|
34554
34017
|
}
|
|
34555
34018
|
if (stats && stats.isFile())
|
|
34556
34019
|
return;
|
|
34557
|
-
const dir =
|
|
34020
|
+
const dir = path.dirname(file);
|
|
34558
34021
|
let dirStats = null;
|
|
34559
34022
|
try {
|
|
34560
34023
|
dirStats = await fs.stat(dir);
|
|
@@ -34581,7 +34044,7 @@ var require_file = __commonJS({
|
|
|
34581
34044
|
}
|
|
34582
34045
|
if (stats && stats.isFile())
|
|
34583
34046
|
return;
|
|
34584
|
-
const dir =
|
|
34047
|
+
const dir = path.dirname(file);
|
|
34585
34048
|
try {
|
|
34586
34049
|
if (!fs.statSync(dir).isDirectory()) {
|
|
34587
34050
|
fs.readdirSync(dir);
|
|
@@ -34606,7 +34069,7 @@ var require_link = __commonJS({
|
|
|
34606
34069
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
|
|
34607
34070
|
"use strict";
|
|
34608
34071
|
var u = require_universalify().fromPromise;
|
|
34609
|
-
var
|
|
34072
|
+
var path = require("path");
|
|
34610
34073
|
var fs = require_fs2();
|
|
34611
34074
|
var mkdir = require_mkdirs();
|
|
34612
34075
|
var { pathExists } = require_path_exists();
|
|
@@ -34626,7 +34089,7 @@ var require_link = __commonJS({
|
|
|
34626
34089
|
}
|
|
34627
34090
|
if (dstStat && areIdentical(srcStat, dstStat))
|
|
34628
34091
|
return;
|
|
34629
|
-
const dir =
|
|
34092
|
+
const dir = path.dirname(dstpath);
|
|
34630
34093
|
const dirExists = await pathExists(dir);
|
|
34631
34094
|
if (!dirExists) {
|
|
34632
34095
|
await mkdir.mkdirs(dir);
|
|
@@ -34647,7 +34110,7 @@ var require_link = __commonJS({
|
|
|
34647
34110
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
34648
34111
|
throw err;
|
|
34649
34112
|
}
|
|
34650
|
-
const dir =
|
|
34113
|
+
const dir = path.dirname(dstpath);
|
|
34651
34114
|
const dirExists = fs.existsSync(dir);
|
|
34652
34115
|
if (dirExists)
|
|
34653
34116
|
return fs.linkSync(srcpath, dstpath);
|
|
@@ -34665,12 +34128,12 @@ var require_link = __commonJS({
|
|
|
34665
34128
|
var require_symlink_paths = __commonJS({
|
|
34666
34129
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
|
|
34667
34130
|
"use strict";
|
|
34668
|
-
var
|
|
34131
|
+
var path = require("path");
|
|
34669
34132
|
var fs = require_fs2();
|
|
34670
34133
|
var { pathExists } = require_path_exists();
|
|
34671
34134
|
var u = require_universalify().fromPromise;
|
|
34672
34135
|
async function symlinkPaths(srcpath, dstpath) {
|
|
34673
|
-
if (
|
|
34136
|
+
if (path.isAbsolute(srcpath)) {
|
|
34674
34137
|
try {
|
|
34675
34138
|
await fs.lstat(srcpath);
|
|
34676
34139
|
} catch (err) {
|
|
@@ -34682,8 +34145,8 @@ var require_symlink_paths = __commonJS({
|
|
|
34682
34145
|
toDst: srcpath
|
|
34683
34146
|
};
|
|
34684
34147
|
}
|
|
34685
|
-
const dstdir =
|
|
34686
|
-
const relativeToDst =
|
|
34148
|
+
const dstdir = path.dirname(dstpath);
|
|
34149
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
34687
34150
|
const exists = await pathExists(relativeToDst);
|
|
34688
34151
|
if (exists) {
|
|
34689
34152
|
return {
|
|
@@ -34699,11 +34162,11 @@ var require_symlink_paths = __commonJS({
|
|
|
34699
34162
|
}
|
|
34700
34163
|
return {
|
|
34701
34164
|
toCwd: srcpath,
|
|
34702
|
-
toDst:
|
|
34165
|
+
toDst: path.relative(dstdir, srcpath)
|
|
34703
34166
|
};
|
|
34704
34167
|
}
|
|
34705
34168
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
34706
|
-
if (
|
|
34169
|
+
if (path.isAbsolute(srcpath)) {
|
|
34707
34170
|
const exists2 = fs.existsSync(srcpath);
|
|
34708
34171
|
if (!exists2)
|
|
34709
34172
|
throw new Error("absolute srcpath does not exist");
|
|
@@ -34712,8 +34175,8 @@ var require_symlink_paths = __commonJS({
|
|
|
34712
34175
|
toDst: srcpath
|
|
34713
34176
|
};
|
|
34714
34177
|
}
|
|
34715
|
-
const dstdir =
|
|
34716
|
-
const relativeToDst =
|
|
34178
|
+
const dstdir = path.dirname(dstpath);
|
|
34179
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
34717
34180
|
const exists = fs.existsSync(relativeToDst);
|
|
34718
34181
|
if (exists) {
|
|
34719
34182
|
return {
|
|
@@ -34726,7 +34189,7 @@ var require_symlink_paths = __commonJS({
|
|
|
34726
34189
|
throw new Error("relative srcpath does not exist");
|
|
34727
34190
|
return {
|
|
34728
34191
|
toCwd: srcpath,
|
|
34729
|
-
toDst:
|
|
34192
|
+
toDst: path.relative(dstdir, srcpath)
|
|
34730
34193
|
};
|
|
34731
34194
|
}
|
|
34732
34195
|
module2.exports = {
|
|
@@ -34776,7 +34239,7 @@ var require_symlink = __commonJS({
|
|
|
34776
34239
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
|
|
34777
34240
|
"use strict";
|
|
34778
34241
|
var u = require_universalify().fromPromise;
|
|
34779
|
-
var
|
|
34242
|
+
var path = require("path");
|
|
34780
34243
|
var fs = require_fs2();
|
|
34781
34244
|
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
34782
34245
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
@@ -34800,7 +34263,7 @@ var require_symlink = __commonJS({
|
|
|
34800
34263
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
34801
34264
|
srcpath = relative.toDst;
|
|
34802
34265
|
const toType = await symlinkType(relative.toCwd, type);
|
|
34803
|
-
const dir =
|
|
34266
|
+
const dir = path.dirname(dstpath);
|
|
34804
34267
|
if (!await pathExists(dir)) {
|
|
34805
34268
|
await mkdirs(dir);
|
|
34806
34269
|
}
|
|
@@ -34821,7 +34284,7 @@ var require_symlink = __commonJS({
|
|
|
34821
34284
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
34822
34285
|
srcpath = relative.toDst;
|
|
34823
34286
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
34824
|
-
const dir =
|
|
34287
|
+
const dir = path.dirname(dstpath);
|
|
34825
34288
|
const exists = fs.existsSync(dir);
|
|
34826
34289
|
if (exists)
|
|
34827
34290
|
return fs.symlinkSync(srcpath, dstpath, type);
|
|
@@ -34912,7 +34375,7 @@ var require_jsonfile = __commonJS({
|
|
|
34912
34375
|
return obj;
|
|
34913
34376
|
}
|
|
34914
34377
|
var readFile = universalify.fromPromise(_readFile);
|
|
34915
|
-
function
|
|
34378
|
+
function readFileSync2(file, options = {}) {
|
|
34916
34379
|
if (typeof options === "string") {
|
|
34917
34380
|
options = { encoding: options };
|
|
34918
34381
|
}
|
|
@@ -34944,7 +34407,7 @@ var require_jsonfile = __commonJS({
|
|
|
34944
34407
|
}
|
|
34945
34408
|
var jsonfile = {
|
|
34946
34409
|
readFile,
|
|
34947
|
-
readFileSync:
|
|
34410
|
+
readFileSync: readFileSync2,
|
|
34948
34411
|
writeFile,
|
|
34949
34412
|
writeFileSync
|
|
34950
34413
|
};
|
|
@@ -34973,18 +34436,18 @@ var require_output_file = __commonJS({
|
|
|
34973
34436
|
"use strict";
|
|
34974
34437
|
var u = require_universalify().fromPromise;
|
|
34975
34438
|
var fs = require_fs2();
|
|
34976
|
-
var
|
|
34439
|
+
var path = require("path");
|
|
34977
34440
|
var mkdir = require_mkdirs();
|
|
34978
34441
|
var pathExists = require_path_exists().pathExists;
|
|
34979
34442
|
async function outputFile(file, data, encoding = "utf-8") {
|
|
34980
|
-
const dir =
|
|
34443
|
+
const dir = path.dirname(file);
|
|
34981
34444
|
if (!await pathExists(dir)) {
|
|
34982
34445
|
await mkdir.mkdirs(dir);
|
|
34983
34446
|
}
|
|
34984
34447
|
return fs.writeFile(file, data, encoding);
|
|
34985
34448
|
}
|
|
34986
34449
|
function outputFileSync(file, ...args) {
|
|
34987
|
-
const dir =
|
|
34450
|
+
const dir = path.dirname(file);
|
|
34988
34451
|
if (!fs.existsSync(dir)) {
|
|
34989
34452
|
mkdir.mkdirsSync(dir);
|
|
34990
34453
|
}
|
|
@@ -35048,7 +34511,7 @@ var require_move = __commonJS({
|
|
|
35048
34511
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
|
|
35049
34512
|
"use strict";
|
|
35050
34513
|
var fs = require_fs2();
|
|
35051
|
-
var
|
|
34514
|
+
var path = require("path");
|
|
35052
34515
|
var { copy } = require_copy2();
|
|
35053
34516
|
var { remove } = require_remove();
|
|
35054
34517
|
var { mkdirp } = require_mkdirs();
|
|
@@ -35058,8 +34521,8 @@ var require_move = __commonJS({
|
|
|
35058
34521
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
35059
34522
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
|
|
35060
34523
|
await stat.checkParentPaths(src, srcStat, dest, "move");
|
|
35061
|
-
const destParent =
|
|
35062
|
-
const parsedParentPath =
|
|
34524
|
+
const destParent = path.dirname(dest);
|
|
34525
|
+
const parsedParentPath = path.parse(destParent);
|
|
35063
34526
|
if (parsedParentPath.root !== destParent) {
|
|
35064
34527
|
await mkdirp(destParent);
|
|
35065
34528
|
}
|
|
@@ -35100,7 +34563,7 @@ var require_move_sync = __commonJS({
|
|
|
35100
34563
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
|
|
35101
34564
|
"use strict";
|
|
35102
34565
|
var fs = require_graceful_fs();
|
|
35103
|
-
var
|
|
34566
|
+
var path = require("path");
|
|
35104
34567
|
var copySync = require_copy2().copySync;
|
|
35105
34568
|
var removeSync = require_remove().removeSync;
|
|
35106
34569
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -35111,12 +34574,12 @@ var require_move_sync = __commonJS({
|
|
|
35111
34574
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
35112
34575
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
35113
34576
|
if (!isParentRoot(dest))
|
|
35114
|
-
mkdirpSync(
|
|
34577
|
+
mkdirpSync(path.dirname(dest));
|
|
35115
34578
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
35116
34579
|
}
|
|
35117
34580
|
function isParentRoot(dest) {
|
|
35118
|
-
const parent =
|
|
35119
|
-
const parsedPath =
|
|
34581
|
+
const parent = path.dirname(dest);
|
|
34582
|
+
const parsedPath = path.parse(parent);
|
|
35120
34583
|
return parsedPath.root === parent;
|
|
35121
34584
|
}
|
|
35122
34585
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -35610,16 +35073,16 @@ var require_buildable_libs_utils = __commonJS({
|
|
|
35610
35073
|
dependencies.forEach((dep) => {
|
|
35611
35074
|
if (dep.outputs && dep.outputs.length > 0) {
|
|
35612
35075
|
paths[dep.name] = dep.outputs;
|
|
35613
|
-
for (const
|
|
35076
|
+
for (const path of pathsKeys) {
|
|
35614
35077
|
const nestedName = `${dep.name}/`;
|
|
35615
|
-
if (
|
|
35616
|
-
const nestedPart =
|
|
35078
|
+
if (path.startsWith(nestedName)) {
|
|
35079
|
+
const nestedPart = path.slice(nestedName.length);
|
|
35617
35080
|
let mappedPaths = dep.outputs.map((output) => `${output}/${nestedPart}`);
|
|
35618
35081
|
const { root } = dep.node?.data || {};
|
|
35619
35082
|
if (root) {
|
|
35620
|
-
mappedPaths = mappedPaths.concat(paths[
|
|
35083
|
+
mappedPaths = mappedPaths.concat(paths[path].flatMap((path2) => dep.outputs.map((output) => path2.replace(root, output))));
|
|
35621
35084
|
}
|
|
35622
|
-
paths[
|
|
35085
|
+
paths[path] = mappedPaths;
|
|
35623
35086
|
}
|
|
35624
35087
|
}
|
|
35625
35088
|
}
|
|
@@ -35753,7 +35216,7 @@ var require_minimatch2 = __commonJS({
|
|
|
35753
35216
|
"node_modules/.pnpm/minimatch@3.0.5/node_modules/minimatch/minimatch.js"(exports2, module2) {
|
|
35754
35217
|
module2.exports = minimatch;
|
|
35755
35218
|
minimatch.Minimatch = Minimatch;
|
|
35756
|
-
var
|
|
35219
|
+
var path = (() => {
|
|
35757
35220
|
try {
|
|
35758
35221
|
return require("path");
|
|
35759
35222
|
} catch (e) {
|
|
@@ -35761,7 +35224,7 @@ var require_minimatch2 = __commonJS({
|
|
|
35761
35224
|
})() || {
|
|
35762
35225
|
sep: "/"
|
|
35763
35226
|
};
|
|
35764
|
-
minimatch.sep =
|
|
35227
|
+
minimatch.sep = path.sep;
|
|
35765
35228
|
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
35766
35229
|
var expand = require_brace_expansion();
|
|
35767
35230
|
var plTypes = {
|
|
@@ -35855,8 +35318,8 @@ var require_minimatch2 = __commonJS({
|
|
|
35855
35318
|
if (!options)
|
|
35856
35319
|
options = {};
|
|
35857
35320
|
pattern = pattern.trim();
|
|
35858
|
-
if (
|
|
35859
|
-
pattern = pattern.split(
|
|
35321
|
+
if (path.sep !== "/") {
|
|
35322
|
+
pattern = pattern.split(path.sep).join("/");
|
|
35860
35323
|
}
|
|
35861
35324
|
this.options = options;
|
|
35862
35325
|
this.set = [];
|
|
@@ -36229,8 +35692,8 @@ var require_minimatch2 = __commonJS({
|
|
|
36229
35692
|
if (f === "/" && partial)
|
|
36230
35693
|
return true;
|
|
36231
35694
|
var options = this.options;
|
|
36232
|
-
if (
|
|
36233
|
-
f = f.split(
|
|
35695
|
+
if (path.sep !== "/") {
|
|
35696
|
+
f = f.split(path.sep).join("/");
|
|
36234
35697
|
}
|
|
36235
35698
|
f = f.split(slashSplit);
|
|
36236
35699
|
this.debug(this.pattern, "split", f);
|
|
@@ -36412,7 +35875,7 @@ var require_path = __commonJS({
|
|
|
36412
35875
|
"use strict";
|
|
36413
35876
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
36414
35877
|
exports2.removeLeadingDotSegment = exports2.escape = exports2.makeAbsolute = exports2.unixify = void 0;
|
|
36415
|
-
var
|
|
35878
|
+
var path = require("path");
|
|
36416
35879
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
36417
35880
|
var UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
|
|
36418
35881
|
function unixify(filepath) {
|
|
@@ -36420,7 +35883,7 @@ var require_path = __commonJS({
|
|
|
36420
35883
|
}
|
|
36421
35884
|
exports2.unixify = unixify;
|
|
36422
35885
|
function makeAbsolute(cwd, filepath) {
|
|
36423
|
-
return
|
|
35886
|
+
return path.resolve(cwd, filepath);
|
|
36424
35887
|
}
|
|
36425
35888
|
exports2.makeAbsolute = makeAbsolute;
|
|
36426
35889
|
function escape(pattern) {
|
|
@@ -37417,7 +36880,7 @@ var require_constants2 = __commonJS({
|
|
|
37417
36880
|
});
|
|
37418
36881
|
|
|
37419
36882
|
// node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.js
|
|
37420
|
-
var
|
|
36883
|
+
var require_parse2 = __commonJS({
|
|
37421
36884
|
"node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.js"(exports2, module2) {
|
|
37422
36885
|
"use strict";
|
|
37423
36886
|
var stringify = require_stringify();
|
|
@@ -37667,7 +37130,7 @@ var require_braces = __commonJS({
|
|
|
37667
37130
|
var stringify = require_stringify();
|
|
37668
37131
|
var compile = require_compile();
|
|
37669
37132
|
var expand = require_expand2();
|
|
37670
|
-
var parse =
|
|
37133
|
+
var parse = require_parse2();
|
|
37671
37134
|
var braces = (input, options = {}) => {
|
|
37672
37135
|
let output = [];
|
|
37673
37136
|
if (Array.isArray(input)) {
|
|
@@ -37727,7 +37190,7 @@ var require_braces = __commonJS({
|
|
|
37727
37190
|
var require_constants3 = __commonJS({
|
|
37728
37191
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports2, module2) {
|
|
37729
37192
|
"use strict";
|
|
37730
|
-
var
|
|
37193
|
+
var path = require("path");
|
|
37731
37194
|
var WIN_SLASH = "\\\\/";
|
|
37732
37195
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
37733
37196
|
var DOT_LITERAL = "\\.";
|
|
@@ -37897,7 +37360,7 @@ var require_constants3 = __commonJS({
|
|
|
37897
37360
|
/* | */
|
|
37898
37361
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
37899
37362
|
/* \uFEFF */
|
|
37900
|
-
SEP:
|
|
37363
|
+
SEP: path.sep,
|
|
37901
37364
|
/**
|
|
37902
37365
|
* Create EXTGLOB_CHARS
|
|
37903
37366
|
*/
|
|
@@ -37924,7 +37387,7 @@ var require_constants3 = __commonJS({
|
|
|
37924
37387
|
var require_utils6 = __commonJS({
|
|
37925
37388
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports2) {
|
|
37926
37389
|
"use strict";
|
|
37927
|
-
var
|
|
37390
|
+
var path = require("path");
|
|
37928
37391
|
var win32 = process.platform === "win32";
|
|
37929
37392
|
var {
|
|
37930
37393
|
REGEX_BACKSLASH,
|
|
@@ -37953,7 +37416,7 @@ var require_utils6 = __commonJS({
|
|
|
37953
37416
|
if (options && typeof options.windows === "boolean") {
|
|
37954
37417
|
return options.windows;
|
|
37955
37418
|
}
|
|
37956
|
-
return win32 === true ||
|
|
37419
|
+
return win32 === true || path.sep === "\\";
|
|
37957
37420
|
};
|
|
37958
37421
|
exports2.escapeLast = (input, char, lastIdx) => {
|
|
37959
37422
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -38317,10 +37780,10 @@ var require_scan2 = __commonJS({
|
|
|
38317
37780
|
});
|
|
38318
37781
|
|
|
38319
37782
|
// node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
|
|
38320
|
-
var
|
|
37783
|
+
var require_parse3 = __commonJS({
|
|
38321
37784
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports2, module2) {
|
|
38322
37785
|
"use strict";
|
|
38323
|
-
var
|
|
37786
|
+
var constants = require_constants3();
|
|
38324
37787
|
var utils = require_utils6();
|
|
38325
37788
|
var {
|
|
38326
37789
|
MAX_LENGTH,
|
|
@@ -38328,7 +37791,7 @@ var require_parse4 = __commonJS({
|
|
|
38328
37791
|
REGEX_NON_SPECIAL_CHARS,
|
|
38329
37792
|
REGEX_SPECIAL_CHARS_BACKREF,
|
|
38330
37793
|
REPLACEMENTS
|
|
38331
|
-
} =
|
|
37794
|
+
} = constants;
|
|
38332
37795
|
var expandRange = (args, options) => {
|
|
38333
37796
|
if (typeof options.expandRange === "function") {
|
|
38334
37797
|
return options.expandRange(...args, options);
|
|
@@ -38360,8 +37823,8 @@ var require_parse4 = __commonJS({
|
|
|
38360
37823
|
const tokens = [bos];
|
|
38361
37824
|
const capture = opts.capture ? "" : "?:";
|
|
38362
37825
|
const win32 = utils.isWindows(options);
|
|
38363
|
-
const PLATFORM_CHARS =
|
|
38364
|
-
const EXTGLOB_CHARS =
|
|
37826
|
+
const PLATFORM_CHARS = constants.globChars(win32);
|
|
37827
|
+
const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
|
|
38365
37828
|
const {
|
|
38366
37829
|
DOT_LITERAL,
|
|
38367
37830
|
PLUS_LITERAL,
|
|
@@ -39043,7 +38506,7 @@ var require_parse4 = __commonJS({
|
|
|
39043
38506
|
NO_DOTS_SLASH,
|
|
39044
38507
|
STAR,
|
|
39045
38508
|
START_ANCHOR
|
|
39046
|
-
} =
|
|
38509
|
+
} = constants.globChars(win32);
|
|
39047
38510
|
const nodot = opts.dot ? NO_DOTS : NO_DOT;
|
|
39048
38511
|
const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
|
|
39049
38512
|
const capture = opts.capture ? "" : "?:";
|
|
@@ -39101,11 +38564,11 @@ var require_parse4 = __commonJS({
|
|
|
39101
38564
|
var require_picomatch = __commonJS({
|
|
39102
38565
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
|
|
39103
38566
|
"use strict";
|
|
39104
|
-
var
|
|
38567
|
+
var path = require("path");
|
|
39105
38568
|
var scan = require_scan2();
|
|
39106
|
-
var parse =
|
|
38569
|
+
var parse = require_parse3();
|
|
39107
38570
|
var utils = require_utils6();
|
|
39108
|
-
var
|
|
38571
|
+
var constants = require_constants3();
|
|
39109
38572
|
var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
39110
38573
|
var picomatch = (glob, options, returnState = false) => {
|
|
39111
38574
|
if (Array.isArray(glob)) {
|
|
@@ -39187,7 +38650,7 @@ var require_picomatch = __commonJS({
|
|
|
39187
38650
|
};
|
|
39188
38651
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
39189
38652
|
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
39190
|
-
return regex.test(
|
|
38653
|
+
return regex.test(path.basename(input));
|
|
39191
38654
|
};
|
|
39192
38655
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
39193
38656
|
picomatch.parse = (pattern, options) => {
|
|
@@ -39236,7 +38699,7 @@ var require_picomatch = __commonJS({
|
|
|
39236
38699
|
return /$^/;
|
|
39237
38700
|
}
|
|
39238
38701
|
};
|
|
39239
|
-
picomatch.constants =
|
|
38702
|
+
picomatch.constants = constants;
|
|
39240
38703
|
module2.exports = picomatch;
|
|
39241
38704
|
}
|
|
39242
38705
|
});
|
|
@@ -39417,7 +38880,7 @@ var require_pattern = __commonJS({
|
|
|
39417
38880
|
"use strict";
|
|
39418
38881
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
39419
38882
|
exports2.matchAny = exports2.convertPatternsToRe = exports2.makeRe = exports2.getPatternParts = exports2.expandBraceExpansion = exports2.expandPatternsWithBraceExpansion = exports2.isAffectDepthOfReadingPattern = exports2.endsWithSlashGlobStar = exports2.hasGlobStar = exports2.getBaseDirectory = exports2.isPatternRelatedToParentDirectory = exports2.getPatternsOutsideCurrentDirectory = exports2.getPatternsInsideCurrentDirectory = exports2.getPositivePatterns = exports2.getNegativePatterns = exports2.isPositivePattern = exports2.isNegativePattern = exports2.convertToNegativePattern = exports2.convertToPositivePattern = exports2.isDynamicPattern = exports2.isStaticPattern = void 0;
|
|
39420
|
-
var
|
|
38883
|
+
var path = require("path");
|
|
39421
38884
|
var globParent = require_glob_parent();
|
|
39422
38885
|
var micromatch = require_micromatch();
|
|
39423
38886
|
var GLOBSTAR = "**";
|
|
@@ -39499,7 +38962,7 @@ var require_pattern = __commonJS({
|
|
|
39499
38962
|
}
|
|
39500
38963
|
exports2.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
39501
38964
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
39502
|
-
const basename =
|
|
38965
|
+
const basename = path.basename(pattern);
|
|
39503
38966
|
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
|
|
39504
38967
|
}
|
|
39505
38968
|
exports2.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
@@ -39574,10 +39037,10 @@ var require_merge22 = __commonJS({
|
|
|
39574
39037
|
for (let i = 0, len = arguments.length; i < len; i++) {
|
|
39575
39038
|
streamsQueue.push(pauseStreams(arguments[i], options));
|
|
39576
39039
|
}
|
|
39577
|
-
|
|
39040
|
+
mergeStream();
|
|
39578
39041
|
return this;
|
|
39579
39042
|
}
|
|
39580
|
-
function
|
|
39043
|
+
function mergeStream() {
|
|
39581
39044
|
if (merging) {
|
|
39582
39045
|
return;
|
|
39583
39046
|
}
|
|
@@ -39596,7 +39059,7 @@ var require_merge22 = __commonJS({
|
|
|
39596
39059
|
return;
|
|
39597
39060
|
}
|
|
39598
39061
|
merging = false;
|
|
39599
|
-
|
|
39062
|
+
mergeStream();
|
|
39600
39063
|
}
|
|
39601
39064
|
function pipe(stream) {
|
|
39602
39065
|
function onend() {
|
|
@@ -39714,8 +39177,8 @@ var require_utils7 = __commonJS({
|
|
|
39714
39177
|
exports2.errno = errno;
|
|
39715
39178
|
var fs = require_fs3();
|
|
39716
39179
|
exports2.fs = fs;
|
|
39717
|
-
var
|
|
39718
|
-
exports2.path =
|
|
39180
|
+
var path = require_path();
|
|
39181
|
+
exports2.path = path;
|
|
39719
39182
|
var pattern = require_pattern();
|
|
39720
39183
|
exports2.pattern = pattern;
|
|
39721
39184
|
var stream = require_stream();
|
|
@@ -39815,8 +39278,8 @@ var require_async2 = __commonJS({
|
|
|
39815
39278
|
"use strict";
|
|
39816
39279
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
39817
39280
|
exports2.read = void 0;
|
|
39818
|
-
function read(
|
|
39819
|
-
settings.fs.lstat(
|
|
39281
|
+
function read(path, settings, callback) {
|
|
39282
|
+
settings.fs.lstat(path, (lstatError, lstat) => {
|
|
39820
39283
|
if (lstatError !== null) {
|
|
39821
39284
|
callFailureCallback(callback, lstatError);
|
|
39822
39285
|
return;
|
|
@@ -39825,7 +39288,7 @@ var require_async2 = __commonJS({
|
|
|
39825
39288
|
callSuccessCallback(callback, lstat);
|
|
39826
39289
|
return;
|
|
39827
39290
|
}
|
|
39828
|
-
settings.fs.stat(
|
|
39291
|
+
settings.fs.stat(path, (statError, stat) => {
|
|
39829
39292
|
if (statError !== null) {
|
|
39830
39293
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
39831
39294
|
callFailureCallback(callback, statError);
|
|
@@ -39857,13 +39320,13 @@ var require_sync2 = __commonJS({
|
|
|
39857
39320
|
"use strict";
|
|
39858
39321
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
39859
39322
|
exports2.read = void 0;
|
|
39860
|
-
function read(
|
|
39861
|
-
const lstat = settings.fs.lstatSync(
|
|
39323
|
+
function read(path, settings) {
|
|
39324
|
+
const lstat = settings.fs.lstatSync(path);
|
|
39862
39325
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
39863
39326
|
return lstat;
|
|
39864
39327
|
}
|
|
39865
39328
|
try {
|
|
39866
|
-
const stat = settings.fs.statSync(
|
|
39329
|
+
const stat = settings.fs.statSync(path);
|
|
39867
39330
|
if (settings.markSymbolicLink) {
|
|
39868
39331
|
stat.isSymbolicLink = () => true;
|
|
39869
39332
|
}
|
|
@@ -39934,17 +39397,17 @@ var require_out = __commonJS({
|
|
|
39934
39397
|
var sync = require_sync2();
|
|
39935
39398
|
var settings_1 = require_settings();
|
|
39936
39399
|
exports2.Settings = settings_1.default;
|
|
39937
|
-
function stat(
|
|
39400
|
+
function stat(path, optionsOrSettingsOrCallback, callback) {
|
|
39938
39401
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
39939
|
-
async.read(
|
|
39402
|
+
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
39940
39403
|
return;
|
|
39941
39404
|
}
|
|
39942
|
-
async.read(
|
|
39405
|
+
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
39943
39406
|
}
|
|
39944
39407
|
exports2.stat = stat;
|
|
39945
|
-
function statSync(
|
|
39408
|
+
function statSync(path, optionsOrSettings) {
|
|
39946
39409
|
const settings = getSettings(optionsOrSettings);
|
|
39947
|
-
return sync.read(
|
|
39410
|
+
return sync.read(path, settings);
|
|
39948
39411
|
}
|
|
39949
39412
|
exports2.statSync = statSync;
|
|
39950
39413
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -40163,16 +39626,16 @@ var require_async3 = __commonJS({
|
|
|
40163
39626
|
return;
|
|
40164
39627
|
}
|
|
40165
39628
|
const tasks = names3.map((name) => {
|
|
40166
|
-
const
|
|
39629
|
+
const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
40167
39630
|
return (done) => {
|
|
40168
|
-
fsStat.stat(
|
|
39631
|
+
fsStat.stat(path, settings.fsStatSettings, (error, stats) => {
|
|
40169
39632
|
if (error !== null) {
|
|
40170
39633
|
done(error);
|
|
40171
39634
|
return;
|
|
40172
39635
|
}
|
|
40173
39636
|
const entry = {
|
|
40174
39637
|
name,
|
|
40175
|
-
path
|
|
39638
|
+
path,
|
|
40176
39639
|
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
40177
39640
|
};
|
|
40178
39641
|
if (settings.stats) {
|
|
@@ -40290,7 +39753,7 @@ var require_settings2 = __commonJS({
|
|
|
40290
39753
|
"node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports2) {
|
|
40291
39754
|
"use strict";
|
|
40292
39755
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
40293
|
-
var
|
|
39756
|
+
var path = require("path");
|
|
40294
39757
|
var fsStat = require_out();
|
|
40295
39758
|
var fs = require_fs6();
|
|
40296
39759
|
var Settings = class {
|
|
@@ -40298,7 +39761,7 @@ var require_settings2 = __commonJS({
|
|
|
40298
39761
|
this._options = _options;
|
|
40299
39762
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
40300
39763
|
this.fs = fs.createFileSystemAdapter(this._options.fs);
|
|
40301
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
39764
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
|
|
40302
39765
|
this.stats = this._getValue(this._options.stats, false);
|
|
40303
39766
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
40304
39767
|
this.fsStatSettings = new fsStat.Settings({
|
|
@@ -40325,17 +39788,17 @@ var require_out2 = __commonJS({
|
|
|
40325
39788
|
var sync = require_sync3();
|
|
40326
39789
|
var settings_1 = require_settings2();
|
|
40327
39790
|
exports2.Settings = settings_1.default;
|
|
40328
|
-
function scandir(
|
|
39791
|
+
function scandir(path, optionsOrSettingsOrCallback, callback) {
|
|
40329
39792
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
40330
|
-
async.read(
|
|
39793
|
+
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
40331
39794
|
return;
|
|
40332
39795
|
}
|
|
40333
|
-
async.read(
|
|
39796
|
+
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
40334
39797
|
}
|
|
40335
39798
|
exports2.scandir = scandir;
|
|
40336
|
-
function scandirSync(
|
|
39799
|
+
function scandirSync(path, optionsOrSettings) {
|
|
40337
39800
|
const settings = getSettings(optionsOrSettings);
|
|
40338
|
-
return sync.read(
|
|
39801
|
+
return sync.read(path, settings);
|
|
40339
39802
|
}
|
|
40340
39803
|
exports2.scandirSync = scandirSync;
|
|
40341
39804
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -40399,8 +39862,8 @@ var require_queue2 = __commonJS({
|
|
|
40399
39862
|
var errorHandler = null;
|
|
40400
39863
|
var self = {
|
|
40401
39864
|
push,
|
|
40402
|
-
drain:
|
|
40403
|
-
saturated:
|
|
39865
|
+
drain: noop,
|
|
39866
|
+
saturated: noop,
|
|
40404
39867
|
pause,
|
|
40405
39868
|
paused: false,
|
|
40406
39869
|
concurrency,
|
|
@@ -40410,7 +39873,7 @@ var require_queue2 = __commonJS({
|
|
|
40410
39873
|
length,
|
|
40411
39874
|
getQueue,
|
|
40412
39875
|
unshift,
|
|
40413
|
-
empty:
|
|
39876
|
+
empty: noop,
|
|
40414
39877
|
kill,
|
|
40415
39878
|
killAndDrain,
|
|
40416
39879
|
error
|
|
@@ -40457,7 +39920,7 @@ var require_queue2 = __commonJS({
|
|
|
40457
39920
|
current.context = context;
|
|
40458
39921
|
current.release = release;
|
|
40459
39922
|
current.value = value;
|
|
40460
|
-
current.callback = done ||
|
|
39923
|
+
current.callback = done || noop;
|
|
40461
39924
|
current.errorHandler = errorHandler;
|
|
40462
39925
|
if (_running === self.concurrency || self.paused) {
|
|
40463
39926
|
if (queueTail) {
|
|
@@ -40478,7 +39941,7 @@ var require_queue2 = __commonJS({
|
|
|
40478
39941
|
current.context = context;
|
|
40479
39942
|
current.release = release;
|
|
40480
39943
|
current.value = value;
|
|
40481
|
-
current.callback = done ||
|
|
39944
|
+
current.callback = done || noop;
|
|
40482
39945
|
if (_running === self.concurrency || self.paused) {
|
|
40483
39946
|
if (queueHead) {
|
|
40484
39947
|
current.next = queueHead;
|
|
@@ -40519,25 +39982,25 @@ var require_queue2 = __commonJS({
|
|
|
40519
39982
|
function kill() {
|
|
40520
39983
|
queueHead = null;
|
|
40521
39984
|
queueTail = null;
|
|
40522
|
-
self.drain =
|
|
39985
|
+
self.drain = noop;
|
|
40523
39986
|
}
|
|
40524
39987
|
function killAndDrain() {
|
|
40525
39988
|
queueHead = null;
|
|
40526
39989
|
queueTail = null;
|
|
40527
39990
|
self.drain();
|
|
40528
|
-
self.drain =
|
|
39991
|
+
self.drain = noop;
|
|
40529
39992
|
}
|
|
40530
39993
|
function error(handler) {
|
|
40531
39994
|
errorHandler = handler;
|
|
40532
39995
|
}
|
|
40533
39996
|
}
|
|
40534
|
-
function
|
|
39997
|
+
function noop() {
|
|
40535
39998
|
}
|
|
40536
39999
|
function Task() {
|
|
40537
40000
|
this.value = null;
|
|
40538
|
-
this.callback =
|
|
40001
|
+
this.callback = noop;
|
|
40539
40002
|
this.next = null;
|
|
40540
|
-
this.release =
|
|
40003
|
+
this.release = noop;
|
|
40541
40004
|
this.context = null;
|
|
40542
40005
|
this.errorHandler = null;
|
|
40543
40006
|
var self = this;
|
|
@@ -40546,7 +40009,7 @@ var require_queue2 = __commonJS({
|
|
|
40546
40009
|
var errorHandler = self.errorHandler;
|
|
40547
40010
|
var val = self.value;
|
|
40548
40011
|
self.value = null;
|
|
40549
|
-
self.callback =
|
|
40012
|
+
self.callback = noop;
|
|
40550
40013
|
if (self.errorHandler) {
|
|
40551
40014
|
errorHandler(err, val);
|
|
40552
40015
|
}
|
|
@@ -40582,7 +40045,7 @@ var require_queue2 = __commonJS({
|
|
|
40582
40045
|
resolve(result);
|
|
40583
40046
|
});
|
|
40584
40047
|
});
|
|
40585
|
-
p.catch(
|
|
40048
|
+
p.catch(noop);
|
|
40586
40049
|
return p;
|
|
40587
40050
|
}
|
|
40588
40051
|
function unshift(value) {
|
|
@@ -40595,7 +40058,7 @@ var require_queue2 = __commonJS({
|
|
|
40595
40058
|
resolve(result);
|
|
40596
40059
|
});
|
|
40597
40060
|
});
|
|
40598
|
-
p.catch(
|
|
40061
|
+
p.catch(noop);
|
|
40599
40062
|
return p;
|
|
40600
40063
|
}
|
|
40601
40064
|
function drained() {
|
|
@@ -40939,7 +40402,7 @@ var require_settings3 = __commonJS({
|
|
|
40939
40402
|
"node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports2) {
|
|
40940
40403
|
"use strict";
|
|
40941
40404
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
40942
|
-
var
|
|
40405
|
+
var path = require("path");
|
|
40943
40406
|
var fsScandir = require_out2();
|
|
40944
40407
|
var Settings = class {
|
|
40945
40408
|
constructor(_options = {}) {
|
|
@@ -40949,7 +40412,7 @@ var require_settings3 = __commonJS({
|
|
|
40949
40412
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
40950
40413
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
40951
40414
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
40952
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
40415
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
|
|
40953
40416
|
this.fsScandirSettings = new fsScandir.Settings({
|
|
40954
40417
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
40955
40418
|
fs: this._options.fs,
|
|
@@ -41011,7 +40474,7 @@ var require_reader2 = __commonJS({
|
|
|
41011
40474
|
"node_modules/.pnpm/fast-glob@3.2.7/node_modules/fast-glob/out/readers/reader.js"(exports2) {
|
|
41012
40475
|
"use strict";
|
|
41013
40476
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
41014
|
-
var
|
|
40477
|
+
var path = require("path");
|
|
41015
40478
|
var fsStat = require_out();
|
|
41016
40479
|
var utils = require_utils7();
|
|
41017
40480
|
var Reader = class {
|
|
@@ -41024,7 +40487,7 @@ var require_reader2 = __commonJS({
|
|
|
41024
40487
|
});
|
|
41025
40488
|
}
|
|
41026
40489
|
_getFullEntryPath(filepath) {
|
|
41027
|
-
return
|
|
40490
|
+
return path.resolve(this._settings.cwd, filepath);
|
|
41028
40491
|
}
|
|
41029
40492
|
_makeEntry(stats, pattern) {
|
|
41030
40493
|
const entry = {
|
|
@@ -41376,7 +40839,7 @@ var require_provider = __commonJS({
|
|
|
41376
40839
|
"node_modules/.pnpm/fast-glob@3.2.7/node_modules/fast-glob/out/providers/provider.js"(exports2) {
|
|
41377
40840
|
"use strict";
|
|
41378
40841
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
41379
|
-
var
|
|
40842
|
+
var path = require("path");
|
|
41380
40843
|
var deep_1 = require_deep();
|
|
41381
40844
|
var entry_1 = require_entry();
|
|
41382
40845
|
var error_1 = require_error();
|
|
@@ -41390,7 +40853,7 @@ var require_provider = __commonJS({
|
|
|
41390
40853
|
this.entryTransformer = new entry_2.default(this._settings);
|
|
41391
40854
|
}
|
|
41392
40855
|
_getRootDirectory(task) {
|
|
41393
|
-
return
|
|
40856
|
+
return path.resolve(this._settings.cwd, task.base);
|
|
41394
40857
|
}
|
|
41395
40858
|
_getReaderOptions(task) {
|
|
41396
40859
|
const basePath = task.base === "." ? "" : task.base;
|
|
@@ -41577,8 +41040,8 @@ var require_settings4 = __commonJS({
|
|
|
41577
41040
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
41578
41041
|
exports2.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
41579
41042
|
var fs = require("fs");
|
|
41580
|
-
var
|
|
41581
|
-
var CPU_COUNT = Math.max(
|
|
41043
|
+
var os = require("os");
|
|
41044
|
+
var CPU_COUNT = Math.max(os.cpus().length, 1);
|
|
41582
41045
|
exports2.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
41583
41046
|
lstat: fs.lstat,
|
|
41584
41047
|
lstatSync: fs.lstatSync,
|
|
@@ -41702,14 +41165,14 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41702
41165
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
41703
41166
|
exports2.CopyAssetsHandler = exports2.defaultFileEventHandler = void 0;
|
|
41704
41167
|
var minimatch = require_minimatch2();
|
|
41705
|
-
var
|
|
41168
|
+
var path = require("path");
|
|
41706
41169
|
var fse = require_lib4();
|
|
41707
41170
|
var ignore_1 = require_ignore();
|
|
41708
41171
|
var fg = require_out4();
|
|
41709
41172
|
var devkit_1 = require_devkit();
|
|
41710
41173
|
var client_1 = require("nx/src/daemon/client/client");
|
|
41711
41174
|
var defaultFileEventHandler = (events) => {
|
|
41712
|
-
const dirs = new Set(events.map((event) =>
|
|
41175
|
+
const dirs = new Set(events.map((event) => path.dirname(event.dest)));
|
|
41713
41176
|
dirs.forEach((d) => fse.ensureDirSync(d));
|
|
41714
41177
|
events.forEach((event) => {
|
|
41715
41178
|
if (event.type === "create" || event.type === "update") {
|
|
@@ -41731,8 +41194,8 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41731
41194
|
this.outputDir = opts.outputDir;
|
|
41732
41195
|
this.callback = opts.callback ?? exports2.defaultFileEventHandler;
|
|
41733
41196
|
this.ignore = (0, ignore_1.default)();
|
|
41734
|
-
const gitignore =
|
|
41735
|
-
const nxignore =
|
|
41197
|
+
const gitignore = path.join(opts.rootDir, ".gitignore");
|
|
41198
|
+
const nxignore = path.join(opts.rootDir, ".nxignore");
|
|
41736
41199
|
if (fse.existsSync(gitignore))
|
|
41737
41200
|
this.ignore.add(fse.readFileSync(gitignore).toString());
|
|
41738
41201
|
if (fse.existsSync(nxignore))
|
|
@@ -41745,15 +41208,15 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41745
41208
|
let ignore = null;
|
|
41746
41209
|
if (typeof f === "string") {
|
|
41747
41210
|
pattern = f;
|
|
41748
|
-
input =
|
|
41749
|
-
output =
|
|
41211
|
+
input = path.relative(opts.rootDir, opts.projectDir);
|
|
41212
|
+
output = path.relative(opts.rootDir, opts.outputDir);
|
|
41750
41213
|
} else {
|
|
41751
41214
|
isGlob = true;
|
|
41752
|
-
pattern =
|
|
41215
|
+
pattern = path.join(f.input, f.glob);
|
|
41753
41216
|
input = f.input;
|
|
41754
|
-
output =
|
|
41217
|
+
output = path.join(path.relative(opts.rootDir, opts.outputDir), f.output);
|
|
41755
41218
|
if (f.ignore)
|
|
41756
|
-
ignore = f.ignore.map((ig) =>
|
|
41219
|
+
ignore = f.ignore.map((ig) => path.join(f.input, ig));
|
|
41757
41220
|
}
|
|
41758
41221
|
return {
|
|
41759
41222
|
isGlob,
|
|
@@ -41805,15 +41268,15 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41805
41268
|
async processWatchEvents(events) {
|
|
41806
41269
|
const fileEvents = [];
|
|
41807
41270
|
for (const event of events) {
|
|
41808
|
-
const pathFromRoot =
|
|
41271
|
+
const pathFromRoot = path.relative(this.rootDir, event.path);
|
|
41809
41272
|
for (const ag of this.assetGlobs) {
|
|
41810
41273
|
if (minimatch(pathFromRoot, ag.pattern) && !ag.ignore?.some((ig) => minimatch(pathFromRoot, ig)) && !this.ignore.ignores(pathFromRoot)) {
|
|
41811
|
-
const relPath =
|
|
41274
|
+
const relPath = path.relative(ag.input, pathFromRoot);
|
|
41812
41275
|
const destPath = relPath.startsWith("..") ? pathFromRoot : relPath;
|
|
41813
41276
|
fileEvents.push({
|
|
41814
41277
|
type: event.type,
|
|
41815
|
-
src:
|
|
41816
|
-
dest:
|
|
41278
|
+
src: path.join(this.rootDir, pathFromRoot),
|
|
41279
|
+
dest: path.join(this.rootDir, ag.output, destPath)
|
|
41817
41280
|
});
|
|
41818
41281
|
break;
|
|
41819
41282
|
}
|
|
@@ -41825,12 +41288,12 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41825
41288
|
filesToEvent(files, assetGlob) {
|
|
41826
41289
|
return files.reduce((acc, src) => {
|
|
41827
41290
|
if (!assetGlob.ignore?.some((ig) => minimatch(src, ig)) && !this.ignore.ignores(src)) {
|
|
41828
|
-
const relPath =
|
|
41291
|
+
const relPath = path.relative(assetGlob.input, src);
|
|
41829
41292
|
const dest = relPath.startsWith("..") ? src : relPath;
|
|
41830
41293
|
acc.push({
|
|
41831
41294
|
type: "create",
|
|
41832
|
-
src:
|
|
41833
|
-
dest:
|
|
41295
|
+
src: path.join(this.rootDir, src),
|
|
41296
|
+
dest: path.join(this.rootDir, assetGlob.output, dest)
|
|
41834
41297
|
});
|
|
41835
41298
|
}
|
|
41836
41299
|
return acc;
|
|
@@ -42190,12 +41653,12 @@ var require_generator = __commonJS({
|
|
|
42190
41653
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
42191
41654
|
exports2.setupVerdaccio = void 0;
|
|
42192
41655
|
var devkit_1 = require_devkit();
|
|
42193
|
-
var
|
|
41656
|
+
var path = require("path");
|
|
42194
41657
|
var versions_1 = require_versions2();
|
|
42195
41658
|
var child_process_1 = require("child_process");
|
|
42196
41659
|
async function setupVerdaccio2(tree, options) {
|
|
42197
41660
|
if (!tree.exists(".verdaccio/config.yml")) {
|
|
42198
|
-
(0, devkit_1.generateFiles)(tree,
|
|
41661
|
+
(0, devkit_1.generateFiles)(tree, path.join(__dirname, "files"), ".verdaccio", {
|
|
42199
41662
|
npmUplinkRegistry: (0, child_process_1.execSync)("npm config get registry")?.toString()?.trim() ?? "https://registry.npmjs.org"
|
|
42200
41663
|
});
|
|
42201
41664
|
}
|
|
@@ -43014,7 +42477,7 @@ var require_eslint_file = __commonJS({
|
|
|
43014
42477
|
if ((0, flat_config_1.useFlatConfig)(tree)) {
|
|
43015
42478
|
const fileName = (0, devkit_1.joinPathFragments)(root, "eslint.config.js");
|
|
43016
42479
|
const block = (0, ast_utils_1.generateAst)({
|
|
43017
|
-
ignores: ignorePatterns.map((
|
|
42480
|
+
ignores: ignorePatterns.map((path) => (0, path_utils_1.mapFilePath)(path))
|
|
43018
42481
|
});
|
|
43019
42482
|
tree.write(fileName, (0, ast_utils_1.addBlockToFlatConfigExport)(tree.read(fileName, "utf8"), block));
|
|
43020
42483
|
} else {
|
|
@@ -44654,8 +44117,8 @@ function getErrorMap() {
|
|
|
44654
44117
|
return overrideErrorMap;
|
|
44655
44118
|
}
|
|
44656
44119
|
var makeIssue = (params) => {
|
|
44657
|
-
const { data, path
|
|
44658
|
-
const fullPath = [...
|
|
44120
|
+
const { data, path, errorMaps, issueData } = params;
|
|
44121
|
+
const fullPath = [...path, ...issueData.path || []];
|
|
44659
44122
|
const fullIssue = {
|
|
44660
44123
|
...issueData,
|
|
44661
44124
|
path: fullPath
|
|
@@ -44753,11 +44216,11 @@ var errorUtil;
|
|
|
44753
44216
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
|
|
44754
44217
|
})(errorUtil || (errorUtil = {}));
|
|
44755
44218
|
var ParseInputLazyPath = class {
|
|
44756
|
-
constructor(parent, value,
|
|
44219
|
+
constructor(parent, value, path, key) {
|
|
44757
44220
|
this._cachedPath = [];
|
|
44758
44221
|
this.parent = parent;
|
|
44759
44222
|
this.data = value;
|
|
44760
|
-
this._path =
|
|
44223
|
+
this._path = path;
|
|
44761
44224
|
this._key = key;
|
|
44762
44225
|
}
|
|
44763
44226
|
get path() {
|
|
@@ -48207,1583 +47670,6 @@ var getStopwatch = (name) => {
|
|
|
48207
47670
|
};
|
|
48208
47671
|
};
|
|
48209
47672
|
|
|
48210
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
|
|
48211
|
-
var import_node_buffer2 = require("node:buffer");
|
|
48212
|
-
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
48213
|
-
var import_node_child_process3 = __toESM(require("node:child_process"), 1);
|
|
48214
|
-
var import_node_process4 = __toESM(require("node:process"), 1);
|
|
48215
|
-
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
48216
|
-
|
|
48217
|
-
// node_modules/.pnpm/strip-final-newline@3.0.0/node_modules/strip-final-newline/index.js
|
|
48218
|
-
function stripFinalNewline(input) {
|
|
48219
|
-
const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
|
|
48220
|
-
const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
|
|
48221
|
-
if (input[input.length - 1] === LF) {
|
|
48222
|
-
input = input.slice(0, -1);
|
|
48223
|
-
}
|
|
48224
|
-
if (input[input.length - 1] === CR) {
|
|
48225
|
-
input = input.slice(0, -1);
|
|
48226
|
-
}
|
|
48227
|
-
return input;
|
|
48228
|
-
}
|
|
48229
|
-
|
|
48230
|
-
// node_modules/.pnpm/npm-run-path@5.2.0/node_modules/npm-run-path/index.js
|
|
48231
|
-
var import_node_process = __toESM(require("node:process"), 1);
|
|
48232
|
-
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
48233
|
-
var import_node_url = __toESM(require("node:url"), 1);
|
|
48234
|
-
|
|
48235
|
-
// node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
|
|
48236
|
-
function pathKey(options = {}) {
|
|
48237
|
-
const {
|
|
48238
|
-
env = process.env,
|
|
48239
|
-
platform = process.platform
|
|
48240
|
-
} = options;
|
|
48241
|
-
if (platform !== "win32") {
|
|
48242
|
-
return "PATH";
|
|
48243
|
-
}
|
|
48244
|
-
return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
48245
|
-
}
|
|
48246
|
-
|
|
48247
|
-
// node_modules/.pnpm/npm-run-path@5.2.0/node_modules/npm-run-path/index.js
|
|
48248
|
-
function npmRunPath(options = {}) {
|
|
48249
|
-
const {
|
|
48250
|
-
cwd = import_node_process.default.cwd(),
|
|
48251
|
-
path: path_ = import_node_process.default.env[pathKey()],
|
|
48252
|
-
execPath = import_node_process.default.execPath
|
|
48253
|
-
} = options;
|
|
48254
|
-
let previous;
|
|
48255
|
-
const execPathString = execPath instanceof URL ? import_node_url.default.fileURLToPath(execPath) : execPath;
|
|
48256
|
-
const cwdString = cwd instanceof URL ? import_node_url.default.fileURLToPath(cwd) : cwd;
|
|
48257
|
-
let cwdPath = import_node_path3.default.resolve(cwdString);
|
|
48258
|
-
const result = [];
|
|
48259
|
-
while (previous !== cwdPath) {
|
|
48260
|
-
result.push(import_node_path3.default.join(cwdPath, "node_modules/.bin"));
|
|
48261
|
-
previous = cwdPath;
|
|
48262
|
-
cwdPath = import_node_path3.default.resolve(cwdPath, "..");
|
|
48263
|
-
}
|
|
48264
|
-
result.push(import_node_path3.default.resolve(cwdString, execPathString, ".."));
|
|
48265
|
-
return [...result, path_].join(import_node_path3.default.delimiter);
|
|
48266
|
-
}
|
|
48267
|
-
function npmRunPathEnv({ env = import_node_process.default.env, ...options } = {}) {
|
|
48268
|
-
env = { ...env };
|
|
48269
|
-
const path3 = pathKey({ env });
|
|
48270
|
-
options.path = env[path3];
|
|
48271
|
-
env[path3] = npmRunPath(options);
|
|
48272
|
-
return env;
|
|
48273
|
-
}
|
|
48274
|
-
|
|
48275
|
-
// node_modules/.pnpm/mimic-fn@4.0.0/node_modules/mimic-fn/index.js
|
|
48276
|
-
var copyProperty = (to, from, property, ignoreNonConfigurable) => {
|
|
48277
|
-
if (property === "length" || property === "prototype") {
|
|
48278
|
-
return;
|
|
48279
|
-
}
|
|
48280
|
-
if (property === "arguments" || property === "caller") {
|
|
48281
|
-
return;
|
|
48282
|
-
}
|
|
48283
|
-
const toDescriptor = Object.getOwnPropertyDescriptor(to, property);
|
|
48284
|
-
const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);
|
|
48285
|
-
if (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {
|
|
48286
|
-
return;
|
|
48287
|
-
}
|
|
48288
|
-
Object.defineProperty(to, property, fromDescriptor);
|
|
48289
|
-
};
|
|
48290
|
-
var canCopyProperty = function(toDescriptor, fromDescriptor) {
|
|
48291
|
-
return toDescriptor === void 0 || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);
|
|
48292
|
-
};
|
|
48293
|
-
var changePrototype = (to, from) => {
|
|
48294
|
-
const fromPrototype = Object.getPrototypeOf(from);
|
|
48295
|
-
if (fromPrototype === Object.getPrototypeOf(to)) {
|
|
48296
|
-
return;
|
|
48297
|
-
}
|
|
48298
|
-
Object.setPrototypeOf(to, fromPrototype);
|
|
48299
|
-
};
|
|
48300
|
-
var wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/
|
|
48301
|
-
${fromBody}`;
|
|
48302
|
-
var toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
|
|
48303
|
-
var toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name");
|
|
48304
|
-
var changeToString = (to, from, name) => {
|
|
48305
|
-
const withName = name === "" ? "" : `with ${name.trim()}() `;
|
|
48306
|
-
const newToString = wrappedToString.bind(null, withName, from.toString());
|
|
48307
|
-
Object.defineProperty(newToString, "name", toStringName);
|
|
48308
|
-
Object.defineProperty(to, "toString", { ...toStringDescriptor, value: newToString });
|
|
48309
|
-
};
|
|
48310
|
-
function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
48311
|
-
const { name } = to;
|
|
48312
|
-
for (const property of Reflect.ownKeys(from)) {
|
|
48313
|
-
copyProperty(to, from, property, ignoreNonConfigurable);
|
|
48314
|
-
}
|
|
48315
|
-
changePrototype(to, from);
|
|
48316
|
-
changeToString(to, from, name);
|
|
48317
|
-
return to;
|
|
48318
|
-
}
|
|
48319
|
-
|
|
48320
|
-
// node_modules/.pnpm/onetime@6.0.0/node_modules/onetime/index.js
|
|
48321
|
-
var calledFunctions = /* @__PURE__ */ new WeakMap();
|
|
48322
|
-
var onetime = (function_, options = {}) => {
|
|
48323
|
-
if (typeof function_ !== "function") {
|
|
48324
|
-
throw new TypeError("Expected a function");
|
|
48325
|
-
}
|
|
48326
|
-
let returnValue;
|
|
48327
|
-
let callCount = 0;
|
|
48328
|
-
const functionName = function_.displayName || function_.name || "<anonymous>";
|
|
48329
|
-
const onetime2 = function(...arguments_) {
|
|
48330
|
-
calledFunctions.set(onetime2, ++callCount);
|
|
48331
|
-
if (callCount === 1) {
|
|
48332
|
-
returnValue = function_.apply(this, arguments_);
|
|
48333
|
-
function_ = null;
|
|
48334
|
-
} else if (options.throw === true) {
|
|
48335
|
-
throw new Error(`Function \`${functionName}\` can only be called once`);
|
|
48336
|
-
}
|
|
48337
|
-
return returnValue;
|
|
48338
|
-
};
|
|
48339
|
-
mimicFunction(onetime2, function_);
|
|
48340
|
-
calledFunctions.set(onetime2, callCount);
|
|
48341
|
-
return onetime2;
|
|
48342
|
-
};
|
|
48343
|
-
onetime.callCount = (function_) => {
|
|
48344
|
-
if (!calledFunctions.has(function_)) {
|
|
48345
|
-
throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
|
|
48346
|
-
}
|
|
48347
|
-
return calledFunctions.get(function_);
|
|
48348
|
-
};
|
|
48349
|
-
var onetime_default = onetime;
|
|
48350
|
-
|
|
48351
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
|
|
48352
|
-
var import_node_process2 = __toESM(require("node:process"), 1);
|
|
48353
|
-
|
|
48354
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
|
|
48355
|
-
var import_node_os2 = require("node:os");
|
|
48356
|
-
|
|
48357
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/realtime.js
|
|
48358
|
-
var getRealtimeSignals = () => {
|
|
48359
|
-
const length = SIGRTMAX - SIGRTMIN + 1;
|
|
48360
|
-
return Array.from({ length }, getRealtimeSignal);
|
|
48361
|
-
};
|
|
48362
|
-
var getRealtimeSignal = (value, index) => ({
|
|
48363
|
-
name: `SIGRT${index + 1}`,
|
|
48364
|
-
number: SIGRTMIN + index,
|
|
48365
|
-
action: "terminate",
|
|
48366
|
-
description: "Application-specific signal (realtime)",
|
|
48367
|
-
standard: "posix"
|
|
48368
|
-
});
|
|
48369
|
-
var SIGRTMIN = 34;
|
|
48370
|
-
var SIGRTMAX = 64;
|
|
48371
|
-
|
|
48372
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
|
|
48373
|
-
var import_node_os = require("node:os");
|
|
48374
|
-
|
|
48375
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/core.js
|
|
48376
|
-
var SIGNALS = [
|
|
48377
|
-
{
|
|
48378
|
-
name: "SIGHUP",
|
|
48379
|
-
number: 1,
|
|
48380
|
-
action: "terminate",
|
|
48381
|
-
description: "Terminal closed",
|
|
48382
|
-
standard: "posix"
|
|
48383
|
-
},
|
|
48384
|
-
{
|
|
48385
|
-
name: "SIGINT",
|
|
48386
|
-
number: 2,
|
|
48387
|
-
action: "terminate",
|
|
48388
|
-
description: "User interruption with CTRL-C",
|
|
48389
|
-
standard: "ansi"
|
|
48390
|
-
},
|
|
48391
|
-
{
|
|
48392
|
-
name: "SIGQUIT",
|
|
48393
|
-
number: 3,
|
|
48394
|
-
action: "core",
|
|
48395
|
-
description: "User interruption with CTRL-\\",
|
|
48396
|
-
standard: "posix"
|
|
48397
|
-
},
|
|
48398
|
-
{
|
|
48399
|
-
name: "SIGILL",
|
|
48400
|
-
number: 4,
|
|
48401
|
-
action: "core",
|
|
48402
|
-
description: "Invalid machine instruction",
|
|
48403
|
-
standard: "ansi"
|
|
48404
|
-
},
|
|
48405
|
-
{
|
|
48406
|
-
name: "SIGTRAP",
|
|
48407
|
-
number: 5,
|
|
48408
|
-
action: "core",
|
|
48409
|
-
description: "Debugger breakpoint",
|
|
48410
|
-
standard: "posix"
|
|
48411
|
-
},
|
|
48412
|
-
{
|
|
48413
|
-
name: "SIGABRT",
|
|
48414
|
-
number: 6,
|
|
48415
|
-
action: "core",
|
|
48416
|
-
description: "Aborted",
|
|
48417
|
-
standard: "ansi"
|
|
48418
|
-
},
|
|
48419
|
-
{
|
|
48420
|
-
name: "SIGIOT",
|
|
48421
|
-
number: 6,
|
|
48422
|
-
action: "core",
|
|
48423
|
-
description: "Aborted",
|
|
48424
|
-
standard: "bsd"
|
|
48425
|
-
},
|
|
48426
|
-
{
|
|
48427
|
-
name: "SIGBUS",
|
|
48428
|
-
number: 7,
|
|
48429
|
-
action: "core",
|
|
48430
|
-
description: "Bus error due to misaligned, non-existing address or paging error",
|
|
48431
|
-
standard: "bsd"
|
|
48432
|
-
},
|
|
48433
|
-
{
|
|
48434
|
-
name: "SIGEMT",
|
|
48435
|
-
number: 7,
|
|
48436
|
-
action: "terminate",
|
|
48437
|
-
description: "Command should be emulated but is not implemented",
|
|
48438
|
-
standard: "other"
|
|
48439
|
-
},
|
|
48440
|
-
{
|
|
48441
|
-
name: "SIGFPE",
|
|
48442
|
-
number: 8,
|
|
48443
|
-
action: "core",
|
|
48444
|
-
description: "Floating point arithmetic error",
|
|
48445
|
-
standard: "ansi"
|
|
48446
|
-
},
|
|
48447
|
-
{
|
|
48448
|
-
name: "SIGKILL",
|
|
48449
|
-
number: 9,
|
|
48450
|
-
action: "terminate",
|
|
48451
|
-
description: "Forced termination",
|
|
48452
|
-
standard: "posix",
|
|
48453
|
-
forced: true
|
|
48454
|
-
},
|
|
48455
|
-
{
|
|
48456
|
-
name: "SIGUSR1",
|
|
48457
|
-
number: 10,
|
|
48458
|
-
action: "terminate",
|
|
48459
|
-
description: "Application-specific signal",
|
|
48460
|
-
standard: "posix"
|
|
48461
|
-
},
|
|
48462
|
-
{
|
|
48463
|
-
name: "SIGSEGV",
|
|
48464
|
-
number: 11,
|
|
48465
|
-
action: "core",
|
|
48466
|
-
description: "Segmentation fault",
|
|
48467
|
-
standard: "ansi"
|
|
48468
|
-
},
|
|
48469
|
-
{
|
|
48470
|
-
name: "SIGUSR2",
|
|
48471
|
-
number: 12,
|
|
48472
|
-
action: "terminate",
|
|
48473
|
-
description: "Application-specific signal",
|
|
48474
|
-
standard: "posix"
|
|
48475
|
-
},
|
|
48476
|
-
{
|
|
48477
|
-
name: "SIGPIPE",
|
|
48478
|
-
number: 13,
|
|
48479
|
-
action: "terminate",
|
|
48480
|
-
description: "Broken pipe or socket",
|
|
48481
|
-
standard: "posix"
|
|
48482
|
-
},
|
|
48483
|
-
{
|
|
48484
|
-
name: "SIGALRM",
|
|
48485
|
-
number: 14,
|
|
48486
|
-
action: "terminate",
|
|
48487
|
-
description: "Timeout or timer",
|
|
48488
|
-
standard: "posix"
|
|
48489
|
-
},
|
|
48490
|
-
{
|
|
48491
|
-
name: "SIGTERM",
|
|
48492
|
-
number: 15,
|
|
48493
|
-
action: "terminate",
|
|
48494
|
-
description: "Termination",
|
|
48495
|
-
standard: "ansi"
|
|
48496
|
-
},
|
|
48497
|
-
{
|
|
48498
|
-
name: "SIGSTKFLT",
|
|
48499
|
-
number: 16,
|
|
48500
|
-
action: "terminate",
|
|
48501
|
-
description: "Stack is empty or overflowed",
|
|
48502
|
-
standard: "other"
|
|
48503
|
-
},
|
|
48504
|
-
{
|
|
48505
|
-
name: "SIGCHLD",
|
|
48506
|
-
number: 17,
|
|
48507
|
-
action: "ignore",
|
|
48508
|
-
description: "Child process terminated, paused or unpaused",
|
|
48509
|
-
standard: "posix"
|
|
48510
|
-
},
|
|
48511
|
-
{
|
|
48512
|
-
name: "SIGCLD",
|
|
48513
|
-
number: 17,
|
|
48514
|
-
action: "ignore",
|
|
48515
|
-
description: "Child process terminated, paused or unpaused",
|
|
48516
|
-
standard: "other"
|
|
48517
|
-
},
|
|
48518
|
-
{
|
|
48519
|
-
name: "SIGCONT",
|
|
48520
|
-
number: 18,
|
|
48521
|
-
action: "unpause",
|
|
48522
|
-
description: "Unpaused",
|
|
48523
|
-
standard: "posix",
|
|
48524
|
-
forced: true
|
|
48525
|
-
},
|
|
48526
|
-
{
|
|
48527
|
-
name: "SIGSTOP",
|
|
48528
|
-
number: 19,
|
|
48529
|
-
action: "pause",
|
|
48530
|
-
description: "Paused",
|
|
48531
|
-
standard: "posix",
|
|
48532
|
-
forced: true
|
|
48533
|
-
},
|
|
48534
|
-
{
|
|
48535
|
-
name: "SIGTSTP",
|
|
48536
|
-
number: 20,
|
|
48537
|
-
action: "pause",
|
|
48538
|
-
description: 'Paused using CTRL-Z or "suspend"',
|
|
48539
|
-
standard: "posix"
|
|
48540
|
-
},
|
|
48541
|
-
{
|
|
48542
|
-
name: "SIGTTIN",
|
|
48543
|
-
number: 21,
|
|
48544
|
-
action: "pause",
|
|
48545
|
-
description: "Background process cannot read terminal input",
|
|
48546
|
-
standard: "posix"
|
|
48547
|
-
},
|
|
48548
|
-
{
|
|
48549
|
-
name: "SIGBREAK",
|
|
48550
|
-
number: 21,
|
|
48551
|
-
action: "terminate",
|
|
48552
|
-
description: "User interruption with CTRL-BREAK",
|
|
48553
|
-
standard: "other"
|
|
48554
|
-
},
|
|
48555
|
-
{
|
|
48556
|
-
name: "SIGTTOU",
|
|
48557
|
-
number: 22,
|
|
48558
|
-
action: "pause",
|
|
48559
|
-
description: "Background process cannot write to terminal output",
|
|
48560
|
-
standard: "posix"
|
|
48561
|
-
},
|
|
48562
|
-
{
|
|
48563
|
-
name: "SIGURG",
|
|
48564
|
-
number: 23,
|
|
48565
|
-
action: "ignore",
|
|
48566
|
-
description: "Socket received out-of-band data",
|
|
48567
|
-
standard: "bsd"
|
|
48568
|
-
},
|
|
48569
|
-
{
|
|
48570
|
-
name: "SIGXCPU",
|
|
48571
|
-
number: 24,
|
|
48572
|
-
action: "core",
|
|
48573
|
-
description: "Process timed out",
|
|
48574
|
-
standard: "bsd"
|
|
48575
|
-
},
|
|
48576
|
-
{
|
|
48577
|
-
name: "SIGXFSZ",
|
|
48578
|
-
number: 25,
|
|
48579
|
-
action: "core",
|
|
48580
|
-
description: "File too big",
|
|
48581
|
-
standard: "bsd"
|
|
48582
|
-
},
|
|
48583
|
-
{
|
|
48584
|
-
name: "SIGVTALRM",
|
|
48585
|
-
number: 26,
|
|
48586
|
-
action: "terminate",
|
|
48587
|
-
description: "Timeout or timer",
|
|
48588
|
-
standard: "bsd"
|
|
48589
|
-
},
|
|
48590
|
-
{
|
|
48591
|
-
name: "SIGPROF",
|
|
48592
|
-
number: 27,
|
|
48593
|
-
action: "terminate",
|
|
48594
|
-
description: "Timeout or timer",
|
|
48595
|
-
standard: "bsd"
|
|
48596
|
-
},
|
|
48597
|
-
{
|
|
48598
|
-
name: "SIGWINCH",
|
|
48599
|
-
number: 28,
|
|
48600
|
-
action: "ignore",
|
|
48601
|
-
description: "Terminal window size changed",
|
|
48602
|
-
standard: "bsd"
|
|
48603
|
-
},
|
|
48604
|
-
{
|
|
48605
|
-
name: "SIGIO",
|
|
48606
|
-
number: 29,
|
|
48607
|
-
action: "terminate",
|
|
48608
|
-
description: "I/O is available",
|
|
48609
|
-
standard: "other"
|
|
48610
|
-
},
|
|
48611
|
-
{
|
|
48612
|
-
name: "SIGPOLL",
|
|
48613
|
-
number: 29,
|
|
48614
|
-
action: "terminate",
|
|
48615
|
-
description: "Watched event",
|
|
48616
|
-
standard: "other"
|
|
48617
|
-
},
|
|
48618
|
-
{
|
|
48619
|
-
name: "SIGINFO",
|
|
48620
|
-
number: 29,
|
|
48621
|
-
action: "ignore",
|
|
48622
|
-
description: "Request for process information",
|
|
48623
|
-
standard: "other"
|
|
48624
|
-
},
|
|
48625
|
-
{
|
|
48626
|
-
name: "SIGPWR",
|
|
48627
|
-
number: 30,
|
|
48628
|
-
action: "terminate",
|
|
48629
|
-
description: "Device running out of power",
|
|
48630
|
-
standard: "systemv"
|
|
48631
|
-
},
|
|
48632
|
-
{
|
|
48633
|
-
name: "SIGSYS",
|
|
48634
|
-
number: 31,
|
|
48635
|
-
action: "core",
|
|
48636
|
-
description: "Invalid system call",
|
|
48637
|
-
standard: "other"
|
|
48638
|
-
},
|
|
48639
|
-
{
|
|
48640
|
-
name: "SIGUNUSED",
|
|
48641
|
-
number: 31,
|
|
48642
|
-
action: "terminate",
|
|
48643
|
-
description: "Invalid system call",
|
|
48644
|
-
standard: "other"
|
|
48645
|
-
}
|
|
48646
|
-
];
|
|
48647
|
-
|
|
48648
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
|
|
48649
|
-
var getSignals = () => {
|
|
48650
|
-
const realtimeSignals = getRealtimeSignals();
|
|
48651
|
-
const signals2 = [...SIGNALS, ...realtimeSignals].map(normalizeSignal);
|
|
48652
|
-
return signals2;
|
|
48653
|
-
};
|
|
48654
|
-
var normalizeSignal = ({
|
|
48655
|
-
name,
|
|
48656
|
-
number: defaultNumber,
|
|
48657
|
-
description,
|
|
48658
|
-
action,
|
|
48659
|
-
forced = false,
|
|
48660
|
-
standard
|
|
48661
|
-
}) => {
|
|
48662
|
-
const {
|
|
48663
|
-
signals: { [name]: constantSignal }
|
|
48664
|
-
} = import_node_os.constants;
|
|
48665
|
-
const supported = constantSignal !== void 0;
|
|
48666
|
-
const number = supported ? constantSignal : defaultNumber;
|
|
48667
|
-
return { name, number, description, supported, action, forced, standard };
|
|
48668
|
-
};
|
|
48669
|
-
|
|
48670
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
|
|
48671
|
-
var getSignalsByName = () => {
|
|
48672
|
-
const signals2 = getSignals();
|
|
48673
|
-
return Object.fromEntries(signals2.map(getSignalByName));
|
|
48674
|
-
};
|
|
48675
|
-
var getSignalByName = ({
|
|
48676
|
-
name,
|
|
48677
|
-
number,
|
|
48678
|
-
description,
|
|
48679
|
-
supported,
|
|
48680
|
-
action,
|
|
48681
|
-
forced,
|
|
48682
|
-
standard
|
|
48683
|
-
}) => [name, { name, number, description, supported, action, forced, standard }];
|
|
48684
|
-
var signalsByName = getSignalsByName();
|
|
48685
|
-
var getSignalsByNumber = () => {
|
|
48686
|
-
const signals2 = getSignals();
|
|
48687
|
-
const length = SIGRTMAX + 1;
|
|
48688
|
-
const signalsA = Array.from(
|
|
48689
|
-
{ length },
|
|
48690
|
-
(value, number) => getSignalByNumber(number, signals2)
|
|
48691
|
-
);
|
|
48692
|
-
return Object.assign({}, ...signalsA);
|
|
48693
|
-
};
|
|
48694
|
-
var getSignalByNumber = (number, signals2) => {
|
|
48695
|
-
const signal = findSignalByNumber(number, signals2);
|
|
48696
|
-
if (signal === void 0) {
|
|
48697
|
-
return {};
|
|
48698
|
-
}
|
|
48699
|
-
const { name, description, supported, action, forced, standard } = signal;
|
|
48700
|
-
return {
|
|
48701
|
-
[number]: {
|
|
48702
|
-
name,
|
|
48703
|
-
number,
|
|
48704
|
-
description,
|
|
48705
|
-
supported,
|
|
48706
|
-
action,
|
|
48707
|
-
forced,
|
|
48708
|
-
standard
|
|
48709
|
-
}
|
|
48710
|
-
};
|
|
48711
|
-
};
|
|
48712
|
-
var findSignalByNumber = (number, signals2) => {
|
|
48713
|
-
const signal = signals2.find(({ name }) => import_node_os2.constants.signals[name] === number);
|
|
48714
|
-
if (signal !== void 0) {
|
|
48715
|
-
return signal;
|
|
48716
|
-
}
|
|
48717
|
-
return signals2.find((signalA) => signalA.number === number);
|
|
48718
|
-
};
|
|
48719
|
-
var signalsByNumber = getSignalsByNumber();
|
|
48720
|
-
|
|
48721
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
|
|
48722
|
-
var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
|
|
48723
|
-
if (timedOut) {
|
|
48724
|
-
return `timed out after ${timeout} milliseconds`;
|
|
48725
|
-
}
|
|
48726
|
-
if (isCanceled) {
|
|
48727
|
-
return "was canceled";
|
|
48728
|
-
}
|
|
48729
|
-
if (errorCode !== void 0) {
|
|
48730
|
-
return `failed with ${errorCode}`;
|
|
48731
|
-
}
|
|
48732
|
-
if (signal !== void 0) {
|
|
48733
|
-
return `was killed with ${signal} (${signalDescription})`;
|
|
48734
|
-
}
|
|
48735
|
-
if (exitCode !== void 0) {
|
|
48736
|
-
return `failed with exit code ${exitCode}`;
|
|
48737
|
-
}
|
|
48738
|
-
return "failed";
|
|
48739
|
-
};
|
|
48740
|
-
var makeError = ({
|
|
48741
|
-
stdout,
|
|
48742
|
-
stderr,
|
|
48743
|
-
all,
|
|
48744
|
-
error,
|
|
48745
|
-
signal,
|
|
48746
|
-
exitCode,
|
|
48747
|
-
command,
|
|
48748
|
-
escapedCommand,
|
|
48749
|
-
timedOut,
|
|
48750
|
-
isCanceled,
|
|
48751
|
-
killed,
|
|
48752
|
-
parsed: { options: { timeout, cwd = import_node_process2.default.cwd() } }
|
|
48753
|
-
}) => {
|
|
48754
|
-
exitCode = exitCode === null ? void 0 : exitCode;
|
|
48755
|
-
signal = signal === null ? void 0 : signal;
|
|
48756
|
-
const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
|
|
48757
|
-
const errorCode = error && error.code;
|
|
48758
|
-
const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled });
|
|
48759
|
-
const execaMessage = `Command ${prefix}: ${command}`;
|
|
48760
|
-
const isError = Object.prototype.toString.call(error) === "[object Error]";
|
|
48761
|
-
const shortMessage = isError ? `${execaMessage}
|
|
48762
|
-
${error.message}` : execaMessage;
|
|
48763
|
-
const message = [shortMessage, stderr, stdout].filter(Boolean).join("\n");
|
|
48764
|
-
if (isError) {
|
|
48765
|
-
error.originalMessage = error.message;
|
|
48766
|
-
error.message = message;
|
|
48767
|
-
} else {
|
|
48768
|
-
error = new Error(message);
|
|
48769
|
-
}
|
|
48770
|
-
error.shortMessage = shortMessage;
|
|
48771
|
-
error.command = command;
|
|
48772
|
-
error.escapedCommand = escapedCommand;
|
|
48773
|
-
error.exitCode = exitCode;
|
|
48774
|
-
error.signal = signal;
|
|
48775
|
-
error.signalDescription = signalDescription;
|
|
48776
|
-
error.stdout = stdout;
|
|
48777
|
-
error.stderr = stderr;
|
|
48778
|
-
error.cwd = cwd;
|
|
48779
|
-
if (all !== void 0) {
|
|
48780
|
-
error.all = all;
|
|
48781
|
-
}
|
|
48782
|
-
if ("bufferedData" in error) {
|
|
48783
|
-
delete error.bufferedData;
|
|
48784
|
-
}
|
|
48785
|
-
error.failed = true;
|
|
48786
|
-
error.timedOut = Boolean(timedOut);
|
|
48787
|
-
error.isCanceled = isCanceled;
|
|
48788
|
-
error.killed = killed && !timedOut;
|
|
48789
|
-
return error;
|
|
48790
|
-
};
|
|
48791
|
-
|
|
48792
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stdio.js
|
|
48793
|
-
var aliases = ["stdin", "stdout", "stderr"];
|
|
48794
|
-
var hasAlias = (options) => aliases.some((alias) => options[alias] !== void 0);
|
|
48795
|
-
var normalizeStdio = (options) => {
|
|
48796
|
-
if (!options) {
|
|
48797
|
-
return;
|
|
48798
|
-
}
|
|
48799
|
-
const { stdio } = options;
|
|
48800
|
-
if (stdio === void 0) {
|
|
48801
|
-
return aliases.map((alias) => options[alias]);
|
|
48802
|
-
}
|
|
48803
|
-
if (hasAlias(options)) {
|
|
48804
|
-
throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
|
|
48805
|
-
}
|
|
48806
|
-
if (typeof stdio === "string") {
|
|
48807
|
-
return stdio;
|
|
48808
|
-
}
|
|
48809
|
-
if (!Array.isArray(stdio)) {
|
|
48810
|
-
throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
|
|
48811
|
-
}
|
|
48812
|
-
const length = Math.max(stdio.length, aliases.length);
|
|
48813
|
-
return Array.from({ length }, (value, index) => stdio[index]);
|
|
48814
|
-
};
|
|
48815
|
-
|
|
48816
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
|
|
48817
|
-
var import_node_os3 = __toESM(require("node:os"), 1);
|
|
48818
|
-
|
|
48819
|
-
// node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
48820
|
-
var signals = [];
|
|
48821
|
-
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
48822
|
-
if (process.platform !== "win32") {
|
|
48823
|
-
signals.push(
|
|
48824
|
-
"SIGALRM",
|
|
48825
|
-
"SIGABRT",
|
|
48826
|
-
"SIGVTALRM",
|
|
48827
|
-
"SIGXCPU",
|
|
48828
|
-
"SIGXFSZ",
|
|
48829
|
-
"SIGUSR2",
|
|
48830
|
-
"SIGTRAP",
|
|
48831
|
-
"SIGSYS",
|
|
48832
|
-
"SIGQUIT",
|
|
48833
|
-
"SIGIOT"
|
|
48834
|
-
// should detect profiler and enable/disable accordingly.
|
|
48835
|
-
// see #21
|
|
48836
|
-
// 'SIGPROF'
|
|
48837
|
-
);
|
|
48838
|
-
}
|
|
48839
|
-
if (process.platform === "linux") {
|
|
48840
|
-
signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
48841
|
-
}
|
|
48842
|
-
|
|
48843
|
-
// node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
|
|
48844
|
-
var processOk = (process7) => !!process7 && typeof process7 === "object" && typeof process7.removeListener === "function" && typeof process7.emit === "function" && typeof process7.reallyExit === "function" && typeof process7.listeners === "function" && typeof process7.kill === "function" && typeof process7.pid === "number" && typeof process7.on === "function";
|
|
48845
|
-
var kExitEmitter = Symbol.for("signal-exit emitter");
|
|
48846
|
-
var global2 = globalThis;
|
|
48847
|
-
var ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
48848
|
-
var Emitter = class {
|
|
48849
|
-
emitted = {
|
|
48850
|
-
afterExit: false,
|
|
48851
|
-
exit: false
|
|
48852
|
-
};
|
|
48853
|
-
listeners = {
|
|
48854
|
-
afterExit: [],
|
|
48855
|
-
exit: []
|
|
48856
|
-
};
|
|
48857
|
-
count = 0;
|
|
48858
|
-
id = Math.random();
|
|
48859
|
-
constructor() {
|
|
48860
|
-
if (global2[kExitEmitter]) {
|
|
48861
|
-
return global2[kExitEmitter];
|
|
48862
|
-
}
|
|
48863
|
-
ObjectDefineProperty(global2, kExitEmitter, {
|
|
48864
|
-
value: this,
|
|
48865
|
-
writable: false,
|
|
48866
|
-
enumerable: false,
|
|
48867
|
-
configurable: false
|
|
48868
|
-
});
|
|
48869
|
-
}
|
|
48870
|
-
on(ev, fn) {
|
|
48871
|
-
this.listeners[ev].push(fn);
|
|
48872
|
-
}
|
|
48873
|
-
removeListener(ev, fn) {
|
|
48874
|
-
const list = this.listeners[ev];
|
|
48875
|
-
const i = list.indexOf(fn);
|
|
48876
|
-
if (i === -1) {
|
|
48877
|
-
return;
|
|
48878
|
-
}
|
|
48879
|
-
if (i === 0 && list.length === 1) {
|
|
48880
|
-
list.length = 0;
|
|
48881
|
-
} else {
|
|
48882
|
-
list.splice(i, 1);
|
|
48883
|
-
}
|
|
48884
|
-
}
|
|
48885
|
-
emit(ev, code, signal) {
|
|
48886
|
-
if (this.emitted[ev]) {
|
|
48887
|
-
return false;
|
|
48888
|
-
}
|
|
48889
|
-
this.emitted[ev] = true;
|
|
48890
|
-
let ret = false;
|
|
48891
|
-
for (const fn of this.listeners[ev]) {
|
|
48892
|
-
ret = fn(code, signal) === true || ret;
|
|
48893
|
-
}
|
|
48894
|
-
if (ev === "exit") {
|
|
48895
|
-
ret = this.emit("afterExit", code, signal) || ret;
|
|
48896
|
-
}
|
|
48897
|
-
return ret;
|
|
48898
|
-
}
|
|
48899
|
-
};
|
|
48900
|
-
var SignalExitBase = class {
|
|
48901
|
-
};
|
|
48902
|
-
var signalExitWrap = (handler) => {
|
|
48903
|
-
return {
|
|
48904
|
-
onExit(cb, opts) {
|
|
48905
|
-
return handler.onExit(cb, opts);
|
|
48906
|
-
},
|
|
48907
|
-
load() {
|
|
48908
|
-
return handler.load();
|
|
48909
|
-
},
|
|
48910
|
-
unload() {
|
|
48911
|
-
return handler.unload();
|
|
48912
|
-
}
|
|
48913
|
-
};
|
|
48914
|
-
};
|
|
48915
|
-
var SignalExitFallback = class extends SignalExitBase {
|
|
48916
|
-
onExit() {
|
|
48917
|
-
return () => {
|
|
48918
|
-
};
|
|
48919
|
-
}
|
|
48920
|
-
load() {
|
|
48921
|
-
}
|
|
48922
|
-
unload() {
|
|
48923
|
-
}
|
|
48924
|
-
};
|
|
48925
|
-
var SignalExit = class extends SignalExitBase {
|
|
48926
|
-
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
|
48927
|
-
// so use a supported signal instead
|
|
48928
|
-
/* c8 ignore start */
|
|
48929
|
-
#hupSig = process4.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
48930
|
-
/* c8 ignore stop */
|
|
48931
|
-
#emitter = new Emitter();
|
|
48932
|
-
#process;
|
|
48933
|
-
#originalProcessEmit;
|
|
48934
|
-
#originalProcessReallyExit;
|
|
48935
|
-
#sigListeners = {};
|
|
48936
|
-
#loaded = false;
|
|
48937
|
-
constructor(process7) {
|
|
48938
|
-
super();
|
|
48939
|
-
this.#process = process7;
|
|
48940
|
-
this.#sigListeners = {};
|
|
48941
|
-
for (const sig of signals) {
|
|
48942
|
-
this.#sigListeners[sig] = () => {
|
|
48943
|
-
const listeners = this.#process.listeners(sig);
|
|
48944
|
-
let { count } = this.#emitter;
|
|
48945
|
-
const p = process7;
|
|
48946
|
-
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
|
48947
|
-
count += p.__signal_exit_emitter__.count;
|
|
48948
|
-
}
|
|
48949
|
-
if (listeners.length === count) {
|
|
48950
|
-
this.unload();
|
|
48951
|
-
const ret = this.#emitter.emit("exit", null, sig);
|
|
48952
|
-
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
48953
|
-
if (!ret)
|
|
48954
|
-
process7.kill(process7.pid, s);
|
|
48955
|
-
}
|
|
48956
|
-
};
|
|
48957
|
-
}
|
|
48958
|
-
this.#originalProcessReallyExit = process7.reallyExit;
|
|
48959
|
-
this.#originalProcessEmit = process7.emit;
|
|
48960
|
-
}
|
|
48961
|
-
onExit(cb, opts) {
|
|
48962
|
-
if (!processOk(this.#process)) {
|
|
48963
|
-
return () => {
|
|
48964
|
-
};
|
|
48965
|
-
}
|
|
48966
|
-
if (this.#loaded === false) {
|
|
48967
|
-
this.load();
|
|
48968
|
-
}
|
|
48969
|
-
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
48970
|
-
this.#emitter.on(ev, cb);
|
|
48971
|
-
return () => {
|
|
48972
|
-
this.#emitter.removeListener(ev, cb);
|
|
48973
|
-
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
|
|
48974
|
-
this.unload();
|
|
48975
|
-
}
|
|
48976
|
-
};
|
|
48977
|
-
}
|
|
48978
|
-
load() {
|
|
48979
|
-
if (this.#loaded) {
|
|
48980
|
-
return;
|
|
48981
|
-
}
|
|
48982
|
-
this.#loaded = true;
|
|
48983
|
-
this.#emitter.count += 1;
|
|
48984
|
-
for (const sig of signals) {
|
|
48985
|
-
try {
|
|
48986
|
-
const fn = this.#sigListeners[sig];
|
|
48987
|
-
if (fn)
|
|
48988
|
-
this.#process.on(sig, fn);
|
|
48989
|
-
} catch (_) {
|
|
48990
|
-
}
|
|
48991
|
-
}
|
|
48992
|
-
this.#process.emit = (ev, ...a) => {
|
|
48993
|
-
return this.#processEmit(ev, ...a);
|
|
48994
|
-
};
|
|
48995
|
-
this.#process.reallyExit = (code) => {
|
|
48996
|
-
return this.#processReallyExit(code);
|
|
48997
|
-
};
|
|
48998
|
-
}
|
|
48999
|
-
unload() {
|
|
49000
|
-
if (!this.#loaded) {
|
|
49001
|
-
return;
|
|
49002
|
-
}
|
|
49003
|
-
this.#loaded = false;
|
|
49004
|
-
signals.forEach((sig) => {
|
|
49005
|
-
const listener = this.#sigListeners[sig];
|
|
49006
|
-
if (!listener) {
|
|
49007
|
-
throw new Error("Listener not defined for signal: " + sig);
|
|
49008
|
-
}
|
|
49009
|
-
try {
|
|
49010
|
-
this.#process.removeListener(sig, listener);
|
|
49011
|
-
} catch (_) {
|
|
49012
|
-
}
|
|
49013
|
-
});
|
|
49014
|
-
this.#process.emit = this.#originalProcessEmit;
|
|
49015
|
-
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
49016
|
-
this.#emitter.count -= 1;
|
|
49017
|
-
}
|
|
49018
|
-
#processReallyExit(code) {
|
|
49019
|
-
if (!processOk(this.#process)) {
|
|
49020
|
-
return 0;
|
|
49021
|
-
}
|
|
49022
|
-
this.#process.exitCode = code || 0;
|
|
49023
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
49024
|
-
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
49025
|
-
}
|
|
49026
|
-
#processEmit(ev, ...args) {
|
|
49027
|
-
const og = this.#originalProcessEmit;
|
|
49028
|
-
if (ev === "exit" && processOk(this.#process)) {
|
|
49029
|
-
if (typeof args[0] === "number") {
|
|
49030
|
-
this.#process.exitCode = args[0];
|
|
49031
|
-
}
|
|
49032
|
-
const ret = og.call(this.#process, ev, ...args);
|
|
49033
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
49034
|
-
return ret;
|
|
49035
|
-
} else {
|
|
49036
|
-
return og.call(this.#process, ev, ...args);
|
|
49037
|
-
}
|
|
49038
|
-
}
|
|
49039
|
-
};
|
|
49040
|
-
var process4 = globalThis.process;
|
|
49041
|
-
var {
|
|
49042
|
-
/**
|
|
49043
|
-
* Called when the process is exiting, whether via signal, explicit
|
|
49044
|
-
* exit, or running out of stuff to do.
|
|
49045
|
-
*
|
|
49046
|
-
* If the global process object is not suitable for instrumentation,
|
|
49047
|
-
* then this will be a no-op.
|
|
49048
|
-
*
|
|
49049
|
-
* Returns a function that may be used to unload signal-exit.
|
|
49050
|
-
*/
|
|
49051
|
-
onExit,
|
|
49052
|
-
/**
|
|
49053
|
-
* Load the listeners. Likely you never need to call this, unless
|
|
49054
|
-
* doing a rather deep integration with signal-exit functionality.
|
|
49055
|
-
* Mostly exposed for the benefit of testing.
|
|
49056
|
-
*
|
|
49057
|
-
* @internal
|
|
49058
|
-
*/
|
|
49059
|
-
load,
|
|
49060
|
-
/**
|
|
49061
|
-
* Unload the listeners. Likely you never need to call this, unless
|
|
49062
|
-
* doing a rather deep integration with signal-exit functionality.
|
|
49063
|
-
* Mostly exposed for the benefit of testing.
|
|
49064
|
-
*
|
|
49065
|
-
* @internal
|
|
49066
|
-
*/
|
|
49067
|
-
unload
|
|
49068
|
-
} = signalExitWrap(processOk(process4) ? new SignalExit(process4) : new SignalExitFallback());
|
|
49069
|
-
|
|
49070
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
|
|
49071
|
-
var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
|
|
49072
|
-
var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
|
|
49073
|
-
const killResult = kill(signal);
|
|
49074
|
-
setKillTimeout(kill, signal, options, killResult);
|
|
49075
|
-
return killResult;
|
|
49076
|
-
};
|
|
49077
|
-
var setKillTimeout = (kill, signal, options, killResult) => {
|
|
49078
|
-
if (!shouldForceKill(signal, options, killResult)) {
|
|
49079
|
-
return;
|
|
49080
|
-
}
|
|
49081
|
-
const timeout = getForceKillAfterTimeout(options);
|
|
49082
|
-
const t = setTimeout(() => {
|
|
49083
|
-
kill("SIGKILL");
|
|
49084
|
-
}, timeout);
|
|
49085
|
-
if (t.unref) {
|
|
49086
|
-
t.unref();
|
|
49087
|
-
}
|
|
49088
|
-
};
|
|
49089
|
-
var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
|
|
49090
|
-
var isSigterm = (signal) => signal === import_node_os3.default.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
|
|
49091
|
-
var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
|
|
49092
|
-
if (forceKillAfterTimeout === true) {
|
|
49093
|
-
return DEFAULT_FORCE_KILL_TIMEOUT;
|
|
49094
|
-
}
|
|
49095
|
-
if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
|
|
49096
|
-
throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
|
|
49097
|
-
}
|
|
49098
|
-
return forceKillAfterTimeout;
|
|
49099
|
-
};
|
|
49100
|
-
var spawnedCancel = (spawned, context) => {
|
|
49101
|
-
const killResult = spawned.kill();
|
|
49102
|
-
if (killResult) {
|
|
49103
|
-
context.isCanceled = true;
|
|
49104
|
-
}
|
|
49105
|
-
};
|
|
49106
|
-
var timeoutKill = (spawned, signal, reject) => {
|
|
49107
|
-
spawned.kill(signal);
|
|
49108
|
-
reject(Object.assign(new Error("Timed out"), { timedOut: true, signal }));
|
|
49109
|
-
};
|
|
49110
|
-
var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
|
|
49111
|
-
if (timeout === 0 || timeout === void 0) {
|
|
49112
|
-
return spawnedPromise;
|
|
49113
|
-
}
|
|
49114
|
-
let timeoutId;
|
|
49115
|
-
const timeoutPromise = new Promise((resolve, reject) => {
|
|
49116
|
-
timeoutId = setTimeout(() => {
|
|
49117
|
-
timeoutKill(spawned, killSignal, reject);
|
|
49118
|
-
}, timeout);
|
|
49119
|
-
});
|
|
49120
|
-
const safeSpawnedPromise = spawnedPromise.finally(() => {
|
|
49121
|
-
clearTimeout(timeoutId);
|
|
49122
|
-
});
|
|
49123
|
-
return Promise.race([timeoutPromise, safeSpawnedPromise]);
|
|
49124
|
-
};
|
|
49125
|
-
var validateTimeout = ({ timeout }) => {
|
|
49126
|
-
if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
|
|
49127
|
-
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
|
|
49128
|
-
}
|
|
49129
|
-
};
|
|
49130
|
-
var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => {
|
|
49131
|
-
if (!cleanup || detached) {
|
|
49132
|
-
return timedPromise;
|
|
49133
|
-
}
|
|
49134
|
-
const removeExitHandler = onExit(() => {
|
|
49135
|
-
spawned.kill();
|
|
49136
|
-
});
|
|
49137
|
-
return timedPromise.finally(() => {
|
|
49138
|
-
removeExitHandler();
|
|
49139
|
-
});
|
|
49140
|
-
};
|
|
49141
|
-
|
|
49142
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
|
|
49143
|
-
var import_node_fs3 = require("node:fs");
|
|
49144
|
-
var import_node_child_process = require("node:child_process");
|
|
49145
|
-
|
|
49146
|
-
// node_modules/.pnpm/is-stream@3.0.0/node_modules/is-stream/index.js
|
|
49147
|
-
function isStream(stream) {
|
|
49148
|
-
return stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
|
|
49149
|
-
}
|
|
49150
|
-
function isWritableStream(stream) {
|
|
49151
|
-
return isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
|
|
49152
|
-
}
|
|
49153
|
-
|
|
49154
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
|
|
49155
|
-
var isExecaChildProcess = (target) => target instanceof import_node_child_process.ChildProcess && typeof target.then === "function";
|
|
49156
|
-
var pipeToTarget = (spawned, streamName, target) => {
|
|
49157
|
-
if (typeof target === "string") {
|
|
49158
|
-
spawned[streamName].pipe((0, import_node_fs3.createWriteStream)(target));
|
|
49159
|
-
return spawned;
|
|
49160
|
-
}
|
|
49161
|
-
if (isWritableStream(target)) {
|
|
49162
|
-
spawned[streamName].pipe(target);
|
|
49163
|
-
return spawned;
|
|
49164
|
-
}
|
|
49165
|
-
if (!isExecaChildProcess(target)) {
|
|
49166
|
-
throw new TypeError("The second argument must be a string, a stream or an Execa child process.");
|
|
49167
|
-
}
|
|
49168
|
-
if (!isWritableStream(target.stdin)) {
|
|
49169
|
-
throw new TypeError("The target child process's stdin must be available.");
|
|
49170
|
-
}
|
|
49171
|
-
spawned[streamName].pipe(target.stdin);
|
|
49172
|
-
return target;
|
|
49173
|
-
};
|
|
49174
|
-
var addPipeMethods = (spawned) => {
|
|
49175
|
-
if (spawned.stdout !== null) {
|
|
49176
|
-
spawned.pipeStdout = pipeToTarget.bind(void 0, spawned, "stdout");
|
|
49177
|
-
}
|
|
49178
|
-
if (spawned.stderr !== null) {
|
|
49179
|
-
spawned.pipeStderr = pipeToTarget.bind(void 0, spawned, "stderr");
|
|
49180
|
-
}
|
|
49181
|
-
if (spawned.all !== void 0) {
|
|
49182
|
-
spawned.pipeAll = pipeToTarget.bind(void 0, spawned, "all");
|
|
49183
|
-
}
|
|
49184
|
-
};
|
|
49185
|
-
|
|
49186
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
|
|
49187
|
-
var import_node_fs4 = require("node:fs");
|
|
49188
|
-
var import_promises = require("node:timers/promises");
|
|
49189
|
-
|
|
49190
|
-
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/contents.js
|
|
49191
|
-
var getStreamContents = async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
|
|
49192
|
-
if (!isAsyncIterable(stream)) {
|
|
49193
|
-
throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");
|
|
49194
|
-
}
|
|
49195
|
-
const state = init();
|
|
49196
|
-
state.length = 0;
|
|
49197
|
-
try {
|
|
49198
|
-
for await (const chunk of stream) {
|
|
49199
|
-
const chunkType = getChunkType(chunk);
|
|
49200
|
-
const convertedChunk = convertChunk[chunkType](chunk, state);
|
|
49201
|
-
appendChunk({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
|
|
49202
|
-
}
|
|
49203
|
-
appendFinalChunk({ state, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer });
|
|
49204
|
-
return finalize(state);
|
|
49205
|
-
} catch (error) {
|
|
49206
|
-
error.bufferedData = finalize(state);
|
|
49207
|
-
throw error;
|
|
49208
|
-
}
|
|
49209
|
-
};
|
|
49210
|
-
var appendFinalChunk = ({ state, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer }) => {
|
|
49211
|
-
const convertedChunk = getFinalChunk(state);
|
|
49212
|
-
if (convertedChunk !== void 0) {
|
|
49213
|
-
appendChunk({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
|
|
49214
|
-
}
|
|
49215
|
-
};
|
|
49216
|
-
var appendChunk = ({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer }) => {
|
|
49217
|
-
const chunkSize = getSize(convertedChunk);
|
|
49218
|
-
const newLength = state.length + chunkSize;
|
|
49219
|
-
if (newLength <= maxBuffer) {
|
|
49220
|
-
addNewChunk(convertedChunk, state, addChunk, newLength);
|
|
49221
|
-
return;
|
|
49222
|
-
}
|
|
49223
|
-
const truncatedChunk = truncateChunk(convertedChunk, maxBuffer - state.length);
|
|
49224
|
-
if (truncatedChunk !== void 0) {
|
|
49225
|
-
addNewChunk(truncatedChunk, state, addChunk, maxBuffer);
|
|
49226
|
-
}
|
|
49227
|
-
throw new MaxBufferError();
|
|
49228
|
-
};
|
|
49229
|
-
var addNewChunk = (convertedChunk, state, addChunk, newLength) => {
|
|
49230
|
-
state.contents = addChunk(convertedChunk, state, newLength);
|
|
49231
|
-
state.length = newLength;
|
|
49232
|
-
};
|
|
49233
|
-
var isAsyncIterable = (stream) => typeof stream === "object" && stream !== null && typeof stream[Symbol.asyncIterator] === "function";
|
|
49234
|
-
var getChunkType = (chunk) => {
|
|
49235
|
-
const typeOfChunk = typeof chunk;
|
|
49236
|
-
if (typeOfChunk === "string") {
|
|
49237
|
-
return "string";
|
|
49238
|
-
}
|
|
49239
|
-
if (typeOfChunk !== "object" || chunk === null) {
|
|
49240
|
-
return "others";
|
|
49241
|
-
}
|
|
49242
|
-
if (globalThis.Buffer?.isBuffer(chunk)) {
|
|
49243
|
-
return "buffer";
|
|
49244
|
-
}
|
|
49245
|
-
const prototypeName = objectToString.call(chunk);
|
|
49246
|
-
if (prototypeName === "[object ArrayBuffer]") {
|
|
49247
|
-
return "arrayBuffer";
|
|
49248
|
-
}
|
|
49249
|
-
if (prototypeName === "[object DataView]") {
|
|
49250
|
-
return "dataView";
|
|
49251
|
-
}
|
|
49252
|
-
if (Number.isInteger(chunk.byteLength) && Number.isInteger(chunk.byteOffset) && objectToString.call(chunk.buffer) === "[object ArrayBuffer]") {
|
|
49253
|
-
return "typedArray";
|
|
49254
|
-
}
|
|
49255
|
-
return "others";
|
|
49256
|
-
};
|
|
49257
|
-
var { toString: objectToString } = Object.prototype;
|
|
49258
|
-
var MaxBufferError = class extends Error {
|
|
49259
|
-
name = "MaxBufferError";
|
|
49260
|
-
constructor() {
|
|
49261
|
-
super("maxBuffer exceeded");
|
|
49262
|
-
}
|
|
49263
|
-
};
|
|
49264
|
-
|
|
49265
|
-
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/utils.js
|
|
49266
|
-
var identity = (value) => value;
|
|
49267
|
-
var noop = () => void 0;
|
|
49268
|
-
var getContentsProp = ({ contents }) => contents;
|
|
49269
|
-
var throwObjectStream = (chunk) => {
|
|
49270
|
-
throw new Error(`Streams in object mode are not supported: ${String(chunk)}`);
|
|
49271
|
-
};
|
|
49272
|
-
var getLengthProp = (convertedChunk) => convertedChunk.length;
|
|
49273
|
-
|
|
49274
|
-
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/array-buffer.js
|
|
49275
|
-
async function getStreamAsArrayBuffer(stream, options) {
|
|
49276
|
-
return getStreamContents(stream, arrayBufferMethods, options);
|
|
49277
|
-
}
|
|
49278
|
-
var initArrayBuffer = () => ({ contents: new ArrayBuffer(0) });
|
|
49279
|
-
var useTextEncoder = (chunk) => textEncoder.encode(chunk);
|
|
49280
|
-
var textEncoder = new TextEncoder();
|
|
49281
|
-
var useUint8Array = (chunk) => new Uint8Array(chunk);
|
|
49282
|
-
var useUint8ArrayWithOffset = (chunk) => new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength);
|
|
49283
|
-
var truncateArrayBufferChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
|
|
49284
|
-
var addArrayBufferChunk = (convertedChunk, { contents, length: previousLength }, length) => {
|
|
49285
|
-
const newContents = hasArrayBufferResize() ? resizeArrayBuffer(contents, length) : resizeArrayBufferSlow(contents, length);
|
|
49286
|
-
new Uint8Array(newContents).set(convertedChunk, previousLength);
|
|
49287
|
-
return newContents;
|
|
49288
|
-
};
|
|
49289
|
-
var resizeArrayBufferSlow = (contents, length) => {
|
|
49290
|
-
if (length <= contents.byteLength) {
|
|
49291
|
-
return contents;
|
|
49292
|
-
}
|
|
49293
|
-
const arrayBuffer = new ArrayBuffer(getNewContentsLength(length));
|
|
49294
|
-
new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
|
|
49295
|
-
return arrayBuffer;
|
|
49296
|
-
};
|
|
49297
|
-
var resizeArrayBuffer = (contents, length) => {
|
|
49298
|
-
if (length <= contents.maxByteLength) {
|
|
49299
|
-
contents.resize(length);
|
|
49300
|
-
return contents;
|
|
49301
|
-
}
|
|
49302
|
-
const arrayBuffer = new ArrayBuffer(length, { maxByteLength: getNewContentsLength(length) });
|
|
49303
|
-
new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
|
|
49304
|
-
return arrayBuffer;
|
|
49305
|
-
};
|
|
49306
|
-
var getNewContentsLength = (length) => SCALE_FACTOR ** Math.ceil(Math.log(length) / Math.log(SCALE_FACTOR));
|
|
49307
|
-
var SCALE_FACTOR = 2;
|
|
49308
|
-
var finalizeArrayBuffer = ({ contents, length }) => hasArrayBufferResize() ? contents : contents.slice(0, length);
|
|
49309
|
-
var hasArrayBufferResize = () => "resize" in ArrayBuffer.prototype;
|
|
49310
|
-
var arrayBufferMethods = {
|
|
49311
|
-
init: initArrayBuffer,
|
|
49312
|
-
convertChunk: {
|
|
49313
|
-
string: useTextEncoder,
|
|
49314
|
-
buffer: useUint8Array,
|
|
49315
|
-
arrayBuffer: useUint8Array,
|
|
49316
|
-
dataView: useUint8ArrayWithOffset,
|
|
49317
|
-
typedArray: useUint8ArrayWithOffset,
|
|
49318
|
-
others: throwObjectStream
|
|
49319
|
-
},
|
|
49320
|
-
getSize: getLengthProp,
|
|
49321
|
-
truncateChunk: truncateArrayBufferChunk,
|
|
49322
|
-
addChunk: addArrayBufferChunk,
|
|
49323
|
-
getFinalChunk: noop,
|
|
49324
|
-
finalize: finalizeArrayBuffer
|
|
49325
|
-
};
|
|
49326
|
-
|
|
49327
|
-
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/buffer.js
|
|
49328
|
-
async function getStreamAsBuffer(stream, options) {
|
|
49329
|
-
if (!("Buffer" in globalThis)) {
|
|
49330
|
-
throw new Error("getStreamAsBuffer() is only supported in Node.js");
|
|
49331
|
-
}
|
|
49332
|
-
try {
|
|
49333
|
-
return arrayBufferToNodeBuffer(await getStreamAsArrayBuffer(stream, options));
|
|
49334
|
-
} catch (error) {
|
|
49335
|
-
if (error.bufferedData !== void 0) {
|
|
49336
|
-
error.bufferedData = arrayBufferToNodeBuffer(error.bufferedData);
|
|
49337
|
-
}
|
|
49338
|
-
throw error;
|
|
49339
|
-
}
|
|
49340
|
-
}
|
|
49341
|
-
var arrayBufferToNodeBuffer = (arrayBuffer) => globalThis.Buffer.from(arrayBuffer);
|
|
49342
|
-
|
|
49343
|
-
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/string.js
|
|
49344
|
-
async function getStreamAsString(stream, options) {
|
|
49345
|
-
return getStreamContents(stream, stringMethods, options);
|
|
49346
|
-
}
|
|
49347
|
-
var initString = () => ({ contents: "", textDecoder: new TextDecoder() });
|
|
49348
|
-
var useTextDecoder = (chunk, { textDecoder }) => textDecoder.decode(chunk, { stream: true });
|
|
49349
|
-
var addStringChunk = (convertedChunk, { contents }) => contents + convertedChunk;
|
|
49350
|
-
var truncateStringChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
|
|
49351
|
-
var getFinalStringChunk = ({ textDecoder }) => {
|
|
49352
|
-
const finalChunk = textDecoder.decode();
|
|
49353
|
-
return finalChunk === "" ? void 0 : finalChunk;
|
|
49354
|
-
};
|
|
49355
|
-
var stringMethods = {
|
|
49356
|
-
init: initString,
|
|
49357
|
-
convertChunk: {
|
|
49358
|
-
string: identity,
|
|
49359
|
-
buffer: useTextDecoder,
|
|
49360
|
-
arrayBuffer: useTextDecoder,
|
|
49361
|
-
dataView: useTextDecoder,
|
|
49362
|
-
typedArray: useTextDecoder,
|
|
49363
|
-
others: throwObjectStream
|
|
49364
|
-
},
|
|
49365
|
-
getSize: getLengthProp,
|
|
49366
|
-
truncateChunk: truncateStringChunk,
|
|
49367
|
-
addChunk: addStringChunk,
|
|
49368
|
-
getFinalChunk: getFinalStringChunk,
|
|
49369
|
-
finalize: getContentsProp
|
|
49370
|
-
};
|
|
49371
|
-
|
|
49372
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
|
|
49373
|
-
var import_merge_stream = __toESM(require_merge_stream(), 1);
|
|
49374
|
-
var validateInputOptions = (input) => {
|
|
49375
|
-
if (input !== void 0) {
|
|
49376
|
-
throw new TypeError("The `input` and `inputFile` options cannot be both set.");
|
|
49377
|
-
}
|
|
49378
|
-
};
|
|
49379
|
-
var getInputSync = ({ input, inputFile }) => {
|
|
49380
|
-
if (typeof inputFile !== "string") {
|
|
49381
|
-
return input;
|
|
49382
|
-
}
|
|
49383
|
-
validateInputOptions(input);
|
|
49384
|
-
return (0, import_node_fs4.readFileSync)(inputFile);
|
|
49385
|
-
};
|
|
49386
|
-
var handleInputSync = (options) => {
|
|
49387
|
-
const input = getInputSync(options);
|
|
49388
|
-
if (isStream(input)) {
|
|
49389
|
-
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
49390
|
-
}
|
|
49391
|
-
return input;
|
|
49392
|
-
};
|
|
49393
|
-
var getInput = ({ input, inputFile }) => {
|
|
49394
|
-
if (typeof inputFile !== "string") {
|
|
49395
|
-
return input;
|
|
49396
|
-
}
|
|
49397
|
-
validateInputOptions(input);
|
|
49398
|
-
return (0, import_node_fs4.createReadStream)(inputFile);
|
|
49399
|
-
};
|
|
49400
|
-
var handleInput = (spawned, options) => {
|
|
49401
|
-
const input = getInput(options);
|
|
49402
|
-
if (input === void 0) {
|
|
49403
|
-
return;
|
|
49404
|
-
}
|
|
49405
|
-
if (isStream(input)) {
|
|
49406
|
-
input.pipe(spawned.stdin);
|
|
49407
|
-
} else {
|
|
49408
|
-
spawned.stdin.end(input);
|
|
49409
|
-
}
|
|
49410
|
-
};
|
|
49411
|
-
var makeAllStream = (spawned, { all }) => {
|
|
49412
|
-
if (!all || !spawned.stdout && !spawned.stderr) {
|
|
49413
|
-
return;
|
|
49414
|
-
}
|
|
49415
|
-
const mixed = (0, import_merge_stream.default)();
|
|
49416
|
-
if (spawned.stdout) {
|
|
49417
|
-
mixed.add(spawned.stdout);
|
|
49418
|
-
}
|
|
49419
|
-
if (spawned.stderr) {
|
|
49420
|
-
mixed.add(spawned.stderr);
|
|
49421
|
-
}
|
|
49422
|
-
return mixed;
|
|
49423
|
-
};
|
|
49424
|
-
var getBufferedData = async (stream, streamPromise) => {
|
|
49425
|
-
if (!stream || streamPromise === void 0) {
|
|
49426
|
-
return;
|
|
49427
|
-
}
|
|
49428
|
-
await (0, import_promises.setTimeout)(0);
|
|
49429
|
-
stream.destroy();
|
|
49430
|
-
try {
|
|
49431
|
-
return await streamPromise;
|
|
49432
|
-
} catch (error) {
|
|
49433
|
-
return error.bufferedData;
|
|
49434
|
-
}
|
|
49435
|
-
};
|
|
49436
|
-
var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => {
|
|
49437
|
-
if (!stream || !buffer) {
|
|
49438
|
-
return;
|
|
49439
|
-
}
|
|
49440
|
-
if (encoding === "utf8" || encoding === "utf-8") {
|
|
49441
|
-
return getStreamAsString(stream, { maxBuffer });
|
|
49442
|
-
}
|
|
49443
|
-
if (encoding === null || encoding === "buffer") {
|
|
49444
|
-
return getStreamAsBuffer(stream, { maxBuffer });
|
|
49445
|
-
}
|
|
49446
|
-
return applyEncoding(stream, maxBuffer, encoding);
|
|
49447
|
-
};
|
|
49448
|
-
var applyEncoding = async (stream, maxBuffer, encoding) => {
|
|
49449
|
-
const buffer = await getStreamAsBuffer(stream, { maxBuffer });
|
|
49450
|
-
return buffer.toString(encoding);
|
|
49451
|
-
};
|
|
49452
|
-
var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
|
|
49453
|
-
const stdoutPromise = getStreamPromise(stdout, { encoding, buffer, maxBuffer });
|
|
49454
|
-
const stderrPromise = getStreamPromise(stderr, { encoding, buffer, maxBuffer });
|
|
49455
|
-
const allPromise = getStreamPromise(all, { encoding, buffer, maxBuffer: maxBuffer * 2 });
|
|
49456
|
-
try {
|
|
49457
|
-
return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);
|
|
49458
|
-
} catch (error) {
|
|
49459
|
-
return Promise.all([
|
|
49460
|
-
{ error, signal: error.signal, timedOut: error.timedOut },
|
|
49461
|
-
getBufferedData(stdout, stdoutPromise),
|
|
49462
|
-
getBufferedData(stderr, stderrPromise),
|
|
49463
|
-
getBufferedData(all, allPromise)
|
|
49464
|
-
]);
|
|
49465
|
-
}
|
|
49466
|
-
};
|
|
49467
|
-
|
|
49468
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/promise.js
|
|
49469
|
-
var nativePromisePrototype = (async () => {
|
|
49470
|
-
})().constructor.prototype;
|
|
49471
|
-
var descriptors = ["then", "catch", "finally"].map((property) => [
|
|
49472
|
-
property,
|
|
49473
|
-
Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
|
|
49474
|
-
]);
|
|
49475
|
-
var mergePromise = (spawned, promise) => {
|
|
49476
|
-
for (const [property, descriptor] of descriptors) {
|
|
49477
|
-
const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);
|
|
49478
|
-
Reflect.defineProperty(spawned, property, { ...descriptor, value });
|
|
49479
|
-
}
|
|
49480
|
-
};
|
|
49481
|
-
var getSpawnedPromise = (spawned) => new Promise((resolve, reject) => {
|
|
49482
|
-
spawned.on("exit", (exitCode, signal) => {
|
|
49483
|
-
resolve({ exitCode, signal });
|
|
49484
|
-
});
|
|
49485
|
-
spawned.on("error", (error) => {
|
|
49486
|
-
reject(error);
|
|
49487
|
-
});
|
|
49488
|
-
if (spawned.stdin) {
|
|
49489
|
-
spawned.stdin.on("error", (error) => {
|
|
49490
|
-
reject(error);
|
|
49491
|
-
});
|
|
49492
|
-
}
|
|
49493
|
-
});
|
|
49494
|
-
|
|
49495
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/command.js
|
|
49496
|
-
var import_node_buffer = require("node:buffer");
|
|
49497
|
-
var import_node_child_process2 = require("node:child_process");
|
|
49498
|
-
var normalizeArgs = (file, args = []) => {
|
|
49499
|
-
if (!Array.isArray(args)) {
|
|
49500
|
-
return [file];
|
|
49501
|
-
}
|
|
49502
|
-
return [file, ...args];
|
|
49503
|
-
};
|
|
49504
|
-
var NO_ESCAPE_REGEXP = /^[\w.-]+$/;
|
|
49505
|
-
var escapeArg = (arg) => {
|
|
49506
|
-
if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) {
|
|
49507
|
-
return arg;
|
|
49508
|
-
}
|
|
49509
|
-
return `"${arg.replaceAll('"', '\\"')}"`;
|
|
49510
|
-
};
|
|
49511
|
-
var joinCommand = (file, args) => normalizeArgs(file, args).join(" ");
|
|
49512
|
-
var getEscapedCommand = (file, args) => normalizeArgs(file, args).map((arg) => escapeArg(arg)).join(" ");
|
|
49513
|
-
var SPACES_REGEXP = / +/g;
|
|
49514
|
-
var parseExpression = (expression) => {
|
|
49515
|
-
const typeOfExpression = typeof expression;
|
|
49516
|
-
if (typeOfExpression === "string") {
|
|
49517
|
-
return expression;
|
|
49518
|
-
}
|
|
49519
|
-
if (typeOfExpression === "number") {
|
|
49520
|
-
return String(expression);
|
|
49521
|
-
}
|
|
49522
|
-
if (typeOfExpression === "object" && expression !== null && !(expression instanceof import_node_child_process2.ChildProcess) && "stdout" in expression) {
|
|
49523
|
-
const typeOfStdout = typeof expression.stdout;
|
|
49524
|
-
if (typeOfStdout === "string") {
|
|
49525
|
-
return expression.stdout;
|
|
49526
|
-
}
|
|
49527
|
-
if (import_node_buffer.Buffer.isBuffer(expression.stdout)) {
|
|
49528
|
-
return expression.stdout.toString();
|
|
49529
|
-
}
|
|
49530
|
-
throw new TypeError(`Unexpected "${typeOfStdout}" stdout in template expression`);
|
|
49531
|
-
}
|
|
49532
|
-
throw new TypeError(`Unexpected "${typeOfExpression}" in template expression`);
|
|
49533
|
-
};
|
|
49534
|
-
var concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0 ? [...tokens, ...nextTokens] : [
|
|
49535
|
-
...tokens.slice(0, -1),
|
|
49536
|
-
`${tokens.at(-1)}${nextTokens[0]}`,
|
|
49537
|
-
...nextTokens.slice(1)
|
|
49538
|
-
];
|
|
49539
|
-
var parseTemplate = ({ templates, expressions, tokens, index, template }) => {
|
|
49540
|
-
const templateString = template ?? templates.raw[index];
|
|
49541
|
-
const templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);
|
|
49542
|
-
const newTokens = concatTokens(
|
|
49543
|
-
tokens,
|
|
49544
|
-
templateTokens,
|
|
49545
|
-
templateString.startsWith(" ")
|
|
49546
|
-
);
|
|
49547
|
-
if (index === expressions.length) {
|
|
49548
|
-
return newTokens;
|
|
49549
|
-
}
|
|
49550
|
-
const expression = expressions[index];
|
|
49551
|
-
const expressionTokens = Array.isArray(expression) ? expression.map((expression2) => parseExpression(expression2)) : [parseExpression(expression)];
|
|
49552
|
-
return concatTokens(
|
|
49553
|
-
newTokens,
|
|
49554
|
-
expressionTokens,
|
|
49555
|
-
templateString.endsWith(" ")
|
|
49556
|
-
);
|
|
49557
|
-
};
|
|
49558
|
-
var parseTemplates = (templates, expressions) => {
|
|
49559
|
-
let tokens = [];
|
|
49560
|
-
for (const [index, template] of templates.entries()) {
|
|
49561
|
-
tokens = parseTemplate({ templates, expressions, tokens, index, template });
|
|
49562
|
-
}
|
|
49563
|
-
return tokens;
|
|
49564
|
-
};
|
|
49565
|
-
|
|
49566
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/verbose.js
|
|
49567
|
-
var import_node_util = require("node:util");
|
|
49568
|
-
var import_node_process3 = __toESM(require("node:process"), 1);
|
|
49569
|
-
var verboseDefault = (0, import_node_util.debuglog)("execa").enabled;
|
|
49570
|
-
var padField = (field, padding) => String(field).padStart(padding, "0");
|
|
49571
|
-
var getTimestamp = () => {
|
|
49572
|
-
const date = /* @__PURE__ */ new Date();
|
|
49573
|
-
return `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;
|
|
49574
|
-
};
|
|
49575
|
-
var logCommand = (escapedCommand, { verbose }) => {
|
|
49576
|
-
if (!verbose) {
|
|
49577
|
-
return;
|
|
49578
|
-
}
|
|
49579
|
-
import_node_process3.default.stderr.write(`[${getTimestamp()}] ${escapedCommand}
|
|
49580
|
-
`);
|
|
49581
|
-
};
|
|
49582
|
-
|
|
49583
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
|
|
49584
|
-
var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
|
|
49585
|
-
var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
49586
|
-
const env = extendEnv ? { ...import_node_process4.default.env, ...envOption } : envOption;
|
|
49587
|
-
if (preferLocal) {
|
|
49588
|
-
return npmRunPathEnv({ env, cwd: localDir, execPath });
|
|
49589
|
-
}
|
|
49590
|
-
return env;
|
|
49591
|
-
};
|
|
49592
|
-
var handleArguments = (file, args, options = {}) => {
|
|
49593
|
-
const parsed = import_cross_spawn.default._parse(file, args, options);
|
|
49594
|
-
file = parsed.command;
|
|
49595
|
-
args = parsed.args;
|
|
49596
|
-
options = parsed.options;
|
|
49597
|
-
options = {
|
|
49598
|
-
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
49599
|
-
buffer: true,
|
|
49600
|
-
stripFinalNewline: true,
|
|
49601
|
-
extendEnv: true,
|
|
49602
|
-
preferLocal: false,
|
|
49603
|
-
localDir: options.cwd || import_node_process4.default.cwd(),
|
|
49604
|
-
execPath: import_node_process4.default.execPath,
|
|
49605
|
-
encoding: "utf8",
|
|
49606
|
-
reject: true,
|
|
49607
|
-
cleanup: true,
|
|
49608
|
-
all: false,
|
|
49609
|
-
windowsHide: true,
|
|
49610
|
-
verbose: verboseDefault,
|
|
49611
|
-
...options
|
|
49612
|
-
};
|
|
49613
|
-
options.env = getEnv(options);
|
|
49614
|
-
options.stdio = normalizeStdio(options);
|
|
49615
|
-
if (import_node_process4.default.platform === "win32" && import_node_path4.default.basename(file, ".exe") === "cmd") {
|
|
49616
|
-
args.unshift("/q");
|
|
49617
|
-
}
|
|
49618
|
-
return { file, args, options, parsed };
|
|
49619
|
-
};
|
|
49620
|
-
var handleOutput = (options, value, error) => {
|
|
49621
|
-
if (typeof value !== "string" && !import_node_buffer2.Buffer.isBuffer(value)) {
|
|
49622
|
-
return error === void 0 ? void 0 : "";
|
|
49623
|
-
}
|
|
49624
|
-
if (options.stripFinalNewline) {
|
|
49625
|
-
return stripFinalNewline(value);
|
|
49626
|
-
}
|
|
49627
|
-
return value;
|
|
49628
|
-
};
|
|
49629
|
-
function execa(file, args, options) {
|
|
49630
|
-
const parsed = handleArguments(file, args, options);
|
|
49631
|
-
const command = joinCommand(file, args);
|
|
49632
|
-
const escapedCommand = getEscapedCommand(file, args);
|
|
49633
|
-
logCommand(escapedCommand, parsed.options);
|
|
49634
|
-
validateTimeout(parsed.options);
|
|
49635
|
-
let spawned;
|
|
49636
|
-
try {
|
|
49637
|
-
spawned = import_node_child_process3.default.spawn(parsed.file, parsed.args, parsed.options);
|
|
49638
|
-
} catch (error) {
|
|
49639
|
-
const dummySpawned = new import_node_child_process3.default.ChildProcess();
|
|
49640
|
-
const errorPromise = Promise.reject(makeError({
|
|
49641
|
-
error,
|
|
49642
|
-
stdout: "",
|
|
49643
|
-
stderr: "",
|
|
49644
|
-
all: "",
|
|
49645
|
-
command,
|
|
49646
|
-
escapedCommand,
|
|
49647
|
-
parsed,
|
|
49648
|
-
timedOut: false,
|
|
49649
|
-
isCanceled: false,
|
|
49650
|
-
killed: false
|
|
49651
|
-
}));
|
|
49652
|
-
mergePromise(dummySpawned, errorPromise);
|
|
49653
|
-
return dummySpawned;
|
|
49654
|
-
}
|
|
49655
|
-
const spawnedPromise = getSpawnedPromise(spawned);
|
|
49656
|
-
const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
|
|
49657
|
-
const processDone = setExitHandler(spawned, parsed.options, timedPromise);
|
|
49658
|
-
const context = { isCanceled: false };
|
|
49659
|
-
spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
|
|
49660
|
-
spawned.cancel = spawnedCancel.bind(null, spawned, context);
|
|
49661
|
-
const handlePromise = async () => {
|
|
49662
|
-
const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
|
|
49663
|
-
const stdout = handleOutput(parsed.options, stdoutResult);
|
|
49664
|
-
const stderr = handleOutput(parsed.options, stderrResult);
|
|
49665
|
-
const all = handleOutput(parsed.options, allResult);
|
|
49666
|
-
if (error || exitCode !== 0 || signal !== null) {
|
|
49667
|
-
const returnedError = makeError({
|
|
49668
|
-
error,
|
|
49669
|
-
exitCode,
|
|
49670
|
-
signal,
|
|
49671
|
-
stdout,
|
|
49672
|
-
stderr,
|
|
49673
|
-
all,
|
|
49674
|
-
command,
|
|
49675
|
-
escapedCommand,
|
|
49676
|
-
parsed,
|
|
49677
|
-
timedOut,
|
|
49678
|
-
isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),
|
|
49679
|
-
killed: spawned.killed
|
|
49680
|
-
});
|
|
49681
|
-
if (!parsed.options.reject) {
|
|
49682
|
-
return returnedError;
|
|
49683
|
-
}
|
|
49684
|
-
throw returnedError;
|
|
49685
|
-
}
|
|
49686
|
-
return {
|
|
49687
|
-
command,
|
|
49688
|
-
escapedCommand,
|
|
49689
|
-
exitCode: 0,
|
|
49690
|
-
stdout,
|
|
49691
|
-
stderr,
|
|
49692
|
-
all,
|
|
49693
|
-
failed: false,
|
|
49694
|
-
timedOut: false,
|
|
49695
|
-
isCanceled: false,
|
|
49696
|
-
killed: false
|
|
49697
|
-
};
|
|
49698
|
-
};
|
|
49699
|
-
const handlePromiseOnce = onetime_default(handlePromise);
|
|
49700
|
-
handleInput(spawned, parsed.options);
|
|
49701
|
-
spawned.all = makeAllStream(spawned, parsed.options);
|
|
49702
|
-
addPipeMethods(spawned);
|
|
49703
|
-
mergePromise(spawned, handlePromiseOnce);
|
|
49704
|
-
return spawned;
|
|
49705
|
-
}
|
|
49706
|
-
function execaSync(file, args, options) {
|
|
49707
|
-
const parsed = handleArguments(file, args, options);
|
|
49708
|
-
const command = joinCommand(file, args);
|
|
49709
|
-
const escapedCommand = getEscapedCommand(file, args);
|
|
49710
|
-
logCommand(escapedCommand, parsed.options);
|
|
49711
|
-
const input = handleInputSync(parsed.options);
|
|
49712
|
-
let result;
|
|
49713
|
-
try {
|
|
49714
|
-
result = import_node_child_process3.default.spawnSync(parsed.file, parsed.args, { ...parsed.options, input });
|
|
49715
|
-
} catch (error) {
|
|
49716
|
-
throw makeError({
|
|
49717
|
-
error,
|
|
49718
|
-
stdout: "",
|
|
49719
|
-
stderr: "",
|
|
49720
|
-
all: "",
|
|
49721
|
-
command,
|
|
49722
|
-
escapedCommand,
|
|
49723
|
-
parsed,
|
|
49724
|
-
timedOut: false,
|
|
49725
|
-
isCanceled: false,
|
|
49726
|
-
killed: false
|
|
49727
|
-
});
|
|
49728
|
-
}
|
|
49729
|
-
const stdout = handleOutput(parsed.options, result.stdout, result.error);
|
|
49730
|
-
const stderr = handleOutput(parsed.options, result.stderr, result.error);
|
|
49731
|
-
if (result.error || result.status !== 0 || result.signal !== null) {
|
|
49732
|
-
const error = makeError({
|
|
49733
|
-
stdout,
|
|
49734
|
-
stderr,
|
|
49735
|
-
error: result.error,
|
|
49736
|
-
signal: result.signal,
|
|
49737
|
-
exitCode: result.status,
|
|
49738
|
-
command,
|
|
49739
|
-
escapedCommand,
|
|
49740
|
-
parsed,
|
|
49741
|
-
timedOut: result.error && result.error.code === "ETIMEDOUT",
|
|
49742
|
-
isCanceled: false,
|
|
49743
|
-
killed: result.signal !== null
|
|
49744
|
-
});
|
|
49745
|
-
if (!parsed.options.reject) {
|
|
49746
|
-
return error;
|
|
49747
|
-
}
|
|
49748
|
-
throw error;
|
|
49749
|
-
}
|
|
49750
|
-
return {
|
|
49751
|
-
command,
|
|
49752
|
-
escapedCommand,
|
|
49753
|
-
exitCode: 0,
|
|
49754
|
-
stdout,
|
|
49755
|
-
stderr,
|
|
49756
|
-
failed: false,
|
|
49757
|
-
timedOut: false,
|
|
49758
|
-
isCanceled: false,
|
|
49759
|
-
killed: false
|
|
49760
|
-
};
|
|
49761
|
-
}
|
|
49762
|
-
var normalizeScriptStdin = ({ input, inputFile, stdio }) => input === void 0 && inputFile === void 0 && stdio === void 0 ? { stdin: "inherit" } : {};
|
|
49763
|
-
var normalizeScriptOptions = (options = {}) => ({
|
|
49764
|
-
preferLocal: true,
|
|
49765
|
-
...normalizeScriptStdin(options),
|
|
49766
|
-
...options
|
|
49767
|
-
});
|
|
49768
|
-
function create$(options) {
|
|
49769
|
-
function $2(templatesOrOptions, ...expressions) {
|
|
49770
|
-
if (!Array.isArray(templatesOrOptions)) {
|
|
49771
|
-
return create$({ ...options, ...templatesOrOptions });
|
|
49772
|
-
}
|
|
49773
|
-
const [file, ...args] = parseTemplates(templatesOrOptions, expressions);
|
|
49774
|
-
return execa(file, args, normalizeScriptOptions(options));
|
|
49775
|
-
}
|
|
49776
|
-
$2.sync = (templates, ...expressions) => {
|
|
49777
|
-
if (!Array.isArray(templates)) {
|
|
49778
|
-
throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");
|
|
49779
|
-
}
|
|
49780
|
-
const [file, ...args] = parseTemplates(templates, expressions);
|
|
49781
|
-
return execaSync(file, args, normalizeScriptOptions(options));
|
|
49782
|
-
};
|
|
49783
|
-
return $2;
|
|
49784
|
-
}
|
|
49785
|
-
var $ = create$();
|
|
49786
|
-
|
|
49787
47673
|
// packages/config-tools/src/utilities/run.ts
|
|
49788
47674
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
49789
47675
|
|