@storm-software/workspace-tools 1.45.2 → 1.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +32 -2
- package/index.js +5070 -3314
- package/meta.json +1 -1
- package/package.json +3 -3
- package/src/base/index.js +3606 -1311
- package/src/executors/design-tokens/executor.js +3073 -973
- package/src/executors/tsup/executor.js +4446 -3253
- package/src/executors/tsup-browser/executor.js +4457 -3264
- package/src/executors/tsup-neutral/executor.js +4457 -3264
- package/src/executors/tsup-node/executor.js +4457 -3264
- package/src/executors/typia/executor.js +2412 -312
- package/src/generators/browser-library/generator.js +3596 -1298
- package/src/generators/config-schema/generator.js +2481 -383
- package/src/generators/init/init.js +49 -49
- package/src/generators/neutral-library/generator.js +3596 -1298
- package/src/generators/node-library/generator.js +3596 -1298
- package/src/generators/preset/generator.js +2489 -389
- package/src/utils/index.js +21 -36
|
@@ -578,9 +578,9 @@ var init_tslib_es6 = __esm({
|
|
|
578
578
|
}
|
|
579
579
|
});
|
|
580
580
|
|
|
581
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
581
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/nx.js
|
|
582
582
|
var require_nx = __commonJS({
|
|
583
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
583
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/nx.js"(exports) {
|
|
584
584
|
"use strict";
|
|
585
585
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
586
586
|
exports.requireNx = void 0;
|
|
@@ -600,13 +600,13 @@ var require_nx = __commonJS({
|
|
|
600
600
|
}
|
|
601
601
|
});
|
|
602
602
|
|
|
603
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
603
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/generators/format-files.js
|
|
604
604
|
var require_format_files = __commonJS({
|
|
605
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
605
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/generators/format-files.js"(exports) {
|
|
606
606
|
"use strict";
|
|
607
607
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
608
608
|
exports.formatFiles = void 0;
|
|
609
|
-
var
|
|
609
|
+
var path3 = 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 = path3.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 path4 of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
671
|
+
if (tree.exists(path4)) {
|
|
672
|
+
return path4;
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
return null;
|
|
@@ -688,9 +688,9 @@ var require_format_files = __commonJS({
|
|
|
688
688
|
}
|
|
689
689
|
});
|
|
690
690
|
|
|
691
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
691
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/binary-extensions.js
|
|
692
692
|
var require_binary_extensions = __commonJS({
|
|
693
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
693
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/binary-extensions.js"(exports) {
|
|
694
694
|
"use strict";
|
|
695
695
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
696
696
|
exports.isBinaryPath = void 0;
|
|
@@ -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(path3) {
|
|
966
|
+
return binaryExtensions.has((0, path_1.extname)(path3).toLowerCase());
|
|
967
967
|
}
|
|
968
968
|
exports.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"(exports) {
|
|
1148
1148
|
"use strict";
|
|
1149
1149
|
var fs = require("fs");
|
|
1150
|
-
var
|
|
1150
|
+
var path3 = 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
|
exports.localsName = _DEFAULT_LOCALS_NAME;
|
|
1179
1179
|
exports.promiseImpl = new Function("return this;")().Promise;
|
|
1180
1180
|
exports.resolveInclude = function(name, filename, isDir) {
|
|
1181
|
-
var dirname =
|
|
1182
|
-
var extname =
|
|
1183
|
-
var resolve =
|
|
1181
|
+
var dirname = path3.dirname;
|
|
1182
|
+
var extname = path3.extname;
|
|
1183
|
+
var resolve = path3.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(path4, 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(path4);
|
|
1205
1205
|
if (match && match.length) {
|
|
1206
|
-
|
|
1206
|
+
path4 = path4.replace(/^\/*/, "");
|
|
1207
1207
|
if (Array.isArray(options.root)) {
|
|
1208
|
-
includePath = resolvePaths(
|
|
1208
|
+
includePath = resolvePaths(path4, options.root);
|
|
1209
1209
|
} else {
|
|
1210
|
-
includePath = exports.resolveInclude(
|
|
1210
|
+
includePath = exports.resolveInclude(path4, options.root || "/", true);
|
|
1211
1211
|
}
|
|
1212
1212
|
} else {
|
|
1213
1213
|
if (options.filename) {
|
|
1214
|
-
filePath = exports.resolveInclude(
|
|
1214
|
+
filePath = exports.resolveInclude(path4, 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(path4, 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(path4) + '"');
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
return includePath;
|
|
@@ -1279,11 +1279,11 @@ var require_ejs = __commonJS({
|
|
|
1279
1279
|
function fileLoader(filePath) {
|
|
1280
1280
|
return exports.fileLoader(filePath);
|
|
1281
1281
|
}
|
|
1282
|
-
function includeFile(
|
|
1282
|
+
function includeFile(path4, options) {
|
|
1283
1283
|
var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
|
|
1284
|
-
opts.filename = getIncludePath(
|
|
1284
|
+
opts.filename = getIncludePath(path4, opts);
|
|
1285
1285
|
if (typeof options.includer === "function") {
|
|
1286
|
-
var includerResult = options.includer(
|
|
1286
|
+
var includerResult = options.includer(path4, 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(path4, 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(path4, 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 = path3.basename(filename, path3.extname(filename));
|
|
1536
1536
|
try {
|
|
1537
1537
|
Object.defineProperty(returnedFn, "name", {
|
|
1538
1538
|
value: basename,
|
|
@@ -1688,14 +1688,14 @@ var require_ejs = __commonJS({
|
|
|
1688
1688
|
}
|
|
1689
1689
|
});
|
|
1690
1690
|
|
|
1691
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
1691
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/generators/generate-files.js
|
|
1692
1692
|
var require_generate_files = __commonJS({
|
|
1693
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
1693
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/generators/generate-files.js"(exports) {
|
|
1694
1694
|
"use strict";
|
|
1695
1695
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1696
1696
|
exports.generateFiles = void 0;
|
|
1697
1697
|
var fs_1 = require("fs");
|
|
1698
|
-
var
|
|
1698
|
+
var path3 = require("path");
|
|
1699
1699
|
var nx_1 = require_nx();
|
|
1700
1700
|
var binary_extensions_1 = require_binary_extensions();
|
|
1701
1701
|
var { logger } = (0, nx_1.requireNx)();
|
|
@@ -1727,8 +1727,8 @@ var require_generate_files = __commonJS({
|
|
|
1727
1727
|
}
|
|
1728
1728
|
exports.generateFiles = generateFiles;
|
|
1729
1729
|
function computePath(srcFolder, target, filePath, substitutions) {
|
|
1730
|
-
const relativeFromSrcFolder =
|
|
1731
|
-
let computedPath =
|
|
1730
|
+
const relativeFromSrcFolder = path3.relative(srcFolder, filePath);
|
|
1731
|
+
let computedPath = path3.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 = path3.join(parent, c);
|
|
1745
1745
|
try {
|
|
1746
1746
|
const s = (0, fs_1.statSync)(child);
|
|
1747
1747
|
if (!s.isDirectory()) {
|
|
@@ -1759,13 +1759,13 @@ var require_generate_files = __commonJS({
|
|
|
1759
1759
|
}
|
|
1760
1760
|
});
|
|
1761
1761
|
|
|
1762
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
1762
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/versions.js
|
|
1763
1763
|
var require_versions = __commonJS({
|
|
1764
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
1764
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/versions.js"(exports) {
|
|
1765
1765
|
"use strict";
|
|
1766
1766
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1767
1767
|
exports.typescriptVersion = void 0;
|
|
1768
|
-
exports.typescriptVersion = "~5.
|
|
1768
|
+
exports.typescriptVersion = "~5.2.2";
|
|
1769
1769
|
}
|
|
1770
1770
|
});
|
|
1771
1771
|
|
|
@@ -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"(exports, module2) {
|
|
4109
4109
|
var internalRe = require_re();
|
|
4110
|
-
var
|
|
4110
|
+
var constants3 = require_constants();
|
|
4111
4111
|
var SemVer = require_semver();
|
|
4112
4112
|
var identifiers = require_identifiers();
|
|
4113
4113
|
var parse = require_parse();
|
|
@@ -4189,17 +4189,17 @@ 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: constants3.SEMVER_SPEC_VERSION,
|
|
4193
|
+
RELEASE_TYPES: constants3.RELEASE_TYPES,
|
|
4194
4194
|
compareIdentifiers: identifiers.compareIdentifiers,
|
|
4195
4195
|
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
4196
4196
|
};
|
|
4197
4197
|
}
|
|
4198
4198
|
});
|
|
4199
4199
|
|
|
4200
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
4200
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/tasks/install-packages-task.js
|
|
4201
4201
|
var require_install_packages_task = __commonJS({
|
|
4202
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
4202
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/tasks/install-packages-task.js"(exports) {
|
|
4203
4203
|
"use strict";
|
|
4204
4204
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4205
4205
|
exports.installPackagesTask = void 0;
|
|
@@ -4731,7 +4731,7 @@ var require_minimatch = __commonJS({
|
|
|
4731
4731
|
"node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
4732
4732
|
module2.exports = minimatch;
|
|
4733
4733
|
minimatch.Minimatch = Minimatch;
|
|
4734
|
-
var
|
|
4734
|
+
var path3 = 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 = path3.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 && path3.sep !== "/") {
|
|
4834
|
+
pattern = pattern.split(path3.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 (path3.sep !== "/") {
|
|
5212
|
+
f = f.split(path3.sep).join("/");
|
|
5213
5213
|
}
|
|
5214
5214
|
f = f.split(slashSplit);
|
|
5215
5215
|
this.debug(this.pattern, "split", f);
|
|
@@ -5367,12 +5367,12 @@ var require_inherits = __commonJS({
|
|
|
5367
5367
|
var require_path_is_absolute = __commonJS({
|
|
5368
5368
|
"node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(exports, module2) {
|
|
5369
5369
|
"use strict";
|
|
5370
|
-
function posix(
|
|
5371
|
-
return
|
|
5370
|
+
function posix(path3) {
|
|
5371
|
+
return path3.charAt(0) === "/";
|
|
5372
5372
|
}
|
|
5373
|
-
function win32(
|
|
5373
|
+
function win32(path3) {
|
|
5374
5374
|
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
|
5375
|
-
var result = splitDeviceRe.exec(
|
|
5375
|
+
var result = splitDeviceRe.exec(path3);
|
|
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 path3 = 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 = path3.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 || path3.resolve(self.cwd, "/");
|
|
5469
|
+
self.root = path3.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 = path3.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 = path3.resolve(self.cwd, f);
|
|
5556
5556
|
} else {
|
|
5557
|
-
abs =
|
|
5557
|
+
abs = path3.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, path4) {
|
|
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(path4) || !!(item.gmatcher && item.gmatcher.match(path4));
|
|
5568
5568
|
});
|
|
5569
5569
|
}
|
|
5570
|
-
function childrenIgnored(self,
|
|
5570
|
+
function childrenIgnored(self, path4) {
|
|
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(path4));
|
|
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 path3 = 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 = path3.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 = path3.join(this.root, prefix);
|
|
5868
5868
|
} else {
|
|
5869
|
-
prefix =
|
|
5869
|
+
prefix = path3.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 path3 = 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 = path3.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 = path3.join(this.root, prefix);
|
|
6535
6535
|
} else {
|
|
6536
|
-
prefix =
|
|
6536
|
+
prefix = path3.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"(exports, module2) {
|
|
6613
6613
|
var assert = require("assert");
|
|
6614
|
-
var
|
|
6614
|
+
var path3 = 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(path3.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(path3.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"(exports, module2) {
|
|
6894
6894
|
var fs = require("fs");
|
|
6895
|
-
var
|
|
6896
|
-
var
|
|
6895
|
+
var os2 = require("os");
|
|
6896
|
+
var path3 = require("path");
|
|
6897
6897
|
var crypto = require("crypto");
|
|
6898
|
-
var _c = { fs: fs.constants, os:
|
|
6898
|
+
var _c = { fs: fs.constants, os: os2.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 = os2.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 path3.join(tmpDir, opts.dir, opts.name);
|
|
7120
7120
|
if (!_isUndefined(opts.template))
|
|
7121
|
-
return
|
|
7121
|
+
return path3.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 path3.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) ? "" : path3.relative(tmpDir, _resolvePath(options.dir, tmpDir));
|
|
7152
|
+
options.template = _isUndefined(options.template) ? void 0 : path3.relative(tmpDir, _resolvePath(options.template, tmpDir));
|
|
7153
|
+
options.template = _isBlank(options.template) ? void 0 : path3.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 path3.resolve(sanitizedName);
|
|
7162
7162
|
} else {
|
|
7163
|
-
return
|
|
7163
|
+
return path3.resolve(path3.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 (path3.isAbsolute(name))
|
|
7175
7175
|
throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
|
|
7176
|
-
let basename =
|
|
7176
|
+
let basename = path3.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 (path3.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 path3.resolve(_sanitizeName(options && options.tmpdir || os2.tmpdir()));
|
|
7202
7202
|
}
|
|
7203
7203
|
process.addListener(EXIT, _garbageCollector);
|
|
7204
7204
|
Object.defineProperty(module2.exports, "tmpdir", {
|
|
@@ -7218,9 +7218,9 @@ var require_tmp = __commonJS({
|
|
|
7218
7218
|
}
|
|
7219
7219
|
});
|
|
7220
7220
|
|
|
7221
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
7221
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/package-json.js
|
|
7222
7222
|
var require_package_json = __commonJS({
|
|
7223
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
7223
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/package-json.js"(exports) {
|
|
7224
7224
|
"use strict";
|
|
7225
7225
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7226
7226
|
exports.NX_VERSION = exports.ensurePackage = exports.removeDependenciesFromPackageJson = exports.addDependenciesToPackageJson = void 0;
|
|
@@ -7497,9 +7497,9 @@ var require_package_json = __commonJS({
|
|
|
7497
7497
|
}
|
|
7498
7498
|
});
|
|
7499
7499
|
|
|
7500
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
7500
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/generators/to-js.js
|
|
7501
7501
|
var require_to_js = __commonJS({
|
|
7502
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
7502
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/generators/to-js.js"(exports) {
|
|
7503
7503
|
"use strict";
|
|
7504
7504
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7505
7505
|
exports.toJS = void 0;
|
|
@@ -7522,9 +7522,9 @@ var require_to_js = __commonJS({
|
|
|
7522
7522
|
}
|
|
7523
7523
|
});
|
|
7524
7524
|
|
|
7525
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
7525
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/generators/update-ts-configs-to-js.js
|
|
7526
7526
|
var require_update_ts_configs_to_js = __commonJS({
|
|
7527
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
7527
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/generators/update-ts-configs-to-js.js"(exports) {
|
|
7528
7528
|
"use strict";
|
|
7529
7529
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7530
7530
|
exports.updateTsConfigsToJs = void 0;
|
|
@@ -7576,9 +7576,9 @@ var require_update_ts_configs_to_js = __commonJS({
|
|
|
7576
7576
|
}
|
|
7577
7577
|
});
|
|
7578
7578
|
|
|
7579
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
7579
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/generators/run-tasks-in-serial.js
|
|
7580
7580
|
var require_run_tasks_in_serial = __commonJS({
|
|
7581
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
7581
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/generators/run-tasks-in-serial.js"(exports) {
|
|
7582
7582
|
"use strict";
|
|
7583
7583
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7584
7584
|
exports.runTasksInSerial = void 0;
|
|
@@ -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 = (path3, originalPath, doThrow) => {
|
|
7813
|
+
if (!isString(path3)) {
|
|
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 (!path3) {
|
|
7820
7820
|
return doThrow(`path must not be empty`, TypeError);
|
|
7821
7821
|
}
|
|
7822
|
-
if (checkPath.isNotRelative(
|
|
7822
|
+
if (checkPath.isNotRelative(path3)) {
|
|
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 = (path3) => REGEX_TEST_INVALID_PATH.test(path3);
|
|
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(path3, 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(path3);
|
|
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 path3 = originalPath && checkPath.convert(originalPath);
|
|
7912
7912
|
checkPath(
|
|
7913
|
-
|
|
7913
|
+
path3,
|
|
7914
7914
|
originalPath,
|
|
7915
7915
|
this._allowRelativePaths ? RETURN_FALSE : throwError
|
|
7916
7916
|
);
|
|
7917
|
-
return this._t(
|
|
7917
|
+
return this._t(path3, cache, checkUnignored, slices);
|
|
7918
7918
|
}
|
|
7919
|
-
_t(
|
|
7920
|
-
if (
|
|
7921
|
-
return cache[
|
|
7919
|
+
_t(path3, cache, checkUnignored, slices) {
|
|
7920
|
+
if (path3 in cache) {
|
|
7921
|
+
return cache[path3];
|
|
7922
7922
|
}
|
|
7923
7923
|
if (!slices) {
|
|
7924
|
-
slices =
|
|
7924
|
+
slices = path3.split(SLASH);
|
|
7925
7925
|
}
|
|
7926
7926
|
slices.pop();
|
|
7927
7927
|
if (!slices.length) {
|
|
7928
|
-
return cache[
|
|
7928
|
+
return cache[path3] = this._testOne(path3, 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[path3] = parent.ignored ? parent : this._testOne(path3, checkUnignored);
|
|
7937
7937
|
}
|
|
7938
|
-
ignores(
|
|
7939
|
-
return this._test(
|
|
7938
|
+
ignores(path3) {
|
|
7939
|
+
return this._test(path3, this._ignoreCache, false).ignored;
|
|
7940
7940
|
}
|
|
7941
7941
|
createFilter() {
|
|
7942
|
-
return (
|
|
7942
|
+
return (path3) => !this.ignores(path3);
|
|
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(path3) {
|
|
7949
|
+
return this._test(path3, this._testCache, true);
|
|
7950
7950
|
}
|
|
7951
7951
|
};
|
|
7952
7952
|
var factory = (options) => new Ignore(options);
|
|
7953
|
-
var isPathValid = (
|
|
7953
|
+
var isPathValid = (path3) => checkPath(path3 && checkPath.convert(path3), path3, RETURN_FALSE);
|
|
7954
7954
|
factory.isPathValid = isPathValid;
|
|
7955
7955
|
factory.default = factory;
|
|
7956
7956
|
module2.exports = factory;
|
|
@@ -7961,14 +7961,14 @@ 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 = (path3) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path3) || isNotRelative(path3);
|
|
7965
7965
|
}
|
|
7966
7966
|
}
|
|
7967
7967
|
});
|
|
7968
7968
|
|
|
7969
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
7969
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js
|
|
7970
7970
|
var require_visit_not_ignored_files = __commonJS({
|
|
7971
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
7971
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js"(exports) {
|
|
7972
7972
|
"use strict";
|
|
7973
7973
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7974
7974
|
exports.visitNotIgnoredFiles = void 0;
|
|
@@ -8002,15 +8002,15 @@ var require_visit_not_ignored_files = __commonJS({
|
|
|
8002
8002
|
}
|
|
8003
8003
|
}
|
|
8004
8004
|
exports.visitNotIgnoredFiles = visitNotIgnoredFiles;
|
|
8005
|
-
function normalizePathRelativeToRoot(
|
|
8006
|
-
return (0, path_1.relative)(root, (0, path_1.join)(root,
|
|
8005
|
+
function normalizePathRelativeToRoot(path3, root) {
|
|
8006
|
+
return (0, path_1.relative)(root, (0, path_1.join)(root, path3)).split(path_1.sep).join("/");
|
|
8007
8007
|
}
|
|
8008
8008
|
}
|
|
8009
8009
|
});
|
|
8010
8010
|
|
|
8011
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
8011
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/executors/parse-target-string.js
|
|
8012
8012
|
var require_parse_target_string = __commonJS({
|
|
8013
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
8013
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/executors/parse-target-string.js"(exports) {
|
|
8014
8014
|
"use strict";
|
|
8015
8015
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8016
8016
|
exports.targetToTargetString = exports.parseTargetString = void 0;
|
|
@@ -8028,7 +8028,7 @@ var require_parse_target_string = __commonJS({
|
|
|
8028
8028
|
}
|
|
8029
8029
|
}
|
|
8030
8030
|
const [maybeProject] = splitByColons(targetString);
|
|
8031
|
-
if (!projectGraph.nodes[maybeProject] && projectGraphOrCtx && "projectName" in projectGraphOrCtx) {
|
|
8031
|
+
if (!projectGraph.nodes[maybeProject] && projectGraphOrCtx && "projectName" in projectGraphOrCtx && maybeProject !== projectGraphOrCtx.projectName) {
|
|
8032
8032
|
targetString = `${projectGraphOrCtx.projectName}:${targetString}`;
|
|
8033
8033
|
}
|
|
8034
8034
|
const [project, target, configuration] = splitTarget(targetString, projectGraph);
|
|
@@ -8049,9 +8049,9 @@ var require_parse_target_string = __commonJS({
|
|
|
8049
8049
|
}
|
|
8050
8050
|
});
|
|
8051
8051
|
|
|
8052
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
8052
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/executors/read-target-options.js
|
|
8053
8053
|
var require_read_target_options = __commonJS({
|
|
8054
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
8054
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/executors/read-target-options.js"(exports) {
|
|
8055
8055
|
"use strict";
|
|
8056
8056
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8057
8057
|
exports.readTargetOptions = void 0;
|
|
@@ -8067,7 +8067,7 @@ var require_read_target_options = __commonJS({
|
|
|
8067
8067
|
const targetConfiguration = projectConfiguration.targets[target];
|
|
8068
8068
|
const ws = new Workspaces(context.root);
|
|
8069
8069
|
const [nodeModule, executorName] = targetConfiguration.executor.split(":");
|
|
8070
|
-
const { schema } = getExecutorInformation ? getExecutorInformation(nodeModule, executorName, context.root) : (
|
|
8070
|
+
const { schema } = getExecutorInformation ? getExecutorInformation(nodeModule, executorName, context.root, context.projectsConfigurations?.projects ?? context.workspace.projects) : (
|
|
8071
8071
|
// TODO(v18): remove readExecutor. This is to be backwards compatible with Nx 16.5 and below.
|
|
8072
8072
|
ws.readExecutor(nodeModule, executorName)
|
|
8073
8073
|
);
|
|
@@ -8081,9 +8081,9 @@ var require_read_target_options = __commonJS({
|
|
|
8081
8081
|
}
|
|
8082
8082
|
});
|
|
8083
8083
|
|
|
8084
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
8084
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/names.js
|
|
8085
8085
|
var require_names = __commonJS({
|
|
8086
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
8086
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/names.js"(exports) {
|
|
8087
8087
|
"use strict";
|
|
8088
8088
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8089
8089
|
exports.names = void 0;
|
|
@@ -8116,9 +8116,9 @@ var require_names = __commonJS({
|
|
|
8116
8116
|
}
|
|
8117
8117
|
});
|
|
8118
8118
|
|
|
8119
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
8119
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/get-workspace-layout.js
|
|
8120
8120
|
var require_get_workspace_layout = __commonJS({
|
|
8121
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
8121
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/get-workspace-layout.js"(exports) {
|
|
8122
8122
|
"use strict";
|
|
8123
8123
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8124
8124
|
exports.extractLayoutDirectory = exports.getWorkspaceLayout = void 0;
|
|
@@ -8158,9 +8158,9 @@ var require_get_workspace_layout = __commonJS({
|
|
|
8158
8158
|
}
|
|
8159
8159
|
});
|
|
8160
8160
|
|
|
8161
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
8161
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/string-change.js
|
|
8162
8162
|
var require_string_change = __commonJS({
|
|
8163
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
8163
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/string-change.js"(exports) {
|
|
8164
8164
|
"use strict";
|
|
8165
8165
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8166
8166
|
exports.applyChangesToString = exports.ChangeType = void 0;
|
|
@@ -8237,9 +8237,9 @@ var require_string_change = __commonJS({
|
|
|
8237
8237
|
}
|
|
8238
8238
|
});
|
|
8239
8239
|
|
|
8240
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
8240
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/offset-from-root.js
|
|
8241
8241
|
var require_offset_from_root = __commonJS({
|
|
8242
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
8242
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/offset-from-root.js"(exports) {
|
|
8243
8243
|
"use strict";
|
|
8244
8244
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8245
8245
|
exports.offsetFromRoot = void 0;
|
|
@@ -8260,9 +8260,9 @@ var require_offset_from_root = __commonJS({
|
|
|
8260
8260
|
}
|
|
8261
8261
|
});
|
|
8262
8262
|
|
|
8263
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
8263
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/invoke-nx-generator.js
|
|
8264
8264
|
var require_invoke_nx_generator = __commonJS({
|
|
8265
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
8265
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/invoke-nx-generator.js"(exports) {
|
|
8266
8266
|
"use strict";
|
|
8267
8267
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8268
8268
|
exports.convertNxGenerator = void 0;
|
|
@@ -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(path3) {
|
|
8388
|
+
return (0, path_1.relative)(this.root, (0, path_1.join)(this.root, path3));
|
|
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(exports, "__esModule", { value: true });
|
|
8771
8771
|
exports.noop = void 0;
|
|
8772
|
-
function
|
|
8772
|
+
function noop2() {
|
|
8773
8773
|
}
|
|
8774
|
-
exports.noop =
|
|
8774
|
+
exports.noop = noop2;
|
|
8775
8775
|
}
|
|
8776
8776
|
});
|
|
8777
8777
|
|
|
@@ -9061,10 +9061,10 @@ var require_identity = __commonJS({
|
|
|
9061
9061
|
"use strict";
|
|
9062
9062
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9063
9063
|
exports.identity = void 0;
|
|
9064
|
-
function
|
|
9064
|
+
function identity2(x) {
|
|
9065
9065
|
return x;
|
|
9066
9066
|
}
|
|
9067
|
-
exports.identity =
|
|
9067
|
+
exports.identity = identity2;
|
|
9068
9068
|
}
|
|
9069
9069
|
});
|
|
9070
9070
|
|
|
@@ -11108,10 +11108,10 @@ var require_isAsyncIterable = __commonJS({
|
|
|
11108
11108
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11109
11109
|
exports.isAsyncIterable = void 0;
|
|
11110
11110
|
var isFunction_1 = require_isFunction();
|
|
11111
|
-
function
|
|
11111
|
+
function isAsyncIterable2(obj) {
|
|
11112
11112
|
return Symbol.asyncIterator && isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
|
|
11113
11113
|
}
|
|
11114
|
-
exports.isAsyncIterable =
|
|
11114
|
+
exports.isAsyncIterable = isAsyncIterable2;
|
|
11115
11115
|
}
|
|
11116
11116
|
});
|
|
11117
11117
|
|
|
@@ -11571,7 +11571,7 @@ var require_innerFrom = __commonJS({
|
|
|
11571
11571
|
exports.fromIterable = fromIterable;
|
|
11572
11572
|
function fromAsyncIterable(asyncIterable) {
|
|
11573
11573
|
return new Observable_1.Observable(function(subscriber) {
|
|
11574
|
-
|
|
11574
|
+
process7(asyncIterable, subscriber).catch(function(err) {
|
|
11575
11575
|
return subscriber.error(err);
|
|
11576
11576
|
});
|
|
11577
11577
|
});
|
|
@@ -11581,7 +11581,7 @@ var require_innerFrom = __commonJS({
|
|
|
11581
11581
|
return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
|
|
11582
11582
|
}
|
|
11583
11583
|
exports.fromReadableStreamLike = fromReadableStreamLike;
|
|
11584
|
-
function
|
|
11584
|
+
function process7(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() {
|
|
@@ -18016,9 +18016,9 @@ var require_cjs = __commonJS({
|
|
|
18016
18016
|
}
|
|
18017
18017
|
});
|
|
18018
18018
|
|
|
18019
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
18019
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/convert-nx-executor.js
|
|
18020
18020
|
var require_convert_nx_executor = __commonJS({
|
|
18021
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
18021
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/convert-nx-executor.js"(exports) {
|
|
18022
18022
|
"use strict";
|
|
18023
18023
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18024
18024
|
exports.convertNxExecutor = void 0;
|
|
@@ -18034,7 +18034,7 @@ var require_convert_nx_executor = __commonJS({
|
|
|
18034
18034
|
const promise = async () => {
|
|
18035
18035
|
const projectsConfigurations = retrieveProjectConfigurationsWithAngularProjects ? {
|
|
18036
18036
|
version: 2,
|
|
18037
|
-
projects: await retrieveProjectConfigurationsWithAngularProjects(builderContext.workspaceRoot, nxJsonConfiguration).then((p) => p.projectNodes)
|
|
18037
|
+
projects: await retrieveProjectConfigurationsWithAngularProjects(builderContext.workspaceRoot, nxJsonConfiguration).then((p) => p.projectNodes ?? p.projects)
|
|
18038
18038
|
} : (
|
|
18039
18039
|
// TODO(v18): remove retrieveProjectConfigurations. This is to be backwards compatible with Nx 16.5 and below.
|
|
18040
18040
|
workspaces.readProjectsConfigurations({
|
|
@@ -18097,9 +18097,9 @@ var require_convert_nx_executor = __commonJS({
|
|
|
18097
18097
|
}
|
|
18098
18098
|
});
|
|
18099
18099
|
|
|
18100
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
18100
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/move-dir.js
|
|
18101
18101
|
var require_move_dir = __commonJS({
|
|
18102
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
18102
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/src/utils/move-dir.js"(exports) {
|
|
18103
18103
|
"use strict";
|
|
18104
18104
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18105
18105
|
exports.moveFilesToNewDirectory = void 0;
|
|
@@ -18126,9 +18126,9 @@ var require_move_dir = __commonJS({
|
|
|
18126
18126
|
}
|
|
18127
18127
|
});
|
|
18128
18128
|
|
|
18129
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
18129
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/public-api.js
|
|
18130
18130
|
var require_public_api = __commonJS({
|
|
18131
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
18131
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/public-api.js"(exports) {
|
|
18132
18132
|
"use strict";
|
|
18133
18133
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18134
18134
|
exports.moveFilesToNewDirectory = exports.convertNxExecutor = exports.convertNxGenerator = exports.offsetFromRoot = exports.ChangeType = exports.applyChangesToString = exports.extractLayoutDirectory = exports.getWorkspaceLayout = exports.names = exports.installPackagesTask = exports.NX_VERSION = exports.removeDependenciesFromPackageJson = exports.ensurePackage = exports.addDependenciesToPackageJson = exports.readTargetOptions = exports.targetToTargetString = exports.parseTargetString = exports.visitNotIgnoredFiles = exports.runTasksInSerial = exports.updateTsConfigsToJs = exports.toJS = exports.generateFiles = exports.formatFiles = void 0;
|
|
@@ -18221,9 +18221,9 @@ var require_public_api = __commonJS({
|
|
|
18221
18221
|
}
|
|
18222
18222
|
});
|
|
18223
18223
|
|
|
18224
|
-
// node_modules/.pnpm/@nx+devkit@17.
|
|
18224
|
+
// node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/index.js
|
|
18225
18225
|
var require_devkit = __commonJS({
|
|
18226
|
-
"node_modules/.pnpm/@nx+devkit@17.
|
|
18226
|
+
"node_modules/.pnpm/@nx+devkit@17.2.8_nx@17.2.8/node_modules/@nx/devkit/index.js"(exports) {
|
|
18227
18227
|
"use strict";
|
|
18228
18228
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18229
18229
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
@@ -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"(exports, module2) {
|
|
18238
18238
|
"use strict";
|
|
18239
|
-
var
|
|
18239
|
+
var path3 = 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 = path3.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 = path3.join(fromDir, "noop.js");
|
|
18261
18261
|
const resolveFileName = () => Module._resolveFilename(moduleId, {
|
|
18262
18262
|
id: fromFile,
|
|
18263
18263
|
filename: fromFile,
|
|
@@ -18329,7 +18329,7 @@ var require_parent_module = __commonJS({
|
|
|
18329
18329
|
var require_import_fresh = __commonJS({
|
|
18330
18330
|
"node_modules/.pnpm/import-fresh@3.3.0/node_modules/import-fresh/index.js"(exports, module2) {
|
|
18331
18331
|
"use strict";
|
|
18332
|
-
var
|
|
18332
|
+
var path3 = 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 ? path3.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 path3 = [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
|
+
path3.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 = path3;
|
|
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"(exports, module2) {
|
|
20029
20029
|
"use strict";
|
|
20030
|
-
var
|
|
20030
|
+
var os2 = 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 = os2.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 load2(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 = load2;
|
|
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, (path3) => typescript.sys.readFile(path3));
|
|
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"(exports, module2) {
|
|
23880
23880
|
"use strict";
|
|
23881
|
-
var
|
|
23882
|
-
var
|
|
23883
|
-
var homedir =
|
|
23884
|
-
var tmpdir =
|
|
23881
|
+
var path3 = require("path");
|
|
23882
|
+
var os2 = require("os");
|
|
23883
|
+
var homedir = os2.homedir();
|
|
23884
|
+
var tmpdir = os2.tmpdir();
|
|
23885
23885
|
var { env } = process;
|
|
23886
23886
|
var macos = (name) => {
|
|
23887
|
-
const library =
|
|
23887
|
+
const library = path3.join(homedir, "Library");
|
|
23888
23888
|
return {
|
|
23889
|
-
data:
|
|
23890
|
-
config:
|
|
23891
|
-
cache:
|
|
23892
|
-
log:
|
|
23893
|
-
temp:
|
|
23889
|
+
data: path3.join(library, "Application Support", name),
|
|
23890
|
+
config: path3.join(library, "Preferences", name),
|
|
23891
|
+
cache: path3.join(library, "Caches", name),
|
|
23892
|
+
log: path3.join(library, "Logs", name),
|
|
23893
|
+
temp: path3.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 || path3.join(homedir, "AppData", "Roaming");
|
|
23898
|
+
const localAppData = env.LOCALAPPDATA || path3.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: path3.join(localAppData, name, "Data"),
|
|
23902
|
+
config: path3.join(appData, name, "Config"),
|
|
23903
|
+
cache: path3.join(localAppData, name, "Cache"),
|
|
23904
|
+
log: path3.join(localAppData, name, "Log"),
|
|
23905
|
+
temp: path3.join(tmpdir, name)
|
|
23906
23906
|
};
|
|
23907
23907
|
};
|
|
23908
23908
|
var linux = (name) => {
|
|
23909
|
-
const username =
|
|
23909
|
+
const username = path3.basename(homedir);
|
|
23910
23910
|
return {
|
|
23911
|
-
data:
|
|
23912
|
-
config:
|
|
23913
|
-
cache:
|
|
23911
|
+
data: path3.join(env.XDG_DATA_HOME || path3.join(homedir, ".local", "share"), name),
|
|
23912
|
+
config: path3.join(env.XDG_CONFIG_HOME || path3.join(homedir, ".config"), name),
|
|
23913
|
+
cache: path3.join(env.XDG_CACHE_HOME || path3.join(homedir, ".cache"), name),
|
|
23914
23914
|
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
23915
|
-
log:
|
|
23916
|
-
temp:
|
|
23915
|
+
log: path3.join(env.XDG_STATE_HOME || path3.join(homedir, ".local", "state"), name),
|
|
23916
|
+
temp: path3.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
|
exports.emplace = emplace;
|
|
23989
|
-
function getPropertyByPath(source,
|
|
23990
|
-
if (typeof
|
|
23991
|
-
return source[
|
|
23989
|
+
function getPropertyByPath(source, path3) {
|
|
23990
|
+
if (typeof path3 === "string" && Object.prototype.hasOwnProperty.call(source, path3)) {
|
|
23991
|
+
return source[path3];
|
|
23992
23992
|
}
|
|
23993
|
-
const parsedPath = typeof
|
|
23993
|
+
const parsedPath = typeof path3 === "string" ? path3.split(".") : path3;
|
|
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
|
exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
24006
|
-
async function isDirectory(
|
|
24006
|
+
async function isDirectory(path3) {
|
|
24007
24007
|
try {
|
|
24008
|
-
const stat = await fs_1.promises.stat(
|
|
24008
|
+
const stat = await fs_1.promises.stat(path3);
|
|
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
|
exports.isDirectory = isDirectory;
|
|
24018
|
-
function isDirectorySync(
|
|
24018
|
+
function isDirectorySync(path3) {
|
|
24019
24019
|
try {
|
|
24020
|
-
const stat = fs_1.default.statSync(
|
|
24020
|
+
const stat = fs_1.default.statSync(path3);
|
|
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((path3, i) => `${i + 1}. ${path3}`).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 load2 = 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, load2);
|
|
24210
24210
|
}
|
|
24211
|
-
return await
|
|
24211
|
+
return await load2();
|
|
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(path3) {
|
|
24304
24304
|
try {
|
|
24305
|
-
await promises_1.default.stat(
|
|
24305
|
+
await promises_1.default.stat(path3);
|
|
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 load2 = () => {
|
|
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, load2);
|
|
24368
24368
|
}
|
|
24369
|
-
return
|
|
24369
|
+
return load2();
|
|
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(path3) {
|
|
24462
24462
|
try {
|
|
24463
|
-
fs_1.default.statSync(
|
|
24463
|
+
fs_1.default.statSync(path3);
|
|
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 identity2 = function identity3(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: identity2,
|
|
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((path3) => path3.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: identity2,
|
|
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: identity2,
|
|
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 path3 = [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
|
+
path3.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 = path3;
|
|
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, identity2, 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(identity2, 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"(exports, module2) {
|
|
25797
25797
|
"use strict";
|
|
25798
|
-
var
|
|
25798
|
+
var os2 = 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 = os2.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,6 +26224,543 @@ 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"(exports, 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"(exports, 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"(exports, 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"(exports, 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"(exports, 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"(exports, 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"(exports, 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"(exports, 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"(exports, 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"(exports, 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"(exports, 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"(exports, 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"(exports, 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"(exports, 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
|
+
|
|
26227
26764
|
// packages/workspace-tools/src/generators/config-schema/generator.ts
|
|
26228
26765
|
var generator_exports = {};
|
|
26229
26766
|
__export(generator_exports, {
|
|
@@ -26335,7 +26872,7 @@ ${chalk.bold.hex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6")(">")}
|
|
|
26335
26872
|
return (message) => {
|
|
26336
26873
|
console.error(
|
|
26337
26874
|
`
|
|
26338
|
-
${chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")} ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").white(" \
|
|
26875
|
+
${chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")} ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").white(" \u2718 Error ")} ${chalk.hex(
|
|
26339
26876
|
config?.colors?.error ? config.colors.error : "#7d1a1a"
|
|
26340
26877
|
)(message)}
|
|
26341
26878
|
`
|
|
@@ -26346,7 +26883,7 @@ ${chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")}
|
|
|
26346
26883
|
return (message) => {
|
|
26347
26884
|
console.warn(
|
|
26348
26885
|
`
|
|
26349
|
-
${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(">")} ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white("
|
|
26886
|
+
${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(">")} ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white(" ! Warn ")} ${chalk.hex(
|
|
26350
26887
|
config?.colors?.warning ? config.colors.warning : "#fcc419"
|
|
26351
26888
|
)(message)}
|
|
26352
26889
|
`
|
|
@@ -26357,9 +26894,9 @@ ${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(">
|
|
|
26357
26894
|
return (message) => {
|
|
26358
26895
|
console.info(
|
|
26359
26896
|
`
|
|
26360
|
-
${chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").white(" \
|
|
26361
|
-
|
|
26362
|
-
)
|
|
26897
|
+
${chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").white(" \u2139 Info ")} ${chalk.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(
|
|
26898
|
+
message
|
|
26899
|
+
)}
|
|
26363
26900
|
`
|
|
26364
26901
|
);
|
|
26365
26902
|
};
|
|
@@ -26368,7 +26905,7 @@ ${chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(">")} ${
|
|
|
26368
26905
|
return (message) => {
|
|
26369
26906
|
console.info(
|
|
26370
26907
|
`
|
|
26371
|
-
${chalk.bold.hex(config?.colors?.success ? config.colors.success : "#087f5b")(">")} ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").white(" \
|
|
26908
|
+
${chalk.bold.hex(config?.colors?.success ? config.colors.success : "#087f5b")(">")} ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").white(" \u221A Success ")} ${chalk.hex(
|
|
26372
26909
|
config?.colors?.success ? config.colors.success : "#087f5b"
|
|
26373
26910
|
)(message)}
|
|
26374
26911
|
`
|
|
@@ -26441,12 +26978,9 @@ var getConfigFile = async (filePath) => {
|
|
|
26441
26978
|
}
|
|
26442
26979
|
}
|
|
26443
26980
|
if (!cosmiconfigResult || Object.keys(cosmiconfigResult).length === 0 || cosmiconfigResult.isEmpty || !cosmiconfigResult.filepath) {
|
|
26444
|
-
console.warn(
|
|
26445
|
-
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.config.js` file to the root of your workspace if it is not."
|
|
26446
|
-
);
|
|
26447
26981
|
writeWarning(
|
|
26448
|
-
{ logLevel: "
|
|
26449
|
-
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.config.js` file to the root of your workspace if it is not
|
|
26982
|
+
{ logLevel: "all" },
|
|
26983
|
+
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.config.js` file to the root of your workspace if it is not.\n"
|
|
26450
26984
|
);
|
|
26451
26985
|
return void 0;
|
|
26452
26986
|
}
|
|
@@ -26873,8 +27407,8 @@ function getErrorMap() {
|
|
|
26873
27407
|
return overrideErrorMap;
|
|
26874
27408
|
}
|
|
26875
27409
|
var makeIssue = (params) => {
|
|
26876
|
-
const { data, path, errorMaps, issueData } = params;
|
|
26877
|
-
const fullPath = [...
|
|
27410
|
+
const { data, path: path3, errorMaps, issueData } = params;
|
|
27411
|
+
const fullPath = [...path3, ...issueData.path || []];
|
|
26878
27412
|
const fullIssue = {
|
|
26879
27413
|
...issueData,
|
|
26880
27414
|
path: fullPath
|
|
@@ -26972,11 +27506,11 @@ var errorUtil;
|
|
|
26972
27506
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
|
|
26973
27507
|
})(errorUtil || (errorUtil = {}));
|
|
26974
27508
|
var ParseInputLazyPath = class {
|
|
26975
|
-
constructor(parent, value,
|
|
27509
|
+
constructor(parent, value, path3, key) {
|
|
26976
27510
|
this._cachedPath = [];
|
|
26977
27511
|
this.parent = parent;
|
|
26978
27512
|
this.data = value;
|
|
26979
|
-
this._path =
|
|
27513
|
+
this._path = path3;
|
|
26980
27514
|
this._key = key;
|
|
26981
27515
|
}
|
|
26982
27516
|
get path() {
|
|
@@ -30162,7 +30696,7 @@ var StormConfigSchema = objectType({
|
|
|
30162
30696
|
);
|
|
30163
30697
|
|
|
30164
30698
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
30165
|
-
var
|
|
30699
|
+
var DEFAULT_COLOR_CONFIG = {
|
|
30166
30700
|
primary: "#1fb2a6",
|
|
30167
30701
|
background: "#1d232a",
|
|
30168
30702
|
success: "#087f5b",
|
|
@@ -30171,7 +30705,7 @@ var DefaultColorConfig = {
|
|
|
30171
30705
|
error: "#990000",
|
|
30172
30706
|
fatal: "#7d1a1a"
|
|
30173
30707
|
};
|
|
30174
|
-
var
|
|
30708
|
+
var DEFAULT_STORM_CONFIG = {
|
|
30175
30709
|
name: "storm",
|
|
30176
30710
|
namespace: "storm-software",
|
|
30177
30711
|
license: "Apache License 2.0",
|
|
@@ -30189,15 +30723,15 @@ var DefaultStormConfig = {
|
|
|
30189
30723
|
ci: true,
|
|
30190
30724
|
configFile: null,
|
|
30191
30725
|
runtimeVersion: "1.0.0",
|
|
30192
|
-
colors: { ...
|
|
30726
|
+
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
30193
30727
|
extensions: {}
|
|
30194
30728
|
};
|
|
30195
30729
|
var getDefaultConfig = (config = {}, root) => {
|
|
30196
30730
|
let name = "storm-workspace";
|
|
30197
30731
|
let namespace = "storm-software";
|
|
30198
30732
|
let repository = "https://github.com/storm-software/storm-ops";
|
|
30199
|
-
let license =
|
|
30200
|
-
let homepage =
|
|
30733
|
+
let license = DEFAULT_STORM_CONFIG.license;
|
|
30734
|
+
let homepage = DEFAULT_STORM_CONFIG.homepage;
|
|
30201
30735
|
const workspaceRoot = findWorkspaceRoot(root);
|
|
30202
30736
|
if ((0, import_node_fs2.existsSync)((0, import_node_path2.join)(workspaceRoot, "package.json"))) {
|
|
30203
30737
|
const file = (0, import_node_fs2.readFileSync)((0, import_node_path2.join)(workspaceRoot, "package.json"), {
|
|
@@ -30223,80 +30757,1707 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
30223
30757
|
}
|
|
30224
30758
|
}
|
|
30225
30759
|
return StormConfigSchema.parse({
|
|
30226
|
-
...
|
|
30760
|
+
...DEFAULT_STORM_CONFIG,
|
|
30227
30761
|
...config,
|
|
30228
|
-
colors: { ...
|
|
30762
|
+
colors: { ...DEFAULT_COLOR_CONFIG, ...config.colors },
|
|
30229
30763
|
workspaceRoot,
|
|
30230
30764
|
name,
|
|
30231
30765
|
namespace,
|
|
30232
30766
|
repository,
|
|
30233
|
-
license: license ??
|
|
30234
|
-
homepage: homepage ??
|
|
30767
|
+
license: license ?? DEFAULT_STORM_CONFIG.license,
|
|
30768
|
+
homepage: homepage ?? DEFAULT_STORM_CONFIG.homepage,
|
|
30235
30769
|
extensions: {
|
|
30236
30770
|
...config.extensions
|
|
30237
30771
|
}
|
|
30238
30772
|
});
|
|
30239
30773
|
};
|
|
30240
30774
|
|
|
30241
|
-
//
|
|
30242
|
-
var
|
|
30243
|
-
|
|
30244
|
-
|
|
30245
|
-
|
|
30246
|
-
|
|
30247
|
-
|
|
30248
|
-
|
|
30249
|
-
|
|
30250
|
-
|
|
30251
|
-
|
|
30252
|
-
|
|
30253
|
-
|
|
30254
|
-
extensionKey = result[0].toUpperCase();
|
|
30255
|
-
} else {
|
|
30256
|
-
extensionKey = result.reduce((ret, part) => {
|
|
30257
|
-
return `${ret}_${part.toLowerCase()}`;
|
|
30258
|
-
});
|
|
30259
|
-
}
|
|
30260
|
-
process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
|
|
30261
|
-
}
|
|
30775
|
+
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
|
|
30776
|
+
var import_node_buffer2 = require("node:buffer");
|
|
30777
|
+
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
30778
|
+
var import_node_child_process3 = __toESM(require("node:child_process"), 1);
|
|
30779
|
+
var import_node_process4 = __toESM(require("node:process"), 1);
|
|
30780
|
+
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
30781
|
+
|
|
30782
|
+
// node_modules/.pnpm/strip-final-newline@3.0.0/node_modules/strip-final-newline/index.js
|
|
30783
|
+
function stripFinalNewline(input) {
|
|
30784
|
+
const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
|
|
30785
|
+
const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
|
|
30786
|
+
if (input[input.length - 1] === LF) {
|
|
30787
|
+
input = input.slice(0, -1);
|
|
30262
30788
|
}
|
|
30263
|
-
|
|
30264
|
-
|
|
30265
|
-
const prefix = "STORM_";
|
|
30266
|
-
if (config.name) {
|
|
30267
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
30789
|
+
if (input[input.length - 1] === CR) {
|
|
30790
|
+
input = input.slice(0, -1);
|
|
30268
30791
|
}
|
|
30269
|
-
|
|
30270
|
-
|
|
30792
|
+
return input;
|
|
30793
|
+
}
|
|
30794
|
+
|
|
30795
|
+
// node_modules/.pnpm/npm-run-path@5.1.0/node_modules/npm-run-path/index.js
|
|
30796
|
+
var import_node_process = __toESM(require("node:process"), 1);
|
|
30797
|
+
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
30798
|
+
var import_node_url = __toESM(require("node:url"), 1);
|
|
30799
|
+
|
|
30800
|
+
// node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
|
|
30801
|
+
function pathKey(options = {}) {
|
|
30802
|
+
const {
|
|
30803
|
+
env = process.env,
|
|
30804
|
+
platform = process.platform
|
|
30805
|
+
} = options;
|
|
30806
|
+
if (platform !== "win32") {
|
|
30807
|
+
return "PATH";
|
|
30808
|
+
}
|
|
30809
|
+
return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
30810
|
+
}
|
|
30811
|
+
|
|
30812
|
+
// node_modules/.pnpm/npm-run-path@5.1.0/node_modules/npm-run-path/index.js
|
|
30813
|
+
function npmRunPath(options = {}) {
|
|
30814
|
+
const {
|
|
30815
|
+
cwd = import_node_process.default.cwd(),
|
|
30816
|
+
path: path_ = import_node_process.default.env[pathKey()],
|
|
30817
|
+
execPath = import_node_process.default.execPath
|
|
30818
|
+
} = options;
|
|
30819
|
+
let previous;
|
|
30820
|
+
const cwdString = cwd instanceof URL ? import_node_url.default.fileURLToPath(cwd) : cwd;
|
|
30821
|
+
let cwdPath = import_node_path3.default.resolve(cwdString);
|
|
30822
|
+
const result = [];
|
|
30823
|
+
while (previous !== cwdPath) {
|
|
30824
|
+
result.push(import_node_path3.default.join(cwdPath, "node_modules/.bin"));
|
|
30825
|
+
previous = cwdPath;
|
|
30826
|
+
cwdPath = import_node_path3.default.resolve(cwdPath, "..");
|
|
30827
|
+
}
|
|
30828
|
+
result.push(import_node_path3.default.resolve(cwdString, execPath, ".."));
|
|
30829
|
+
return [...result, path_].join(import_node_path3.default.delimiter);
|
|
30830
|
+
}
|
|
30831
|
+
function npmRunPathEnv({ env = import_node_process.default.env, ...options } = {}) {
|
|
30832
|
+
env = { ...env };
|
|
30833
|
+
const path3 = pathKey({ env });
|
|
30834
|
+
options.path = env[path3];
|
|
30835
|
+
env[path3] = npmRunPath(options);
|
|
30836
|
+
return env;
|
|
30837
|
+
}
|
|
30838
|
+
|
|
30839
|
+
// node_modules/.pnpm/mimic-fn@4.0.0/node_modules/mimic-fn/index.js
|
|
30840
|
+
var copyProperty = (to, from, property, ignoreNonConfigurable) => {
|
|
30841
|
+
if (property === "length" || property === "prototype") {
|
|
30842
|
+
return;
|
|
30271
30843
|
}
|
|
30272
|
-
if (
|
|
30273
|
-
|
|
30844
|
+
if (property === "arguments" || property === "caller") {
|
|
30845
|
+
return;
|
|
30274
30846
|
}
|
|
30275
|
-
|
|
30276
|
-
|
|
30847
|
+
const toDescriptor = Object.getOwnPropertyDescriptor(to, property);
|
|
30848
|
+
const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);
|
|
30849
|
+
if (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {
|
|
30850
|
+
return;
|
|
30277
30851
|
}
|
|
30278
|
-
|
|
30279
|
-
|
|
30852
|
+
Object.defineProperty(to, property, fromDescriptor);
|
|
30853
|
+
};
|
|
30854
|
+
var canCopyProperty = function(toDescriptor, fromDescriptor) {
|
|
30855
|
+
return toDescriptor === void 0 || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);
|
|
30856
|
+
};
|
|
30857
|
+
var changePrototype = (to, from) => {
|
|
30858
|
+
const fromPrototype = Object.getPrototypeOf(from);
|
|
30859
|
+
if (fromPrototype === Object.getPrototypeOf(to)) {
|
|
30860
|
+
return;
|
|
30280
30861
|
}
|
|
30281
|
-
|
|
30282
|
-
|
|
30862
|
+
Object.setPrototypeOf(to, fromPrototype);
|
|
30863
|
+
};
|
|
30864
|
+
var wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/
|
|
30865
|
+
${fromBody}`;
|
|
30866
|
+
var toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
|
|
30867
|
+
var toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name");
|
|
30868
|
+
var changeToString = (to, from, name) => {
|
|
30869
|
+
const withName = name === "" ? "" : `with ${name.trim()}() `;
|
|
30870
|
+
const newToString = wrappedToString.bind(null, withName, from.toString());
|
|
30871
|
+
Object.defineProperty(newToString, "name", toStringName);
|
|
30872
|
+
Object.defineProperty(to, "toString", { ...toStringDescriptor, value: newToString });
|
|
30873
|
+
};
|
|
30874
|
+
function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
30875
|
+
const { name } = to;
|
|
30876
|
+
for (const property of Reflect.ownKeys(from)) {
|
|
30877
|
+
copyProperty(to, from, property, ignoreNonConfigurable);
|
|
30283
30878
|
}
|
|
30284
|
-
|
|
30285
|
-
|
|
30879
|
+
changePrototype(to, from);
|
|
30880
|
+
changeToString(to, from, name);
|
|
30881
|
+
return to;
|
|
30882
|
+
}
|
|
30883
|
+
|
|
30884
|
+
// node_modules/.pnpm/onetime@6.0.0/node_modules/onetime/index.js
|
|
30885
|
+
var calledFunctions = /* @__PURE__ */ new WeakMap();
|
|
30886
|
+
var onetime = (function_, options = {}) => {
|
|
30887
|
+
if (typeof function_ !== "function") {
|
|
30888
|
+
throw new TypeError("Expected a function");
|
|
30889
|
+
}
|
|
30890
|
+
let returnValue;
|
|
30891
|
+
let callCount = 0;
|
|
30892
|
+
const functionName = function_.displayName || function_.name || "<anonymous>";
|
|
30893
|
+
const onetime2 = function(...arguments_) {
|
|
30894
|
+
calledFunctions.set(onetime2, ++callCount);
|
|
30895
|
+
if (callCount === 1) {
|
|
30896
|
+
returnValue = function_.apply(this, arguments_);
|
|
30897
|
+
function_ = null;
|
|
30898
|
+
} else if (options.throw === true) {
|
|
30899
|
+
throw new Error(`Function \`${functionName}\` can only be called once`);
|
|
30900
|
+
}
|
|
30901
|
+
return returnValue;
|
|
30902
|
+
};
|
|
30903
|
+
mimicFunction(onetime2, function_);
|
|
30904
|
+
calledFunctions.set(onetime2, callCount);
|
|
30905
|
+
return onetime2;
|
|
30906
|
+
};
|
|
30907
|
+
onetime.callCount = (function_) => {
|
|
30908
|
+
if (!calledFunctions.has(function_)) {
|
|
30909
|
+
throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
|
|
30286
30910
|
}
|
|
30287
|
-
|
|
30288
|
-
|
|
30911
|
+
return calledFunctions.get(function_);
|
|
30912
|
+
};
|
|
30913
|
+
var onetime_default = onetime;
|
|
30914
|
+
|
|
30915
|
+
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
|
|
30916
|
+
var import_node_process2 = __toESM(require("node:process"), 1);
|
|
30917
|
+
|
|
30918
|
+
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
|
|
30919
|
+
var import_node_os2 = require("node:os");
|
|
30920
|
+
|
|
30921
|
+
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/realtime.js
|
|
30922
|
+
var getRealtimeSignals = () => {
|
|
30923
|
+
const length = SIGRTMAX - SIGRTMIN + 1;
|
|
30924
|
+
return Array.from({ length }, getRealtimeSignal);
|
|
30925
|
+
};
|
|
30926
|
+
var getRealtimeSignal = (value, index) => ({
|
|
30927
|
+
name: `SIGRT${index + 1}`,
|
|
30928
|
+
number: SIGRTMIN + index,
|
|
30929
|
+
action: "terminate",
|
|
30930
|
+
description: "Application-specific signal (realtime)",
|
|
30931
|
+
standard: "posix"
|
|
30932
|
+
});
|
|
30933
|
+
var SIGRTMIN = 34;
|
|
30934
|
+
var SIGRTMAX = 64;
|
|
30935
|
+
|
|
30936
|
+
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
|
|
30937
|
+
var import_node_os = require("node:os");
|
|
30938
|
+
|
|
30939
|
+
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/core.js
|
|
30940
|
+
var SIGNALS = [
|
|
30941
|
+
{
|
|
30942
|
+
name: "SIGHUP",
|
|
30943
|
+
number: 1,
|
|
30944
|
+
action: "terminate",
|
|
30945
|
+
description: "Terminal closed",
|
|
30946
|
+
standard: "posix"
|
|
30947
|
+
},
|
|
30948
|
+
{
|
|
30949
|
+
name: "SIGINT",
|
|
30950
|
+
number: 2,
|
|
30951
|
+
action: "terminate",
|
|
30952
|
+
description: "User interruption with CTRL-C",
|
|
30953
|
+
standard: "ansi"
|
|
30954
|
+
},
|
|
30955
|
+
{
|
|
30956
|
+
name: "SIGQUIT",
|
|
30957
|
+
number: 3,
|
|
30958
|
+
action: "core",
|
|
30959
|
+
description: "User interruption with CTRL-\\",
|
|
30960
|
+
standard: "posix"
|
|
30961
|
+
},
|
|
30962
|
+
{
|
|
30963
|
+
name: "SIGILL",
|
|
30964
|
+
number: 4,
|
|
30965
|
+
action: "core",
|
|
30966
|
+
description: "Invalid machine instruction",
|
|
30967
|
+
standard: "ansi"
|
|
30968
|
+
},
|
|
30969
|
+
{
|
|
30970
|
+
name: "SIGTRAP",
|
|
30971
|
+
number: 5,
|
|
30972
|
+
action: "core",
|
|
30973
|
+
description: "Debugger breakpoint",
|
|
30974
|
+
standard: "posix"
|
|
30975
|
+
},
|
|
30976
|
+
{
|
|
30977
|
+
name: "SIGABRT",
|
|
30978
|
+
number: 6,
|
|
30979
|
+
action: "core",
|
|
30980
|
+
description: "Aborted",
|
|
30981
|
+
standard: "ansi"
|
|
30982
|
+
},
|
|
30983
|
+
{
|
|
30984
|
+
name: "SIGIOT",
|
|
30985
|
+
number: 6,
|
|
30986
|
+
action: "core",
|
|
30987
|
+
description: "Aborted",
|
|
30988
|
+
standard: "bsd"
|
|
30989
|
+
},
|
|
30990
|
+
{
|
|
30991
|
+
name: "SIGBUS",
|
|
30992
|
+
number: 7,
|
|
30993
|
+
action: "core",
|
|
30994
|
+
description: "Bus error due to misaligned, non-existing address or paging error",
|
|
30995
|
+
standard: "bsd"
|
|
30996
|
+
},
|
|
30997
|
+
{
|
|
30998
|
+
name: "SIGEMT",
|
|
30999
|
+
number: 7,
|
|
31000
|
+
action: "terminate",
|
|
31001
|
+
description: "Command should be emulated but is not implemented",
|
|
31002
|
+
standard: "other"
|
|
31003
|
+
},
|
|
31004
|
+
{
|
|
31005
|
+
name: "SIGFPE",
|
|
31006
|
+
number: 8,
|
|
31007
|
+
action: "core",
|
|
31008
|
+
description: "Floating point arithmetic error",
|
|
31009
|
+
standard: "ansi"
|
|
31010
|
+
},
|
|
31011
|
+
{
|
|
31012
|
+
name: "SIGKILL",
|
|
31013
|
+
number: 9,
|
|
31014
|
+
action: "terminate",
|
|
31015
|
+
description: "Forced termination",
|
|
31016
|
+
standard: "posix",
|
|
31017
|
+
forced: true
|
|
31018
|
+
},
|
|
31019
|
+
{
|
|
31020
|
+
name: "SIGUSR1",
|
|
31021
|
+
number: 10,
|
|
31022
|
+
action: "terminate",
|
|
31023
|
+
description: "Application-specific signal",
|
|
31024
|
+
standard: "posix"
|
|
31025
|
+
},
|
|
31026
|
+
{
|
|
31027
|
+
name: "SIGSEGV",
|
|
31028
|
+
number: 11,
|
|
31029
|
+
action: "core",
|
|
31030
|
+
description: "Segmentation fault",
|
|
31031
|
+
standard: "ansi"
|
|
31032
|
+
},
|
|
31033
|
+
{
|
|
31034
|
+
name: "SIGUSR2",
|
|
31035
|
+
number: 12,
|
|
31036
|
+
action: "terminate",
|
|
31037
|
+
description: "Application-specific signal",
|
|
31038
|
+
standard: "posix"
|
|
31039
|
+
},
|
|
31040
|
+
{
|
|
31041
|
+
name: "SIGPIPE",
|
|
31042
|
+
number: 13,
|
|
31043
|
+
action: "terminate",
|
|
31044
|
+
description: "Broken pipe or socket",
|
|
31045
|
+
standard: "posix"
|
|
31046
|
+
},
|
|
31047
|
+
{
|
|
31048
|
+
name: "SIGALRM",
|
|
31049
|
+
number: 14,
|
|
31050
|
+
action: "terminate",
|
|
31051
|
+
description: "Timeout or timer",
|
|
31052
|
+
standard: "posix"
|
|
31053
|
+
},
|
|
31054
|
+
{
|
|
31055
|
+
name: "SIGTERM",
|
|
31056
|
+
number: 15,
|
|
31057
|
+
action: "terminate",
|
|
31058
|
+
description: "Termination",
|
|
31059
|
+
standard: "ansi"
|
|
31060
|
+
},
|
|
31061
|
+
{
|
|
31062
|
+
name: "SIGSTKFLT",
|
|
31063
|
+
number: 16,
|
|
31064
|
+
action: "terminate",
|
|
31065
|
+
description: "Stack is empty or overflowed",
|
|
31066
|
+
standard: "other"
|
|
31067
|
+
},
|
|
31068
|
+
{
|
|
31069
|
+
name: "SIGCHLD",
|
|
31070
|
+
number: 17,
|
|
31071
|
+
action: "ignore",
|
|
31072
|
+
description: "Child process terminated, paused or unpaused",
|
|
31073
|
+
standard: "posix"
|
|
31074
|
+
},
|
|
31075
|
+
{
|
|
31076
|
+
name: "SIGCLD",
|
|
31077
|
+
number: 17,
|
|
31078
|
+
action: "ignore",
|
|
31079
|
+
description: "Child process terminated, paused or unpaused",
|
|
31080
|
+
standard: "other"
|
|
31081
|
+
},
|
|
31082
|
+
{
|
|
31083
|
+
name: "SIGCONT",
|
|
31084
|
+
number: 18,
|
|
31085
|
+
action: "unpause",
|
|
31086
|
+
description: "Unpaused",
|
|
31087
|
+
standard: "posix",
|
|
31088
|
+
forced: true
|
|
31089
|
+
},
|
|
31090
|
+
{
|
|
31091
|
+
name: "SIGSTOP",
|
|
31092
|
+
number: 19,
|
|
31093
|
+
action: "pause",
|
|
31094
|
+
description: "Paused",
|
|
31095
|
+
standard: "posix",
|
|
31096
|
+
forced: true
|
|
31097
|
+
},
|
|
31098
|
+
{
|
|
31099
|
+
name: "SIGTSTP",
|
|
31100
|
+
number: 20,
|
|
31101
|
+
action: "pause",
|
|
31102
|
+
description: 'Paused using CTRL-Z or "suspend"',
|
|
31103
|
+
standard: "posix"
|
|
31104
|
+
},
|
|
31105
|
+
{
|
|
31106
|
+
name: "SIGTTIN",
|
|
31107
|
+
number: 21,
|
|
31108
|
+
action: "pause",
|
|
31109
|
+
description: "Background process cannot read terminal input",
|
|
31110
|
+
standard: "posix"
|
|
31111
|
+
},
|
|
31112
|
+
{
|
|
31113
|
+
name: "SIGBREAK",
|
|
31114
|
+
number: 21,
|
|
31115
|
+
action: "terminate",
|
|
31116
|
+
description: "User interruption with CTRL-BREAK",
|
|
31117
|
+
standard: "other"
|
|
31118
|
+
},
|
|
31119
|
+
{
|
|
31120
|
+
name: "SIGTTOU",
|
|
31121
|
+
number: 22,
|
|
31122
|
+
action: "pause",
|
|
31123
|
+
description: "Background process cannot write to terminal output",
|
|
31124
|
+
standard: "posix"
|
|
31125
|
+
},
|
|
31126
|
+
{
|
|
31127
|
+
name: "SIGURG",
|
|
31128
|
+
number: 23,
|
|
31129
|
+
action: "ignore",
|
|
31130
|
+
description: "Socket received out-of-band data",
|
|
31131
|
+
standard: "bsd"
|
|
31132
|
+
},
|
|
31133
|
+
{
|
|
31134
|
+
name: "SIGXCPU",
|
|
31135
|
+
number: 24,
|
|
31136
|
+
action: "core",
|
|
31137
|
+
description: "Process timed out",
|
|
31138
|
+
standard: "bsd"
|
|
31139
|
+
},
|
|
31140
|
+
{
|
|
31141
|
+
name: "SIGXFSZ",
|
|
31142
|
+
number: 25,
|
|
31143
|
+
action: "core",
|
|
31144
|
+
description: "File too big",
|
|
31145
|
+
standard: "bsd"
|
|
31146
|
+
},
|
|
31147
|
+
{
|
|
31148
|
+
name: "SIGVTALRM",
|
|
31149
|
+
number: 26,
|
|
31150
|
+
action: "terminate",
|
|
31151
|
+
description: "Timeout or timer",
|
|
31152
|
+
standard: "bsd"
|
|
31153
|
+
},
|
|
31154
|
+
{
|
|
31155
|
+
name: "SIGPROF",
|
|
31156
|
+
number: 27,
|
|
31157
|
+
action: "terminate",
|
|
31158
|
+
description: "Timeout or timer",
|
|
31159
|
+
standard: "bsd"
|
|
31160
|
+
},
|
|
31161
|
+
{
|
|
31162
|
+
name: "SIGWINCH",
|
|
31163
|
+
number: 28,
|
|
31164
|
+
action: "ignore",
|
|
31165
|
+
description: "Terminal window size changed",
|
|
31166
|
+
standard: "bsd"
|
|
31167
|
+
},
|
|
31168
|
+
{
|
|
31169
|
+
name: "SIGIO",
|
|
31170
|
+
number: 29,
|
|
31171
|
+
action: "terminate",
|
|
31172
|
+
description: "I/O is available",
|
|
31173
|
+
standard: "other"
|
|
31174
|
+
},
|
|
31175
|
+
{
|
|
31176
|
+
name: "SIGPOLL",
|
|
31177
|
+
number: 29,
|
|
31178
|
+
action: "terminate",
|
|
31179
|
+
description: "Watched event",
|
|
31180
|
+
standard: "other"
|
|
31181
|
+
},
|
|
31182
|
+
{
|
|
31183
|
+
name: "SIGINFO",
|
|
31184
|
+
number: 29,
|
|
31185
|
+
action: "ignore",
|
|
31186
|
+
description: "Request for process information",
|
|
31187
|
+
standard: "other"
|
|
31188
|
+
},
|
|
31189
|
+
{
|
|
31190
|
+
name: "SIGPWR",
|
|
31191
|
+
number: 30,
|
|
31192
|
+
action: "terminate",
|
|
31193
|
+
description: "Device running out of power",
|
|
31194
|
+
standard: "systemv"
|
|
31195
|
+
},
|
|
31196
|
+
{
|
|
31197
|
+
name: "SIGSYS",
|
|
31198
|
+
number: 31,
|
|
31199
|
+
action: "core",
|
|
31200
|
+
description: "Invalid system call",
|
|
31201
|
+
standard: "other"
|
|
31202
|
+
},
|
|
31203
|
+
{
|
|
31204
|
+
name: "SIGUNUSED",
|
|
31205
|
+
number: 31,
|
|
31206
|
+
action: "terminate",
|
|
31207
|
+
description: "Invalid system call",
|
|
31208
|
+
standard: "other"
|
|
30289
31209
|
}
|
|
30290
|
-
|
|
30291
|
-
|
|
30292
|
-
|
|
30293
|
-
|
|
31210
|
+
];
|
|
31211
|
+
|
|
31212
|
+
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
|
|
31213
|
+
var getSignals = () => {
|
|
31214
|
+
const realtimeSignals = getRealtimeSignals();
|
|
31215
|
+
const signals2 = [...SIGNALS, ...realtimeSignals].map(normalizeSignal);
|
|
31216
|
+
return signals2;
|
|
31217
|
+
};
|
|
31218
|
+
var normalizeSignal = ({
|
|
31219
|
+
name,
|
|
31220
|
+
number: defaultNumber,
|
|
31221
|
+
description,
|
|
31222
|
+
action,
|
|
31223
|
+
forced = false,
|
|
31224
|
+
standard
|
|
31225
|
+
}) => {
|
|
31226
|
+
const {
|
|
31227
|
+
signals: { [name]: constantSignal }
|
|
31228
|
+
} = import_node_os.constants;
|
|
31229
|
+
const supported = constantSignal !== void 0;
|
|
31230
|
+
const number = supported ? constantSignal : defaultNumber;
|
|
31231
|
+
return { name, number, description, supported, action, forced, standard };
|
|
31232
|
+
};
|
|
31233
|
+
|
|
31234
|
+
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
|
|
31235
|
+
var getSignalsByName = () => {
|
|
31236
|
+
const signals2 = getSignals();
|
|
31237
|
+
return Object.fromEntries(signals2.map(getSignalByName));
|
|
31238
|
+
};
|
|
31239
|
+
var getSignalByName = ({
|
|
31240
|
+
name,
|
|
31241
|
+
number,
|
|
31242
|
+
description,
|
|
31243
|
+
supported,
|
|
31244
|
+
action,
|
|
31245
|
+
forced,
|
|
31246
|
+
standard
|
|
31247
|
+
}) => [name, { name, number, description, supported, action, forced, standard }];
|
|
31248
|
+
var signalsByName = getSignalsByName();
|
|
31249
|
+
var getSignalsByNumber = () => {
|
|
31250
|
+
const signals2 = getSignals();
|
|
31251
|
+
const length = SIGRTMAX + 1;
|
|
31252
|
+
const signalsA = Array.from(
|
|
31253
|
+
{ length },
|
|
31254
|
+
(value, number) => getSignalByNumber(number, signals2)
|
|
31255
|
+
);
|
|
31256
|
+
return Object.assign({}, ...signalsA);
|
|
31257
|
+
};
|
|
31258
|
+
var getSignalByNumber = (number, signals2) => {
|
|
31259
|
+
const signal = findSignalByNumber(number, signals2);
|
|
31260
|
+
if (signal === void 0) {
|
|
31261
|
+
return {};
|
|
30294
31262
|
}
|
|
30295
|
-
|
|
30296
|
-
|
|
30297
|
-
|
|
30298
|
-
|
|
30299
|
-
|
|
31263
|
+
const { name, description, supported, action, forced, standard } = signal;
|
|
31264
|
+
return {
|
|
31265
|
+
[number]: {
|
|
31266
|
+
name,
|
|
31267
|
+
number,
|
|
31268
|
+
description,
|
|
31269
|
+
supported,
|
|
31270
|
+
action,
|
|
31271
|
+
forced,
|
|
31272
|
+
standard
|
|
31273
|
+
}
|
|
31274
|
+
};
|
|
31275
|
+
};
|
|
31276
|
+
var findSignalByNumber = (number, signals2) => {
|
|
31277
|
+
const signal = signals2.find(({ name }) => import_node_os2.constants.signals[name] === number);
|
|
31278
|
+
if (signal !== void 0) {
|
|
31279
|
+
return signal;
|
|
31280
|
+
}
|
|
31281
|
+
return signals2.find((signalA) => signalA.number === number);
|
|
31282
|
+
};
|
|
31283
|
+
var signalsByNumber = getSignalsByNumber();
|
|
31284
|
+
|
|
31285
|
+
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
|
|
31286
|
+
var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
|
|
31287
|
+
if (timedOut) {
|
|
31288
|
+
return `timed out after ${timeout} milliseconds`;
|
|
31289
|
+
}
|
|
31290
|
+
if (isCanceled) {
|
|
31291
|
+
return "was canceled";
|
|
31292
|
+
}
|
|
31293
|
+
if (errorCode !== void 0) {
|
|
31294
|
+
return `failed with ${errorCode}`;
|
|
31295
|
+
}
|
|
31296
|
+
if (signal !== void 0) {
|
|
31297
|
+
return `was killed with ${signal} (${signalDescription})`;
|
|
31298
|
+
}
|
|
31299
|
+
if (exitCode !== void 0) {
|
|
31300
|
+
return `failed with exit code ${exitCode}`;
|
|
31301
|
+
}
|
|
31302
|
+
return "failed";
|
|
31303
|
+
};
|
|
31304
|
+
var makeError = ({
|
|
31305
|
+
stdout,
|
|
31306
|
+
stderr,
|
|
31307
|
+
all,
|
|
31308
|
+
error,
|
|
31309
|
+
signal,
|
|
31310
|
+
exitCode,
|
|
31311
|
+
command,
|
|
31312
|
+
escapedCommand,
|
|
31313
|
+
timedOut,
|
|
31314
|
+
isCanceled,
|
|
31315
|
+
killed,
|
|
31316
|
+
parsed: { options: { timeout, cwd = import_node_process2.default.cwd() } }
|
|
31317
|
+
}) => {
|
|
31318
|
+
exitCode = exitCode === null ? void 0 : exitCode;
|
|
31319
|
+
signal = signal === null ? void 0 : signal;
|
|
31320
|
+
const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
|
|
31321
|
+
const errorCode = error && error.code;
|
|
31322
|
+
const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled });
|
|
31323
|
+
const execaMessage = `Command ${prefix}: ${command}`;
|
|
31324
|
+
const isError = Object.prototype.toString.call(error) === "[object Error]";
|
|
31325
|
+
const shortMessage = isError ? `${execaMessage}
|
|
31326
|
+
${error.message}` : execaMessage;
|
|
31327
|
+
const message = [shortMessage, stderr, stdout].filter(Boolean).join("\n");
|
|
31328
|
+
if (isError) {
|
|
31329
|
+
error.originalMessage = error.message;
|
|
31330
|
+
error.message = message;
|
|
31331
|
+
} else {
|
|
31332
|
+
error = new Error(message);
|
|
31333
|
+
}
|
|
31334
|
+
error.shortMessage = shortMessage;
|
|
31335
|
+
error.command = command;
|
|
31336
|
+
error.escapedCommand = escapedCommand;
|
|
31337
|
+
error.exitCode = exitCode;
|
|
31338
|
+
error.signal = signal;
|
|
31339
|
+
error.signalDescription = signalDescription;
|
|
31340
|
+
error.stdout = stdout;
|
|
31341
|
+
error.stderr = stderr;
|
|
31342
|
+
error.cwd = cwd;
|
|
31343
|
+
if (all !== void 0) {
|
|
31344
|
+
error.all = all;
|
|
31345
|
+
}
|
|
31346
|
+
if ("bufferedData" in error) {
|
|
31347
|
+
delete error.bufferedData;
|
|
31348
|
+
}
|
|
31349
|
+
error.failed = true;
|
|
31350
|
+
error.timedOut = Boolean(timedOut);
|
|
31351
|
+
error.isCanceled = isCanceled;
|
|
31352
|
+
error.killed = killed && !timedOut;
|
|
31353
|
+
return error;
|
|
31354
|
+
};
|
|
31355
|
+
|
|
31356
|
+
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stdio.js
|
|
31357
|
+
var aliases = ["stdin", "stdout", "stderr"];
|
|
31358
|
+
var hasAlias = (options) => aliases.some((alias) => options[alias] !== void 0);
|
|
31359
|
+
var normalizeStdio = (options) => {
|
|
31360
|
+
if (!options) {
|
|
31361
|
+
return;
|
|
31362
|
+
}
|
|
31363
|
+
const { stdio } = options;
|
|
31364
|
+
if (stdio === void 0) {
|
|
31365
|
+
return aliases.map((alias) => options[alias]);
|
|
31366
|
+
}
|
|
31367
|
+
if (hasAlias(options)) {
|
|
31368
|
+
throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
|
|
31369
|
+
}
|
|
31370
|
+
if (typeof stdio === "string") {
|
|
31371
|
+
return stdio;
|
|
31372
|
+
}
|
|
31373
|
+
if (!Array.isArray(stdio)) {
|
|
31374
|
+
throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
|
|
31375
|
+
}
|
|
31376
|
+
const length = Math.max(stdio.length, aliases.length);
|
|
31377
|
+
return Array.from({ length }, (value, index) => stdio[index]);
|
|
31378
|
+
};
|
|
31379
|
+
|
|
31380
|
+
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
|
|
31381
|
+
var import_node_os3 = __toESM(require("node:os"), 1);
|
|
31382
|
+
|
|
31383
|
+
// node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
31384
|
+
var signals = [];
|
|
31385
|
+
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
31386
|
+
if (process.platform !== "win32") {
|
|
31387
|
+
signals.push(
|
|
31388
|
+
"SIGALRM",
|
|
31389
|
+
"SIGABRT",
|
|
31390
|
+
"SIGVTALRM",
|
|
31391
|
+
"SIGXCPU",
|
|
31392
|
+
"SIGXFSZ",
|
|
31393
|
+
"SIGUSR2",
|
|
31394
|
+
"SIGTRAP",
|
|
31395
|
+
"SIGSYS",
|
|
31396
|
+
"SIGQUIT",
|
|
31397
|
+
"SIGIOT"
|
|
31398
|
+
// should detect profiler and enable/disable accordingly.
|
|
31399
|
+
// see #21
|
|
31400
|
+
// 'SIGPROF'
|
|
31401
|
+
);
|
|
31402
|
+
}
|
|
31403
|
+
if (process.platform === "linux") {
|
|
31404
|
+
signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
31405
|
+
}
|
|
31406
|
+
|
|
31407
|
+
// node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
|
|
31408
|
+
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";
|
|
31409
|
+
var kExitEmitter = Symbol.for("signal-exit emitter");
|
|
31410
|
+
var global2 = globalThis;
|
|
31411
|
+
var ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
31412
|
+
var Emitter = class {
|
|
31413
|
+
emitted = {
|
|
31414
|
+
afterExit: false,
|
|
31415
|
+
exit: false
|
|
31416
|
+
};
|
|
31417
|
+
listeners = {
|
|
31418
|
+
afterExit: [],
|
|
31419
|
+
exit: []
|
|
31420
|
+
};
|
|
31421
|
+
count = 0;
|
|
31422
|
+
id = Math.random();
|
|
31423
|
+
constructor() {
|
|
31424
|
+
if (global2[kExitEmitter]) {
|
|
31425
|
+
return global2[kExitEmitter];
|
|
31426
|
+
}
|
|
31427
|
+
ObjectDefineProperty(global2, kExitEmitter, {
|
|
31428
|
+
value: this,
|
|
31429
|
+
writable: false,
|
|
31430
|
+
enumerable: false,
|
|
31431
|
+
configurable: false
|
|
31432
|
+
});
|
|
31433
|
+
}
|
|
31434
|
+
on(ev, fn) {
|
|
31435
|
+
this.listeners[ev].push(fn);
|
|
31436
|
+
}
|
|
31437
|
+
removeListener(ev, fn) {
|
|
31438
|
+
const list = this.listeners[ev];
|
|
31439
|
+
const i = list.indexOf(fn);
|
|
31440
|
+
if (i === -1) {
|
|
31441
|
+
return;
|
|
31442
|
+
}
|
|
31443
|
+
if (i === 0 && list.length === 1) {
|
|
31444
|
+
list.length = 0;
|
|
31445
|
+
} else {
|
|
31446
|
+
list.splice(i, 1);
|
|
31447
|
+
}
|
|
31448
|
+
}
|
|
31449
|
+
emit(ev, code, signal) {
|
|
31450
|
+
if (this.emitted[ev]) {
|
|
31451
|
+
return false;
|
|
31452
|
+
}
|
|
31453
|
+
this.emitted[ev] = true;
|
|
31454
|
+
let ret = false;
|
|
31455
|
+
for (const fn of this.listeners[ev]) {
|
|
31456
|
+
ret = fn(code, signal) === true || ret;
|
|
31457
|
+
}
|
|
31458
|
+
if (ev === "exit") {
|
|
31459
|
+
ret = this.emit("afterExit", code, signal) || ret;
|
|
31460
|
+
}
|
|
31461
|
+
return ret;
|
|
31462
|
+
}
|
|
31463
|
+
};
|
|
31464
|
+
var SignalExitBase = class {
|
|
31465
|
+
};
|
|
31466
|
+
var signalExitWrap = (handler) => {
|
|
31467
|
+
return {
|
|
31468
|
+
onExit(cb, opts) {
|
|
31469
|
+
return handler.onExit(cb, opts);
|
|
31470
|
+
},
|
|
31471
|
+
load() {
|
|
31472
|
+
return handler.load();
|
|
31473
|
+
},
|
|
31474
|
+
unload() {
|
|
31475
|
+
return handler.unload();
|
|
31476
|
+
}
|
|
31477
|
+
};
|
|
31478
|
+
};
|
|
31479
|
+
var SignalExitFallback = class extends SignalExitBase {
|
|
31480
|
+
onExit() {
|
|
31481
|
+
return () => {
|
|
31482
|
+
};
|
|
31483
|
+
}
|
|
31484
|
+
load() {
|
|
31485
|
+
}
|
|
31486
|
+
unload() {
|
|
31487
|
+
}
|
|
31488
|
+
};
|
|
31489
|
+
var SignalExit = class extends SignalExitBase {
|
|
31490
|
+
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
|
31491
|
+
// so use a supported signal instead
|
|
31492
|
+
/* c8 ignore start */
|
|
31493
|
+
#hupSig = process4.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
31494
|
+
/* c8 ignore stop */
|
|
31495
|
+
#emitter = new Emitter();
|
|
31496
|
+
#process;
|
|
31497
|
+
#originalProcessEmit;
|
|
31498
|
+
#originalProcessReallyExit;
|
|
31499
|
+
#sigListeners = {};
|
|
31500
|
+
#loaded = false;
|
|
31501
|
+
constructor(process7) {
|
|
31502
|
+
super();
|
|
31503
|
+
this.#process = process7;
|
|
31504
|
+
this.#sigListeners = {};
|
|
31505
|
+
for (const sig of signals) {
|
|
31506
|
+
this.#sigListeners[sig] = () => {
|
|
31507
|
+
const listeners = this.#process.listeners(sig);
|
|
31508
|
+
let { count } = this.#emitter;
|
|
31509
|
+
const p = process7;
|
|
31510
|
+
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
|
31511
|
+
count += p.__signal_exit_emitter__.count;
|
|
31512
|
+
}
|
|
31513
|
+
if (listeners.length === count) {
|
|
31514
|
+
this.unload();
|
|
31515
|
+
const ret = this.#emitter.emit("exit", null, sig);
|
|
31516
|
+
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
31517
|
+
if (!ret)
|
|
31518
|
+
process7.kill(process7.pid, s);
|
|
31519
|
+
}
|
|
31520
|
+
};
|
|
31521
|
+
}
|
|
31522
|
+
this.#originalProcessReallyExit = process7.reallyExit;
|
|
31523
|
+
this.#originalProcessEmit = process7.emit;
|
|
31524
|
+
}
|
|
31525
|
+
onExit(cb, opts) {
|
|
31526
|
+
if (!processOk(this.#process)) {
|
|
31527
|
+
return () => {
|
|
31528
|
+
};
|
|
31529
|
+
}
|
|
31530
|
+
if (this.#loaded === false) {
|
|
31531
|
+
this.load();
|
|
31532
|
+
}
|
|
31533
|
+
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
31534
|
+
this.#emitter.on(ev, cb);
|
|
31535
|
+
return () => {
|
|
31536
|
+
this.#emitter.removeListener(ev, cb);
|
|
31537
|
+
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
|
|
31538
|
+
this.unload();
|
|
31539
|
+
}
|
|
31540
|
+
};
|
|
31541
|
+
}
|
|
31542
|
+
load() {
|
|
31543
|
+
if (this.#loaded) {
|
|
31544
|
+
return;
|
|
31545
|
+
}
|
|
31546
|
+
this.#loaded = true;
|
|
31547
|
+
this.#emitter.count += 1;
|
|
31548
|
+
for (const sig of signals) {
|
|
31549
|
+
try {
|
|
31550
|
+
const fn = this.#sigListeners[sig];
|
|
31551
|
+
if (fn)
|
|
31552
|
+
this.#process.on(sig, fn);
|
|
31553
|
+
} catch (_) {
|
|
31554
|
+
}
|
|
31555
|
+
}
|
|
31556
|
+
this.#process.emit = (ev, ...a) => {
|
|
31557
|
+
return this.#processEmit(ev, ...a);
|
|
31558
|
+
};
|
|
31559
|
+
this.#process.reallyExit = (code) => {
|
|
31560
|
+
return this.#processReallyExit(code);
|
|
31561
|
+
};
|
|
31562
|
+
}
|
|
31563
|
+
unload() {
|
|
31564
|
+
if (!this.#loaded) {
|
|
31565
|
+
return;
|
|
31566
|
+
}
|
|
31567
|
+
this.#loaded = false;
|
|
31568
|
+
signals.forEach((sig) => {
|
|
31569
|
+
const listener = this.#sigListeners[sig];
|
|
31570
|
+
if (!listener) {
|
|
31571
|
+
throw new Error("Listener not defined for signal: " + sig);
|
|
31572
|
+
}
|
|
31573
|
+
try {
|
|
31574
|
+
this.#process.removeListener(sig, listener);
|
|
31575
|
+
} catch (_) {
|
|
31576
|
+
}
|
|
31577
|
+
});
|
|
31578
|
+
this.#process.emit = this.#originalProcessEmit;
|
|
31579
|
+
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
31580
|
+
this.#emitter.count -= 1;
|
|
31581
|
+
}
|
|
31582
|
+
#processReallyExit(code) {
|
|
31583
|
+
if (!processOk(this.#process)) {
|
|
31584
|
+
return 0;
|
|
31585
|
+
}
|
|
31586
|
+
this.#process.exitCode = code || 0;
|
|
31587
|
+
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
31588
|
+
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
31589
|
+
}
|
|
31590
|
+
#processEmit(ev, ...args) {
|
|
31591
|
+
const og = this.#originalProcessEmit;
|
|
31592
|
+
if (ev === "exit" && processOk(this.#process)) {
|
|
31593
|
+
if (typeof args[0] === "number") {
|
|
31594
|
+
this.#process.exitCode = args[0];
|
|
31595
|
+
}
|
|
31596
|
+
const ret = og.call(this.#process, ev, ...args);
|
|
31597
|
+
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
31598
|
+
return ret;
|
|
31599
|
+
} else {
|
|
31600
|
+
return og.call(this.#process, ev, ...args);
|
|
31601
|
+
}
|
|
31602
|
+
}
|
|
31603
|
+
};
|
|
31604
|
+
var process4 = globalThis.process;
|
|
31605
|
+
var {
|
|
31606
|
+
/**
|
|
31607
|
+
* Called when the process is exiting, whether via signal, explicit
|
|
31608
|
+
* exit, or running out of stuff to do.
|
|
31609
|
+
*
|
|
31610
|
+
* If the global process object is not suitable for instrumentation,
|
|
31611
|
+
* then this will be a no-op.
|
|
31612
|
+
*
|
|
31613
|
+
* Returns a function that may be used to unload signal-exit.
|
|
31614
|
+
*/
|
|
31615
|
+
onExit,
|
|
31616
|
+
/**
|
|
31617
|
+
* Load the listeners. Likely you never need to call this, unless
|
|
31618
|
+
* doing a rather deep integration with signal-exit functionality.
|
|
31619
|
+
* Mostly exposed for the benefit of testing.
|
|
31620
|
+
*
|
|
31621
|
+
* @internal
|
|
31622
|
+
*/
|
|
31623
|
+
load,
|
|
31624
|
+
/**
|
|
31625
|
+
* Unload the listeners. Likely you never need to call this, unless
|
|
31626
|
+
* doing a rather deep integration with signal-exit functionality.
|
|
31627
|
+
* Mostly exposed for the benefit of testing.
|
|
31628
|
+
*
|
|
31629
|
+
* @internal
|
|
31630
|
+
*/
|
|
31631
|
+
unload
|
|
31632
|
+
} = signalExitWrap(processOk(process4) ? new SignalExit(process4) : new SignalExitFallback());
|
|
31633
|
+
|
|
31634
|
+
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
|
|
31635
|
+
var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
|
|
31636
|
+
var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
|
|
31637
|
+
const killResult = kill(signal);
|
|
31638
|
+
setKillTimeout(kill, signal, options, killResult);
|
|
31639
|
+
return killResult;
|
|
31640
|
+
};
|
|
31641
|
+
var setKillTimeout = (kill, signal, options, killResult) => {
|
|
31642
|
+
if (!shouldForceKill(signal, options, killResult)) {
|
|
31643
|
+
return;
|
|
31644
|
+
}
|
|
31645
|
+
const timeout = getForceKillAfterTimeout(options);
|
|
31646
|
+
const t = setTimeout(() => {
|
|
31647
|
+
kill("SIGKILL");
|
|
31648
|
+
}, timeout);
|
|
31649
|
+
if (t.unref) {
|
|
31650
|
+
t.unref();
|
|
31651
|
+
}
|
|
31652
|
+
};
|
|
31653
|
+
var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
|
|
31654
|
+
var isSigterm = (signal) => signal === import_node_os3.default.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
|
|
31655
|
+
var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
|
|
31656
|
+
if (forceKillAfterTimeout === true) {
|
|
31657
|
+
return DEFAULT_FORCE_KILL_TIMEOUT;
|
|
31658
|
+
}
|
|
31659
|
+
if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
|
|
31660
|
+
throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
|
|
31661
|
+
}
|
|
31662
|
+
return forceKillAfterTimeout;
|
|
31663
|
+
};
|
|
31664
|
+
var spawnedCancel = (spawned, context) => {
|
|
31665
|
+
const killResult = spawned.kill();
|
|
31666
|
+
if (killResult) {
|
|
31667
|
+
context.isCanceled = true;
|
|
31668
|
+
}
|
|
31669
|
+
};
|
|
31670
|
+
var timeoutKill = (spawned, signal, reject) => {
|
|
31671
|
+
spawned.kill(signal);
|
|
31672
|
+
reject(Object.assign(new Error("Timed out"), { timedOut: true, signal }));
|
|
31673
|
+
};
|
|
31674
|
+
var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
|
|
31675
|
+
if (timeout === 0 || timeout === void 0) {
|
|
31676
|
+
return spawnedPromise;
|
|
31677
|
+
}
|
|
31678
|
+
let timeoutId;
|
|
31679
|
+
const timeoutPromise = new Promise((resolve, reject) => {
|
|
31680
|
+
timeoutId = setTimeout(() => {
|
|
31681
|
+
timeoutKill(spawned, killSignal, reject);
|
|
31682
|
+
}, timeout);
|
|
31683
|
+
});
|
|
31684
|
+
const safeSpawnedPromise = spawnedPromise.finally(() => {
|
|
31685
|
+
clearTimeout(timeoutId);
|
|
31686
|
+
});
|
|
31687
|
+
return Promise.race([timeoutPromise, safeSpawnedPromise]);
|
|
31688
|
+
};
|
|
31689
|
+
var validateTimeout = ({ timeout }) => {
|
|
31690
|
+
if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
|
|
31691
|
+
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
|
|
31692
|
+
}
|
|
31693
|
+
};
|
|
31694
|
+
var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => {
|
|
31695
|
+
if (!cleanup || detached) {
|
|
31696
|
+
return timedPromise;
|
|
31697
|
+
}
|
|
31698
|
+
const removeExitHandler = onExit(() => {
|
|
31699
|
+
spawned.kill();
|
|
31700
|
+
});
|
|
31701
|
+
return timedPromise.finally(() => {
|
|
31702
|
+
removeExitHandler();
|
|
31703
|
+
});
|
|
31704
|
+
};
|
|
31705
|
+
|
|
31706
|
+
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
|
|
31707
|
+
var import_node_fs3 = require("node:fs");
|
|
31708
|
+
var import_node_child_process = require("node:child_process");
|
|
31709
|
+
|
|
31710
|
+
// node_modules/.pnpm/is-stream@3.0.0/node_modules/is-stream/index.js
|
|
31711
|
+
function isStream(stream) {
|
|
31712
|
+
return stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
|
|
31713
|
+
}
|
|
31714
|
+
function isWritableStream(stream) {
|
|
31715
|
+
return isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
|
|
31716
|
+
}
|
|
31717
|
+
|
|
31718
|
+
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
|
|
31719
|
+
var isExecaChildProcess = (target) => target instanceof import_node_child_process.ChildProcess && typeof target.then === "function";
|
|
31720
|
+
var pipeToTarget = (spawned, streamName, target) => {
|
|
31721
|
+
if (typeof target === "string") {
|
|
31722
|
+
spawned[streamName].pipe((0, import_node_fs3.createWriteStream)(target));
|
|
31723
|
+
return spawned;
|
|
31724
|
+
}
|
|
31725
|
+
if (isWritableStream(target)) {
|
|
31726
|
+
spawned[streamName].pipe(target);
|
|
31727
|
+
return spawned;
|
|
31728
|
+
}
|
|
31729
|
+
if (!isExecaChildProcess(target)) {
|
|
31730
|
+
throw new TypeError("The second argument must be a string, a stream or an Execa child process.");
|
|
31731
|
+
}
|
|
31732
|
+
if (!isWritableStream(target.stdin)) {
|
|
31733
|
+
throw new TypeError("The target child process's stdin must be available.");
|
|
31734
|
+
}
|
|
31735
|
+
spawned[streamName].pipe(target.stdin);
|
|
31736
|
+
return target;
|
|
31737
|
+
};
|
|
31738
|
+
var addPipeMethods = (spawned) => {
|
|
31739
|
+
if (spawned.stdout !== null) {
|
|
31740
|
+
spawned.pipeStdout = pipeToTarget.bind(void 0, spawned, "stdout");
|
|
31741
|
+
}
|
|
31742
|
+
if (spawned.stderr !== null) {
|
|
31743
|
+
spawned.pipeStderr = pipeToTarget.bind(void 0, spawned, "stderr");
|
|
31744
|
+
}
|
|
31745
|
+
if (spawned.all !== void 0) {
|
|
31746
|
+
spawned.pipeAll = pipeToTarget.bind(void 0, spawned, "all");
|
|
31747
|
+
}
|
|
31748
|
+
};
|
|
31749
|
+
|
|
31750
|
+
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
|
|
31751
|
+
var import_node_fs4 = require("node:fs");
|
|
31752
|
+
var import_promises = require("node:timers/promises");
|
|
31753
|
+
|
|
31754
|
+
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/contents.js
|
|
31755
|
+
var getStreamContents = async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
|
|
31756
|
+
if (!isAsyncIterable(stream)) {
|
|
31757
|
+
throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");
|
|
31758
|
+
}
|
|
31759
|
+
const state = init();
|
|
31760
|
+
state.length = 0;
|
|
31761
|
+
try {
|
|
31762
|
+
for await (const chunk of stream) {
|
|
31763
|
+
const chunkType = getChunkType(chunk);
|
|
31764
|
+
const convertedChunk = convertChunk[chunkType](chunk, state);
|
|
31765
|
+
appendChunk({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
|
|
31766
|
+
}
|
|
31767
|
+
appendFinalChunk({ state, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer });
|
|
31768
|
+
return finalize(state);
|
|
31769
|
+
} catch (error) {
|
|
31770
|
+
error.bufferedData = finalize(state);
|
|
31771
|
+
throw error;
|
|
31772
|
+
}
|
|
31773
|
+
};
|
|
31774
|
+
var appendFinalChunk = ({ state, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer }) => {
|
|
31775
|
+
const convertedChunk = getFinalChunk(state);
|
|
31776
|
+
if (convertedChunk !== void 0) {
|
|
31777
|
+
appendChunk({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
|
|
31778
|
+
}
|
|
31779
|
+
};
|
|
31780
|
+
var appendChunk = ({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer }) => {
|
|
31781
|
+
const chunkSize = getSize(convertedChunk);
|
|
31782
|
+
const newLength = state.length + chunkSize;
|
|
31783
|
+
if (newLength <= maxBuffer) {
|
|
31784
|
+
addNewChunk(convertedChunk, state, addChunk, newLength);
|
|
31785
|
+
return;
|
|
31786
|
+
}
|
|
31787
|
+
const truncatedChunk = truncateChunk(convertedChunk, maxBuffer - state.length);
|
|
31788
|
+
if (truncatedChunk !== void 0) {
|
|
31789
|
+
addNewChunk(truncatedChunk, state, addChunk, maxBuffer);
|
|
31790
|
+
}
|
|
31791
|
+
throw new MaxBufferError();
|
|
31792
|
+
};
|
|
31793
|
+
var addNewChunk = (convertedChunk, state, addChunk, newLength) => {
|
|
31794
|
+
state.contents = addChunk(convertedChunk, state, newLength);
|
|
31795
|
+
state.length = newLength;
|
|
31796
|
+
};
|
|
31797
|
+
var isAsyncIterable = (stream) => typeof stream === "object" && stream !== null && typeof stream[Symbol.asyncIterator] === "function";
|
|
31798
|
+
var getChunkType = (chunk) => {
|
|
31799
|
+
const typeOfChunk = typeof chunk;
|
|
31800
|
+
if (typeOfChunk === "string") {
|
|
31801
|
+
return "string";
|
|
31802
|
+
}
|
|
31803
|
+
if (typeOfChunk !== "object" || chunk === null) {
|
|
31804
|
+
return "others";
|
|
31805
|
+
}
|
|
31806
|
+
if (globalThis.Buffer?.isBuffer(chunk)) {
|
|
31807
|
+
return "buffer";
|
|
31808
|
+
}
|
|
31809
|
+
const prototypeName = objectToString.call(chunk);
|
|
31810
|
+
if (prototypeName === "[object ArrayBuffer]") {
|
|
31811
|
+
return "arrayBuffer";
|
|
31812
|
+
}
|
|
31813
|
+
if (prototypeName === "[object DataView]") {
|
|
31814
|
+
return "dataView";
|
|
31815
|
+
}
|
|
31816
|
+
if (Number.isInteger(chunk.byteLength) && Number.isInteger(chunk.byteOffset) && objectToString.call(chunk.buffer) === "[object ArrayBuffer]") {
|
|
31817
|
+
return "typedArray";
|
|
31818
|
+
}
|
|
31819
|
+
return "others";
|
|
31820
|
+
};
|
|
31821
|
+
var { toString: objectToString } = Object.prototype;
|
|
31822
|
+
var MaxBufferError = class extends Error {
|
|
31823
|
+
name = "MaxBufferError";
|
|
31824
|
+
constructor() {
|
|
31825
|
+
super("maxBuffer exceeded");
|
|
31826
|
+
}
|
|
31827
|
+
};
|
|
31828
|
+
|
|
31829
|
+
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/utils.js
|
|
31830
|
+
var identity = (value) => value;
|
|
31831
|
+
var noop = () => void 0;
|
|
31832
|
+
var getContentsProp = ({ contents }) => contents;
|
|
31833
|
+
var throwObjectStream = (chunk) => {
|
|
31834
|
+
throw new Error(`Streams in object mode are not supported: ${String(chunk)}`);
|
|
31835
|
+
};
|
|
31836
|
+
var getLengthProp = (convertedChunk) => convertedChunk.length;
|
|
31837
|
+
|
|
31838
|
+
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/array-buffer.js
|
|
31839
|
+
async function getStreamAsArrayBuffer(stream, options) {
|
|
31840
|
+
return getStreamContents(stream, arrayBufferMethods, options);
|
|
31841
|
+
}
|
|
31842
|
+
var initArrayBuffer = () => ({ contents: new ArrayBuffer(0) });
|
|
31843
|
+
var useTextEncoder = (chunk) => textEncoder.encode(chunk);
|
|
31844
|
+
var textEncoder = new TextEncoder();
|
|
31845
|
+
var useUint8Array = (chunk) => new Uint8Array(chunk);
|
|
31846
|
+
var useUint8ArrayWithOffset = (chunk) => new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength);
|
|
31847
|
+
var truncateArrayBufferChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
|
|
31848
|
+
var addArrayBufferChunk = (convertedChunk, { contents, length: previousLength }, length) => {
|
|
31849
|
+
const newContents = hasArrayBufferResize() ? resizeArrayBuffer(contents, length) : resizeArrayBufferSlow(contents, length);
|
|
31850
|
+
new Uint8Array(newContents).set(convertedChunk, previousLength);
|
|
31851
|
+
return newContents;
|
|
31852
|
+
};
|
|
31853
|
+
var resizeArrayBufferSlow = (contents, length) => {
|
|
31854
|
+
if (length <= contents.byteLength) {
|
|
31855
|
+
return contents;
|
|
31856
|
+
}
|
|
31857
|
+
const arrayBuffer = new ArrayBuffer(getNewContentsLength(length));
|
|
31858
|
+
new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
|
|
31859
|
+
return arrayBuffer;
|
|
31860
|
+
};
|
|
31861
|
+
var resizeArrayBuffer = (contents, length) => {
|
|
31862
|
+
if (length <= contents.maxByteLength) {
|
|
31863
|
+
contents.resize(length);
|
|
31864
|
+
return contents;
|
|
31865
|
+
}
|
|
31866
|
+
const arrayBuffer = new ArrayBuffer(length, { maxByteLength: getNewContentsLength(length) });
|
|
31867
|
+
new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
|
|
31868
|
+
return arrayBuffer;
|
|
31869
|
+
};
|
|
31870
|
+
var getNewContentsLength = (length) => SCALE_FACTOR ** Math.ceil(Math.log(length) / Math.log(SCALE_FACTOR));
|
|
31871
|
+
var SCALE_FACTOR = 2;
|
|
31872
|
+
var finalizeArrayBuffer = ({ contents, length }) => hasArrayBufferResize() ? contents : contents.slice(0, length);
|
|
31873
|
+
var hasArrayBufferResize = () => "resize" in ArrayBuffer.prototype;
|
|
31874
|
+
var arrayBufferMethods = {
|
|
31875
|
+
init: initArrayBuffer,
|
|
31876
|
+
convertChunk: {
|
|
31877
|
+
string: useTextEncoder,
|
|
31878
|
+
buffer: useUint8Array,
|
|
31879
|
+
arrayBuffer: useUint8Array,
|
|
31880
|
+
dataView: useUint8ArrayWithOffset,
|
|
31881
|
+
typedArray: useUint8ArrayWithOffset,
|
|
31882
|
+
others: throwObjectStream
|
|
31883
|
+
},
|
|
31884
|
+
getSize: getLengthProp,
|
|
31885
|
+
truncateChunk: truncateArrayBufferChunk,
|
|
31886
|
+
addChunk: addArrayBufferChunk,
|
|
31887
|
+
getFinalChunk: noop,
|
|
31888
|
+
finalize: finalizeArrayBuffer
|
|
31889
|
+
};
|
|
31890
|
+
|
|
31891
|
+
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/buffer.js
|
|
31892
|
+
async function getStreamAsBuffer(stream, options) {
|
|
31893
|
+
if (!("Buffer" in globalThis)) {
|
|
31894
|
+
throw new Error("getStreamAsBuffer() is only supported in Node.js");
|
|
31895
|
+
}
|
|
31896
|
+
try {
|
|
31897
|
+
return arrayBufferToNodeBuffer(await getStreamAsArrayBuffer(stream, options));
|
|
31898
|
+
} catch (error) {
|
|
31899
|
+
if (error.bufferedData !== void 0) {
|
|
31900
|
+
error.bufferedData = arrayBufferToNodeBuffer(error.bufferedData);
|
|
31901
|
+
}
|
|
31902
|
+
throw error;
|
|
31903
|
+
}
|
|
31904
|
+
}
|
|
31905
|
+
var arrayBufferToNodeBuffer = (arrayBuffer) => globalThis.Buffer.from(arrayBuffer);
|
|
31906
|
+
|
|
31907
|
+
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/string.js
|
|
31908
|
+
async function getStreamAsString(stream, options) {
|
|
31909
|
+
return getStreamContents(stream, stringMethods, options);
|
|
31910
|
+
}
|
|
31911
|
+
var initString = () => ({ contents: "", textDecoder: new TextDecoder() });
|
|
31912
|
+
var useTextDecoder = (chunk, { textDecoder }) => textDecoder.decode(chunk, { stream: true });
|
|
31913
|
+
var addStringChunk = (convertedChunk, { contents }) => contents + convertedChunk;
|
|
31914
|
+
var truncateStringChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
|
|
31915
|
+
var getFinalStringChunk = ({ textDecoder }) => {
|
|
31916
|
+
const finalChunk = textDecoder.decode();
|
|
31917
|
+
return finalChunk === "" ? void 0 : finalChunk;
|
|
31918
|
+
};
|
|
31919
|
+
var stringMethods = {
|
|
31920
|
+
init: initString,
|
|
31921
|
+
convertChunk: {
|
|
31922
|
+
string: identity,
|
|
31923
|
+
buffer: useTextDecoder,
|
|
31924
|
+
arrayBuffer: useTextDecoder,
|
|
31925
|
+
dataView: useTextDecoder,
|
|
31926
|
+
typedArray: useTextDecoder,
|
|
31927
|
+
others: throwObjectStream
|
|
31928
|
+
},
|
|
31929
|
+
getSize: getLengthProp,
|
|
31930
|
+
truncateChunk: truncateStringChunk,
|
|
31931
|
+
addChunk: addStringChunk,
|
|
31932
|
+
getFinalChunk: getFinalStringChunk,
|
|
31933
|
+
finalize: getContentsProp
|
|
31934
|
+
};
|
|
31935
|
+
|
|
31936
|
+
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
|
|
31937
|
+
var import_merge_stream = __toESM(require_merge_stream(), 1);
|
|
31938
|
+
var validateInputOptions = (input) => {
|
|
31939
|
+
if (input !== void 0) {
|
|
31940
|
+
throw new TypeError("The `input` and `inputFile` options cannot be both set.");
|
|
31941
|
+
}
|
|
31942
|
+
};
|
|
31943
|
+
var getInputSync = ({ input, inputFile }) => {
|
|
31944
|
+
if (typeof inputFile !== "string") {
|
|
31945
|
+
return input;
|
|
31946
|
+
}
|
|
31947
|
+
validateInputOptions(input);
|
|
31948
|
+
return (0, import_node_fs4.readFileSync)(inputFile);
|
|
31949
|
+
};
|
|
31950
|
+
var handleInputSync = (options) => {
|
|
31951
|
+
const input = getInputSync(options);
|
|
31952
|
+
if (isStream(input)) {
|
|
31953
|
+
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
31954
|
+
}
|
|
31955
|
+
return input;
|
|
31956
|
+
};
|
|
31957
|
+
var getInput = ({ input, inputFile }) => {
|
|
31958
|
+
if (typeof inputFile !== "string") {
|
|
31959
|
+
return input;
|
|
31960
|
+
}
|
|
31961
|
+
validateInputOptions(input);
|
|
31962
|
+
return (0, import_node_fs4.createReadStream)(inputFile);
|
|
31963
|
+
};
|
|
31964
|
+
var handleInput = (spawned, options) => {
|
|
31965
|
+
const input = getInput(options);
|
|
31966
|
+
if (input === void 0) {
|
|
31967
|
+
return;
|
|
31968
|
+
}
|
|
31969
|
+
if (isStream(input)) {
|
|
31970
|
+
input.pipe(spawned.stdin);
|
|
31971
|
+
} else {
|
|
31972
|
+
spawned.stdin.end(input);
|
|
31973
|
+
}
|
|
31974
|
+
};
|
|
31975
|
+
var makeAllStream = (spawned, { all }) => {
|
|
31976
|
+
if (!all || !spawned.stdout && !spawned.stderr) {
|
|
31977
|
+
return;
|
|
31978
|
+
}
|
|
31979
|
+
const mixed = (0, import_merge_stream.default)();
|
|
31980
|
+
if (spawned.stdout) {
|
|
31981
|
+
mixed.add(spawned.stdout);
|
|
31982
|
+
}
|
|
31983
|
+
if (spawned.stderr) {
|
|
31984
|
+
mixed.add(spawned.stderr);
|
|
31985
|
+
}
|
|
31986
|
+
return mixed;
|
|
31987
|
+
};
|
|
31988
|
+
var getBufferedData = async (stream, streamPromise) => {
|
|
31989
|
+
if (!stream || streamPromise === void 0) {
|
|
31990
|
+
return;
|
|
31991
|
+
}
|
|
31992
|
+
await (0, import_promises.setTimeout)(0);
|
|
31993
|
+
stream.destroy();
|
|
31994
|
+
try {
|
|
31995
|
+
return await streamPromise;
|
|
31996
|
+
} catch (error) {
|
|
31997
|
+
return error.bufferedData;
|
|
31998
|
+
}
|
|
31999
|
+
};
|
|
32000
|
+
var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => {
|
|
32001
|
+
if (!stream || !buffer) {
|
|
32002
|
+
return;
|
|
32003
|
+
}
|
|
32004
|
+
if (encoding === "utf8" || encoding === "utf-8") {
|
|
32005
|
+
return getStreamAsString(stream, { maxBuffer });
|
|
32006
|
+
}
|
|
32007
|
+
if (encoding === null || encoding === "buffer") {
|
|
32008
|
+
return getStreamAsBuffer(stream, { maxBuffer });
|
|
32009
|
+
}
|
|
32010
|
+
return applyEncoding(stream, maxBuffer, encoding);
|
|
32011
|
+
};
|
|
32012
|
+
var applyEncoding = async (stream, maxBuffer, encoding) => {
|
|
32013
|
+
const buffer = await getStreamAsBuffer(stream, { maxBuffer });
|
|
32014
|
+
return buffer.toString(encoding);
|
|
32015
|
+
};
|
|
32016
|
+
var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
|
|
32017
|
+
const stdoutPromise = getStreamPromise(stdout, { encoding, buffer, maxBuffer });
|
|
32018
|
+
const stderrPromise = getStreamPromise(stderr, { encoding, buffer, maxBuffer });
|
|
32019
|
+
const allPromise = getStreamPromise(all, { encoding, buffer, maxBuffer: maxBuffer * 2 });
|
|
32020
|
+
try {
|
|
32021
|
+
return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);
|
|
32022
|
+
} catch (error) {
|
|
32023
|
+
return Promise.all([
|
|
32024
|
+
{ error, signal: error.signal, timedOut: error.timedOut },
|
|
32025
|
+
getBufferedData(stdout, stdoutPromise),
|
|
32026
|
+
getBufferedData(stderr, stderrPromise),
|
|
32027
|
+
getBufferedData(all, allPromise)
|
|
32028
|
+
]);
|
|
32029
|
+
}
|
|
32030
|
+
};
|
|
32031
|
+
|
|
32032
|
+
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/promise.js
|
|
32033
|
+
var nativePromisePrototype = (/* @__PURE__ */ (async () => {
|
|
32034
|
+
})()).constructor.prototype;
|
|
32035
|
+
var descriptors = ["then", "catch", "finally"].map((property) => [
|
|
32036
|
+
property,
|
|
32037
|
+
Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
|
|
32038
|
+
]);
|
|
32039
|
+
var mergePromise = (spawned, promise) => {
|
|
32040
|
+
for (const [property, descriptor] of descriptors) {
|
|
32041
|
+
const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);
|
|
32042
|
+
Reflect.defineProperty(spawned, property, { ...descriptor, value });
|
|
32043
|
+
}
|
|
32044
|
+
};
|
|
32045
|
+
var getSpawnedPromise = (spawned) => new Promise((resolve, reject) => {
|
|
32046
|
+
spawned.on("exit", (exitCode, signal) => {
|
|
32047
|
+
resolve({ exitCode, signal });
|
|
32048
|
+
});
|
|
32049
|
+
spawned.on("error", (error) => {
|
|
32050
|
+
reject(error);
|
|
32051
|
+
});
|
|
32052
|
+
if (spawned.stdin) {
|
|
32053
|
+
spawned.stdin.on("error", (error) => {
|
|
32054
|
+
reject(error);
|
|
32055
|
+
});
|
|
32056
|
+
}
|
|
32057
|
+
});
|
|
32058
|
+
|
|
32059
|
+
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/command.js
|
|
32060
|
+
var import_node_buffer = require("node:buffer");
|
|
32061
|
+
var import_node_child_process2 = require("node:child_process");
|
|
32062
|
+
var normalizeArgs = (file, args = []) => {
|
|
32063
|
+
if (!Array.isArray(args)) {
|
|
32064
|
+
return [file];
|
|
32065
|
+
}
|
|
32066
|
+
return [file, ...args];
|
|
32067
|
+
};
|
|
32068
|
+
var NO_ESCAPE_REGEXP = /^[\w.-]+$/;
|
|
32069
|
+
var escapeArg = (arg) => {
|
|
32070
|
+
if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) {
|
|
32071
|
+
return arg;
|
|
32072
|
+
}
|
|
32073
|
+
return `"${arg.replaceAll('"', '\\"')}"`;
|
|
32074
|
+
};
|
|
32075
|
+
var joinCommand = (file, args) => normalizeArgs(file, args).join(" ");
|
|
32076
|
+
var getEscapedCommand = (file, args) => normalizeArgs(file, args).map((arg) => escapeArg(arg)).join(" ");
|
|
32077
|
+
var SPACES_REGEXP = / +/g;
|
|
32078
|
+
var parseExpression = (expression) => {
|
|
32079
|
+
const typeOfExpression = typeof expression;
|
|
32080
|
+
if (typeOfExpression === "string") {
|
|
32081
|
+
return expression;
|
|
32082
|
+
}
|
|
32083
|
+
if (typeOfExpression === "number") {
|
|
32084
|
+
return String(expression);
|
|
32085
|
+
}
|
|
32086
|
+
if (typeOfExpression === "object" && expression !== null && !(expression instanceof import_node_child_process2.ChildProcess) && "stdout" in expression) {
|
|
32087
|
+
const typeOfStdout = typeof expression.stdout;
|
|
32088
|
+
if (typeOfStdout === "string") {
|
|
32089
|
+
return expression.stdout;
|
|
32090
|
+
}
|
|
32091
|
+
if (import_node_buffer.Buffer.isBuffer(expression.stdout)) {
|
|
32092
|
+
return expression.stdout.toString();
|
|
32093
|
+
}
|
|
32094
|
+
throw new TypeError(`Unexpected "${typeOfStdout}" stdout in template expression`);
|
|
32095
|
+
}
|
|
32096
|
+
throw new TypeError(`Unexpected "${typeOfExpression}" in template expression`);
|
|
32097
|
+
};
|
|
32098
|
+
var concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0 ? [...tokens, ...nextTokens] : [
|
|
32099
|
+
...tokens.slice(0, -1),
|
|
32100
|
+
`${tokens.at(-1)}${nextTokens[0]}`,
|
|
32101
|
+
...nextTokens.slice(1)
|
|
32102
|
+
];
|
|
32103
|
+
var parseTemplate = ({ templates, expressions, tokens, index, template }) => {
|
|
32104
|
+
const templateString = template ?? templates.raw[index];
|
|
32105
|
+
const templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);
|
|
32106
|
+
const newTokens = concatTokens(
|
|
32107
|
+
tokens,
|
|
32108
|
+
templateTokens,
|
|
32109
|
+
templateString.startsWith(" ")
|
|
32110
|
+
);
|
|
32111
|
+
if (index === expressions.length) {
|
|
32112
|
+
return newTokens;
|
|
32113
|
+
}
|
|
32114
|
+
const expression = expressions[index];
|
|
32115
|
+
const expressionTokens = Array.isArray(expression) ? expression.map((expression2) => parseExpression(expression2)) : [parseExpression(expression)];
|
|
32116
|
+
return concatTokens(
|
|
32117
|
+
newTokens,
|
|
32118
|
+
expressionTokens,
|
|
32119
|
+
templateString.endsWith(" ")
|
|
32120
|
+
);
|
|
32121
|
+
};
|
|
32122
|
+
var parseTemplates = (templates, expressions) => {
|
|
32123
|
+
let tokens = [];
|
|
32124
|
+
for (const [index, template] of templates.entries()) {
|
|
32125
|
+
tokens = parseTemplate({ templates, expressions, tokens, index, template });
|
|
32126
|
+
}
|
|
32127
|
+
return tokens;
|
|
32128
|
+
};
|
|
32129
|
+
|
|
32130
|
+
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/verbose.js
|
|
32131
|
+
var import_node_util = require("node:util");
|
|
32132
|
+
var import_node_process3 = __toESM(require("node:process"), 1);
|
|
32133
|
+
var verboseDefault = (0, import_node_util.debuglog)("execa").enabled;
|
|
32134
|
+
var padField = (field, padding) => String(field).padStart(padding, "0");
|
|
32135
|
+
var getTimestamp = () => {
|
|
32136
|
+
const date = /* @__PURE__ */ new Date();
|
|
32137
|
+
return `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;
|
|
32138
|
+
};
|
|
32139
|
+
var logCommand = (escapedCommand, { verbose }) => {
|
|
32140
|
+
if (!verbose) {
|
|
32141
|
+
return;
|
|
32142
|
+
}
|
|
32143
|
+
import_node_process3.default.stderr.write(`[${getTimestamp()}] ${escapedCommand}
|
|
32144
|
+
`);
|
|
32145
|
+
};
|
|
32146
|
+
|
|
32147
|
+
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
|
|
32148
|
+
var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
|
|
32149
|
+
var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
32150
|
+
const env = extendEnv ? { ...import_node_process4.default.env, ...envOption } : envOption;
|
|
32151
|
+
if (preferLocal) {
|
|
32152
|
+
return npmRunPathEnv({ env, cwd: localDir, execPath });
|
|
32153
|
+
}
|
|
32154
|
+
return env;
|
|
32155
|
+
};
|
|
32156
|
+
var handleArguments = (file, args, options = {}) => {
|
|
32157
|
+
const parsed = import_cross_spawn.default._parse(file, args, options);
|
|
32158
|
+
file = parsed.command;
|
|
32159
|
+
args = parsed.args;
|
|
32160
|
+
options = parsed.options;
|
|
32161
|
+
options = {
|
|
32162
|
+
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
32163
|
+
buffer: true,
|
|
32164
|
+
stripFinalNewline: true,
|
|
32165
|
+
extendEnv: true,
|
|
32166
|
+
preferLocal: false,
|
|
32167
|
+
localDir: options.cwd || import_node_process4.default.cwd(),
|
|
32168
|
+
execPath: import_node_process4.default.execPath,
|
|
32169
|
+
encoding: "utf8",
|
|
32170
|
+
reject: true,
|
|
32171
|
+
cleanup: true,
|
|
32172
|
+
all: false,
|
|
32173
|
+
windowsHide: true,
|
|
32174
|
+
verbose: verboseDefault,
|
|
32175
|
+
...options
|
|
32176
|
+
};
|
|
32177
|
+
options.env = getEnv(options);
|
|
32178
|
+
options.stdio = normalizeStdio(options);
|
|
32179
|
+
if (import_node_process4.default.platform === "win32" && import_node_path4.default.basename(file, ".exe") === "cmd") {
|
|
32180
|
+
args.unshift("/q");
|
|
32181
|
+
}
|
|
32182
|
+
return { file, args, options, parsed };
|
|
32183
|
+
};
|
|
32184
|
+
var handleOutput = (options, value, error) => {
|
|
32185
|
+
if (typeof value !== "string" && !import_node_buffer2.Buffer.isBuffer(value)) {
|
|
32186
|
+
return error === void 0 ? void 0 : "";
|
|
32187
|
+
}
|
|
32188
|
+
if (options.stripFinalNewline) {
|
|
32189
|
+
return stripFinalNewline(value);
|
|
32190
|
+
}
|
|
32191
|
+
return value;
|
|
32192
|
+
};
|
|
32193
|
+
function execa(file, args, options) {
|
|
32194
|
+
const parsed = handleArguments(file, args, options);
|
|
32195
|
+
const command = joinCommand(file, args);
|
|
32196
|
+
const escapedCommand = getEscapedCommand(file, args);
|
|
32197
|
+
logCommand(escapedCommand, parsed.options);
|
|
32198
|
+
validateTimeout(parsed.options);
|
|
32199
|
+
let spawned;
|
|
32200
|
+
try {
|
|
32201
|
+
spawned = import_node_child_process3.default.spawn(parsed.file, parsed.args, parsed.options);
|
|
32202
|
+
} catch (error) {
|
|
32203
|
+
const dummySpawned = new import_node_child_process3.default.ChildProcess();
|
|
32204
|
+
const errorPromise = Promise.reject(makeError({
|
|
32205
|
+
error,
|
|
32206
|
+
stdout: "",
|
|
32207
|
+
stderr: "",
|
|
32208
|
+
all: "",
|
|
32209
|
+
command,
|
|
32210
|
+
escapedCommand,
|
|
32211
|
+
parsed,
|
|
32212
|
+
timedOut: false,
|
|
32213
|
+
isCanceled: false,
|
|
32214
|
+
killed: false
|
|
32215
|
+
}));
|
|
32216
|
+
mergePromise(dummySpawned, errorPromise);
|
|
32217
|
+
return dummySpawned;
|
|
32218
|
+
}
|
|
32219
|
+
const spawnedPromise = getSpawnedPromise(spawned);
|
|
32220
|
+
const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
|
|
32221
|
+
const processDone = setExitHandler(spawned, parsed.options, timedPromise);
|
|
32222
|
+
const context = { isCanceled: false };
|
|
32223
|
+
spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
|
|
32224
|
+
spawned.cancel = spawnedCancel.bind(null, spawned, context);
|
|
32225
|
+
const handlePromise = async () => {
|
|
32226
|
+
const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
|
|
32227
|
+
const stdout = handleOutput(parsed.options, stdoutResult);
|
|
32228
|
+
const stderr = handleOutput(parsed.options, stderrResult);
|
|
32229
|
+
const all = handleOutput(parsed.options, allResult);
|
|
32230
|
+
if (error || exitCode !== 0 || signal !== null) {
|
|
32231
|
+
const returnedError = makeError({
|
|
32232
|
+
error,
|
|
32233
|
+
exitCode,
|
|
32234
|
+
signal,
|
|
32235
|
+
stdout,
|
|
32236
|
+
stderr,
|
|
32237
|
+
all,
|
|
32238
|
+
command,
|
|
32239
|
+
escapedCommand,
|
|
32240
|
+
parsed,
|
|
32241
|
+
timedOut,
|
|
32242
|
+
isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),
|
|
32243
|
+
killed: spawned.killed
|
|
32244
|
+
});
|
|
32245
|
+
if (!parsed.options.reject) {
|
|
32246
|
+
return returnedError;
|
|
32247
|
+
}
|
|
32248
|
+
throw returnedError;
|
|
32249
|
+
}
|
|
32250
|
+
return {
|
|
32251
|
+
command,
|
|
32252
|
+
escapedCommand,
|
|
32253
|
+
exitCode: 0,
|
|
32254
|
+
stdout,
|
|
32255
|
+
stderr,
|
|
32256
|
+
all,
|
|
32257
|
+
failed: false,
|
|
32258
|
+
timedOut: false,
|
|
32259
|
+
isCanceled: false,
|
|
32260
|
+
killed: false
|
|
32261
|
+
};
|
|
32262
|
+
};
|
|
32263
|
+
const handlePromiseOnce = onetime_default(handlePromise);
|
|
32264
|
+
handleInput(spawned, parsed.options);
|
|
32265
|
+
spawned.all = makeAllStream(spawned, parsed.options);
|
|
32266
|
+
addPipeMethods(spawned);
|
|
32267
|
+
mergePromise(spawned, handlePromiseOnce);
|
|
32268
|
+
return spawned;
|
|
32269
|
+
}
|
|
32270
|
+
function execaSync(file, args, options) {
|
|
32271
|
+
const parsed = handleArguments(file, args, options);
|
|
32272
|
+
const command = joinCommand(file, args);
|
|
32273
|
+
const escapedCommand = getEscapedCommand(file, args);
|
|
32274
|
+
logCommand(escapedCommand, parsed.options);
|
|
32275
|
+
const input = handleInputSync(parsed.options);
|
|
32276
|
+
let result;
|
|
32277
|
+
try {
|
|
32278
|
+
result = import_node_child_process3.default.spawnSync(parsed.file, parsed.args, { ...parsed.options, input });
|
|
32279
|
+
} catch (error) {
|
|
32280
|
+
throw makeError({
|
|
32281
|
+
error,
|
|
32282
|
+
stdout: "",
|
|
32283
|
+
stderr: "",
|
|
32284
|
+
all: "",
|
|
32285
|
+
command,
|
|
32286
|
+
escapedCommand,
|
|
32287
|
+
parsed,
|
|
32288
|
+
timedOut: false,
|
|
32289
|
+
isCanceled: false,
|
|
32290
|
+
killed: false
|
|
32291
|
+
});
|
|
32292
|
+
}
|
|
32293
|
+
const stdout = handleOutput(parsed.options, result.stdout, result.error);
|
|
32294
|
+
const stderr = handleOutput(parsed.options, result.stderr, result.error);
|
|
32295
|
+
if (result.error || result.status !== 0 || result.signal !== null) {
|
|
32296
|
+
const error = makeError({
|
|
32297
|
+
stdout,
|
|
32298
|
+
stderr,
|
|
32299
|
+
error: result.error,
|
|
32300
|
+
signal: result.signal,
|
|
32301
|
+
exitCode: result.status,
|
|
32302
|
+
command,
|
|
32303
|
+
escapedCommand,
|
|
32304
|
+
parsed,
|
|
32305
|
+
timedOut: result.error && result.error.code === "ETIMEDOUT",
|
|
32306
|
+
isCanceled: false,
|
|
32307
|
+
killed: result.signal !== null
|
|
32308
|
+
});
|
|
32309
|
+
if (!parsed.options.reject) {
|
|
32310
|
+
return error;
|
|
32311
|
+
}
|
|
32312
|
+
throw error;
|
|
32313
|
+
}
|
|
32314
|
+
return {
|
|
32315
|
+
command,
|
|
32316
|
+
escapedCommand,
|
|
32317
|
+
exitCode: 0,
|
|
32318
|
+
stdout,
|
|
32319
|
+
stderr,
|
|
32320
|
+
failed: false,
|
|
32321
|
+
timedOut: false,
|
|
32322
|
+
isCanceled: false,
|
|
32323
|
+
killed: false
|
|
32324
|
+
};
|
|
32325
|
+
}
|
|
32326
|
+
var normalizeScriptStdin = ({ input, inputFile, stdio }) => input === void 0 && inputFile === void 0 && stdio === void 0 ? { stdin: "inherit" } : {};
|
|
32327
|
+
var normalizeScriptOptions = (options = {}) => ({
|
|
32328
|
+
preferLocal: true,
|
|
32329
|
+
...normalizeScriptStdin(options),
|
|
32330
|
+
...options
|
|
32331
|
+
});
|
|
32332
|
+
function create$(options) {
|
|
32333
|
+
function $2(templatesOrOptions, ...expressions) {
|
|
32334
|
+
if (!Array.isArray(templatesOrOptions)) {
|
|
32335
|
+
return create$({ ...options, ...templatesOrOptions });
|
|
32336
|
+
}
|
|
32337
|
+
const [file, ...args] = parseTemplates(templatesOrOptions, expressions);
|
|
32338
|
+
return execa(file, args, normalizeScriptOptions(options));
|
|
32339
|
+
}
|
|
32340
|
+
$2.sync = (templates, ...expressions) => {
|
|
32341
|
+
if (!Array.isArray(templates)) {
|
|
32342
|
+
throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");
|
|
32343
|
+
}
|
|
32344
|
+
const [file, ...args] = parseTemplates(templates, expressions);
|
|
32345
|
+
return execaSync(file, args, normalizeScriptOptions(options));
|
|
32346
|
+
};
|
|
32347
|
+
return $2;
|
|
32348
|
+
}
|
|
32349
|
+
var $ = create$();
|
|
32350
|
+
|
|
32351
|
+
// packages/config-tools/src/env/get-env.ts
|
|
32352
|
+
var getConfigEnv = () => {
|
|
32353
|
+
const prefix = "STORM_";
|
|
32354
|
+
let config = {
|
|
32355
|
+
name: process.env[`${prefix}NAME`],
|
|
32356
|
+
namespace: process.env[`${prefix}NAMESPACE`],
|
|
32357
|
+
owner: process.env[`${prefix}OWNER`],
|
|
32358
|
+
worker: process.env[`${prefix}WORKER`],
|
|
32359
|
+
organization: process.env[`${prefix}ORGANIZATION`],
|
|
32360
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
32361
|
+
license: process.env[`${prefix}LICENSE`],
|
|
32362
|
+
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
32363
|
+
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
32364
|
+
locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
|
|
32365
|
+
configFile: process.env[`${prefix}CONFIG_FILE`],
|
|
32366
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
|
|
32367
|
+
packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
|
|
32368
|
+
buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
|
|
32369
|
+
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
32370
|
+
runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
|
|
32371
|
+
env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
32372
|
+
ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
|
|
32373
|
+
process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
|
|
32374
|
+
) : void 0,
|
|
32375
|
+
colors: {
|
|
32376
|
+
primary: process.env[`${prefix}COLOR_PRIMARY`],
|
|
32377
|
+
background: process.env[`${prefix}COLOR_BACKGROUND`],
|
|
32378
|
+
success: process.env[`${prefix}COLOR_SUCCESS`],
|
|
32379
|
+
info: process.env[`${prefix}COLOR_INFO`],
|
|
32380
|
+
warning: process.env[`${prefix}COLOR_WARNING`],
|
|
32381
|
+
error: process.env[`${prefix}COLOR_ERROR`],
|
|
32382
|
+
fatal: process.env[`${prefix}COLOR_FATAL`]
|
|
32383
|
+
},
|
|
32384
|
+
repository: process.env[`${prefix}REPOSITORY`],
|
|
32385
|
+
branch: process.env[`${prefix}BRANCH`],
|
|
32386
|
+
preMajor: process.env[`${prefix}PRE_MAJOR`] !== void 0 ? Boolean(process.env[`${prefix}PRE_MAJOR`]) : void 0,
|
|
32387
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
32388
|
+
};
|
|
32389
|
+
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
32390
|
+
if (serializedConfig) {
|
|
32391
|
+
const parsed = JSON.parse(serializedConfig);
|
|
32392
|
+
config = {
|
|
32393
|
+
...config,
|
|
32394
|
+
...parsed,
|
|
32395
|
+
colors: { ...config.colors, ...parsed.colors },
|
|
32396
|
+
extensions: { ...config.extensions, ...parsed.extensions }
|
|
32397
|
+
};
|
|
32398
|
+
}
|
|
32399
|
+
return config;
|
|
32400
|
+
};
|
|
32401
|
+
|
|
32402
|
+
// packages/config-tools/src/env/set-env.ts
|
|
32403
|
+
var setExtensionEnv = (extensionName, extension) => {
|
|
32404
|
+
for (const key of Object.keys(extension ?? {})) {
|
|
32405
|
+
if (extension[key]) {
|
|
32406
|
+
const result = key?.replace(
|
|
32407
|
+
/([A-Z])+/g,
|
|
32408
|
+
(input) => input ? input[0].toUpperCase() + input.slice(1) : ""
|
|
32409
|
+
).split(/(?=[A-Z])|[\.\-\s_]/).map((x) => x.toLowerCase()) ?? [];
|
|
32410
|
+
let extensionKey;
|
|
32411
|
+
if (result.length === 0) {
|
|
32412
|
+
return;
|
|
32413
|
+
}
|
|
32414
|
+
if (result.length === 1) {
|
|
32415
|
+
extensionKey = result[0].toUpperCase();
|
|
32416
|
+
} else {
|
|
32417
|
+
extensionKey = result.reduce((ret, part) => {
|
|
32418
|
+
return `${ret}_${part.toLowerCase()}`;
|
|
32419
|
+
});
|
|
32420
|
+
}
|
|
32421
|
+
process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
|
|
32422
|
+
}
|
|
32423
|
+
}
|
|
32424
|
+
};
|
|
32425
|
+
var setConfigEnv = (config) => {
|
|
32426
|
+
const prefix = "STORM_";
|
|
32427
|
+
if (config.name) {
|
|
32428
|
+
process.env[`${prefix}NAME`] = config.name;
|
|
32429
|
+
}
|
|
32430
|
+
if (config.namespace) {
|
|
32431
|
+
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
32432
|
+
}
|
|
32433
|
+
if (config.owner) {
|
|
32434
|
+
process.env[`${prefix}OWNER`] = config.owner;
|
|
32435
|
+
}
|
|
32436
|
+
if (config.worker) {
|
|
32437
|
+
process.env[`${prefix}WORKER`] = config.worker;
|
|
32438
|
+
}
|
|
32439
|
+
if (config.organization) {
|
|
32440
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
32441
|
+
}
|
|
32442
|
+
if (config.packageManager) {
|
|
32443
|
+
process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
|
|
32444
|
+
}
|
|
32445
|
+
if (config.license) {
|
|
32446
|
+
process.env[`${prefix}LICENSE`] = config.license;
|
|
32447
|
+
}
|
|
32448
|
+
if (config.homepage) {
|
|
32449
|
+
process.env[`${prefix}HOMEPAGE`] = config.homepage;
|
|
32450
|
+
}
|
|
32451
|
+
if (config.timezone) {
|
|
32452
|
+
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
32453
|
+
process.env.TZ = config.timezone;
|
|
32454
|
+
process.env.DEFAULT_TIMEZONE = config.timezone;
|
|
32455
|
+
}
|
|
32456
|
+
if (config.locale) {
|
|
32457
|
+
process.env[`${prefix}LOCALE`] = config.locale;
|
|
32458
|
+
process.env.LOCALE = config.locale;
|
|
32459
|
+
process.env.DEFAULT_LOCALE = config.locale;
|
|
32460
|
+
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
30300
32461
|
}
|
|
30301
32462
|
if (config.configFile) {
|
|
30302
32463
|
process.env[`${prefix}CONFIG_FILE`] = config.configFile;
|
|
@@ -30372,57 +32533,6 @@ var setConfigEnv = (config) => {
|
|
|
30372
32533
|
}
|
|
30373
32534
|
};
|
|
30374
32535
|
|
|
30375
|
-
// packages/config-tools/src/env/get-env.ts
|
|
30376
|
-
var getConfigEnv = () => {
|
|
30377
|
-
const prefix = "STORM_";
|
|
30378
|
-
let config = {
|
|
30379
|
-
name: process.env[`${prefix}NAME`],
|
|
30380
|
-
namespace: process.env[`${prefix}NAMESPACE`],
|
|
30381
|
-
owner: process.env[`${prefix}OWNER`],
|
|
30382
|
-
worker: process.env[`${prefix}WORKER`],
|
|
30383
|
-
organization: process.env[`${prefix}ORGANIZATION`],
|
|
30384
|
-
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
30385
|
-
license: process.env[`${prefix}LICENSE`],
|
|
30386
|
-
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
30387
|
-
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
30388
|
-
locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
|
|
30389
|
-
configFile: process.env[`${prefix}CONFIG_FILE`],
|
|
30390
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
|
|
30391
|
-
packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
|
|
30392
|
-
buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
|
|
30393
|
-
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
30394
|
-
runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
|
|
30395
|
-
env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
30396
|
-
ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
|
|
30397
|
-
process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
|
|
30398
|
-
) : void 0,
|
|
30399
|
-
colors: {
|
|
30400
|
-
primary: process.env[`${prefix}COLOR_PRIMARY`],
|
|
30401
|
-
background: process.env[`${prefix}COLOR_BACKGROUND`],
|
|
30402
|
-
success: process.env[`${prefix}COLOR_SUCCESS`],
|
|
30403
|
-
info: process.env[`${prefix}COLOR_INFO`],
|
|
30404
|
-
warning: process.env[`${prefix}COLOR_WARNING`],
|
|
30405
|
-
error: process.env[`${prefix}COLOR_ERROR`],
|
|
30406
|
-
fatal: process.env[`${prefix}COLOR_FATAL`]
|
|
30407
|
-
},
|
|
30408
|
-
repository: process.env[`${prefix}REPOSITORY`],
|
|
30409
|
-
branch: process.env[`${prefix}BRANCH`],
|
|
30410
|
-
preMajor: process.env[`${prefix}PRE_MAJOR`] !== void 0 ? Boolean(process.env[`${prefix}PRE_MAJOR`]) : void 0,
|
|
30411
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
30412
|
-
};
|
|
30413
|
-
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
30414
|
-
if (serializedConfig) {
|
|
30415
|
-
const parsed = JSON.parse(serializedConfig);
|
|
30416
|
-
config = {
|
|
30417
|
-
...config,
|
|
30418
|
-
...parsed,
|
|
30419
|
-
colors: { ...config.colors, ...parsed.colors },
|
|
30420
|
-
extensions: { ...config.extensions, ...parsed.extensions }
|
|
30421
|
-
};
|
|
30422
|
-
}
|
|
30423
|
-
return config;
|
|
30424
|
-
};
|
|
30425
|
-
|
|
30426
32536
|
// packages/config-tools/src/create-storm-config.ts
|
|
30427
32537
|
var loadStormConfig = async (workspaceRoot) => {
|
|
30428
32538
|
let config = {};
|
|
@@ -31476,14 +33586,11 @@ var applyWorkspaceGeneratorTokens = (option, tokenizerOptions) => {
|
|
|
31476
33586
|
if (tokenizerOptions.config) {
|
|
31477
33587
|
const configKeys = Object.keys(tokenizerOptions.config);
|
|
31478
33588
|
if (configKeys.some((configKey) => result.includes(`{${configKey}}`))) {
|
|
31479
|
-
|
|
33589
|
+
for (const configKey of configKeys) {
|
|
31480
33590
|
if (result.includes(`{${configKey}}`)) {
|
|
31481
|
-
result = result.replaceAll(
|
|
31482
|
-
`{${configKey}}`,
|
|
31483
|
-
tokenizerOptions.config[configKey]
|
|
31484
|
-
);
|
|
33591
|
+
result = result.replaceAll(`{${configKey}}`, tokenizerOptions.config[configKey]);
|
|
31485
33592
|
}
|
|
31486
|
-
}
|
|
33593
|
+
}
|
|
31487
33594
|
}
|
|
31488
33595
|
}
|
|
31489
33596
|
if (result.includes("{workspaceRoot}")) {
|
|
@@ -31495,29 +33602,22 @@ var applyWorkspaceGeneratorTokens = (option, tokenizerOptions) => {
|
|
|
31495
33602
|
return result;
|
|
31496
33603
|
};
|
|
31497
33604
|
var applyWorkspaceTokens = (options, config, tokenizerFn) => {
|
|
31498
|
-
|
|
33605
|
+
const result = options;
|
|
31499
33606
|
if (!result) {
|
|
31500
33607
|
return {};
|
|
31501
33608
|
}
|
|
31502
|
-
return Object.keys(options).reduce(
|
|
31503
|
-
(
|
|
31504
|
-
|
|
31505
|
-
|
|
31506
|
-
|
|
31507
|
-
|
|
31508
|
-
|
|
31509
|
-
|
|
31510
|
-
|
|
31511
|
-
|
|
31512
|
-
|
|
31513
|
-
|
|
31514
|
-
tokenizerFn
|
|
31515
|
-
);
|
|
31516
|
-
}
|
|
31517
|
-
return ret;
|
|
31518
|
-
},
|
|
31519
|
-
{}
|
|
31520
|
-
);
|
|
33609
|
+
return Object.keys(options).reduce((ret, option) => {
|
|
33610
|
+
if (typeof options[option] === "string") {
|
|
33611
|
+
ret[option] = tokenizerFn(options[option], config);
|
|
33612
|
+
} else if (Array.isArray(options[option])) {
|
|
33613
|
+
ret[option] = options[option].map(
|
|
33614
|
+
(item) => typeof item === "string" ? tokenizerFn(item, config) : item
|
|
33615
|
+
);
|
|
33616
|
+
} else if (typeof options[option] === "object") {
|
|
33617
|
+
ret[option] = applyWorkspaceTokens(options[option], config, tokenizerFn);
|
|
33618
|
+
}
|
|
33619
|
+
return ret;
|
|
33620
|
+
}, {});
|
|
31521
33621
|
};
|
|
31522
33622
|
|
|
31523
33623
|
// packages/workspace-tools/src/base/base-generator.ts
|
|
@@ -31604,9 +33704,7 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
|
|
|
31604
33704
|
|
|
31605
33705
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
31606
33706
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
31607
|
-
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
|
|
31608
|
-
getWorkspaceRoot()
|
|
31609
|
-
);
|
|
33707
|
+
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
|
|
31610
33708
|
|
|
31611
33709
|
// packages/workspace-tools/src/generators/config-schema/generator.ts
|
|
31612
33710
|
async function configSchemaGeneratorFn(tree, options) {
|