@storm-software/workspace-tools 1.56.5 → 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 +52 -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 +11024 -115
- 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, readJson, 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 = generateFiles;
|
|
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
|
// packages/workspace-tools/src/generators/config-schema/generator.ts
|
|
26765
26228
|
var generator_exports = {};
|
|
26766
26229
|
__export(generator_exports, {
|
|
@@ -27111,8 +26574,8 @@ function getErrorMap() {
|
|
|
27111
26574
|
return overrideErrorMap;
|
|
27112
26575
|
}
|
|
27113
26576
|
var makeIssue = (params) => {
|
|
27114
|
-
const { data, path
|
|
27115
|
-
const fullPath = [...
|
|
26577
|
+
const { data, path, errorMaps, issueData } = params;
|
|
26578
|
+
const fullPath = [...path, ...issueData.path || []];
|
|
27116
26579
|
const fullIssue = {
|
|
27117
26580
|
...issueData,
|
|
27118
26581
|
path: fullPath
|
|
@@ -27210,11 +26673,11 @@ var errorUtil;
|
|
|
27210
26673
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
|
|
27211
26674
|
})(errorUtil || (errorUtil = {}));
|
|
27212
26675
|
var ParseInputLazyPath = class {
|
|
27213
|
-
constructor(parent, value,
|
|
26676
|
+
constructor(parent, value, path, key) {
|
|
27214
26677
|
this._cachedPath = [];
|
|
27215
26678
|
this.parent = parent;
|
|
27216
26679
|
this.data = value;
|
|
27217
|
-
this._path =
|
|
26680
|
+
this._path = path;
|
|
27218
26681
|
this._key = key;
|
|
27219
26682
|
}
|
|
27220
26683
|
get path() {
|
|
@@ -30405,8 +29868,8 @@ var StormConfigSchema = objectType({
|
|
|
30405
29868
|
);
|
|
30406
29869
|
|
|
30407
29870
|
// packages/workspace-tools/src/generators/config-schema/generator.ts
|
|
30408
|
-
var
|
|
30409
|
-
var
|
|
29871
|
+
var import_node_fs3 = require("node:fs");
|
|
29872
|
+
var import_node_path3 = require("node:path");
|
|
30410
29873
|
|
|
30411
29874
|
// node_modules/.pnpm/zod-to-json-schema@3.22.3_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
30412
29875
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
@@ -31773,1583 +31236,6 @@ var getStopwatch = (name) => {
|
|
|
31773
31236
|
};
|
|
31774
31237
|
};
|
|
31775
31238
|
|
|
31776
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
|
|
31777
|
-
var import_node_buffer2 = require("node:buffer");
|
|
31778
|
-
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
31779
|
-
var import_node_child_process3 = __toESM(require("node:child_process"), 1);
|
|
31780
|
-
var import_node_process4 = __toESM(require("node:process"), 1);
|
|
31781
|
-
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
31782
|
-
|
|
31783
|
-
// node_modules/.pnpm/strip-final-newline@3.0.0/node_modules/strip-final-newline/index.js
|
|
31784
|
-
function stripFinalNewline(input) {
|
|
31785
|
-
const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
|
|
31786
|
-
const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
|
|
31787
|
-
if (input[input.length - 1] === LF) {
|
|
31788
|
-
input = input.slice(0, -1);
|
|
31789
|
-
}
|
|
31790
|
-
if (input[input.length - 1] === CR) {
|
|
31791
|
-
input = input.slice(0, -1);
|
|
31792
|
-
}
|
|
31793
|
-
return input;
|
|
31794
|
-
}
|
|
31795
|
-
|
|
31796
|
-
// node_modules/.pnpm/npm-run-path@5.2.0/node_modules/npm-run-path/index.js
|
|
31797
|
-
var import_node_process = __toESM(require("node:process"), 1);
|
|
31798
|
-
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
31799
|
-
var import_node_url = __toESM(require("node:url"), 1);
|
|
31800
|
-
|
|
31801
|
-
// node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
|
|
31802
|
-
function pathKey(options = {}) {
|
|
31803
|
-
const {
|
|
31804
|
-
env = process.env,
|
|
31805
|
-
platform = process.platform
|
|
31806
|
-
} = options;
|
|
31807
|
-
if (platform !== "win32") {
|
|
31808
|
-
return "PATH";
|
|
31809
|
-
}
|
|
31810
|
-
return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
31811
|
-
}
|
|
31812
|
-
|
|
31813
|
-
// node_modules/.pnpm/npm-run-path@5.2.0/node_modules/npm-run-path/index.js
|
|
31814
|
-
function npmRunPath(options = {}) {
|
|
31815
|
-
const {
|
|
31816
|
-
cwd = import_node_process.default.cwd(),
|
|
31817
|
-
path: path_ = import_node_process.default.env[pathKey()],
|
|
31818
|
-
execPath = import_node_process.default.execPath
|
|
31819
|
-
} = options;
|
|
31820
|
-
let previous;
|
|
31821
|
-
const execPathString = execPath instanceof URL ? import_node_url.default.fileURLToPath(execPath) : execPath;
|
|
31822
|
-
const cwdString = cwd instanceof URL ? import_node_url.default.fileURLToPath(cwd) : cwd;
|
|
31823
|
-
let cwdPath = import_node_path3.default.resolve(cwdString);
|
|
31824
|
-
const result = [];
|
|
31825
|
-
while (previous !== cwdPath) {
|
|
31826
|
-
result.push(import_node_path3.default.join(cwdPath, "node_modules/.bin"));
|
|
31827
|
-
previous = cwdPath;
|
|
31828
|
-
cwdPath = import_node_path3.default.resolve(cwdPath, "..");
|
|
31829
|
-
}
|
|
31830
|
-
result.push(import_node_path3.default.resolve(cwdString, execPathString, ".."));
|
|
31831
|
-
return [...result, path_].join(import_node_path3.default.delimiter);
|
|
31832
|
-
}
|
|
31833
|
-
function npmRunPathEnv({ env = import_node_process.default.env, ...options } = {}) {
|
|
31834
|
-
env = { ...env };
|
|
31835
|
-
const path3 = pathKey({ env });
|
|
31836
|
-
options.path = env[path3];
|
|
31837
|
-
env[path3] = npmRunPath(options);
|
|
31838
|
-
return env;
|
|
31839
|
-
}
|
|
31840
|
-
|
|
31841
|
-
// node_modules/.pnpm/mimic-fn@4.0.0/node_modules/mimic-fn/index.js
|
|
31842
|
-
var copyProperty = (to, from, property, ignoreNonConfigurable) => {
|
|
31843
|
-
if (property === "length" || property === "prototype") {
|
|
31844
|
-
return;
|
|
31845
|
-
}
|
|
31846
|
-
if (property === "arguments" || property === "caller") {
|
|
31847
|
-
return;
|
|
31848
|
-
}
|
|
31849
|
-
const toDescriptor = Object.getOwnPropertyDescriptor(to, property);
|
|
31850
|
-
const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);
|
|
31851
|
-
if (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {
|
|
31852
|
-
return;
|
|
31853
|
-
}
|
|
31854
|
-
Object.defineProperty(to, property, fromDescriptor);
|
|
31855
|
-
};
|
|
31856
|
-
var canCopyProperty = function(toDescriptor, fromDescriptor) {
|
|
31857
|
-
return toDescriptor === void 0 || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);
|
|
31858
|
-
};
|
|
31859
|
-
var changePrototype = (to, from) => {
|
|
31860
|
-
const fromPrototype = Object.getPrototypeOf(from);
|
|
31861
|
-
if (fromPrototype === Object.getPrototypeOf(to)) {
|
|
31862
|
-
return;
|
|
31863
|
-
}
|
|
31864
|
-
Object.setPrototypeOf(to, fromPrototype);
|
|
31865
|
-
};
|
|
31866
|
-
var wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/
|
|
31867
|
-
${fromBody}`;
|
|
31868
|
-
var toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
|
|
31869
|
-
var toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name");
|
|
31870
|
-
var changeToString = (to, from, name) => {
|
|
31871
|
-
const withName = name === "" ? "" : `with ${name.trim()}() `;
|
|
31872
|
-
const newToString = wrappedToString.bind(null, withName, from.toString());
|
|
31873
|
-
Object.defineProperty(newToString, "name", toStringName);
|
|
31874
|
-
Object.defineProperty(to, "toString", { ...toStringDescriptor, value: newToString });
|
|
31875
|
-
};
|
|
31876
|
-
function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
31877
|
-
const { name } = to;
|
|
31878
|
-
for (const property of Reflect.ownKeys(from)) {
|
|
31879
|
-
copyProperty(to, from, property, ignoreNonConfigurable);
|
|
31880
|
-
}
|
|
31881
|
-
changePrototype(to, from);
|
|
31882
|
-
changeToString(to, from, name);
|
|
31883
|
-
return to;
|
|
31884
|
-
}
|
|
31885
|
-
|
|
31886
|
-
// node_modules/.pnpm/onetime@6.0.0/node_modules/onetime/index.js
|
|
31887
|
-
var calledFunctions = /* @__PURE__ */ new WeakMap();
|
|
31888
|
-
var onetime = (function_, options = {}) => {
|
|
31889
|
-
if (typeof function_ !== "function") {
|
|
31890
|
-
throw new TypeError("Expected a function");
|
|
31891
|
-
}
|
|
31892
|
-
let returnValue;
|
|
31893
|
-
let callCount = 0;
|
|
31894
|
-
const functionName = function_.displayName || function_.name || "<anonymous>";
|
|
31895
|
-
const onetime2 = function(...arguments_) {
|
|
31896
|
-
calledFunctions.set(onetime2, ++callCount);
|
|
31897
|
-
if (callCount === 1) {
|
|
31898
|
-
returnValue = function_.apply(this, arguments_);
|
|
31899
|
-
function_ = null;
|
|
31900
|
-
} else if (options.throw === true) {
|
|
31901
|
-
throw new Error(`Function \`${functionName}\` can only be called once`);
|
|
31902
|
-
}
|
|
31903
|
-
return returnValue;
|
|
31904
|
-
};
|
|
31905
|
-
mimicFunction(onetime2, function_);
|
|
31906
|
-
calledFunctions.set(onetime2, callCount);
|
|
31907
|
-
return onetime2;
|
|
31908
|
-
};
|
|
31909
|
-
onetime.callCount = (function_) => {
|
|
31910
|
-
if (!calledFunctions.has(function_)) {
|
|
31911
|
-
throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
|
|
31912
|
-
}
|
|
31913
|
-
return calledFunctions.get(function_);
|
|
31914
|
-
};
|
|
31915
|
-
var onetime_default = onetime;
|
|
31916
|
-
|
|
31917
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
|
|
31918
|
-
var import_node_process2 = __toESM(require("node:process"), 1);
|
|
31919
|
-
|
|
31920
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
|
|
31921
|
-
var import_node_os2 = require("node:os");
|
|
31922
|
-
|
|
31923
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/realtime.js
|
|
31924
|
-
var getRealtimeSignals = () => {
|
|
31925
|
-
const length = SIGRTMAX - SIGRTMIN + 1;
|
|
31926
|
-
return Array.from({ length }, getRealtimeSignal);
|
|
31927
|
-
};
|
|
31928
|
-
var getRealtimeSignal = (value, index) => ({
|
|
31929
|
-
name: `SIGRT${index + 1}`,
|
|
31930
|
-
number: SIGRTMIN + index,
|
|
31931
|
-
action: "terminate",
|
|
31932
|
-
description: "Application-specific signal (realtime)",
|
|
31933
|
-
standard: "posix"
|
|
31934
|
-
});
|
|
31935
|
-
var SIGRTMIN = 34;
|
|
31936
|
-
var SIGRTMAX = 64;
|
|
31937
|
-
|
|
31938
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
|
|
31939
|
-
var import_node_os = require("node:os");
|
|
31940
|
-
|
|
31941
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/core.js
|
|
31942
|
-
var SIGNALS = [
|
|
31943
|
-
{
|
|
31944
|
-
name: "SIGHUP",
|
|
31945
|
-
number: 1,
|
|
31946
|
-
action: "terminate",
|
|
31947
|
-
description: "Terminal closed",
|
|
31948
|
-
standard: "posix"
|
|
31949
|
-
},
|
|
31950
|
-
{
|
|
31951
|
-
name: "SIGINT",
|
|
31952
|
-
number: 2,
|
|
31953
|
-
action: "terminate",
|
|
31954
|
-
description: "User interruption with CTRL-C",
|
|
31955
|
-
standard: "ansi"
|
|
31956
|
-
},
|
|
31957
|
-
{
|
|
31958
|
-
name: "SIGQUIT",
|
|
31959
|
-
number: 3,
|
|
31960
|
-
action: "core",
|
|
31961
|
-
description: "User interruption with CTRL-\\",
|
|
31962
|
-
standard: "posix"
|
|
31963
|
-
},
|
|
31964
|
-
{
|
|
31965
|
-
name: "SIGILL",
|
|
31966
|
-
number: 4,
|
|
31967
|
-
action: "core",
|
|
31968
|
-
description: "Invalid machine instruction",
|
|
31969
|
-
standard: "ansi"
|
|
31970
|
-
},
|
|
31971
|
-
{
|
|
31972
|
-
name: "SIGTRAP",
|
|
31973
|
-
number: 5,
|
|
31974
|
-
action: "core",
|
|
31975
|
-
description: "Debugger breakpoint",
|
|
31976
|
-
standard: "posix"
|
|
31977
|
-
},
|
|
31978
|
-
{
|
|
31979
|
-
name: "SIGABRT",
|
|
31980
|
-
number: 6,
|
|
31981
|
-
action: "core",
|
|
31982
|
-
description: "Aborted",
|
|
31983
|
-
standard: "ansi"
|
|
31984
|
-
},
|
|
31985
|
-
{
|
|
31986
|
-
name: "SIGIOT",
|
|
31987
|
-
number: 6,
|
|
31988
|
-
action: "core",
|
|
31989
|
-
description: "Aborted",
|
|
31990
|
-
standard: "bsd"
|
|
31991
|
-
},
|
|
31992
|
-
{
|
|
31993
|
-
name: "SIGBUS",
|
|
31994
|
-
number: 7,
|
|
31995
|
-
action: "core",
|
|
31996
|
-
description: "Bus error due to misaligned, non-existing address or paging error",
|
|
31997
|
-
standard: "bsd"
|
|
31998
|
-
},
|
|
31999
|
-
{
|
|
32000
|
-
name: "SIGEMT",
|
|
32001
|
-
number: 7,
|
|
32002
|
-
action: "terminate",
|
|
32003
|
-
description: "Command should be emulated but is not implemented",
|
|
32004
|
-
standard: "other"
|
|
32005
|
-
},
|
|
32006
|
-
{
|
|
32007
|
-
name: "SIGFPE",
|
|
32008
|
-
number: 8,
|
|
32009
|
-
action: "core",
|
|
32010
|
-
description: "Floating point arithmetic error",
|
|
32011
|
-
standard: "ansi"
|
|
32012
|
-
},
|
|
32013
|
-
{
|
|
32014
|
-
name: "SIGKILL",
|
|
32015
|
-
number: 9,
|
|
32016
|
-
action: "terminate",
|
|
32017
|
-
description: "Forced termination",
|
|
32018
|
-
standard: "posix",
|
|
32019
|
-
forced: true
|
|
32020
|
-
},
|
|
32021
|
-
{
|
|
32022
|
-
name: "SIGUSR1",
|
|
32023
|
-
number: 10,
|
|
32024
|
-
action: "terminate",
|
|
32025
|
-
description: "Application-specific signal",
|
|
32026
|
-
standard: "posix"
|
|
32027
|
-
},
|
|
32028
|
-
{
|
|
32029
|
-
name: "SIGSEGV",
|
|
32030
|
-
number: 11,
|
|
32031
|
-
action: "core",
|
|
32032
|
-
description: "Segmentation fault",
|
|
32033
|
-
standard: "ansi"
|
|
32034
|
-
},
|
|
32035
|
-
{
|
|
32036
|
-
name: "SIGUSR2",
|
|
32037
|
-
number: 12,
|
|
32038
|
-
action: "terminate",
|
|
32039
|
-
description: "Application-specific signal",
|
|
32040
|
-
standard: "posix"
|
|
32041
|
-
},
|
|
32042
|
-
{
|
|
32043
|
-
name: "SIGPIPE",
|
|
32044
|
-
number: 13,
|
|
32045
|
-
action: "terminate",
|
|
32046
|
-
description: "Broken pipe or socket",
|
|
32047
|
-
standard: "posix"
|
|
32048
|
-
},
|
|
32049
|
-
{
|
|
32050
|
-
name: "SIGALRM",
|
|
32051
|
-
number: 14,
|
|
32052
|
-
action: "terminate",
|
|
32053
|
-
description: "Timeout or timer",
|
|
32054
|
-
standard: "posix"
|
|
32055
|
-
},
|
|
32056
|
-
{
|
|
32057
|
-
name: "SIGTERM",
|
|
32058
|
-
number: 15,
|
|
32059
|
-
action: "terminate",
|
|
32060
|
-
description: "Termination",
|
|
32061
|
-
standard: "ansi"
|
|
32062
|
-
},
|
|
32063
|
-
{
|
|
32064
|
-
name: "SIGSTKFLT",
|
|
32065
|
-
number: 16,
|
|
32066
|
-
action: "terminate",
|
|
32067
|
-
description: "Stack is empty or overflowed",
|
|
32068
|
-
standard: "other"
|
|
32069
|
-
},
|
|
32070
|
-
{
|
|
32071
|
-
name: "SIGCHLD",
|
|
32072
|
-
number: 17,
|
|
32073
|
-
action: "ignore",
|
|
32074
|
-
description: "Child process terminated, paused or unpaused",
|
|
32075
|
-
standard: "posix"
|
|
32076
|
-
},
|
|
32077
|
-
{
|
|
32078
|
-
name: "SIGCLD",
|
|
32079
|
-
number: 17,
|
|
32080
|
-
action: "ignore",
|
|
32081
|
-
description: "Child process terminated, paused or unpaused",
|
|
32082
|
-
standard: "other"
|
|
32083
|
-
},
|
|
32084
|
-
{
|
|
32085
|
-
name: "SIGCONT",
|
|
32086
|
-
number: 18,
|
|
32087
|
-
action: "unpause",
|
|
32088
|
-
description: "Unpaused",
|
|
32089
|
-
standard: "posix",
|
|
32090
|
-
forced: true
|
|
32091
|
-
},
|
|
32092
|
-
{
|
|
32093
|
-
name: "SIGSTOP",
|
|
32094
|
-
number: 19,
|
|
32095
|
-
action: "pause",
|
|
32096
|
-
description: "Paused",
|
|
32097
|
-
standard: "posix",
|
|
32098
|
-
forced: true
|
|
32099
|
-
},
|
|
32100
|
-
{
|
|
32101
|
-
name: "SIGTSTP",
|
|
32102
|
-
number: 20,
|
|
32103
|
-
action: "pause",
|
|
32104
|
-
description: 'Paused using CTRL-Z or "suspend"',
|
|
32105
|
-
standard: "posix"
|
|
32106
|
-
},
|
|
32107
|
-
{
|
|
32108
|
-
name: "SIGTTIN",
|
|
32109
|
-
number: 21,
|
|
32110
|
-
action: "pause",
|
|
32111
|
-
description: "Background process cannot read terminal input",
|
|
32112
|
-
standard: "posix"
|
|
32113
|
-
},
|
|
32114
|
-
{
|
|
32115
|
-
name: "SIGBREAK",
|
|
32116
|
-
number: 21,
|
|
32117
|
-
action: "terminate",
|
|
32118
|
-
description: "User interruption with CTRL-BREAK",
|
|
32119
|
-
standard: "other"
|
|
32120
|
-
},
|
|
32121
|
-
{
|
|
32122
|
-
name: "SIGTTOU",
|
|
32123
|
-
number: 22,
|
|
32124
|
-
action: "pause",
|
|
32125
|
-
description: "Background process cannot write to terminal output",
|
|
32126
|
-
standard: "posix"
|
|
32127
|
-
},
|
|
32128
|
-
{
|
|
32129
|
-
name: "SIGURG",
|
|
32130
|
-
number: 23,
|
|
32131
|
-
action: "ignore",
|
|
32132
|
-
description: "Socket received out-of-band data",
|
|
32133
|
-
standard: "bsd"
|
|
32134
|
-
},
|
|
32135
|
-
{
|
|
32136
|
-
name: "SIGXCPU",
|
|
32137
|
-
number: 24,
|
|
32138
|
-
action: "core",
|
|
32139
|
-
description: "Process timed out",
|
|
32140
|
-
standard: "bsd"
|
|
32141
|
-
},
|
|
32142
|
-
{
|
|
32143
|
-
name: "SIGXFSZ",
|
|
32144
|
-
number: 25,
|
|
32145
|
-
action: "core",
|
|
32146
|
-
description: "File too big",
|
|
32147
|
-
standard: "bsd"
|
|
32148
|
-
},
|
|
32149
|
-
{
|
|
32150
|
-
name: "SIGVTALRM",
|
|
32151
|
-
number: 26,
|
|
32152
|
-
action: "terminate",
|
|
32153
|
-
description: "Timeout or timer",
|
|
32154
|
-
standard: "bsd"
|
|
32155
|
-
},
|
|
32156
|
-
{
|
|
32157
|
-
name: "SIGPROF",
|
|
32158
|
-
number: 27,
|
|
32159
|
-
action: "terminate",
|
|
32160
|
-
description: "Timeout or timer",
|
|
32161
|
-
standard: "bsd"
|
|
32162
|
-
},
|
|
32163
|
-
{
|
|
32164
|
-
name: "SIGWINCH",
|
|
32165
|
-
number: 28,
|
|
32166
|
-
action: "ignore",
|
|
32167
|
-
description: "Terminal window size changed",
|
|
32168
|
-
standard: "bsd"
|
|
32169
|
-
},
|
|
32170
|
-
{
|
|
32171
|
-
name: "SIGIO",
|
|
32172
|
-
number: 29,
|
|
32173
|
-
action: "terminate",
|
|
32174
|
-
description: "I/O is available",
|
|
32175
|
-
standard: "other"
|
|
32176
|
-
},
|
|
32177
|
-
{
|
|
32178
|
-
name: "SIGPOLL",
|
|
32179
|
-
number: 29,
|
|
32180
|
-
action: "terminate",
|
|
32181
|
-
description: "Watched event",
|
|
32182
|
-
standard: "other"
|
|
32183
|
-
},
|
|
32184
|
-
{
|
|
32185
|
-
name: "SIGINFO",
|
|
32186
|
-
number: 29,
|
|
32187
|
-
action: "ignore",
|
|
32188
|
-
description: "Request for process information",
|
|
32189
|
-
standard: "other"
|
|
32190
|
-
},
|
|
32191
|
-
{
|
|
32192
|
-
name: "SIGPWR",
|
|
32193
|
-
number: 30,
|
|
32194
|
-
action: "terminate",
|
|
32195
|
-
description: "Device running out of power",
|
|
32196
|
-
standard: "systemv"
|
|
32197
|
-
},
|
|
32198
|
-
{
|
|
32199
|
-
name: "SIGSYS",
|
|
32200
|
-
number: 31,
|
|
32201
|
-
action: "core",
|
|
32202
|
-
description: "Invalid system call",
|
|
32203
|
-
standard: "other"
|
|
32204
|
-
},
|
|
32205
|
-
{
|
|
32206
|
-
name: "SIGUNUSED",
|
|
32207
|
-
number: 31,
|
|
32208
|
-
action: "terminate",
|
|
32209
|
-
description: "Invalid system call",
|
|
32210
|
-
standard: "other"
|
|
32211
|
-
}
|
|
32212
|
-
];
|
|
32213
|
-
|
|
32214
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
|
|
32215
|
-
var getSignals = () => {
|
|
32216
|
-
const realtimeSignals = getRealtimeSignals();
|
|
32217
|
-
const signals2 = [...SIGNALS, ...realtimeSignals].map(normalizeSignal);
|
|
32218
|
-
return signals2;
|
|
32219
|
-
};
|
|
32220
|
-
var normalizeSignal = ({
|
|
32221
|
-
name,
|
|
32222
|
-
number: defaultNumber,
|
|
32223
|
-
description,
|
|
32224
|
-
action,
|
|
32225
|
-
forced = false,
|
|
32226
|
-
standard
|
|
32227
|
-
}) => {
|
|
32228
|
-
const {
|
|
32229
|
-
signals: { [name]: constantSignal }
|
|
32230
|
-
} = import_node_os.constants;
|
|
32231
|
-
const supported = constantSignal !== void 0;
|
|
32232
|
-
const number = supported ? constantSignal : defaultNumber;
|
|
32233
|
-
return { name, number, description, supported, action, forced, standard };
|
|
32234
|
-
};
|
|
32235
|
-
|
|
32236
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
|
|
32237
|
-
var getSignalsByName = () => {
|
|
32238
|
-
const signals2 = getSignals();
|
|
32239
|
-
return Object.fromEntries(signals2.map(getSignalByName));
|
|
32240
|
-
};
|
|
32241
|
-
var getSignalByName = ({
|
|
32242
|
-
name,
|
|
32243
|
-
number,
|
|
32244
|
-
description,
|
|
32245
|
-
supported,
|
|
32246
|
-
action,
|
|
32247
|
-
forced,
|
|
32248
|
-
standard
|
|
32249
|
-
}) => [name, { name, number, description, supported, action, forced, standard }];
|
|
32250
|
-
var signalsByName = getSignalsByName();
|
|
32251
|
-
var getSignalsByNumber = () => {
|
|
32252
|
-
const signals2 = getSignals();
|
|
32253
|
-
const length = SIGRTMAX + 1;
|
|
32254
|
-
const signalsA = Array.from(
|
|
32255
|
-
{ length },
|
|
32256
|
-
(value, number) => getSignalByNumber(number, signals2)
|
|
32257
|
-
);
|
|
32258
|
-
return Object.assign({}, ...signalsA);
|
|
32259
|
-
};
|
|
32260
|
-
var getSignalByNumber = (number, signals2) => {
|
|
32261
|
-
const signal = findSignalByNumber(number, signals2);
|
|
32262
|
-
if (signal === void 0) {
|
|
32263
|
-
return {};
|
|
32264
|
-
}
|
|
32265
|
-
const { name, description, supported, action, forced, standard } = signal;
|
|
32266
|
-
return {
|
|
32267
|
-
[number]: {
|
|
32268
|
-
name,
|
|
32269
|
-
number,
|
|
32270
|
-
description,
|
|
32271
|
-
supported,
|
|
32272
|
-
action,
|
|
32273
|
-
forced,
|
|
32274
|
-
standard
|
|
32275
|
-
}
|
|
32276
|
-
};
|
|
32277
|
-
};
|
|
32278
|
-
var findSignalByNumber = (number, signals2) => {
|
|
32279
|
-
const signal = signals2.find(({ name }) => import_node_os2.constants.signals[name] === number);
|
|
32280
|
-
if (signal !== void 0) {
|
|
32281
|
-
return signal;
|
|
32282
|
-
}
|
|
32283
|
-
return signals2.find((signalA) => signalA.number === number);
|
|
32284
|
-
};
|
|
32285
|
-
var signalsByNumber = getSignalsByNumber();
|
|
32286
|
-
|
|
32287
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
|
|
32288
|
-
var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
|
|
32289
|
-
if (timedOut) {
|
|
32290
|
-
return `timed out after ${timeout} milliseconds`;
|
|
32291
|
-
}
|
|
32292
|
-
if (isCanceled) {
|
|
32293
|
-
return "was canceled";
|
|
32294
|
-
}
|
|
32295
|
-
if (errorCode !== void 0) {
|
|
32296
|
-
return `failed with ${errorCode}`;
|
|
32297
|
-
}
|
|
32298
|
-
if (signal !== void 0) {
|
|
32299
|
-
return `was killed with ${signal} (${signalDescription})`;
|
|
32300
|
-
}
|
|
32301
|
-
if (exitCode !== void 0) {
|
|
32302
|
-
return `failed with exit code ${exitCode}`;
|
|
32303
|
-
}
|
|
32304
|
-
return "failed";
|
|
32305
|
-
};
|
|
32306
|
-
var makeError = ({
|
|
32307
|
-
stdout,
|
|
32308
|
-
stderr,
|
|
32309
|
-
all,
|
|
32310
|
-
error,
|
|
32311
|
-
signal,
|
|
32312
|
-
exitCode,
|
|
32313
|
-
command,
|
|
32314
|
-
escapedCommand,
|
|
32315
|
-
timedOut,
|
|
32316
|
-
isCanceled,
|
|
32317
|
-
killed,
|
|
32318
|
-
parsed: { options: { timeout, cwd = import_node_process2.default.cwd() } }
|
|
32319
|
-
}) => {
|
|
32320
|
-
exitCode = exitCode === null ? void 0 : exitCode;
|
|
32321
|
-
signal = signal === null ? void 0 : signal;
|
|
32322
|
-
const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
|
|
32323
|
-
const errorCode = error && error.code;
|
|
32324
|
-
const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled });
|
|
32325
|
-
const execaMessage = `Command ${prefix}: ${command}`;
|
|
32326
|
-
const isError = Object.prototype.toString.call(error) === "[object Error]";
|
|
32327
|
-
const shortMessage = isError ? `${execaMessage}
|
|
32328
|
-
${error.message}` : execaMessage;
|
|
32329
|
-
const message = [shortMessage, stderr, stdout].filter(Boolean).join("\n");
|
|
32330
|
-
if (isError) {
|
|
32331
|
-
error.originalMessage = error.message;
|
|
32332
|
-
error.message = message;
|
|
32333
|
-
} else {
|
|
32334
|
-
error = new Error(message);
|
|
32335
|
-
}
|
|
32336
|
-
error.shortMessage = shortMessage;
|
|
32337
|
-
error.command = command;
|
|
32338
|
-
error.escapedCommand = escapedCommand;
|
|
32339
|
-
error.exitCode = exitCode;
|
|
32340
|
-
error.signal = signal;
|
|
32341
|
-
error.signalDescription = signalDescription;
|
|
32342
|
-
error.stdout = stdout;
|
|
32343
|
-
error.stderr = stderr;
|
|
32344
|
-
error.cwd = cwd;
|
|
32345
|
-
if (all !== void 0) {
|
|
32346
|
-
error.all = all;
|
|
32347
|
-
}
|
|
32348
|
-
if ("bufferedData" in error) {
|
|
32349
|
-
delete error.bufferedData;
|
|
32350
|
-
}
|
|
32351
|
-
error.failed = true;
|
|
32352
|
-
error.timedOut = Boolean(timedOut);
|
|
32353
|
-
error.isCanceled = isCanceled;
|
|
32354
|
-
error.killed = killed && !timedOut;
|
|
32355
|
-
return error;
|
|
32356
|
-
};
|
|
32357
|
-
|
|
32358
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stdio.js
|
|
32359
|
-
var aliases = ["stdin", "stdout", "stderr"];
|
|
32360
|
-
var hasAlias = (options) => aliases.some((alias) => options[alias] !== void 0);
|
|
32361
|
-
var normalizeStdio = (options) => {
|
|
32362
|
-
if (!options) {
|
|
32363
|
-
return;
|
|
32364
|
-
}
|
|
32365
|
-
const { stdio } = options;
|
|
32366
|
-
if (stdio === void 0) {
|
|
32367
|
-
return aliases.map((alias) => options[alias]);
|
|
32368
|
-
}
|
|
32369
|
-
if (hasAlias(options)) {
|
|
32370
|
-
throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
|
|
32371
|
-
}
|
|
32372
|
-
if (typeof stdio === "string") {
|
|
32373
|
-
return stdio;
|
|
32374
|
-
}
|
|
32375
|
-
if (!Array.isArray(stdio)) {
|
|
32376
|
-
throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
|
|
32377
|
-
}
|
|
32378
|
-
const length = Math.max(stdio.length, aliases.length);
|
|
32379
|
-
return Array.from({ length }, (value, index) => stdio[index]);
|
|
32380
|
-
};
|
|
32381
|
-
|
|
32382
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
|
|
32383
|
-
var import_node_os3 = __toESM(require("node:os"), 1);
|
|
32384
|
-
|
|
32385
|
-
// node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
32386
|
-
var signals = [];
|
|
32387
|
-
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
32388
|
-
if (process.platform !== "win32") {
|
|
32389
|
-
signals.push(
|
|
32390
|
-
"SIGALRM",
|
|
32391
|
-
"SIGABRT",
|
|
32392
|
-
"SIGVTALRM",
|
|
32393
|
-
"SIGXCPU",
|
|
32394
|
-
"SIGXFSZ",
|
|
32395
|
-
"SIGUSR2",
|
|
32396
|
-
"SIGTRAP",
|
|
32397
|
-
"SIGSYS",
|
|
32398
|
-
"SIGQUIT",
|
|
32399
|
-
"SIGIOT"
|
|
32400
|
-
// should detect profiler and enable/disable accordingly.
|
|
32401
|
-
// see #21
|
|
32402
|
-
// 'SIGPROF'
|
|
32403
|
-
);
|
|
32404
|
-
}
|
|
32405
|
-
if (process.platform === "linux") {
|
|
32406
|
-
signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
32407
|
-
}
|
|
32408
|
-
|
|
32409
|
-
// node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
|
|
32410
|
-
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";
|
|
32411
|
-
var kExitEmitter = Symbol.for("signal-exit emitter");
|
|
32412
|
-
var global2 = globalThis;
|
|
32413
|
-
var ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
32414
|
-
var Emitter = class {
|
|
32415
|
-
emitted = {
|
|
32416
|
-
afterExit: false,
|
|
32417
|
-
exit: false
|
|
32418
|
-
};
|
|
32419
|
-
listeners = {
|
|
32420
|
-
afterExit: [],
|
|
32421
|
-
exit: []
|
|
32422
|
-
};
|
|
32423
|
-
count = 0;
|
|
32424
|
-
id = Math.random();
|
|
32425
|
-
constructor() {
|
|
32426
|
-
if (global2[kExitEmitter]) {
|
|
32427
|
-
return global2[kExitEmitter];
|
|
32428
|
-
}
|
|
32429
|
-
ObjectDefineProperty(global2, kExitEmitter, {
|
|
32430
|
-
value: this,
|
|
32431
|
-
writable: false,
|
|
32432
|
-
enumerable: false,
|
|
32433
|
-
configurable: false
|
|
32434
|
-
});
|
|
32435
|
-
}
|
|
32436
|
-
on(ev, fn) {
|
|
32437
|
-
this.listeners[ev].push(fn);
|
|
32438
|
-
}
|
|
32439
|
-
removeListener(ev, fn) {
|
|
32440
|
-
const list = this.listeners[ev];
|
|
32441
|
-
const i = list.indexOf(fn);
|
|
32442
|
-
if (i === -1) {
|
|
32443
|
-
return;
|
|
32444
|
-
}
|
|
32445
|
-
if (i === 0 && list.length === 1) {
|
|
32446
|
-
list.length = 0;
|
|
32447
|
-
} else {
|
|
32448
|
-
list.splice(i, 1);
|
|
32449
|
-
}
|
|
32450
|
-
}
|
|
32451
|
-
emit(ev, code, signal) {
|
|
32452
|
-
if (this.emitted[ev]) {
|
|
32453
|
-
return false;
|
|
32454
|
-
}
|
|
32455
|
-
this.emitted[ev] = true;
|
|
32456
|
-
let ret = false;
|
|
32457
|
-
for (const fn of this.listeners[ev]) {
|
|
32458
|
-
ret = fn(code, signal) === true || ret;
|
|
32459
|
-
}
|
|
32460
|
-
if (ev === "exit") {
|
|
32461
|
-
ret = this.emit("afterExit", code, signal) || ret;
|
|
32462
|
-
}
|
|
32463
|
-
return ret;
|
|
32464
|
-
}
|
|
32465
|
-
};
|
|
32466
|
-
var SignalExitBase = class {
|
|
32467
|
-
};
|
|
32468
|
-
var signalExitWrap = (handler) => {
|
|
32469
|
-
return {
|
|
32470
|
-
onExit(cb, opts) {
|
|
32471
|
-
return handler.onExit(cb, opts);
|
|
32472
|
-
},
|
|
32473
|
-
load() {
|
|
32474
|
-
return handler.load();
|
|
32475
|
-
},
|
|
32476
|
-
unload() {
|
|
32477
|
-
return handler.unload();
|
|
32478
|
-
}
|
|
32479
|
-
};
|
|
32480
|
-
};
|
|
32481
|
-
var SignalExitFallback = class extends SignalExitBase {
|
|
32482
|
-
onExit() {
|
|
32483
|
-
return () => {
|
|
32484
|
-
};
|
|
32485
|
-
}
|
|
32486
|
-
load() {
|
|
32487
|
-
}
|
|
32488
|
-
unload() {
|
|
32489
|
-
}
|
|
32490
|
-
};
|
|
32491
|
-
var SignalExit = class extends SignalExitBase {
|
|
32492
|
-
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
|
32493
|
-
// so use a supported signal instead
|
|
32494
|
-
/* c8 ignore start */
|
|
32495
|
-
#hupSig = process4.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
32496
|
-
/* c8 ignore stop */
|
|
32497
|
-
#emitter = new Emitter();
|
|
32498
|
-
#process;
|
|
32499
|
-
#originalProcessEmit;
|
|
32500
|
-
#originalProcessReallyExit;
|
|
32501
|
-
#sigListeners = {};
|
|
32502
|
-
#loaded = false;
|
|
32503
|
-
constructor(process7) {
|
|
32504
|
-
super();
|
|
32505
|
-
this.#process = process7;
|
|
32506
|
-
this.#sigListeners = {};
|
|
32507
|
-
for (const sig of signals) {
|
|
32508
|
-
this.#sigListeners[sig] = () => {
|
|
32509
|
-
const listeners = this.#process.listeners(sig);
|
|
32510
|
-
let { count } = this.#emitter;
|
|
32511
|
-
const p = process7;
|
|
32512
|
-
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
|
32513
|
-
count += p.__signal_exit_emitter__.count;
|
|
32514
|
-
}
|
|
32515
|
-
if (listeners.length === count) {
|
|
32516
|
-
this.unload();
|
|
32517
|
-
const ret = this.#emitter.emit("exit", null, sig);
|
|
32518
|
-
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
32519
|
-
if (!ret)
|
|
32520
|
-
process7.kill(process7.pid, s);
|
|
32521
|
-
}
|
|
32522
|
-
};
|
|
32523
|
-
}
|
|
32524
|
-
this.#originalProcessReallyExit = process7.reallyExit;
|
|
32525
|
-
this.#originalProcessEmit = process7.emit;
|
|
32526
|
-
}
|
|
32527
|
-
onExit(cb, opts) {
|
|
32528
|
-
if (!processOk(this.#process)) {
|
|
32529
|
-
return () => {
|
|
32530
|
-
};
|
|
32531
|
-
}
|
|
32532
|
-
if (this.#loaded === false) {
|
|
32533
|
-
this.load();
|
|
32534
|
-
}
|
|
32535
|
-
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
32536
|
-
this.#emitter.on(ev, cb);
|
|
32537
|
-
return () => {
|
|
32538
|
-
this.#emitter.removeListener(ev, cb);
|
|
32539
|
-
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
|
|
32540
|
-
this.unload();
|
|
32541
|
-
}
|
|
32542
|
-
};
|
|
32543
|
-
}
|
|
32544
|
-
load() {
|
|
32545
|
-
if (this.#loaded) {
|
|
32546
|
-
return;
|
|
32547
|
-
}
|
|
32548
|
-
this.#loaded = true;
|
|
32549
|
-
this.#emitter.count += 1;
|
|
32550
|
-
for (const sig of signals) {
|
|
32551
|
-
try {
|
|
32552
|
-
const fn = this.#sigListeners[sig];
|
|
32553
|
-
if (fn)
|
|
32554
|
-
this.#process.on(sig, fn);
|
|
32555
|
-
} catch (_) {
|
|
32556
|
-
}
|
|
32557
|
-
}
|
|
32558
|
-
this.#process.emit = (ev, ...a) => {
|
|
32559
|
-
return this.#processEmit(ev, ...a);
|
|
32560
|
-
};
|
|
32561
|
-
this.#process.reallyExit = (code) => {
|
|
32562
|
-
return this.#processReallyExit(code);
|
|
32563
|
-
};
|
|
32564
|
-
}
|
|
32565
|
-
unload() {
|
|
32566
|
-
if (!this.#loaded) {
|
|
32567
|
-
return;
|
|
32568
|
-
}
|
|
32569
|
-
this.#loaded = false;
|
|
32570
|
-
signals.forEach((sig) => {
|
|
32571
|
-
const listener = this.#sigListeners[sig];
|
|
32572
|
-
if (!listener) {
|
|
32573
|
-
throw new Error("Listener not defined for signal: " + sig);
|
|
32574
|
-
}
|
|
32575
|
-
try {
|
|
32576
|
-
this.#process.removeListener(sig, listener);
|
|
32577
|
-
} catch (_) {
|
|
32578
|
-
}
|
|
32579
|
-
});
|
|
32580
|
-
this.#process.emit = this.#originalProcessEmit;
|
|
32581
|
-
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
32582
|
-
this.#emitter.count -= 1;
|
|
32583
|
-
}
|
|
32584
|
-
#processReallyExit(code) {
|
|
32585
|
-
if (!processOk(this.#process)) {
|
|
32586
|
-
return 0;
|
|
32587
|
-
}
|
|
32588
|
-
this.#process.exitCode = code || 0;
|
|
32589
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
32590
|
-
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
32591
|
-
}
|
|
32592
|
-
#processEmit(ev, ...args) {
|
|
32593
|
-
const og = this.#originalProcessEmit;
|
|
32594
|
-
if (ev === "exit" && processOk(this.#process)) {
|
|
32595
|
-
if (typeof args[0] === "number") {
|
|
32596
|
-
this.#process.exitCode = args[0];
|
|
32597
|
-
}
|
|
32598
|
-
const ret = og.call(this.#process, ev, ...args);
|
|
32599
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
32600
|
-
return ret;
|
|
32601
|
-
} else {
|
|
32602
|
-
return og.call(this.#process, ev, ...args);
|
|
32603
|
-
}
|
|
32604
|
-
}
|
|
32605
|
-
};
|
|
32606
|
-
var process4 = globalThis.process;
|
|
32607
|
-
var {
|
|
32608
|
-
/**
|
|
32609
|
-
* Called when the process is exiting, whether via signal, explicit
|
|
32610
|
-
* exit, or running out of stuff to do.
|
|
32611
|
-
*
|
|
32612
|
-
* If the global process object is not suitable for instrumentation,
|
|
32613
|
-
* then this will be a no-op.
|
|
32614
|
-
*
|
|
32615
|
-
* Returns a function that may be used to unload signal-exit.
|
|
32616
|
-
*/
|
|
32617
|
-
onExit,
|
|
32618
|
-
/**
|
|
32619
|
-
* Load the listeners. Likely you never need to call this, unless
|
|
32620
|
-
* doing a rather deep integration with signal-exit functionality.
|
|
32621
|
-
* Mostly exposed for the benefit of testing.
|
|
32622
|
-
*
|
|
32623
|
-
* @internal
|
|
32624
|
-
*/
|
|
32625
|
-
load,
|
|
32626
|
-
/**
|
|
32627
|
-
* Unload the listeners. Likely you never need to call this, unless
|
|
32628
|
-
* doing a rather deep integration with signal-exit functionality.
|
|
32629
|
-
* Mostly exposed for the benefit of testing.
|
|
32630
|
-
*
|
|
32631
|
-
* @internal
|
|
32632
|
-
*/
|
|
32633
|
-
unload
|
|
32634
|
-
} = signalExitWrap(processOk(process4) ? new SignalExit(process4) : new SignalExitFallback());
|
|
32635
|
-
|
|
32636
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
|
|
32637
|
-
var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
|
|
32638
|
-
var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
|
|
32639
|
-
const killResult = kill(signal);
|
|
32640
|
-
setKillTimeout(kill, signal, options, killResult);
|
|
32641
|
-
return killResult;
|
|
32642
|
-
};
|
|
32643
|
-
var setKillTimeout = (kill, signal, options, killResult) => {
|
|
32644
|
-
if (!shouldForceKill(signal, options, killResult)) {
|
|
32645
|
-
return;
|
|
32646
|
-
}
|
|
32647
|
-
const timeout = getForceKillAfterTimeout(options);
|
|
32648
|
-
const t = setTimeout(() => {
|
|
32649
|
-
kill("SIGKILL");
|
|
32650
|
-
}, timeout);
|
|
32651
|
-
if (t.unref) {
|
|
32652
|
-
t.unref();
|
|
32653
|
-
}
|
|
32654
|
-
};
|
|
32655
|
-
var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
|
|
32656
|
-
var isSigterm = (signal) => signal === import_node_os3.default.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
|
|
32657
|
-
var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
|
|
32658
|
-
if (forceKillAfterTimeout === true) {
|
|
32659
|
-
return DEFAULT_FORCE_KILL_TIMEOUT;
|
|
32660
|
-
}
|
|
32661
|
-
if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
|
|
32662
|
-
throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
|
|
32663
|
-
}
|
|
32664
|
-
return forceKillAfterTimeout;
|
|
32665
|
-
};
|
|
32666
|
-
var spawnedCancel = (spawned, context) => {
|
|
32667
|
-
const killResult = spawned.kill();
|
|
32668
|
-
if (killResult) {
|
|
32669
|
-
context.isCanceled = true;
|
|
32670
|
-
}
|
|
32671
|
-
};
|
|
32672
|
-
var timeoutKill = (spawned, signal, reject) => {
|
|
32673
|
-
spawned.kill(signal);
|
|
32674
|
-
reject(Object.assign(new Error("Timed out"), { timedOut: true, signal }));
|
|
32675
|
-
};
|
|
32676
|
-
var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
|
|
32677
|
-
if (timeout === 0 || timeout === void 0) {
|
|
32678
|
-
return spawnedPromise;
|
|
32679
|
-
}
|
|
32680
|
-
let timeoutId;
|
|
32681
|
-
const timeoutPromise = new Promise((resolve, reject) => {
|
|
32682
|
-
timeoutId = setTimeout(() => {
|
|
32683
|
-
timeoutKill(spawned, killSignal, reject);
|
|
32684
|
-
}, timeout);
|
|
32685
|
-
});
|
|
32686
|
-
const safeSpawnedPromise = spawnedPromise.finally(() => {
|
|
32687
|
-
clearTimeout(timeoutId);
|
|
32688
|
-
});
|
|
32689
|
-
return Promise.race([timeoutPromise, safeSpawnedPromise]);
|
|
32690
|
-
};
|
|
32691
|
-
var validateTimeout = ({ timeout }) => {
|
|
32692
|
-
if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
|
|
32693
|
-
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
|
|
32694
|
-
}
|
|
32695
|
-
};
|
|
32696
|
-
var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => {
|
|
32697
|
-
if (!cleanup || detached) {
|
|
32698
|
-
return timedPromise;
|
|
32699
|
-
}
|
|
32700
|
-
const removeExitHandler = onExit(() => {
|
|
32701
|
-
spawned.kill();
|
|
32702
|
-
});
|
|
32703
|
-
return timedPromise.finally(() => {
|
|
32704
|
-
removeExitHandler();
|
|
32705
|
-
});
|
|
32706
|
-
};
|
|
32707
|
-
|
|
32708
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
|
|
32709
|
-
var import_node_fs3 = require("node:fs");
|
|
32710
|
-
var import_node_child_process = require("node:child_process");
|
|
32711
|
-
|
|
32712
|
-
// node_modules/.pnpm/is-stream@3.0.0/node_modules/is-stream/index.js
|
|
32713
|
-
function isStream(stream) {
|
|
32714
|
-
return stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
|
|
32715
|
-
}
|
|
32716
|
-
function isWritableStream(stream) {
|
|
32717
|
-
return isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
|
|
32718
|
-
}
|
|
32719
|
-
|
|
32720
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
|
|
32721
|
-
var isExecaChildProcess = (target) => target instanceof import_node_child_process.ChildProcess && typeof target.then === "function";
|
|
32722
|
-
var pipeToTarget = (spawned, streamName, target) => {
|
|
32723
|
-
if (typeof target === "string") {
|
|
32724
|
-
spawned[streamName].pipe((0, import_node_fs3.createWriteStream)(target));
|
|
32725
|
-
return spawned;
|
|
32726
|
-
}
|
|
32727
|
-
if (isWritableStream(target)) {
|
|
32728
|
-
spawned[streamName].pipe(target);
|
|
32729
|
-
return spawned;
|
|
32730
|
-
}
|
|
32731
|
-
if (!isExecaChildProcess(target)) {
|
|
32732
|
-
throw new TypeError("The second argument must be a string, a stream or an Execa child process.");
|
|
32733
|
-
}
|
|
32734
|
-
if (!isWritableStream(target.stdin)) {
|
|
32735
|
-
throw new TypeError("The target child process's stdin must be available.");
|
|
32736
|
-
}
|
|
32737
|
-
spawned[streamName].pipe(target.stdin);
|
|
32738
|
-
return target;
|
|
32739
|
-
};
|
|
32740
|
-
var addPipeMethods = (spawned) => {
|
|
32741
|
-
if (spawned.stdout !== null) {
|
|
32742
|
-
spawned.pipeStdout = pipeToTarget.bind(void 0, spawned, "stdout");
|
|
32743
|
-
}
|
|
32744
|
-
if (spawned.stderr !== null) {
|
|
32745
|
-
spawned.pipeStderr = pipeToTarget.bind(void 0, spawned, "stderr");
|
|
32746
|
-
}
|
|
32747
|
-
if (spawned.all !== void 0) {
|
|
32748
|
-
spawned.pipeAll = pipeToTarget.bind(void 0, spawned, "all");
|
|
32749
|
-
}
|
|
32750
|
-
};
|
|
32751
|
-
|
|
32752
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
|
|
32753
|
-
var import_node_fs4 = require("node:fs");
|
|
32754
|
-
var import_promises = require("node:timers/promises");
|
|
32755
|
-
|
|
32756
|
-
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/contents.js
|
|
32757
|
-
var getStreamContents = async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
|
|
32758
|
-
if (!isAsyncIterable(stream)) {
|
|
32759
|
-
throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");
|
|
32760
|
-
}
|
|
32761
|
-
const state = init();
|
|
32762
|
-
state.length = 0;
|
|
32763
|
-
try {
|
|
32764
|
-
for await (const chunk of stream) {
|
|
32765
|
-
const chunkType = getChunkType(chunk);
|
|
32766
|
-
const convertedChunk = convertChunk[chunkType](chunk, state);
|
|
32767
|
-
appendChunk({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
|
|
32768
|
-
}
|
|
32769
|
-
appendFinalChunk({ state, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer });
|
|
32770
|
-
return finalize(state);
|
|
32771
|
-
} catch (error) {
|
|
32772
|
-
error.bufferedData = finalize(state);
|
|
32773
|
-
throw error;
|
|
32774
|
-
}
|
|
32775
|
-
};
|
|
32776
|
-
var appendFinalChunk = ({ state, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer }) => {
|
|
32777
|
-
const convertedChunk = getFinalChunk(state);
|
|
32778
|
-
if (convertedChunk !== void 0) {
|
|
32779
|
-
appendChunk({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
|
|
32780
|
-
}
|
|
32781
|
-
};
|
|
32782
|
-
var appendChunk = ({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer }) => {
|
|
32783
|
-
const chunkSize = getSize(convertedChunk);
|
|
32784
|
-
const newLength = state.length + chunkSize;
|
|
32785
|
-
if (newLength <= maxBuffer) {
|
|
32786
|
-
addNewChunk(convertedChunk, state, addChunk, newLength);
|
|
32787
|
-
return;
|
|
32788
|
-
}
|
|
32789
|
-
const truncatedChunk = truncateChunk(convertedChunk, maxBuffer - state.length);
|
|
32790
|
-
if (truncatedChunk !== void 0) {
|
|
32791
|
-
addNewChunk(truncatedChunk, state, addChunk, maxBuffer);
|
|
32792
|
-
}
|
|
32793
|
-
throw new MaxBufferError();
|
|
32794
|
-
};
|
|
32795
|
-
var addNewChunk = (convertedChunk, state, addChunk, newLength) => {
|
|
32796
|
-
state.contents = addChunk(convertedChunk, state, newLength);
|
|
32797
|
-
state.length = newLength;
|
|
32798
|
-
};
|
|
32799
|
-
var isAsyncIterable = (stream) => typeof stream === "object" && stream !== null && typeof stream[Symbol.asyncIterator] === "function";
|
|
32800
|
-
var getChunkType = (chunk) => {
|
|
32801
|
-
const typeOfChunk = typeof chunk;
|
|
32802
|
-
if (typeOfChunk === "string") {
|
|
32803
|
-
return "string";
|
|
32804
|
-
}
|
|
32805
|
-
if (typeOfChunk !== "object" || chunk === null) {
|
|
32806
|
-
return "others";
|
|
32807
|
-
}
|
|
32808
|
-
if (globalThis.Buffer?.isBuffer(chunk)) {
|
|
32809
|
-
return "buffer";
|
|
32810
|
-
}
|
|
32811
|
-
const prototypeName = objectToString.call(chunk);
|
|
32812
|
-
if (prototypeName === "[object ArrayBuffer]") {
|
|
32813
|
-
return "arrayBuffer";
|
|
32814
|
-
}
|
|
32815
|
-
if (prototypeName === "[object DataView]") {
|
|
32816
|
-
return "dataView";
|
|
32817
|
-
}
|
|
32818
|
-
if (Number.isInteger(chunk.byteLength) && Number.isInteger(chunk.byteOffset) && objectToString.call(chunk.buffer) === "[object ArrayBuffer]") {
|
|
32819
|
-
return "typedArray";
|
|
32820
|
-
}
|
|
32821
|
-
return "others";
|
|
32822
|
-
};
|
|
32823
|
-
var { toString: objectToString } = Object.prototype;
|
|
32824
|
-
var MaxBufferError = class extends Error {
|
|
32825
|
-
name = "MaxBufferError";
|
|
32826
|
-
constructor() {
|
|
32827
|
-
super("maxBuffer exceeded");
|
|
32828
|
-
}
|
|
32829
|
-
};
|
|
32830
|
-
|
|
32831
|
-
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/utils.js
|
|
32832
|
-
var identity = (value) => value;
|
|
32833
|
-
var noop = () => void 0;
|
|
32834
|
-
var getContentsProp = ({ contents }) => contents;
|
|
32835
|
-
var throwObjectStream = (chunk) => {
|
|
32836
|
-
throw new Error(`Streams in object mode are not supported: ${String(chunk)}`);
|
|
32837
|
-
};
|
|
32838
|
-
var getLengthProp = (convertedChunk) => convertedChunk.length;
|
|
32839
|
-
|
|
32840
|
-
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/array-buffer.js
|
|
32841
|
-
async function getStreamAsArrayBuffer(stream, options) {
|
|
32842
|
-
return getStreamContents(stream, arrayBufferMethods, options);
|
|
32843
|
-
}
|
|
32844
|
-
var initArrayBuffer = () => ({ contents: new ArrayBuffer(0) });
|
|
32845
|
-
var useTextEncoder = (chunk) => textEncoder.encode(chunk);
|
|
32846
|
-
var textEncoder = new TextEncoder();
|
|
32847
|
-
var useUint8Array = (chunk) => new Uint8Array(chunk);
|
|
32848
|
-
var useUint8ArrayWithOffset = (chunk) => new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength);
|
|
32849
|
-
var truncateArrayBufferChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
|
|
32850
|
-
var addArrayBufferChunk = (convertedChunk, { contents, length: previousLength }, length) => {
|
|
32851
|
-
const newContents = hasArrayBufferResize() ? resizeArrayBuffer(contents, length) : resizeArrayBufferSlow(contents, length);
|
|
32852
|
-
new Uint8Array(newContents).set(convertedChunk, previousLength);
|
|
32853
|
-
return newContents;
|
|
32854
|
-
};
|
|
32855
|
-
var resizeArrayBufferSlow = (contents, length) => {
|
|
32856
|
-
if (length <= contents.byteLength) {
|
|
32857
|
-
return contents;
|
|
32858
|
-
}
|
|
32859
|
-
const arrayBuffer = new ArrayBuffer(getNewContentsLength(length));
|
|
32860
|
-
new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
|
|
32861
|
-
return arrayBuffer;
|
|
32862
|
-
};
|
|
32863
|
-
var resizeArrayBuffer = (contents, length) => {
|
|
32864
|
-
if (length <= contents.maxByteLength) {
|
|
32865
|
-
contents.resize(length);
|
|
32866
|
-
return contents;
|
|
32867
|
-
}
|
|
32868
|
-
const arrayBuffer = new ArrayBuffer(length, { maxByteLength: getNewContentsLength(length) });
|
|
32869
|
-
new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
|
|
32870
|
-
return arrayBuffer;
|
|
32871
|
-
};
|
|
32872
|
-
var getNewContentsLength = (length) => SCALE_FACTOR ** Math.ceil(Math.log(length) / Math.log(SCALE_FACTOR));
|
|
32873
|
-
var SCALE_FACTOR = 2;
|
|
32874
|
-
var finalizeArrayBuffer = ({ contents, length }) => hasArrayBufferResize() ? contents : contents.slice(0, length);
|
|
32875
|
-
var hasArrayBufferResize = () => "resize" in ArrayBuffer.prototype;
|
|
32876
|
-
var arrayBufferMethods = {
|
|
32877
|
-
init: initArrayBuffer,
|
|
32878
|
-
convertChunk: {
|
|
32879
|
-
string: useTextEncoder,
|
|
32880
|
-
buffer: useUint8Array,
|
|
32881
|
-
arrayBuffer: useUint8Array,
|
|
32882
|
-
dataView: useUint8ArrayWithOffset,
|
|
32883
|
-
typedArray: useUint8ArrayWithOffset,
|
|
32884
|
-
others: throwObjectStream
|
|
32885
|
-
},
|
|
32886
|
-
getSize: getLengthProp,
|
|
32887
|
-
truncateChunk: truncateArrayBufferChunk,
|
|
32888
|
-
addChunk: addArrayBufferChunk,
|
|
32889
|
-
getFinalChunk: noop,
|
|
32890
|
-
finalize: finalizeArrayBuffer
|
|
32891
|
-
};
|
|
32892
|
-
|
|
32893
|
-
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/buffer.js
|
|
32894
|
-
async function getStreamAsBuffer(stream, options) {
|
|
32895
|
-
if (!("Buffer" in globalThis)) {
|
|
32896
|
-
throw new Error("getStreamAsBuffer() is only supported in Node.js");
|
|
32897
|
-
}
|
|
32898
|
-
try {
|
|
32899
|
-
return arrayBufferToNodeBuffer(await getStreamAsArrayBuffer(stream, options));
|
|
32900
|
-
} catch (error) {
|
|
32901
|
-
if (error.bufferedData !== void 0) {
|
|
32902
|
-
error.bufferedData = arrayBufferToNodeBuffer(error.bufferedData);
|
|
32903
|
-
}
|
|
32904
|
-
throw error;
|
|
32905
|
-
}
|
|
32906
|
-
}
|
|
32907
|
-
var arrayBufferToNodeBuffer = (arrayBuffer) => globalThis.Buffer.from(arrayBuffer);
|
|
32908
|
-
|
|
32909
|
-
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/string.js
|
|
32910
|
-
async function getStreamAsString(stream, options) {
|
|
32911
|
-
return getStreamContents(stream, stringMethods, options);
|
|
32912
|
-
}
|
|
32913
|
-
var initString = () => ({ contents: "", textDecoder: new TextDecoder() });
|
|
32914
|
-
var useTextDecoder = (chunk, { textDecoder }) => textDecoder.decode(chunk, { stream: true });
|
|
32915
|
-
var addStringChunk = (convertedChunk, { contents }) => contents + convertedChunk;
|
|
32916
|
-
var truncateStringChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
|
|
32917
|
-
var getFinalStringChunk = ({ textDecoder }) => {
|
|
32918
|
-
const finalChunk = textDecoder.decode();
|
|
32919
|
-
return finalChunk === "" ? void 0 : finalChunk;
|
|
32920
|
-
};
|
|
32921
|
-
var stringMethods = {
|
|
32922
|
-
init: initString,
|
|
32923
|
-
convertChunk: {
|
|
32924
|
-
string: identity,
|
|
32925
|
-
buffer: useTextDecoder,
|
|
32926
|
-
arrayBuffer: useTextDecoder,
|
|
32927
|
-
dataView: useTextDecoder,
|
|
32928
|
-
typedArray: useTextDecoder,
|
|
32929
|
-
others: throwObjectStream
|
|
32930
|
-
},
|
|
32931
|
-
getSize: getLengthProp,
|
|
32932
|
-
truncateChunk: truncateStringChunk,
|
|
32933
|
-
addChunk: addStringChunk,
|
|
32934
|
-
getFinalChunk: getFinalStringChunk,
|
|
32935
|
-
finalize: getContentsProp
|
|
32936
|
-
};
|
|
32937
|
-
|
|
32938
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
|
|
32939
|
-
var import_merge_stream = __toESM(require_merge_stream(), 1);
|
|
32940
|
-
var validateInputOptions = (input) => {
|
|
32941
|
-
if (input !== void 0) {
|
|
32942
|
-
throw new TypeError("The `input` and `inputFile` options cannot be both set.");
|
|
32943
|
-
}
|
|
32944
|
-
};
|
|
32945
|
-
var getInputSync = ({ input, inputFile }) => {
|
|
32946
|
-
if (typeof inputFile !== "string") {
|
|
32947
|
-
return input;
|
|
32948
|
-
}
|
|
32949
|
-
validateInputOptions(input);
|
|
32950
|
-
return (0, import_node_fs4.readFileSync)(inputFile);
|
|
32951
|
-
};
|
|
32952
|
-
var handleInputSync = (options) => {
|
|
32953
|
-
const input = getInputSync(options);
|
|
32954
|
-
if (isStream(input)) {
|
|
32955
|
-
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
32956
|
-
}
|
|
32957
|
-
return input;
|
|
32958
|
-
};
|
|
32959
|
-
var getInput = ({ input, inputFile }) => {
|
|
32960
|
-
if (typeof inputFile !== "string") {
|
|
32961
|
-
return input;
|
|
32962
|
-
}
|
|
32963
|
-
validateInputOptions(input);
|
|
32964
|
-
return (0, import_node_fs4.createReadStream)(inputFile);
|
|
32965
|
-
};
|
|
32966
|
-
var handleInput = (spawned, options) => {
|
|
32967
|
-
const input = getInput(options);
|
|
32968
|
-
if (input === void 0) {
|
|
32969
|
-
return;
|
|
32970
|
-
}
|
|
32971
|
-
if (isStream(input)) {
|
|
32972
|
-
input.pipe(spawned.stdin);
|
|
32973
|
-
} else {
|
|
32974
|
-
spawned.stdin.end(input);
|
|
32975
|
-
}
|
|
32976
|
-
};
|
|
32977
|
-
var makeAllStream = (spawned, { all }) => {
|
|
32978
|
-
if (!all || !spawned.stdout && !spawned.stderr) {
|
|
32979
|
-
return;
|
|
32980
|
-
}
|
|
32981
|
-
const mixed = (0, import_merge_stream.default)();
|
|
32982
|
-
if (spawned.stdout) {
|
|
32983
|
-
mixed.add(spawned.stdout);
|
|
32984
|
-
}
|
|
32985
|
-
if (spawned.stderr) {
|
|
32986
|
-
mixed.add(spawned.stderr);
|
|
32987
|
-
}
|
|
32988
|
-
return mixed;
|
|
32989
|
-
};
|
|
32990
|
-
var getBufferedData = async (stream, streamPromise) => {
|
|
32991
|
-
if (!stream || streamPromise === void 0) {
|
|
32992
|
-
return;
|
|
32993
|
-
}
|
|
32994
|
-
await (0, import_promises.setTimeout)(0);
|
|
32995
|
-
stream.destroy();
|
|
32996
|
-
try {
|
|
32997
|
-
return await streamPromise;
|
|
32998
|
-
} catch (error) {
|
|
32999
|
-
return error.bufferedData;
|
|
33000
|
-
}
|
|
33001
|
-
};
|
|
33002
|
-
var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => {
|
|
33003
|
-
if (!stream || !buffer) {
|
|
33004
|
-
return;
|
|
33005
|
-
}
|
|
33006
|
-
if (encoding === "utf8" || encoding === "utf-8") {
|
|
33007
|
-
return getStreamAsString(stream, { maxBuffer });
|
|
33008
|
-
}
|
|
33009
|
-
if (encoding === null || encoding === "buffer") {
|
|
33010
|
-
return getStreamAsBuffer(stream, { maxBuffer });
|
|
33011
|
-
}
|
|
33012
|
-
return applyEncoding(stream, maxBuffer, encoding);
|
|
33013
|
-
};
|
|
33014
|
-
var applyEncoding = async (stream, maxBuffer, encoding) => {
|
|
33015
|
-
const buffer = await getStreamAsBuffer(stream, { maxBuffer });
|
|
33016
|
-
return buffer.toString(encoding);
|
|
33017
|
-
};
|
|
33018
|
-
var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
|
|
33019
|
-
const stdoutPromise = getStreamPromise(stdout, { encoding, buffer, maxBuffer });
|
|
33020
|
-
const stderrPromise = getStreamPromise(stderr, { encoding, buffer, maxBuffer });
|
|
33021
|
-
const allPromise = getStreamPromise(all, { encoding, buffer, maxBuffer: maxBuffer * 2 });
|
|
33022
|
-
try {
|
|
33023
|
-
return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);
|
|
33024
|
-
} catch (error) {
|
|
33025
|
-
return Promise.all([
|
|
33026
|
-
{ error, signal: error.signal, timedOut: error.timedOut },
|
|
33027
|
-
getBufferedData(stdout, stdoutPromise),
|
|
33028
|
-
getBufferedData(stderr, stderrPromise),
|
|
33029
|
-
getBufferedData(all, allPromise)
|
|
33030
|
-
]);
|
|
33031
|
-
}
|
|
33032
|
-
};
|
|
33033
|
-
|
|
33034
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/promise.js
|
|
33035
|
-
var nativePromisePrototype = (async () => {
|
|
33036
|
-
})().constructor.prototype;
|
|
33037
|
-
var descriptors = ["then", "catch", "finally"].map((property) => [
|
|
33038
|
-
property,
|
|
33039
|
-
Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
|
|
33040
|
-
]);
|
|
33041
|
-
var mergePromise = (spawned, promise) => {
|
|
33042
|
-
for (const [property, descriptor] of descriptors) {
|
|
33043
|
-
const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);
|
|
33044
|
-
Reflect.defineProperty(spawned, property, { ...descriptor, value });
|
|
33045
|
-
}
|
|
33046
|
-
};
|
|
33047
|
-
var getSpawnedPromise = (spawned) => new Promise((resolve, reject) => {
|
|
33048
|
-
spawned.on("exit", (exitCode, signal) => {
|
|
33049
|
-
resolve({ exitCode, signal });
|
|
33050
|
-
});
|
|
33051
|
-
spawned.on("error", (error) => {
|
|
33052
|
-
reject(error);
|
|
33053
|
-
});
|
|
33054
|
-
if (spawned.stdin) {
|
|
33055
|
-
spawned.stdin.on("error", (error) => {
|
|
33056
|
-
reject(error);
|
|
33057
|
-
});
|
|
33058
|
-
}
|
|
33059
|
-
});
|
|
33060
|
-
|
|
33061
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/command.js
|
|
33062
|
-
var import_node_buffer = require("node:buffer");
|
|
33063
|
-
var import_node_child_process2 = require("node:child_process");
|
|
33064
|
-
var normalizeArgs = (file, args = []) => {
|
|
33065
|
-
if (!Array.isArray(args)) {
|
|
33066
|
-
return [file];
|
|
33067
|
-
}
|
|
33068
|
-
return [file, ...args];
|
|
33069
|
-
};
|
|
33070
|
-
var NO_ESCAPE_REGEXP = /^[\w.-]+$/;
|
|
33071
|
-
var escapeArg = (arg) => {
|
|
33072
|
-
if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) {
|
|
33073
|
-
return arg;
|
|
33074
|
-
}
|
|
33075
|
-
return `"${arg.replaceAll('"', '\\"')}"`;
|
|
33076
|
-
};
|
|
33077
|
-
var joinCommand = (file, args) => normalizeArgs(file, args).join(" ");
|
|
33078
|
-
var getEscapedCommand = (file, args) => normalizeArgs(file, args).map((arg) => escapeArg(arg)).join(" ");
|
|
33079
|
-
var SPACES_REGEXP = / +/g;
|
|
33080
|
-
var parseExpression = (expression) => {
|
|
33081
|
-
const typeOfExpression = typeof expression;
|
|
33082
|
-
if (typeOfExpression === "string") {
|
|
33083
|
-
return expression;
|
|
33084
|
-
}
|
|
33085
|
-
if (typeOfExpression === "number") {
|
|
33086
|
-
return String(expression);
|
|
33087
|
-
}
|
|
33088
|
-
if (typeOfExpression === "object" && expression !== null && !(expression instanceof import_node_child_process2.ChildProcess) && "stdout" in expression) {
|
|
33089
|
-
const typeOfStdout = typeof expression.stdout;
|
|
33090
|
-
if (typeOfStdout === "string") {
|
|
33091
|
-
return expression.stdout;
|
|
33092
|
-
}
|
|
33093
|
-
if (import_node_buffer.Buffer.isBuffer(expression.stdout)) {
|
|
33094
|
-
return expression.stdout.toString();
|
|
33095
|
-
}
|
|
33096
|
-
throw new TypeError(`Unexpected "${typeOfStdout}" stdout in template expression`);
|
|
33097
|
-
}
|
|
33098
|
-
throw new TypeError(`Unexpected "${typeOfExpression}" in template expression`);
|
|
33099
|
-
};
|
|
33100
|
-
var concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0 ? [...tokens, ...nextTokens] : [
|
|
33101
|
-
...tokens.slice(0, -1),
|
|
33102
|
-
`${tokens.at(-1)}${nextTokens[0]}`,
|
|
33103
|
-
...nextTokens.slice(1)
|
|
33104
|
-
];
|
|
33105
|
-
var parseTemplate = ({ templates, expressions, tokens, index, template }) => {
|
|
33106
|
-
const templateString = template ?? templates.raw[index];
|
|
33107
|
-
const templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);
|
|
33108
|
-
const newTokens = concatTokens(
|
|
33109
|
-
tokens,
|
|
33110
|
-
templateTokens,
|
|
33111
|
-
templateString.startsWith(" ")
|
|
33112
|
-
);
|
|
33113
|
-
if (index === expressions.length) {
|
|
33114
|
-
return newTokens;
|
|
33115
|
-
}
|
|
33116
|
-
const expression = expressions[index];
|
|
33117
|
-
const expressionTokens = Array.isArray(expression) ? expression.map((expression2) => parseExpression(expression2)) : [parseExpression(expression)];
|
|
33118
|
-
return concatTokens(
|
|
33119
|
-
newTokens,
|
|
33120
|
-
expressionTokens,
|
|
33121
|
-
templateString.endsWith(" ")
|
|
33122
|
-
);
|
|
33123
|
-
};
|
|
33124
|
-
var parseTemplates = (templates, expressions) => {
|
|
33125
|
-
let tokens = [];
|
|
33126
|
-
for (const [index, template] of templates.entries()) {
|
|
33127
|
-
tokens = parseTemplate({ templates, expressions, tokens, index, template });
|
|
33128
|
-
}
|
|
33129
|
-
return tokens;
|
|
33130
|
-
};
|
|
33131
|
-
|
|
33132
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/verbose.js
|
|
33133
|
-
var import_node_util = require("node:util");
|
|
33134
|
-
var import_node_process3 = __toESM(require("node:process"), 1);
|
|
33135
|
-
var verboseDefault = (0, import_node_util.debuglog)("execa").enabled;
|
|
33136
|
-
var padField = (field, padding) => String(field).padStart(padding, "0");
|
|
33137
|
-
var getTimestamp = () => {
|
|
33138
|
-
const date = /* @__PURE__ */ new Date();
|
|
33139
|
-
return `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;
|
|
33140
|
-
};
|
|
33141
|
-
var logCommand = (escapedCommand, { verbose }) => {
|
|
33142
|
-
if (!verbose) {
|
|
33143
|
-
return;
|
|
33144
|
-
}
|
|
33145
|
-
import_node_process3.default.stderr.write(`[${getTimestamp()}] ${escapedCommand}
|
|
33146
|
-
`);
|
|
33147
|
-
};
|
|
33148
|
-
|
|
33149
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
|
|
33150
|
-
var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
|
|
33151
|
-
var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
33152
|
-
const env = extendEnv ? { ...import_node_process4.default.env, ...envOption } : envOption;
|
|
33153
|
-
if (preferLocal) {
|
|
33154
|
-
return npmRunPathEnv({ env, cwd: localDir, execPath });
|
|
33155
|
-
}
|
|
33156
|
-
return env;
|
|
33157
|
-
};
|
|
33158
|
-
var handleArguments = (file, args, options = {}) => {
|
|
33159
|
-
const parsed = import_cross_spawn.default._parse(file, args, options);
|
|
33160
|
-
file = parsed.command;
|
|
33161
|
-
args = parsed.args;
|
|
33162
|
-
options = parsed.options;
|
|
33163
|
-
options = {
|
|
33164
|
-
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
33165
|
-
buffer: true,
|
|
33166
|
-
stripFinalNewline: true,
|
|
33167
|
-
extendEnv: true,
|
|
33168
|
-
preferLocal: false,
|
|
33169
|
-
localDir: options.cwd || import_node_process4.default.cwd(),
|
|
33170
|
-
execPath: import_node_process4.default.execPath,
|
|
33171
|
-
encoding: "utf8",
|
|
33172
|
-
reject: true,
|
|
33173
|
-
cleanup: true,
|
|
33174
|
-
all: false,
|
|
33175
|
-
windowsHide: true,
|
|
33176
|
-
verbose: verboseDefault,
|
|
33177
|
-
...options
|
|
33178
|
-
};
|
|
33179
|
-
options.env = getEnv(options);
|
|
33180
|
-
options.stdio = normalizeStdio(options);
|
|
33181
|
-
if (import_node_process4.default.platform === "win32" && import_node_path4.default.basename(file, ".exe") === "cmd") {
|
|
33182
|
-
args.unshift("/q");
|
|
33183
|
-
}
|
|
33184
|
-
return { file, args, options, parsed };
|
|
33185
|
-
};
|
|
33186
|
-
var handleOutput = (options, value, error) => {
|
|
33187
|
-
if (typeof value !== "string" && !import_node_buffer2.Buffer.isBuffer(value)) {
|
|
33188
|
-
return error === void 0 ? void 0 : "";
|
|
33189
|
-
}
|
|
33190
|
-
if (options.stripFinalNewline) {
|
|
33191
|
-
return stripFinalNewline(value);
|
|
33192
|
-
}
|
|
33193
|
-
return value;
|
|
33194
|
-
};
|
|
33195
|
-
function execa(file, args, options) {
|
|
33196
|
-
const parsed = handleArguments(file, args, options);
|
|
33197
|
-
const command = joinCommand(file, args);
|
|
33198
|
-
const escapedCommand = getEscapedCommand(file, args);
|
|
33199
|
-
logCommand(escapedCommand, parsed.options);
|
|
33200
|
-
validateTimeout(parsed.options);
|
|
33201
|
-
let spawned;
|
|
33202
|
-
try {
|
|
33203
|
-
spawned = import_node_child_process3.default.spawn(parsed.file, parsed.args, parsed.options);
|
|
33204
|
-
} catch (error) {
|
|
33205
|
-
const dummySpawned = new import_node_child_process3.default.ChildProcess();
|
|
33206
|
-
const errorPromise = Promise.reject(makeError({
|
|
33207
|
-
error,
|
|
33208
|
-
stdout: "",
|
|
33209
|
-
stderr: "",
|
|
33210
|
-
all: "",
|
|
33211
|
-
command,
|
|
33212
|
-
escapedCommand,
|
|
33213
|
-
parsed,
|
|
33214
|
-
timedOut: false,
|
|
33215
|
-
isCanceled: false,
|
|
33216
|
-
killed: false
|
|
33217
|
-
}));
|
|
33218
|
-
mergePromise(dummySpawned, errorPromise);
|
|
33219
|
-
return dummySpawned;
|
|
33220
|
-
}
|
|
33221
|
-
const spawnedPromise = getSpawnedPromise(spawned);
|
|
33222
|
-
const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
|
|
33223
|
-
const processDone = setExitHandler(spawned, parsed.options, timedPromise);
|
|
33224
|
-
const context = { isCanceled: false };
|
|
33225
|
-
spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
|
|
33226
|
-
spawned.cancel = spawnedCancel.bind(null, spawned, context);
|
|
33227
|
-
const handlePromise = async () => {
|
|
33228
|
-
const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
|
|
33229
|
-
const stdout = handleOutput(parsed.options, stdoutResult);
|
|
33230
|
-
const stderr = handleOutput(parsed.options, stderrResult);
|
|
33231
|
-
const all = handleOutput(parsed.options, allResult);
|
|
33232
|
-
if (error || exitCode !== 0 || signal !== null) {
|
|
33233
|
-
const returnedError = makeError({
|
|
33234
|
-
error,
|
|
33235
|
-
exitCode,
|
|
33236
|
-
signal,
|
|
33237
|
-
stdout,
|
|
33238
|
-
stderr,
|
|
33239
|
-
all,
|
|
33240
|
-
command,
|
|
33241
|
-
escapedCommand,
|
|
33242
|
-
parsed,
|
|
33243
|
-
timedOut,
|
|
33244
|
-
isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),
|
|
33245
|
-
killed: spawned.killed
|
|
33246
|
-
});
|
|
33247
|
-
if (!parsed.options.reject) {
|
|
33248
|
-
return returnedError;
|
|
33249
|
-
}
|
|
33250
|
-
throw returnedError;
|
|
33251
|
-
}
|
|
33252
|
-
return {
|
|
33253
|
-
command,
|
|
33254
|
-
escapedCommand,
|
|
33255
|
-
exitCode: 0,
|
|
33256
|
-
stdout,
|
|
33257
|
-
stderr,
|
|
33258
|
-
all,
|
|
33259
|
-
failed: false,
|
|
33260
|
-
timedOut: false,
|
|
33261
|
-
isCanceled: false,
|
|
33262
|
-
killed: false
|
|
33263
|
-
};
|
|
33264
|
-
};
|
|
33265
|
-
const handlePromiseOnce = onetime_default(handlePromise);
|
|
33266
|
-
handleInput(spawned, parsed.options);
|
|
33267
|
-
spawned.all = makeAllStream(spawned, parsed.options);
|
|
33268
|
-
addPipeMethods(spawned);
|
|
33269
|
-
mergePromise(spawned, handlePromiseOnce);
|
|
33270
|
-
return spawned;
|
|
33271
|
-
}
|
|
33272
|
-
function execaSync(file, args, options) {
|
|
33273
|
-
const parsed = handleArguments(file, args, options);
|
|
33274
|
-
const command = joinCommand(file, args);
|
|
33275
|
-
const escapedCommand = getEscapedCommand(file, args);
|
|
33276
|
-
logCommand(escapedCommand, parsed.options);
|
|
33277
|
-
const input = handleInputSync(parsed.options);
|
|
33278
|
-
let result;
|
|
33279
|
-
try {
|
|
33280
|
-
result = import_node_child_process3.default.spawnSync(parsed.file, parsed.args, { ...parsed.options, input });
|
|
33281
|
-
} catch (error) {
|
|
33282
|
-
throw makeError({
|
|
33283
|
-
error,
|
|
33284
|
-
stdout: "",
|
|
33285
|
-
stderr: "",
|
|
33286
|
-
all: "",
|
|
33287
|
-
command,
|
|
33288
|
-
escapedCommand,
|
|
33289
|
-
parsed,
|
|
33290
|
-
timedOut: false,
|
|
33291
|
-
isCanceled: false,
|
|
33292
|
-
killed: false
|
|
33293
|
-
});
|
|
33294
|
-
}
|
|
33295
|
-
const stdout = handleOutput(parsed.options, result.stdout, result.error);
|
|
33296
|
-
const stderr = handleOutput(parsed.options, result.stderr, result.error);
|
|
33297
|
-
if (result.error || result.status !== 0 || result.signal !== null) {
|
|
33298
|
-
const error = makeError({
|
|
33299
|
-
stdout,
|
|
33300
|
-
stderr,
|
|
33301
|
-
error: result.error,
|
|
33302
|
-
signal: result.signal,
|
|
33303
|
-
exitCode: result.status,
|
|
33304
|
-
command,
|
|
33305
|
-
escapedCommand,
|
|
33306
|
-
parsed,
|
|
33307
|
-
timedOut: result.error && result.error.code === "ETIMEDOUT",
|
|
33308
|
-
isCanceled: false,
|
|
33309
|
-
killed: result.signal !== null
|
|
33310
|
-
});
|
|
33311
|
-
if (!parsed.options.reject) {
|
|
33312
|
-
return error;
|
|
33313
|
-
}
|
|
33314
|
-
throw error;
|
|
33315
|
-
}
|
|
33316
|
-
return {
|
|
33317
|
-
command,
|
|
33318
|
-
escapedCommand,
|
|
33319
|
-
exitCode: 0,
|
|
33320
|
-
stdout,
|
|
33321
|
-
stderr,
|
|
33322
|
-
failed: false,
|
|
33323
|
-
timedOut: false,
|
|
33324
|
-
isCanceled: false,
|
|
33325
|
-
killed: false
|
|
33326
|
-
};
|
|
33327
|
-
}
|
|
33328
|
-
var normalizeScriptStdin = ({ input, inputFile, stdio }) => input === void 0 && inputFile === void 0 && stdio === void 0 ? { stdin: "inherit" } : {};
|
|
33329
|
-
var normalizeScriptOptions = (options = {}) => ({
|
|
33330
|
-
preferLocal: true,
|
|
33331
|
-
...normalizeScriptStdin(options),
|
|
33332
|
-
...options
|
|
33333
|
-
});
|
|
33334
|
-
function create$(options) {
|
|
33335
|
-
function $2(templatesOrOptions, ...expressions) {
|
|
33336
|
-
if (!Array.isArray(templatesOrOptions)) {
|
|
33337
|
-
return create$({ ...options, ...templatesOrOptions });
|
|
33338
|
-
}
|
|
33339
|
-
const [file, ...args] = parseTemplates(templatesOrOptions, expressions);
|
|
33340
|
-
return execa(file, args, normalizeScriptOptions(options));
|
|
33341
|
-
}
|
|
33342
|
-
$2.sync = (templates, ...expressions) => {
|
|
33343
|
-
if (!Array.isArray(templates)) {
|
|
33344
|
-
throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");
|
|
33345
|
-
}
|
|
33346
|
-
const [file, ...args] = parseTemplates(templates, expressions);
|
|
33347
|
-
return execaSync(file, args, normalizeScriptOptions(options));
|
|
33348
|
-
};
|
|
33349
|
-
return $2;
|
|
33350
|
-
}
|
|
33351
|
-
var $ = create$();
|
|
33352
|
-
|
|
33353
31239
|
// packages/config-tools/src/utilities/run.ts
|
|
33354
31240
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
33355
31241
|
|
|
@@ -33724,8 +31610,8 @@ async function configSchemaGeneratorFn(tree, options) {
|
|
|
33724
31610
|
const modules = await Promise.all(
|
|
33725
31611
|
Object.keys(projectConfigurations).map(async (key) => {
|
|
33726
31612
|
if (projectConfigurations[key]?.config) {
|
|
33727
|
-
const configPath = (0,
|
|
33728
|
-
if ((0,
|
|
31613
|
+
const configPath = (0, import_node_path3.join)(workspaceRoot, projectConfigurations[key].config);
|
|
31614
|
+
if ((0, import_node_fs3.existsSync)(configPath)) {
|
|
33729
31615
|
const mod = await import(configPath);
|
|
33730
31616
|
if (mod.default) {
|
|
33731
31617
|
return { name: key, schema: mod.default };
|
|
@@ -33750,7 +31636,7 @@ async function configSchemaGeneratorFn(tree, options) {
|
|
|
33750
31636
|
);
|
|
33751
31637
|
(0, import_devkit.writeJson)(
|
|
33752
31638
|
tree,
|
|
33753
|
-
options.outputFile ? (0,
|
|
31639
|
+
options.outputFile ? (0, import_node_path3.join)(workspaceRoot, options.outputFile) : (0, import_node_path3.join)(workspaceRoot, "storm.schema.json"),
|
|
33754
31640
|
zodToJsonSchema(ModulesSchema, "StormConfig")
|
|
33755
31641
|
);
|
|
33756
31642
|
await (0, import_devkit.formatFiles)(tree);
|