@storm-software/workspace-tools 1.21.7 → 1.21.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/index.js +969 -450
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +690 -171
- package/src/executors/tsup/executor.js +937 -432
- package/src/executors/tsup-neutral/executor.js +937 -432
- package/src/executors/tsup-node/executor.js +937 -432
- package/src/generators/config-schema/generator.js +676 -173
- package/src/generators/node-library/generator.js +847 -344
- package/src/generators/preset/generator.js +676 -173
|
@@ -450,7 +450,7 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
450
450
|
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
451
451
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
452
452
|
}
|
|
453
|
-
function __addDisposableResource(
|
|
453
|
+
function __addDisposableResource(env2, value, async) {
|
|
454
454
|
if (value !== null && value !== void 0) {
|
|
455
455
|
if (typeof value !== "object" && typeof value !== "function")
|
|
456
456
|
throw new TypeError("Object expected.");
|
|
@@ -467,20 +467,20 @@ function __addDisposableResource(env, value, async) {
|
|
|
467
467
|
}
|
|
468
468
|
if (typeof dispose !== "function")
|
|
469
469
|
throw new TypeError("Object not disposable.");
|
|
470
|
-
|
|
470
|
+
env2.stack.push({ value, dispose, async });
|
|
471
471
|
} else if (async) {
|
|
472
|
-
|
|
472
|
+
env2.stack.push({ async: true });
|
|
473
473
|
}
|
|
474
474
|
return value;
|
|
475
475
|
}
|
|
476
|
-
function __disposeResources(
|
|
476
|
+
function __disposeResources(env2) {
|
|
477
477
|
function fail(e) {
|
|
478
|
-
|
|
479
|
-
|
|
478
|
+
env2.error = env2.hasError ? new _SuppressedError(e, env2.error, "An error was suppressed during disposal.") : e;
|
|
479
|
+
env2.hasError = true;
|
|
480
480
|
}
|
|
481
481
|
function next() {
|
|
482
|
-
while (
|
|
483
|
-
var rec =
|
|
482
|
+
while (env2.stack.length) {
|
|
483
|
+
var rec = env2.stack.pop();
|
|
484
484
|
try {
|
|
485
485
|
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
486
486
|
if (rec.async)
|
|
@@ -492,8 +492,8 @@ function __disposeResources(env) {
|
|
|
492
492
|
fail(e);
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
if (
|
|
496
|
-
throw
|
|
495
|
+
if (env2.hasError)
|
|
496
|
+
throw env2.error;
|
|
497
497
|
}
|
|
498
498
|
return next();
|
|
499
499
|
}
|
|
@@ -7124,16 +7124,16 @@ var require_rimraf = __commonJS({
|
|
|
7124
7124
|
var require_tmp = __commonJS({
|
|
7125
7125
|
"node_modules/.pnpm/tmp@0.2.1/node_modules/tmp/lib/tmp.js"(exports, module2) {
|
|
7126
7126
|
var fs = require("fs");
|
|
7127
|
-
var
|
|
7127
|
+
var os2 = require("os");
|
|
7128
7128
|
var path2 = require("path");
|
|
7129
7129
|
var crypto = require("crypto");
|
|
7130
|
-
var _c = { fs: fs.constants, os:
|
|
7130
|
+
var _c = { fs: fs.constants, os: os2.constants };
|
|
7131
7131
|
var rimraf = require_rimraf();
|
|
7132
7132
|
var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
7133
7133
|
var TEMPLATE_PATTERN = /XXXXXX/;
|
|
7134
7134
|
var DEFAULT_TRIES = 3;
|
|
7135
7135
|
var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR);
|
|
7136
|
-
var IS_WIN32 =
|
|
7136
|
+
var IS_WIN32 = os2.platform() === "win32";
|
|
7137
7137
|
var EBADF = _c.EBADF || _c.os.errno.EBADF;
|
|
7138
7138
|
var ENOENT2 = _c.ENOENT || _c.os.errno.ENOENT;
|
|
7139
7139
|
var DIR_MODE = 448;
|
|
@@ -7430,7 +7430,7 @@ var require_tmp = __commonJS({
|
|
|
7430
7430
|
_gracefulCleanup = true;
|
|
7431
7431
|
}
|
|
7432
7432
|
function _getTmpDir(options) {
|
|
7433
|
-
return path2.resolve(_sanitizeName(options && options.tmpdir ||
|
|
7433
|
+
return path2.resolve(_sanitizeName(options && options.tmpdir || os2.tmpdir()));
|
|
7434
7434
|
}
|
|
7435
7435
|
process.addListener(EXIT, _garbageCollector);
|
|
7436
7436
|
Object.defineProperty(module2.exports, "tmpdir", {
|
|
@@ -11803,7 +11803,7 @@ var require_innerFrom = __commonJS({
|
|
|
11803
11803
|
exports.fromIterable = fromIterable;
|
|
11804
11804
|
function fromAsyncIterable(asyncIterable) {
|
|
11805
11805
|
return new Observable_1.Observable(function(subscriber) {
|
|
11806
|
-
|
|
11806
|
+
process3(asyncIterable, subscriber).catch(function(err) {
|
|
11807
11807
|
return subscriber.error(err);
|
|
11808
11808
|
});
|
|
11809
11809
|
});
|
|
@@ -11813,7 +11813,7 @@ var require_innerFrom = __commonJS({
|
|
|
11813
11813
|
return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
|
|
11814
11814
|
}
|
|
11815
11815
|
exports.fromReadableStreamLike = fromReadableStreamLike;
|
|
11816
|
-
function
|
|
11816
|
+
function process3(asyncIterable, subscriber) {
|
|
11817
11817
|
var asyncIterable_1, asyncIterable_1_1;
|
|
11818
11818
|
var e_2, _a;
|
|
11819
11819
|
return __awaiter2(this, void 0, void 0, function() {
|
|
@@ -19679,15 +19679,15 @@ var require_color_convert = __commonJS({
|
|
|
19679
19679
|
var require_ansi_styles = __commonJS({
|
|
19680
19680
|
"node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js"(exports, module2) {
|
|
19681
19681
|
"use strict";
|
|
19682
|
-
var
|
|
19682
|
+
var wrapAnsi162 = (fn, offset) => (...args) => {
|
|
19683
19683
|
const code = fn(...args);
|
|
19684
19684
|
return `\x1B[${code + offset}m`;
|
|
19685
19685
|
};
|
|
19686
|
-
var
|
|
19686
|
+
var wrapAnsi2562 = (fn, offset) => (...args) => {
|
|
19687
19687
|
const code = fn(...args);
|
|
19688
19688
|
return `\x1B[${38 + offset};5;${code}m`;
|
|
19689
19689
|
};
|
|
19690
|
-
var
|
|
19690
|
+
var wrapAnsi16m2 = (fn, offset) => (...args) => {
|
|
19691
19691
|
const rgb = fn(...args);
|
|
19692
19692
|
return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
19693
19693
|
};
|
|
@@ -19714,20 +19714,20 @@ var require_ansi_styles = __commonJS({
|
|
|
19714
19714
|
colorConvert = require_color_convert();
|
|
19715
19715
|
}
|
|
19716
19716
|
const offset = isBackground ? 10 : 0;
|
|
19717
|
-
const
|
|
19717
|
+
const styles3 = {};
|
|
19718
19718
|
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
19719
19719
|
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
19720
19720
|
if (sourceSpace === targetSpace) {
|
|
19721
|
-
|
|
19721
|
+
styles3[name] = wrap(identity, offset);
|
|
19722
19722
|
} else if (typeof suite === "object") {
|
|
19723
|
-
|
|
19723
|
+
styles3[name] = wrap(suite[targetSpace], offset);
|
|
19724
19724
|
}
|
|
19725
19725
|
}
|
|
19726
|
-
return
|
|
19726
|
+
return styles3;
|
|
19727
19727
|
};
|
|
19728
|
-
function
|
|
19728
|
+
function assembleStyles2() {
|
|
19729
19729
|
const codes = /* @__PURE__ */ new Map();
|
|
19730
|
-
const
|
|
19730
|
+
const styles3 = {
|
|
19731
19731
|
modifier: {
|
|
19732
19732
|
reset: [0, 0],
|
|
19733
19733
|
// 21 isn't widely supported and 22 does the same thing
|
|
@@ -19778,41 +19778,41 @@ var require_ansi_styles = __commonJS({
|
|
|
19778
19778
|
bgWhiteBright: [107, 49]
|
|
19779
19779
|
}
|
|
19780
19780
|
};
|
|
19781
|
-
|
|
19782
|
-
|
|
19783
|
-
|
|
19784
|
-
|
|
19785
|
-
for (const [groupName, group] of Object.entries(
|
|
19781
|
+
styles3.color.gray = styles3.color.blackBright;
|
|
19782
|
+
styles3.bgColor.bgGray = styles3.bgColor.bgBlackBright;
|
|
19783
|
+
styles3.color.grey = styles3.color.blackBright;
|
|
19784
|
+
styles3.bgColor.bgGrey = styles3.bgColor.bgBlackBright;
|
|
19785
|
+
for (const [groupName, group] of Object.entries(styles3)) {
|
|
19786
19786
|
for (const [styleName, style] of Object.entries(group)) {
|
|
19787
|
-
|
|
19787
|
+
styles3[styleName] = {
|
|
19788
19788
|
open: `\x1B[${style[0]}m`,
|
|
19789
19789
|
close: `\x1B[${style[1]}m`
|
|
19790
19790
|
};
|
|
19791
|
-
group[styleName] =
|
|
19791
|
+
group[styleName] = styles3[styleName];
|
|
19792
19792
|
codes.set(style[0], style[1]);
|
|
19793
19793
|
}
|
|
19794
|
-
Object.defineProperty(
|
|
19794
|
+
Object.defineProperty(styles3, groupName, {
|
|
19795
19795
|
value: group,
|
|
19796
19796
|
enumerable: false
|
|
19797
19797
|
});
|
|
19798
19798
|
}
|
|
19799
|
-
Object.defineProperty(
|
|
19799
|
+
Object.defineProperty(styles3, "codes", {
|
|
19800
19800
|
value: codes,
|
|
19801
19801
|
enumerable: false
|
|
19802
19802
|
});
|
|
19803
|
-
|
|
19804
|
-
|
|
19805
|
-
setLazyProperty(
|
|
19806
|
-
setLazyProperty(
|
|
19807
|
-
setLazyProperty(
|
|
19808
|
-
setLazyProperty(
|
|
19809
|
-
setLazyProperty(
|
|
19810
|
-
setLazyProperty(
|
|
19811
|
-
return
|
|
19803
|
+
styles3.color.close = "\x1B[39m";
|
|
19804
|
+
styles3.bgColor.close = "\x1B[49m";
|
|
19805
|
+
setLazyProperty(styles3.color, "ansi", () => makeDynamicStyles(wrapAnsi162, "ansi16", ansi2ansi, false));
|
|
19806
|
+
setLazyProperty(styles3.color, "ansi256", () => makeDynamicStyles(wrapAnsi2562, "ansi256", ansi2ansi, false));
|
|
19807
|
+
setLazyProperty(styles3.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m2, "rgb", rgb2rgb, false));
|
|
19808
|
+
setLazyProperty(styles3.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi162, "ansi16", ansi2ansi, true));
|
|
19809
|
+
setLazyProperty(styles3.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi2562, "ansi256", ansi2ansi, true));
|
|
19810
|
+
setLazyProperty(styles3.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m2, "rgb", rgb2rgb, true));
|
|
19811
|
+
return styles3;
|
|
19812
19812
|
}
|
|
19813
19813
|
Object.defineProperty(module2, "exports", {
|
|
19814
19814
|
enumerable: true,
|
|
19815
|
-
get:
|
|
19815
|
+
get: assembleStyles2
|
|
19816
19816
|
});
|
|
19817
19817
|
}
|
|
19818
19818
|
});
|
|
@@ -19834,26 +19834,26 @@ var require_has_flag = __commonJS({
|
|
|
19834
19834
|
var require_supports_color = __commonJS({
|
|
19835
19835
|
"node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
19836
19836
|
"use strict";
|
|
19837
|
-
var
|
|
19838
|
-
var
|
|
19839
|
-
var
|
|
19840
|
-
var { env } = process;
|
|
19837
|
+
var os2 = require("os");
|
|
19838
|
+
var tty2 = require("tty");
|
|
19839
|
+
var hasFlag2 = require_has_flag();
|
|
19840
|
+
var { env: env2 } = process;
|
|
19841
19841
|
var forceColor;
|
|
19842
|
-
if (
|
|
19842
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
19843
19843
|
forceColor = 0;
|
|
19844
|
-
} else if (
|
|
19844
|
+
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
19845
19845
|
forceColor = 1;
|
|
19846
19846
|
}
|
|
19847
|
-
if ("FORCE_COLOR" in
|
|
19848
|
-
if (
|
|
19847
|
+
if ("FORCE_COLOR" in env2) {
|
|
19848
|
+
if (env2.FORCE_COLOR === "true") {
|
|
19849
19849
|
forceColor = 1;
|
|
19850
|
-
} else if (
|
|
19850
|
+
} else if (env2.FORCE_COLOR === "false") {
|
|
19851
19851
|
forceColor = 0;
|
|
19852
19852
|
} else {
|
|
19853
|
-
forceColor =
|
|
19853
|
+
forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
|
|
19854
19854
|
}
|
|
19855
19855
|
}
|
|
19856
|
-
function
|
|
19856
|
+
function translateLevel2(level) {
|
|
19857
19857
|
if (level === 0) {
|
|
19858
19858
|
return false;
|
|
19859
19859
|
}
|
|
@@ -19864,70 +19864,70 @@ var require_supports_color = __commonJS({
|
|
|
19864
19864
|
has16m: level >= 3
|
|
19865
19865
|
};
|
|
19866
19866
|
}
|
|
19867
|
-
function
|
|
19867
|
+
function supportsColor2(haveStream, streamIsTTY) {
|
|
19868
19868
|
if (forceColor === 0) {
|
|
19869
19869
|
return 0;
|
|
19870
19870
|
}
|
|
19871
|
-
if (
|
|
19871
|
+
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
19872
19872
|
return 3;
|
|
19873
19873
|
}
|
|
19874
|
-
if (
|
|
19874
|
+
if (hasFlag2("color=256")) {
|
|
19875
19875
|
return 2;
|
|
19876
19876
|
}
|
|
19877
19877
|
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
19878
19878
|
return 0;
|
|
19879
19879
|
}
|
|
19880
19880
|
const min = forceColor || 0;
|
|
19881
|
-
if (
|
|
19881
|
+
if (env2.TERM === "dumb") {
|
|
19882
19882
|
return min;
|
|
19883
19883
|
}
|
|
19884
19884
|
if (process.platform === "win32") {
|
|
19885
|
-
const osRelease =
|
|
19885
|
+
const osRelease = os2.release().split(".");
|
|
19886
19886
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
19887
19887
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
19888
19888
|
}
|
|
19889
19889
|
return 1;
|
|
19890
19890
|
}
|
|
19891
|
-
if ("CI" in
|
|
19892
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in
|
|
19891
|
+
if ("CI" in env2) {
|
|
19892
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
19893
19893
|
return 1;
|
|
19894
19894
|
}
|
|
19895
19895
|
return min;
|
|
19896
19896
|
}
|
|
19897
|
-
if ("TEAMCITY_VERSION" in
|
|
19898
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
19897
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
19898
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
19899
19899
|
}
|
|
19900
|
-
if (
|
|
19900
|
+
if (env2.COLORTERM === "truecolor") {
|
|
19901
19901
|
return 3;
|
|
19902
19902
|
}
|
|
19903
|
-
if ("TERM_PROGRAM" in
|
|
19904
|
-
const version = parseInt((
|
|
19905
|
-
switch (
|
|
19903
|
+
if ("TERM_PROGRAM" in env2) {
|
|
19904
|
+
const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
19905
|
+
switch (env2.TERM_PROGRAM) {
|
|
19906
19906
|
case "iTerm.app":
|
|
19907
19907
|
return version >= 3 ? 3 : 2;
|
|
19908
19908
|
case "Apple_Terminal":
|
|
19909
19909
|
return 2;
|
|
19910
19910
|
}
|
|
19911
19911
|
}
|
|
19912
|
-
if (/-256(color)?$/i.test(
|
|
19912
|
+
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
19913
19913
|
return 2;
|
|
19914
19914
|
}
|
|
19915
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
|
|
19915
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
19916
19916
|
return 1;
|
|
19917
19917
|
}
|
|
19918
|
-
if ("COLORTERM" in
|
|
19918
|
+
if ("COLORTERM" in env2) {
|
|
19919
19919
|
return 1;
|
|
19920
19920
|
}
|
|
19921
19921
|
return min;
|
|
19922
19922
|
}
|
|
19923
19923
|
function getSupportLevel(stream2) {
|
|
19924
|
-
const level =
|
|
19925
|
-
return
|
|
19924
|
+
const level = supportsColor2(stream2, stream2 && stream2.isTTY);
|
|
19925
|
+
return translateLevel2(level);
|
|
19926
19926
|
}
|
|
19927
19927
|
module2.exports = {
|
|
19928
19928
|
supportsColor: getSupportLevel,
|
|
19929
|
-
stdout:
|
|
19930
|
-
stderr:
|
|
19929
|
+
stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
|
|
19930
|
+
stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
|
|
19931
19931
|
};
|
|
19932
19932
|
}
|
|
19933
19933
|
});
|
|
@@ -19936,7 +19936,7 @@ var require_supports_color = __commonJS({
|
|
|
19936
19936
|
var require_util = __commonJS({
|
|
19937
19937
|
"node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js"(exports, module2) {
|
|
19938
19938
|
"use strict";
|
|
19939
|
-
var
|
|
19939
|
+
var stringReplaceAll2 = (string, substring, replacer) => {
|
|
19940
19940
|
let index = string.indexOf(substring);
|
|
19941
19941
|
if (index === -1) {
|
|
19942
19942
|
return string;
|
|
@@ -19952,7 +19952,7 @@ var require_util = __commonJS({
|
|
|
19952
19952
|
returnValue += string.substr(endIndex);
|
|
19953
19953
|
return returnValue;
|
|
19954
19954
|
};
|
|
19955
|
-
var
|
|
19955
|
+
var stringEncaseCRLFWithFirstIndex2 = (string, prefix, postfix, index) => {
|
|
19956
19956
|
let endIndex = 0;
|
|
19957
19957
|
let returnValue = "";
|
|
19958
19958
|
do {
|
|
@@ -19965,8 +19965,8 @@ var require_util = __commonJS({
|
|
|
19965
19965
|
return returnValue;
|
|
19966
19966
|
};
|
|
19967
19967
|
module2.exports = {
|
|
19968
|
-
stringReplaceAll,
|
|
19969
|
-
stringEncaseCRLFWithFirstIndex
|
|
19968
|
+
stringReplaceAll: stringReplaceAll2,
|
|
19969
|
+
stringEncaseCRLFWithFirstIndex: stringEncaseCRLFWithFirstIndex2
|
|
19970
19970
|
};
|
|
19971
19971
|
}
|
|
19972
19972
|
});
|
|
@@ -20033,27 +20033,27 @@ var require_templates = __commonJS({
|
|
|
20033
20033
|
}
|
|
20034
20034
|
return results;
|
|
20035
20035
|
}
|
|
20036
|
-
function buildStyle(
|
|
20036
|
+
function buildStyle(chalk2, styles3) {
|
|
20037
20037
|
const enabled = {};
|
|
20038
|
-
for (const layer of
|
|
20038
|
+
for (const layer of styles3) {
|
|
20039
20039
|
for (const style of layer.styles) {
|
|
20040
20040
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
20041
20041
|
}
|
|
20042
20042
|
}
|
|
20043
|
-
let current =
|
|
20044
|
-
for (const [styleName,
|
|
20045
|
-
if (!Array.isArray(
|
|
20043
|
+
let current = chalk2;
|
|
20044
|
+
for (const [styleName, styles4] of Object.entries(enabled)) {
|
|
20045
|
+
if (!Array.isArray(styles4)) {
|
|
20046
20046
|
continue;
|
|
20047
20047
|
}
|
|
20048
20048
|
if (!(styleName in current)) {
|
|
20049
20049
|
throw new Error(`Unknown Chalk style: ${styleName}`);
|
|
20050
20050
|
}
|
|
20051
|
-
current =
|
|
20051
|
+
current = styles4.length > 0 ? current[styleName](...styles4) : current[styleName];
|
|
20052
20052
|
}
|
|
20053
20053
|
return current;
|
|
20054
20054
|
}
|
|
20055
|
-
module2.exports = (
|
|
20056
|
-
const
|
|
20055
|
+
module2.exports = (chalk2, temporary) => {
|
|
20056
|
+
const styles3 = [];
|
|
20057
20057
|
const chunks = [];
|
|
20058
20058
|
let chunk = [];
|
|
20059
20059
|
temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
|
|
@@ -20062,22 +20062,22 @@ var require_templates = __commonJS({
|
|
|
20062
20062
|
} else if (style) {
|
|
20063
20063
|
const string = chunk.join("");
|
|
20064
20064
|
chunk = [];
|
|
20065
|
-
chunks.push(
|
|
20066
|
-
|
|
20065
|
+
chunks.push(styles3.length === 0 ? string : buildStyle(chalk2, styles3)(string));
|
|
20066
|
+
styles3.push({ inverse, styles: parseStyle(style) });
|
|
20067
20067
|
} else if (close) {
|
|
20068
|
-
if (
|
|
20068
|
+
if (styles3.length === 0) {
|
|
20069
20069
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
20070
20070
|
}
|
|
20071
|
-
chunks.push(buildStyle(
|
|
20071
|
+
chunks.push(buildStyle(chalk2, styles3)(chunk.join("")));
|
|
20072
20072
|
chunk = [];
|
|
20073
|
-
|
|
20073
|
+
styles3.pop();
|
|
20074
20074
|
} else {
|
|
20075
20075
|
chunk.push(character);
|
|
20076
20076
|
}
|
|
20077
20077
|
});
|
|
20078
20078
|
chunks.push(chunk.join(""));
|
|
20079
|
-
if (
|
|
20080
|
-
const errMessage = `Chalk template literal is missing ${
|
|
20079
|
+
if (styles3.length > 0) {
|
|
20080
|
+
const errMessage = `Chalk template literal is missing ${styles3.length} closing bracket${styles3.length === 1 ? "" : "s"} (\`}\`)`;
|
|
20081
20081
|
throw new Error(errMessage);
|
|
20082
20082
|
}
|
|
20083
20083
|
return chunks.join("");
|
|
@@ -20089,90 +20089,90 @@ var require_templates = __commonJS({
|
|
|
20089
20089
|
var require_source = __commonJS({
|
|
20090
20090
|
"node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"(exports, module2) {
|
|
20091
20091
|
"use strict";
|
|
20092
|
-
var
|
|
20093
|
-
var { stdout:
|
|
20092
|
+
var ansiStyles2 = require_ansi_styles();
|
|
20093
|
+
var { stdout: stdoutColor2, stderr: stderrColor2 } = require_supports_color();
|
|
20094
20094
|
var {
|
|
20095
|
-
stringReplaceAll,
|
|
20096
|
-
stringEncaseCRLFWithFirstIndex
|
|
20095
|
+
stringReplaceAll: stringReplaceAll2,
|
|
20096
|
+
stringEncaseCRLFWithFirstIndex: stringEncaseCRLFWithFirstIndex2
|
|
20097
20097
|
} = require_util();
|
|
20098
20098
|
var { isArray } = Array;
|
|
20099
|
-
var
|
|
20099
|
+
var levelMapping2 = [
|
|
20100
20100
|
"ansi",
|
|
20101
20101
|
"ansi",
|
|
20102
20102
|
"ansi256",
|
|
20103
20103
|
"ansi16m"
|
|
20104
20104
|
];
|
|
20105
|
-
var
|
|
20106
|
-
var
|
|
20105
|
+
var styles3 = /* @__PURE__ */ Object.create(null);
|
|
20106
|
+
var applyOptions2 = (object, options = {}) => {
|
|
20107
20107
|
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
20108
20108
|
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
20109
20109
|
}
|
|
20110
|
-
const colorLevel =
|
|
20110
|
+
const colorLevel = stdoutColor2 ? stdoutColor2.level : 0;
|
|
20111
20111
|
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
20112
20112
|
};
|
|
20113
20113
|
var ChalkClass = class {
|
|
20114
20114
|
constructor(options) {
|
|
20115
|
-
return
|
|
20115
|
+
return chalkFactory2(options);
|
|
20116
20116
|
}
|
|
20117
20117
|
};
|
|
20118
|
-
var
|
|
20119
|
-
const
|
|
20120
|
-
|
|
20121
|
-
|
|
20122
|
-
Object.setPrototypeOf(
|
|
20123
|
-
Object.setPrototypeOf(
|
|
20124
|
-
|
|
20118
|
+
var chalkFactory2 = (options) => {
|
|
20119
|
+
const chalk3 = {};
|
|
20120
|
+
applyOptions2(chalk3, options);
|
|
20121
|
+
chalk3.template = (...arguments_) => chalkTag(chalk3.template, ...arguments_);
|
|
20122
|
+
Object.setPrototypeOf(chalk3, Chalk.prototype);
|
|
20123
|
+
Object.setPrototypeOf(chalk3.template, chalk3);
|
|
20124
|
+
chalk3.template.constructor = () => {
|
|
20125
20125
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
20126
20126
|
};
|
|
20127
|
-
|
|
20128
|
-
return
|
|
20127
|
+
chalk3.template.Instance = ChalkClass;
|
|
20128
|
+
return chalk3.template;
|
|
20129
20129
|
};
|
|
20130
20130
|
function Chalk(options) {
|
|
20131
|
-
return
|
|
20131
|
+
return chalkFactory2(options);
|
|
20132
20132
|
}
|
|
20133
|
-
for (const [styleName, style] of Object.entries(
|
|
20134
|
-
|
|
20133
|
+
for (const [styleName, style] of Object.entries(ansiStyles2)) {
|
|
20134
|
+
styles3[styleName] = {
|
|
20135
20135
|
get() {
|
|
20136
|
-
const builder =
|
|
20136
|
+
const builder = createBuilder2(this, createStyler2(style.open, style.close, this._styler), this._isEmpty);
|
|
20137
20137
|
Object.defineProperty(this, styleName, { value: builder });
|
|
20138
20138
|
return builder;
|
|
20139
20139
|
}
|
|
20140
20140
|
};
|
|
20141
20141
|
}
|
|
20142
|
-
|
|
20142
|
+
styles3.visible = {
|
|
20143
20143
|
get() {
|
|
20144
|
-
const builder =
|
|
20144
|
+
const builder = createBuilder2(this, this._styler, true);
|
|
20145
20145
|
Object.defineProperty(this, "visible", { value: builder });
|
|
20146
20146
|
return builder;
|
|
20147
20147
|
}
|
|
20148
20148
|
};
|
|
20149
|
-
var
|
|
20150
|
-
for (const model of
|
|
20151
|
-
|
|
20149
|
+
var usedModels2 = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
|
|
20150
|
+
for (const model of usedModels2) {
|
|
20151
|
+
styles3[model] = {
|
|
20152
20152
|
get() {
|
|
20153
20153
|
const { level } = this;
|
|
20154
20154
|
return function(...arguments_) {
|
|
20155
|
-
const styler =
|
|
20156
|
-
return
|
|
20155
|
+
const styler = createStyler2(ansiStyles2.color[levelMapping2[level]][model](...arguments_), ansiStyles2.color.close, this._styler);
|
|
20156
|
+
return createBuilder2(this, styler, this._isEmpty);
|
|
20157
20157
|
};
|
|
20158
20158
|
}
|
|
20159
20159
|
};
|
|
20160
20160
|
}
|
|
20161
|
-
for (const model of
|
|
20161
|
+
for (const model of usedModels2) {
|
|
20162
20162
|
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
20163
|
-
|
|
20163
|
+
styles3[bgModel] = {
|
|
20164
20164
|
get() {
|
|
20165
20165
|
const { level } = this;
|
|
20166
20166
|
return function(...arguments_) {
|
|
20167
|
-
const styler =
|
|
20168
|
-
return
|
|
20167
|
+
const styler = createStyler2(ansiStyles2.bgColor[levelMapping2[level]][model](...arguments_), ansiStyles2.bgColor.close, this._styler);
|
|
20168
|
+
return createBuilder2(this, styler, this._isEmpty);
|
|
20169
20169
|
};
|
|
20170
20170
|
}
|
|
20171
20171
|
};
|
|
20172
20172
|
}
|
|
20173
|
-
var
|
|
20173
|
+
var proto2 = Object.defineProperties(() => {
|
|
20174
20174
|
}, {
|
|
20175
|
-
...
|
|
20175
|
+
...styles3,
|
|
20176
20176
|
level: {
|
|
20177
20177
|
enumerable: true,
|
|
20178
20178
|
get() {
|
|
@@ -20183,7 +20183,7 @@ var require_source = __commonJS({
|
|
|
20183
20183
|
}
|
|
20184
20184
|
}
|
|
20185
20185
|
});
|
|
20186
|
-
var
|
|
20186
|
+
var createStyler2 = (open, close, parent) => {
|
|
20187
20187
|
let openAll;
|
|
20188
20188
|
let closeAll;
|
|
20189
20189
|
if (parent === void 0) {
|
|
@@ -20201,20 +20201,20 @@ var require_source = __commonJS({
|
|
|
20201
20201
|
parent
|
|
20202
20202
|
};
|
|
20203
20203
|
};
|
|
20204
|
-
var
|
|
20204
|
+
var createBuilder2 = (self2, _styler, _isEmpty) => {
|
|
20205
20205
|
const builder = (...arguments_) => {
|
|
20206
20206
|
if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
|
|
20207
|
-
return
|
|
20207
|
+
return applyStyle2(builder, chalkTag(builder, ...arguments_));
|
|
20208
20208
|
}
|
|
20209
|
-
return
|
|
20209
|
+
return applyStyle2(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
20210
20210
|
};
|
|
20211
|
-
Object.setPrototypeOf(builder,
|
|
20211
|
+
Object.setPrototypeOf(builder, proto2);
|
|
20212
20212
|
builder._generator = self2;
|
|
20213
20213
|
builder._styler = _styler;
|
|
20214
20214
|
builder._isEmpty = _isEmpty;
|
|
20215
20215
|
return builder;
|
|
20216
20216
|
};
|
|
20217
|
-
var
|
|
20217
|
+
var applyStyle2 = (self2, string) => {
|
|
20218
20218
|
if (self2.level <= 0 || !string) {
|
|
20219
20219
|
return self2._isEmpty ? "" : string;
|
|
20220
20220
|
}
|
|
@@ -20225,18 +20225,18 @@ var require_source = __commonJS({
|
|
|
20225
20225
|
const { openAll, closeAll } = styler;
|
|
20226
20226
|
if (string.indexOf("\x1B") !== -1) {
|
|
20227
20227
|
while (styler !== void 0) {
|
|
20228
|
-
string =
|
|
20228
|
+
string = stringReplaceAll2(string, styler.close, styler.open);
|
|
20229
20229
|
styler = styler.parent;
|
|
20230
20230
|
}
|
|
20231
20231
|
}
|
|
20232
20232
|
const lfIndex = string.indexOf("\n");
|
|
20233
20233
|
if (lfIndex !== -1) {
|
|
20234
|
-
string =
|
|
20234
|
+
string = stringEncaseCRLFWithFirstIndex2(string, closeAll, openAll, lfIndex);
|
|
20235
20235
|
}
|
|
20236
20236
|
return openAll + string + closeAll;
|
|
20237
20237
|
};
|
|
20238
20238
|
var template;
|
|
20239
|
-
var chalkTag = (
|
|
20239
|
+
var chalkTag = (chalk3, ...strings) => {
|
|
20240
20240
|
const [firstString] = strings;
|
|
20241
20241
|
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
|
20242
20242
|
return strings.join(" ");
|
|
@@ -20252,14 +20252,14 @@ var require_source = __commonJS({
|
|
|
20252
20252
|
if (template === void 0) {
|
|
20253
20253
|
template = require_templates();
|
|
20254
20254
|
}
|
|
20255
|
-
return template(
|
|
20255
|
+
return template(chalk3, parts.join(""));
|
|
20256
20256
|
};
|
|
20257
|
-
Object.defineProperties(Chalk.prototype,
|
|
20258
|
-
var
|
|
20259
|
-
|
|
20260
|
-
|
|
20261
|
-
|
|
20262
|
-
module2.exports =
|
|
20257
|
+
Object.defineProperties(Chalk.prototype, styles3);
|
|
20258
|
+
var chalk2 = Chalk();
|
|
20259
|
+
chalk2.supportsColor = stdoutColor2;
|
|
20260
|
+
chalk2.stderr = Chalk({ level: stderrColor2 ? stderrColor2.level : 0 });
|
|
20261
|
+
chalk2.stderr.supportsColor = stderrColor2;
|
|
20262
|
+
module2.exports = chalk2;
|
|
20263
20263
|
}
|
|
20264
20264
|
});
|
|
20265
20265
|
|
|
@@ -20354,20 +20354,20 @@ var require_highlight = __commonJS({
|
|
|
20354
20354
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20355
20355
|
exports.highlight = void 0;
|
|
20356
20356
|
var jsTokens = require_js_tokens();
|
|
20357
|
-
var
|
|
20357
|
+
var chalk2 = require_source();
|
|
20358
20358
|
var identifiers_1 = require_identifiers2();
|
|
20359
|
-
function getDefs(
|
|
20359
|
+
function getDefs(chalk3) {
|
|
20360
20360
|
return {
|
|
20361
|
-
keyword:
|
|
20362
|
-
capitalized:
|
|
20363
|
-
jsx_tag:
|
|
20364
|
-
punctuator:
|
|
20361
|
+
keyword: chalk3.cyan,
|
|
20362
|
+
capitalized: chalk3.yellow,
|
|
20363
|
+
jsx_tag: chalk3.yellow,
|
|
20364
|
+
punctuator: chalk3.yellow,
|
|
20365
20365
|
// bracket: intentionally omitted.
|
|
20366
|
-
number:
|
|
20367
|
-
string:
|
|
20368
|
-
regex:
|
|
20369
|
-
comment:
|
|
20370
|
-
invalid:
|
|
20366
|
+
number: chalk3.magenta,
|
|
20367
|
+
string: chalk3.green,
|
|
20368
|
+
regex: chalk3.magenta,
|
|
20369
|
+
comment: chalk3.grey,
|
|
20370
|
+
invalid: chalk3.white.bgRed.bold
|
|
20371
20371
|
};
|
|
20372
20372
|
}
|
|
20373
20373
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -20407,7 +20407,7 @@ var require_highlight = __commonJS({
|
|
|
20407
20407
|
});
|
|
20408
20408
|
}
|
|
20409
20409
|
function highlight(code) {
|
|
20410
|
-
const defs = getDefs(
|
|
20410
|
+
const defs = getDefs(chalk2);
|
|
20411
20411
|
return highlightTokens(defs, code);
|
|
20412
20412
|
}
|
|
20413
20413
|
exports.highlight = highlight;
|
|
@@ -20520,7 +20520,7 @@ var require_run_type_check = __commonJS({
|
|
|
20520
20520
|
"use strict";
|
|
20521
20521
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20522
20522
|
exports.getFormattedDiagnostic = exports.runTypeCheck = exports.runTypeCheckWatch = void 0;
|
|
20523
|
-
var
|
|
20523
|
+
var chalk2 = require_source();
|
|
20524
20524
|
var path2 = require("path");
|
|
20525
20525
|
var code_frames_1 = require("nx/src/utils/code-frames");
|
|
20526
20526
|
var highlight_1 = require_highlight();
|
|
@@ -20600,17 +20600,17 @@ var require_run_type_check = __commonJS({
|
|
|
20600
20600
|
const category = diagnostic.category;
|
|
20601
20601
|
switch (category) {
|
|
20602
20602
|
case ts2.DiagnosticCategory.Warning: {
|
|
20603
|
-
message += `${
|
|
20603
|
+
message += `${chalk2.yellow.bold("warning")} ${chalk2.gray(`TS${diagnostic.code}`)}: `;
|
|
20604
20604
|
break;
|
|
20605
20605
|
}
|
|
20606
20606
|
case ts2.DiagnosticCategory.Error: {
|
|
20607
|
-
message += `${
|
|
20607
|
+
message += `${chalk2.red.bold("error")} ${chalk2.gray(`TS${diagnostic.code}`)}: `;
|
|
20608
20608
|
break;
|
|
20609
20609
|
}
|
|
20610
20610
|
case ts2.DiagnosticCategory.Suggestion:
|
|
20611
20611
|
case ts2.DiagnosticCategory.Message:
|
|
20612
20612
|
default: {
|
|
20613
|
-
message += `${
|
|
20613
|
+
message += `${chalk2.cyan.bold(category === 2 ? "suggestion" : "info")}: `;
|
|
20614
20614
|
break;
|
|
20615
20615
|
}
|
|
20616
20616
|
}
|
|
@@ -20620,7 +20620,7 @@ var require_run_type_check = __commonJS({
|
|
|
20620
20620
|
const line = pos.line + 1;
|
|
20621
20621
|
const column = pos.character + 1;
|
|
20622
20622
|
const fileName = path2.relative(workspaceRoot, diagnostic.file.fileName);
|
|
20623
|
-
message = `${
|
|
20623
|
+
message = `${chalk2.underline.blue(`${fileName}:${line}:${column}`)} - ` + message;
|
|
20624
20624
|
const code = diagnostic.file.getFullText(diagnostic.file.getSourceFile());
|
|
20625
20625
|
message += "\n" + (0, code_frames_1.codeFrameColumns)(code, {
|
|
20626
20626
|
start: { line, column }
|
|
@@ -30228,8 +30228,8 @@ var require_settings4 = __commonJS({
|
|
|
30228
30228
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30229
30229
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
30230
30230
|
var fs = require("fs");
|
|
30231
|
-
var
|
|
30232
|
-
var CPU_COUNT = Math.max(
|
|
30231
|
+
var os2 = require("os");
|
|
30232
|
+
var CPU_COUNT = Math.max(os2.cpus().length, 1);
|
|
30233
30233
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
30234
30234
|
lstat: fs.lstat,
|
|
30235
30235
|
lstatSync: fs.lstatSync,
|
|
@@ -30980,9 +30980,9 @@ var require_utils8 = __commonJS({
|
|
|
30980
30980
|
return target;
|
|
30981
30981
|
};
|
|
30982
30982
|
exports.mixinEmitter = (obj, emitter) => {
|
|
30983
|
-
let
|
|
30984
|
-
for (let key of Object.keys(
|
|
30985
|
-
let val =
|
|
30983
|
+
let proto2 = emitter.constructor.prototype;
|
|
30984
|
+
for (let key of Object.keys(proto2)) {
|
|
30985
|
+
let val = proto2[key];
|
|
30986
30986
|
if (typeof val === "function") {
|
|
30987
30987
|
exports.define(obj, key, val.bind(emitter));
|
|
30988
30988
|
} else {
|
|
@@ -31391,13 +31391,13 @@ var require_state = __commonJS({
|
|
|
31391
31391
|
this._color = val;
|
|
31392
31392
|
}
|
|
31393
31393
|
get color() {
|
|
31394
|
-
let
|
|
31394
|
+
let styles3 = this.prompt.styles;
|
|
31395
31395
|
if (this.cancelled)
|
|
31396
|
-
return
|
|
31396
|
+
return styles3.cancelled;
|
|
31397
31397
|
if (this.submitted)
|
|
31398
|
-
return
|
|
31399
|
-
let color = this._color ||
|
|
31400
|
-
return typeof color === "function" ? color :
|
|
31398
|
+
return styles3.submitted;
|
|
31399
|
+
let color = this._color || styles3[this.status];
|
|
31400
|
+
return typeof color === "function" ? color : styles3.pending;
|
|
31401
31401
|
}
|
|
31402
31402
|
set loading(value) {
|
|
31403
31403
|
this._loading = value;
|
|
@@ -31427,7 +31427,7 @@ var require_styles = __commonJS({
|
|
|
31427
31427
|
"use strict";
|
|
31428
31428
|
var utils = require_utils8();
|
|
31429
31429
|
var colors = require_ansi_colors();
|
|
31430
|
-
var
|
|
31430
|
+
var styles3 = {
|
|
31431
31431
|
default: colors.noop,
|
|
31432
31432
|
noop: colors.noop,
|
|
31433
31433
|
/**
|
|
@@ -31521,14 +31521,14 @@ var require_styles = __commonJS({
|
|
|
31521
31521
|
return this._highlight || this.inverse;
|
|
31522
31522
|
}
|
|
31523
31523
|
};
|
|
31524
|
-
|
|
31524
|
+
styles3.merge = (options = {}) => {
|
|
31525
31525
|
if (options.styles && typeof options.styles.enabled === "boolean") {
|
|
31526
31526
|
colors.enabled = options.styles.enabled;
|
|
31527
31527
|
}
|
|
31528
31528
|
if (options.styles && typeof options.styles.visible === "boolean") {
|
|
31529
31529
|
colors.visible = options.styles.visible;
|
|
31530
31530
|
}
|
|
31531
|
-
let result = utils.merge({},
|
|
31531
|
+
let result = utils.merge({}, styles3, options.styles);
|
|
31532
31532
|
delete result.merge;
|
|
31533
31533
|
for (let key of Object.keys(colors)) {
|
|
31534
31534
|
if (!result.hasOwnProperty(key)) {
|
|
@@ -31542,7 +31542,7 @@ var require_styles = __commonJS({
|
|
|
31542
31542
|
}
|
|
31543
31543
|
return result;
|
|
31544
31544
|
};
|
|
31545
|
-
module2.exports =
|
|
31545
|
+
module2.exports = styles3;
|
|
31546
31546
|
}
|
|
31547
31547
|
});
|
|
31548
31548
|
|
|
@@ -31617,13 +31617,13 @@ var require_symbols2 = __commonJS({
|
|
|
31617
31617
|
var require_theme = __commonJS({
|
|
31618
31618
|
"node_modules/.pnpm/enquirer@2.3.6/node_modules/enquirer/lib/theme.js"(exports, module2) {
|
|
31619
31619
|
"use strict";
|
|
31620
|
-
var
|
|
31620
|
+
var styles3 = require_styles();
|
|
31621
31621
|
var symbols = require_symbols2();
|
|
31622
31622
|
var utils = require_utils8();
|
|
31623
31623
|
module2.exports = (prompt) => {
|
|
31624
31624
|
prompt.options = utils.merge({}, prompt.options.theme, prompt.options);
|
|
31625
31625
|
prompt.symbols = symbols.merge(prompt.options);
|
|
31626
|
-
prompt.styles =
|
|
31626
|
+
prompt.styles = styles3.merge(prompt.options);
|
|
31627
31627
|
};
|
|
31628
31628
|
}
|
|
31629
31629
|
});
|
|
@@ -31994,9 +31994,9 @@ var require_prompt = __commonJS({
|
|
|
31994
31994
|
return val;
|
|
31995
31995
|
}
|
|
31996
31996
|
if (val) {
|
|
31997
|
-
let
|
|
31997
|
+
let styles3 = this.styles;
|
|
31998
31998
|
let focused = this.index === i;
|
|
31999
|
-
let style = focused ?
|
|
31999
|
+
let style = focused ? styles3.primary : (val2) => val2;
|
|
32000
32000
|
let ele = await this.resolve(val[focused ? "on" : "off"] || val, this.state);
|
|
32001
32001
|
let styled = !utils.hasColor(ele) ? style(ele) : ele;
|
|
32002
32002
|
return focused ? styled : " ".repeat(ele.length);
|
|
@@ -32008,9 +32008,9 @@ var require_prompt = __commonJS({
|
|
|
32008
32008
|
return val;
|
|
32009
32009
|
}
|
|
32010
32010
|
if (val) {
|
|
32011
|
-
let
|
|
32011
|
+
let styles3 = this.styles;
|
|
32012
32012
|
let enabled = choice.enabled === true;
|
|
32013
|
-
let style = enabled ?
|
|
32013
|
+
let style = enabled ? styles3.success : styles3.dark;
|
|
32014
32014
|
let ele = val[enabled ? "on" : "off"] || val;
|
|
32015
32015
|
return !utils.hasColor(ele) ? style(ele) : ele;
|
|
32016
32016
|
}
|
|
@@ -33188,9 +33188,9 @@ var require_form = __commonJS({
|
|
|
33188
33188
|
}
|
|
33189
33189
|
async renderChoice(choice, i) {
|
|
33190
33190
|
await this.onChoice(choice, i);
|
|
33191
|
-
let { state, styles } = this;
|
|
33191
|
+
let { state, styles: styles3 } = this;
|
|
33192
33192
|
let { cursor, initial = "", name, hint, input = "" } = choice;
|
|
33193
|
-
let { muted, submitted, primary, danger } =
|
|
33193
|
+
let { muted, submitted, primary, danger } = styles3;
|
|
33194
33194
|
let help = hint;
|
|
33195
33195
|
let focused = this.index === i;
|
|
33196
33196
|
let validate = choice.validate || (() => true);
|
|
@@ -33205,7 +33205,7 @@ var require_form = __commonJS({
|
|
|
33205
33205
|
if (await validate.call(choice, value, this.state) !== true) {
|
|
33206
33206
|
color = "danger";
|
|
33207
33207
|
}
|
|
33208
|
-
let style =
|
|
33208
|
+
let style = styles3[color];
|
|
33209
33209
|
let indicator = style(await this.indicator(choice, i)) + (choice.pad || "");
|
|
33210
33210
|
let indent = this.indent(choice);
|
|
33211
33211
|
let line = () => [indent, indicator, msg + sep2, input, help].filter(Boolean).join(" ");
|
|
@@ -33337,8 +33337,8 @@ var require_boolean = __commonJS({
|
|
|
33337
33337
|
return this.submit();
|
|
33338
33338
|
}
|
|
33339
33339
|
format(value) {
|
|
33340
|
-
let { styles, state } = this;
|
|
33341
|
-
return !state.submitted ?
|
|
33340
|
+
let { styles: styles3, state } = this;
|
|
33341
|
+
return !state.submitted ? styles3.primary(value) : styles3.success(value);
|
|
33342
33342
|
}
|
|
33343
33343
|
cast(input) {
|
|
33344
33344
|
return this.isTrue(input);
|
|
@@ -38551,9 +38551,9 @@ var require_path2 = __commonJS({
|
|
|
38551
38551
|
"use strict";
|
|
38552
38552
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38553
38553
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
38554
|
-
var
|
|
38554
|
+
var os2 = require("os");
|
|
38555
38555
|
var path2 = require("path");
|
|
38556
|
-
var IS_WINDOWS_PLATFORM =
|
|
38556
|
+
var IS_WINDOWS_PLATFORM = os2.platform() === "win32";
|
|
38557
38557
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
38558
38558
|
var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
|
|
38559
38559
|
var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g;
|
|
@@ -39513,8 +39513,8 @@ var require_settings5 = __commonJS({
|
|
|
39513
39513
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39514
39514
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
39515
39515
|
var fs = require("fs");
|
|
39516
|
-
var
|
|
39517
|
-
var CPU_COUNT = Math.max(
|
|
39516
|
+
var os2 = require("os");
|
|
39517
|
+
var CPU_COUNT = Math.max(os2.cpus().length, 1);
|
|
39518
39518
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
39519
39519
|
lstat: fs.lstat,
|
|
39520
39520
|
lstatSync: fs.lstatSync,
|
|
@@ -39773,7 +39773,7 @@ var require_decky = __commonJS({
|
|
|
39773
39773
|
}), entryPoints;
|
|
39774
39774
|
}
|
|
39775
39775
|
var path2 = __toModule(require("path"));
|
|
39776
|
-
var
|
|
39776
|
+
var import_chalk2 = __toModule(require_source());
|
|
39777
39777
|
var esmLexer = require_lexer();
|
|
39778
39778
|
var hasLoadedLexers = false;
|
|
39779
39779
|
async function initLexers() {
|
|
@@ -39945,7 +39945,7 @@ ${result.code}`, result.filePath, result.code.substring(0, prefixStart).split(`
|
|
|
39945
39945
|
|
|
39946
39946
|
`).join(`
|
|
39947
39947
|
`).trim() + `
|
|
39948
|
-
`, globalThis.process.env.DECKY_VERBOSE && console.log(
|
|
39948
|
+
`, globalThis.process.env.DECKY_VERBOSE && console.log(import_chalk2.default.yellow(code)), moduleI !== modules.length && (modules.length = moduleI);
|
|
39949
39949
|
let result = {
|
|
39950
39950
|
code,
|
|
39951
39951
|
originalSource: code,
|
|
@@ -39993,7 +39993,7 @@ ${result.code}`, result.filePath, result.code.substring(0, prefixStart).split(`
|
|
|
39993
39993
|
didChange ? result.startIndex > -1 && result.stopIndex > -1 && (result.code = _code.substring(0, result.startIndex) + result.code + _code.substring(result.stopIndex)) : result.code = _code.substring(0, result.startIndex - 1) + _code.substring(result.stopIndex), result.startIndex = result.stopIndex = -1;
|
|
39994
39994
|
}
|
|
39995
39995
|
} while (symbolI > -1);
|
|
39996
|
-
return globalThis.process.env.DECKY_VERBOSE && console.log(
|
|
39996
|
+
return globalThis.process.env.DECKY_VERBOSE && console.log(import_chalk2.default.green(result.code)), {
|
|
39997
39997
|
contents: result.code.replace(/🍤/gm, "@"),
|
|
39998
39998
|
note: null
|
|
39999
39999
|
};
|
|
@@ -40024,7 +40024,7 @@ export function ${stub}(...args){return args;}
|
|
|
40024
40024
|
};
|
|
40025
40025
|
}
|
|
40026
40026
|
function plugin(decorators2) {
|
|
40027
|
-
let { prefixes, process:
|
|
40027
|
+
let { prefixes, process: process22 } = buildDecoratorProcessor(decorators2), prefixesWithAt = prefixes.map((a) => a.startsWith("@") ? a : "@" + a);
|
|
40028
40028
|
function isPotentialMatch(content) {
|
|
40029
40029
|
if (!content.includes("@"))
|
|
40030
40030
|
return false;
|
|
@@ -40051,7 +40051,7 @@ export function ${stub2}(...args){return args;}
|
|
|
40051
40051
|
loader
|
|
40052
40052
|
};
|
|
40053
40053
|
globalThis.process.env.DECKY_TIMINGS && console.time("[decky] ./" + path2.relative(globalThis.process.cwd(), args.path)), await initLexers();
|
|
40054
|
-
let { note, contents: _contents } = await
|
|
40054
|
+
let { note, contents: _contents } = await process22(contents, args.path) ?? {};
|
|
40055
40055
|
return globalThis.process.env.DECKY_TIMINGS && console.timeEnd("[decky] ./" + path2.relative(globalThis.process.cwd(), args.path)), {
|
|
40056
40056
|
contents: _contents,
|
|
40057
40057
|
errors: note ? [{ location: note.location, text: note.text }] : void 0,
|
|
@@ -41063,14 +41063,14 @@ var require_chunk_UIX4URMV = __commonJS({
|
|
|
41063
41063
|
yellowBright: () => yellowBright
|
|
41064
41064
|
});
|
|
41065
41065
|
var _tty = require("tty");
|
|
41066
|
-
var
|
|
41067
|
-
var
|
|
41066
|
+
var tty2 = _interopRequireWildcard(_tty);
|
|
41067
|
+
var env2 = process.env || {};
|
|
41068
41068
|
var argv = process.argv || [];
|
|
41069
|
-
var isDisabled = "NO_COLOR" in
|
|
41070
|
-
var isForced = "FORCE_COLOR" in
|
|
41069
|
+
var isDisabled = "NO_COLOR" in env2 || argv.includes("--no-color");
|
|
41070
|
+
var isForced = "FORCE_COLOR" in env2 || argv.includes("--color");
|
|
41071
41071
|
var isWindows = process.platform === "win32";
|
|
41072
|
-
var isCompatibleTerminal =
|
|
41073
|
-
var isCI = "CI" in
|
|
41072
|
+
var isCompatibleTerminal = tty2 && tty2.isatty && tty2.isatty(1) && env2.TERM && env2.TERM !== "dumb";
|
|
41073
|
+
var isCI = "CI" in env2 && ("GITHUB_ACTIONS" in env2 || "GITLAB_CI" in env2 || "CIRCLECI" in env2);
|
|
41074
41074
|
var isColorSupported = !isDisabled && (isForced || isWindows || isCompatibleTerminal || isCI);
|
|
41075
41075
|
var replaceClose = (index, string, close, replace, head = string.substring(0, index) + replace, tail = string.substring(index + close.length), next = tail.indexOf(close)) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
|
|
41076
41076
|
var clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
|
|
@@ -42407,7 +42407,7 @@ var require_resolveCommand = __commonJS({
|
|
|
42407
42407
|
var which = require_which();
|
|
42408
42408
|
var getPathKey = require_path_key();
|
|
42409
42409
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
42410
|
-
const
|
|
42410
|
+
const env2 = parsed.options.env || process.env;
|
|
42411
42411
|
const cwd = process.cwd();
|
|
42412
42412
|
const hasCustomCwd = parsed.options.cwd != null;
|
|
42413
42413
|
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
@@ -42420,7 +42420,7 @@ var require_resolveCommand = __commonJS({
|
|
|
42420
42420
|
let resolved;
|
|
42421
42421
|
try {
|
|
42422
42422
|
resolved = which.sync(parsed.command, {
|
|
42423
|
-
path:
|
|
42423
|
+
path: env2[getPathKey({ env: env2 })],
|
|
42424
42424
|
pathExt: withoutPathExt ? path2.delimiter : void 0
|
|
42425
42425
|
});
|
|
42426
42426
|
} catch (e) {
|
|
@@ -42705,11 +42705,11 @@ var require_npm_run_path = __commonJS({
|
|
|
42705
42705
|
env: process.env,
|
|
42706
42706
|
...options
|
|
42707
42707
|
};
|
|
42708
|
-
const
|
|
42709
|
-
const path3 = pathKey({ env });
|
|
42710
|
-
options.path =
|
|
42711
|
-
|
|
42712
|
-
return
|
|
42708
|
+
const env2 = { ...options.env };
|
|
42709
|
+
const path3 = pathKey({ env: env2 });
|
|
42710
|
+
options.path = env2[path3];
|
|
42711
|
+
env2[path3] = module2.exports(options);
|
|
42712
|
+
return env2;
|
|
42713
42713
|
};
|
|
42714
42714
|
}
|
|
42715
42715
|
});
|
|
@@ -43324,11 +43324,11 @@ var require_signals2 = __commonJS({
|
|
|
43324
43324
|
// node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
|
|
43325
43325
|
var require_signal_exit = __commonJS({
|
|
43326
43326
|
"node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
|
|
43327
|
-
var
|
|
43328
|
-
var processOk = function(
|
|
43329
|
-
return
|
|
43327
|
+
var process3 = global.process;
|
|
43328
|
+
var processOk = function(process4) {
|
|
43329
|
+
return process4 && typeof process4 === "object" && typeof process4.removeListener === "function" && typeof process4.emit === "function" && typeof process4.reallyExit === "function" && typeof process4.listeners === "function" && typeof process4.kill === "function" && typeof process4.pid === "number" && typeof process4.on === "function";
|
|
43330
43330
|
};
|
|
43331
|
-
if (!processOk(
|
|
43331
|
+
if (!processOk(process3)) {
|
|
43332
43332
|
module2.exports = function() {
|
|
43333
43333
|
return function() {
|
|
43334
43334
|
};
|
|
@@ -43336,15 +43336,15 @@ var require_signal_exit = __commonJS({
|
|
|
43336
43336
|
} else {
|
|
43337
43337
|
assert = require("assert");
|
|
43338
43338
|
signals = require_signals2();
|
|
43339
|
-
isWin = /^win/i.test(
|
|
43339
|
+
isWin = /^win/i.test(process3.platform);
|
|
43340
43340
|
EE = require("events");
|
|
43341
43341
|
if (typeof EE !== "function") {
|
|
43342
43342
|
EE = EE.EventEmitter;
|
|
43343
43343
|
}
|
|
43344
|
-
if (
|
|
43345
|
-
emitter =
|
|
43344
|
+
if (process3.__signal_exit_emitter__) {
|
|
43345
|
+
emitter = process3.__signal_exit_emitter__;
|
|
43346
43346
|
} else {
|
|
43347
|
-
emitter =
|
|
43347
|
+
emitter = process3.__signal_exit_emitter__ = new EE();
|
|
43348
43348
|
emitter.count = 0;
|
|
43349
43349
|
emitter.emitted = {};
|
|
43350
43350
|
}
|
|
@@ -43381,12 +43381,12 @@ var require_signal_exit = __commonJS({
|
|
|
43381
43381
|
loaded = false;
|
|
43382
43382
|
signals.forEach(function(sig) {
|
|
43383
43383
|
try {
|
|
43384
|
-
|
|
43384
|
+
process3.removeListener(sig, sigListeners[sig]);
|
|
43385
43385
|
} catch (er) {
|
|
43386
43386
|
}
|
|
43387
43387
|
});
|
|
43388
|
-
|
|
43389
|
-
|
|
43388
|
+
process3.emit = originalProcessEmit;
|
|
43389
|
+
process3.reallyExit = originalProcessReallyExit;
|
|
43390
43390
|
emitter.count -= 1;
|
|
43391
43391
|
};
|
|
43392
43392
|
module2.exports.unload = unload;
|
|
@@ -43403,7 +43403,7 @@ var require_signal_exit = __commonJS({
|
|
|
43403
43403
|
if (!processOk(global.process)) {
|
|
43404
43404
|
return;
|
|
43405
43405
|
}
|
|
43406
|
-
var listeners =
|
|
43406
|
+
var listeners = process3.listeners(sig);
|
|
43407
43407
|
if (listeners.length === emitter.count) {
|
|
43408
43408
|
unload();
|
|
43409
43409
|
emit("exit", null, sig);
|
|
@@ -43411,7 +43411,7 @@ var require_signal_exit = __commonJS({
|
|
|
43411
43411
|
if (isWin && sig === "SIGHUP") {
|
|
43412
43412
|
sig = "SIGINT";
|
|
43413
43413
|
}
|
|
43414
|
-
|
|
43414
|
+
process3.kill(process3.pid, sig);
|
|
43415
43415
|
}
|
|
43416
43416
|
};
|
|
43417
43417
|
});
|
|
@@ -43427,36 +43427,36 @@ var require_signal_exit = __commonJS({
|
|
|
43427
43427
|
emitter.count += 1;
|
|
43428
43428
|
signals = signals.filter(function(sig) {
|
|
43429
43429
|
try {
|
|
43430
|
-
|
|
43430
|
+
process3.on(sig, sigListeners[sig]);
|
|
43431
43431
|
return true;
|
|
43432
43432
|
} catch (er) {
|
|
43433
43433
|
return false;
|
|
43434
43434
|
}
|
|
43435
43435
|
});
|
|
43436
|
-
|
|
43437
|
-
|
|
43436
|
+
process3.emit = processEmit;
|
|
43437
|
+
process3.reallyExit = processReallyExit;
|
|
43438
43438
|
};
|
|
43439
43439
|
module2.exports.load = load2;
|
|
43440
|
-
originalProcessReallyExit =
|
|
43440
|
+
originalProcessReallyExit = process3.reallyExit;
|
|
43441
43441
|
processReallyExit = function processReallyExit2(code) {
|
|
43442
43442
|
if (!processOk(global.process)) {
|
|
43443
43443
|
return;
|
|
43444
43444
|
}
|
|
43445
|
-
|
|
43445
|
+
process3.exitCode = code || /* istanbul ignore next */
|
|
43446
43446
|
0;
|
|
43447
|
-
emit("exit",
|
|
43448
|
-
emit("afterexit",
|
|
43449
|
-
originalProcessReallyExit.call(
|
|
43447
|
+
emit("exit", process3.exitCode, null);
|
|
43448
|
+
emit("afterexit", process3.exitCode, null);
|
|
43449
|
+
originalProcessReallyExit.call(process3, process3.exitCode);
|
|
43450
43450
|
};
|
|
43451
|
-
originalProcessEmit =
|
|
43451
|
+
originalProcessEmit = process3.emit;
|
|
43452
43452
|
processEmit = function processEmit2(ev, arg) {
|
|
43453
43453
|
if (ev === "exit" && processOk(global.process)) {
|
|
43454
43454
|
if (arg !== void 0) {
|
|
43455
|
-
|
|
43455
|
+
process3.exitCode = arg;
|
|
43456
43456
|
}
|
|
43457
43457
|
var ret = originalProcessEmit.apply(this, arguments);
|
|
43458
|
-
emit("exit",
|
|
43459
|
-
emit("afterexit",
|
|
43458
|
+
emit("exit", process3.exitCode, null);
|
|
43459
|
+
emit("afterexit", process3.exitCode, null);
|
|
43460
43460
|
return ret;
|
|
43461
43461
|
} else {
|
|
43462
43462
|
return originalProcessEmit.apply(this, arguments);
|
|
@@ -43484,7 +43484,7 @@ var require_signal_exit = __commonJS({
|
|
|
43484
43484
|
var require_kill = __commonJS({
|
|
43485
43485
|
"node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports, module2) {
|
|
43486
43486
|
"use strict";
|
|
43487
|
-
var
|
|
43487
|
+
var os2 = require("os");
|
|
43488
43488
|
var onExit = require_signal_exit();
|
|
43489
43489
|
var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
|
|
43490
43490
|
var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
|
|
@@ -43508,7 +43508,7 @@ var require_kill = __commonJS({
|
|
|
43508
43508
|
return isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
|
|
43509
43509
|
};
|
|
43510
43510
|
var isSigterm = (signal) => {
|
|
43511
|
-
return signal ===
|
|
43511
|
+
return signal === os2.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
|
|
43512
43512
|
};
|
|
43513
43513
|
var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
|
|
43514
43514
|
if (forceKillAfterTimeout === true) {
|
|
@@ -43904,11 +43904,11 @@ var require_execa = __commonJS({
|
|
|
43904
43904
|
var { joinCommand, parseCommand, getEscapedCommand } = require_command();
|
|
43905
43905
|
var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
|
|
43906
43906
|
var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
43907
|
-
const
|
|
43907
|
+
const env2 = extendEnv ? { ...process.env, ...envOption } : envOption;
|
|
43908
43908
|
if (preferLocal) {
|
|
43909
|
-
return npmRunPath.env({ env, cwd: localDir, execPath });
|
|
43909
|
+
return npmRunPath.env({ env: env2, cwd: localDir, execPath });
|
|
43910
43910
|
}
|
|
43911
|
-
return
|
|
43911
|
+
return env2;
|
|
43912
43912
|
};
|
|
43913
43913
|
var handleArguments = (file, args, options = {}) => {
|
|
43914
43914
|
const parsed = crossSpawn._parse(file, args, options);
|
|
@@ -71770,7 +71770,7 @@ var require_rollup = __commonJS({
|
|
|
71770
71770
|
"use strict";
|
|
71771
71771
|
var parseAst_js = require_parseAst();
|
|
71772
71772
|
var process$1 = require("node:process");
|
|
71773
|
-
var
|
|
71773
|
+
var tty2 = require("tty");
|
|
71774
71774
|
var node_path = require("node:path");
|
|
71775
71775
|
var require$$0$1 = require("path");
|
|
71776
71776
|
var node_perf_hooks = require("node:perf_hooks");
|
|
@@ -71786,7 +71786,7 @@ var require_rollup = __commonJS({
|
|
|
71786
71786
|
n2.default = e;
|
|
71787
71787
|
return n2;
|
|
71788
71788
|
}
|
|
71789
|
-
var tty__namespace = /* @__PURE__ */ _interopNamespaceDefault(
|
|
71789
|
+
var tty__namespace = /* @__PURE__ */ _interopNamespaceDefault(tty2);
|
|
71790
71790
|
var version = "4.5.0";
|
|
71791
71791
|
function ensureArray$1(items) {
|
|
71792
71792
|
if (Array.isArray(items)) {
|
|
@@ -72975,16 +72975,16 @@ var require_rollup = __commonJS({
|
|
|
72975
72975
|
return outputOptions;
|
|
72976
72976
|
}
|
|
72977
72977
|
var {
|
|
72978
|
-
env = {},
|
|
72978
|
+
env: env2 = {},
|
|
72979
72979
|
argv = [],
|
|
72980
72980
|
platform = ""
|
|
72981
72981
|
} = typeof process === "undefined" ? {} : process;
|
|
72982
|
-
var isDisabled = "NO_COLOR" in
|
|
72983
|
-
var isForced = "FORCE_COLOR" in
|
|
72982
|
+
var isDisabled = "NO_COLOR" in env2 || argv.includes("--no-color");
|
|
72983
|
+
var isForced = "FORCE_COLOR" in env2 || argv.includes("--color");
|
|
72984
72984
|
var isWindows = platform === "win32";
|
|
72985
|
-
var isDumbTerminal =
|
|
72986
|
-
var isCompatibleTerminal = tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) &&
|
|
72987
|
-
var isCI = "CI" in
|
|
72985
|
+
var isDumbTerminal = env2.TERM === "dumb";
|
|
72986
|
+
var isCompatibleTerminal = tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env2.TERM && !isDumbTerminal;
|
|
72987
|
+
var isCI = "CI" in env2 && ("GITHUB_ACTIONS" in env2 || "GITLAB_CI" in env2 || "CIRCLECI" in env2);
|
|
72988
72988
|
var isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
|
|
72989
72989
|
var replaceClose = (index, string, close, replace, head = string.substring(0, index) + replace, tail = string.substring(index + close.length), next = tail.indexOf(close)) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
|
|
72990
72990
|
var clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
|
|
@@ -91161,7 +91161,7 @@ var require_shared = __commonJS({
|
|
|
91161
91161
|
(function(exports2) {
|
|
91162
91162
|
const { sep: sep2 } = require$$0$2;
|
|
91163
91163
|
const { platform } = process;
|
|
91164
|
-
const
|
|
91164
|
+
const os2 = require$$2$1;
|
|
91165
91165
|
exports2.EV_ALL = "all";
|
|
91166
91166
|
exports2.EV_READY = "ready";
|
|
91167
91167
|
exports2.EV_ADD = "add";
|
|
@@ -91214,7 +91214,7 @@ var require_shared = __commonJS({
|
|
|
91214
91214
|
exports2.isWindows = platform === "win32";
|
|
91215
91215
|
exports2.isMacos = platform === "darwin";
|
|
91216
91216
|
exports2.isLinux = platform === "linux";
|
|
91217
|
-
exports2.isIBMi =
|
|
91217
|
+
exports2.isIBMi = os2.type() === "OS400";
|
|
91218
91218
|
})(constants);
|
|
91219
91219
|
var fs$2 = require$$0$1;
|
|
91220
91220
|
var sysPath$2 = require$$0$2;
|
|
@@ -92937,7 +92937,7 @@ var require_watch = __commonJS({
|
|
|
92937
92937
|
"use strict";
|
|
92938
92938
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
92939
92939
|
var node_path = require("node:path");
|
|
92940
|
-
var
|
|
92940
|
+
var process3 = require("node:process");
|
|
92941
92941
|
var rollup = require_rollup();
|
|
92942
92942
|
var node_os = require("node:os");
|
|
92943
92943
|
var index = require_shared();
|
|
@@ -93032,7 +93032,7 @@ var require_watch = __commonJS({
|
|
|
93032
93032
|
this.buildDelay = Math.max(this.buildDelay, watch.buildDelay);
|
|
93033
93033
|
}
|
|
93034
93034
|
}
|
|
93035
|
-
|
|
93035
|
+
process3.nextTick(() => this.run());
|
|
93036
93036
|
}
|
|
93037
93037
|
async close() {
|
|
93038
93038
|
if (this.closed)
|
|
@@ -93947,7 +93947,7 @@ var require_constants5 = __commonJS({
|
|
|
93947
93947
|
"use strict";
|
|
93948
93948
|
var { sep: sep2 } = require("path");
|
|
93949
93949
|
var { platform } = process;
|
|
93950
|
-
var
|
|
93950
|
+
var os2 = require("os");
|
|
93951
93951
|
exports.EV_ALL = "all";
|
|
93952
93952
|
exports.EV_READY = "ready";
|
|
93953
93953
|
exports.EV_ADD = "add";
|
|
@@ -94000,7 +94000,7 @@ var require_constants5 = __commonJS({
|
|
|
94000
94000
|
exports.isWindows = platform === "win32";
|
|
94001
94001
|
exports.isMacos = platform === "darwin";
|
|
94002
94002
|
exports.isLinux = platform === "linux";
|
|
94003
|
-
exports.isIBMi =
|
|
94003
|
+
exports.isIBMi = os2.type() === "OS400";
|
|
94004
94004
|
}
|
|
94005
94005
|
});
|
|
94006
94006
|
|
|
@@ -97375,11 +97375,11 @@ var require_dist5 = __commonJS({
|
|
|
97375
97375
|
];
|
|
97376
97376
|
const outDir = options.outDir;
|
|
97377
97377
|
const outExtension2 = getOutputExtensionMap(options, format2, pkg.type);
|
|
97378
|
-
const
|
|
97378
|
+
const env2 = {
|
|
97379
97379
|
...options.env
|
|
97380
97380
|
};
|
|
97381
97381
|
if (options.replaceNodeEnv) {
|
|
97382
|
-
|
|
97382
|
+
env2.NODE_ENV = options.minify || options.minifyWhitespace ? "production" : "development";
|
|
97383
97383
|
}
|
|
97384
97384
|
logger3.info(format2, "Build start");
|
|
97385
97385
|
const startTime = Date.now();
|
|
@@ -97473,8 +97473,8 @@ var require_dist5 = __commonJS({
|
|
|
97473
97473
|
"import.meta.url": "importMetaUrl"
|
|
97474
97474
|
} : {},
|
|
97475
97475
|
...options.define,
|
|
97476
|
-
...Object.keys(
|
|
97477
|
-
const value = JSON.stringify(
|
|
97476
|
+
...Object.keys(env2).reduce((res, key) => {
|
|
97477
|
+
const value = JSON.stringify(env2[key]);
|
|
97478
97478
|
return {
|
|
97479
97479
|
...res,
|
|
97480
97480
|
[`process.env.${key}`]: value,
|
|
@@ -100119,21 +100119,21 @@ var require_ansi_styles2 = __commonJS({
|
|
|
100119
100119
|
"node_modules/.pnpm/ansi-styles@3.2.1/node_modules/ansi-styles/index.js"(exports, module2) {
|
|
100120
100120
|
"use strict";
|
|
100121
100121
|
var colorConvert = require_color_convert2();
|
|
100122
|
-
var
|
|
100122
|
+
var wrapAnsi162 = (fn, offset) => function() {
|
|
100123
100123
|
const code = fn.apply(colorConvert, arguments);
|
|
100124
100124
|
return `\x1B[${code + offset}m`;
|
|
100125
100125
|
};
|
|
100126
|
-
var
|
|
100126
|
+
var wrapAnsi2562 = (fn, offset) => function() {
|
|
100127
100127
|
const code = fn.apply(colorConvert, arguments);
|
|
100128
100128
|
return `\x1B[${38 + offset};5;${code}m`;
|
|
100129
100129
|
};
|
|
100130
|
-
var
|
|
100130
|
+
var wrapAnsi16m2 = (fn, offset) => function() {
|
|
100131
100131
|
const rgb = fn.apply(colorConvert, arguments);
|
|
100132
100132
|
return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
100133
100133
|
};
|
|
100134
|
-
function
|
|
100134
|
+
function assembleStyles2() {
|
|
100135
100135
|
const codes = /* @__PURE__ */ new Map();
|
|
100136
|
-
const
|
|
100136
|
+
const styles3 = {
|
|
100137
100137
|
modifier: {
|
|
100138
100138
|
reset: [0, 0],
|
|
100139
100139
|
// 21 isn't widely supported and 22 does the same thing
|
|
@@ -100184,48 +100184,48 @@ var require_ansi_styles2 = __commonJS({
|
|
|
100184
100184
|
bgWhiteBright: [107, 49]
|
|
100185
100185
|
}
|
|
100186
100186
|
};
|
|
100187
|
-
|
|
100188
|
-
for (const groupName of Object.keys(
|
|
100189
|
-
const group =
|
|
100187
|
+
styles3.color.grey = styles3.color.gray;
|
|
100188
|
+
for (const groupName of Object.keys(styles3)) {
|
|
100189
|
+
const group = styles3[groupName];
|
|
100190
100190
|
for (const styleName of Object.keys(group)) {
|
|
100191
100191
|
const style = group[styleName];
|
|
100192
|
-
|
|
100192
|
+
styles3[styleName] = {
|
|
100193
100193
|
open: `\x1B[${style[0]}m`,
|
|
100194
100194
|
close: `\x1B[${style[1]}m`
|
|
100195
100195
|
};
|
|
100196
|
-
group[styleName] =
|
|
100196
|
+
group[styleName] = styles3[styleName];
|
|
100197
100197
|
codes.set(style[0], style[1]);
|
|
100198
100198
|
}
|
|
100199
|
-
Object.defineProperty(
|
|
100199
|
+
Object.defineProperty(styles3, groupName, {
|
|
100200
100200
|
value: group,
|
|
100201
100201
|
enumerable: false
|
|
100202
100202
|
});
|
|
100203
|
-
Object.defineProperty(
|
|
100203
|
+
Object.defineProperty(styles3, "codes", {
|
|
100204
100204
|
value: codes,
|
|
100205
100205
|
enumerable: false
|
|
100206
100206
|
});
|
|
100207
100207
|
}
|
|
100208
100208
|
const ansi2ansi = (n) => n;
|
|
100209
100209
|
const rgb2rgb = (r, g, b) => [r, g, b];
|
|
100210
|
-
|
|
100211
|
-
|
|
100212
|
-
|
|
100213
|
-
ansi:
|
|
100210
|
+
styles3.color.close = "\x1B[39m";
|
|
100211
|
+
styles3.bgColor.close = "\x1B[49m";
|
|
100212
|
+
styles3.color.ansi = {
|
|
100213
|
+
ansi: wrapAnsi162(ansi2ansi, 0)
|
|
100214
100214
|
};
|
|
100215
|
-
|
|
100216
|
-
ansi256:
|
|
100215
|
+
styles3.color.ansi256 = {
|
|
100216
|
+
ansi256: wrapAnsi2562(ansi2ansi, 0)
|
|
100217
100217
|
};
|
|
100218
|
-
|
|
100219
|
-
rgb:
|
|
100218
|
+
styles3.color.ansi16m = {
|
|
100219
|
+
rgb: wrapAnsi16m2(rgb2rgb, 0)
|
|
100220
100220
|
};
|
|
100221
|
-
|
|
100222
|
-
ansi:
|
|
100221
|
+
styles3.bgColor.ansi = {
|
|
100222
|
+
ansi: wrapAnsi162(ansi2ansi, 10)
|
|
100223
100223
|
};
|
|
100224
|
-
|
|
100225
|
-
ansi256:
|
|
100224
|
+
styles3.bgColor.ansi256 = {
|
|
100225
|
+
ansi256: wrapAnsi2562(ansi2ansi, 10)
|
|
100226
100226
|
};
|
|
100227
|
-
|
|
100228
|
-
rgb:
|
|
100227
|
+
styles3.bgColor.ansi16m = {
|
|
100228
|
+
rgb: wrapAnsi16m2(rgb2rgb, 10)
|
|
100229
100229
|
};
|
|
100230
100230
|
for (let key of Object.keys(colorConvert)) {
|
|
100231
100231
|
if (typeof colorConvert[key] !== "object") {
|
|
@@ -100236,23 +100236,23 @@ var require_ansi_styles2 = __commonJS({
|
|
|
100236
100236
|
key = "ansi";
|
|
100237
100237
|
}
|
|
100238
100238
|
if ("ansi16" in suite) {
|
|
100239
|
-
|
|
100240
|
-
|
|
100239
|
+
styles3.color.ansi[key] = wrapAnsi162(suite.ansi16, 0);
|
|
100240
|
+
styles3.bgColor.ansi[key] = wrapAnsi162(suite.ansi16, 10);
|
|
100241
100241
|
}
|
|
100242
100242
|
if ("ansi256" in suite) {
|
|
100243
|
-
|
|
100244
|
-
|
|
100243
|
+
styles3.color.ansi256[key] = wrapAnsi2562(suite.ansi256, 0);
|
|
100244
|
+
styles3.bgColor.ansi256[key] = wrapAnsi2562(suite.ansi256, 10);
|
|
100245
100245
|
}
|
|
100246
100246
|
if ("rgb" in suite) {
|
|
100247
|
-
|
|
100248
|
-
|
|
100247
|
+
styles3.color.ansi16m[key] = wrapAnsi16m2(suite.rgb, 0);
|
|
100248
|
+
styles3.bgColor.ansi16m[key] = wrapAnsi16m2(suite.rgb, 10);
|
|
100249
100249
|
}
|
|
100250
100250
|
}
|
|
100251
|
-
return
|
|
100251
|
+
return styles3;
|
|
100252
100252
|
}
|
|
100253
100253
|
Object.defineProperty(module2, "exports", {
|
|
100254
100254
|
enumerable: true,
|
|
100255
|
-
get:
|
|
100255
|
+
get: assembleStyles2
|
|
100256
100256
|
});
|
|
100257
100257
|
}
|
|
100258
100258
|
});
|
|
@@ -100275,19 +100275,19 @@ var require_has_flag2 = __commonJS({
|
|
|
100275
100275
|
var require_supports_color2 = __commonJS({
|
|
100276
100276
|
"node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
100277
100277
|
"use strict";
|
|
100278
|
-
var
|
|
100279
|
-
var
|
|
100280
|
-
var
|
|
100278
|
+
var os2 = require("os");
|
|
100279
|
+
var hasFlag2 = require_has_flag2();
|
|
100280
|
+
var env2 = process.env;
|
|
100281
100281
|
var forceColor;
|
|
100282
|
-
if (
|
|
100282
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false")) {
|
|
100283
100283
|
forceColor = false;
|
|
100284
|
-
} else if (
|
|
100284
|
+
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
100285
100285
|
forceColor = true;
|
|
100286
100286
|
}
|
|
100287
|
-
if ("FORCE_COLOR" in
|
|
100288
|
-
forceColor =
|
|
100287
|
+
if ("FORCE_COLOR" in env2) {
|
|
100288
|
+
forceColor = env2.FORCE_COLOR.length === 0 || parseInt(env2.FORCE_COLOR, 10) !== 0;
|
|
100289
100289
|
}
|
|
100290
|
-
function
|
|
100290
|
+
function translateLevel2(level) {
|
|
100291
100291
|
if (level === 0) {
|
|
100292
100292
|
return false;
|
|
100293
100293
|
}
|
|
@@ -100298,14 +100298,14 @@ var require_supports_color2 = __commonJS({
|
|
|
100298
100298
|
has16m: level >= 3
|
|
100299
100299
|
};
|
|
100300
100300
|
}
|
|
100301
|
-
function
|
|
100301
|
+
function supportsColor2(stream2) {
|
|
100302
100302
|
if (forceColor === false) {
|
|
100303
100303
|
return 0;
|
|
100304
100304
|
}
|
|
100305
|
-
if (
|
|
100305
|
+
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
100306
100306
|
return 3;
|
|
100307
100307
|
}
|
|
100308
|
-
if (
|
|
100308
|
+
if (hasFlag2("color=256")) {
|
|
100309
100309
|
return 2;
|
|
100310
100310
|
}
|
|
100311
100311
|
if (stream2 && !stream2.isTTY && forceColor !== true) {
|
|
@@ -100313,50 +100313,50 @@ var require_supports_color2 = __commonJS({
|
|
|
100313
100313
|
}
|
|
100314
100314
|
const min = forceColor ? 1 : 0;
|
|
100315
100315
|
if (process.platform === "win32") {
|
|
100316
|
-
const osRelease =
|
|
100316
|
+
const osRelease = os2.release().split(".");
|
|
100317
100317
|
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
100318
100318
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
100319
100319
|
}
|
|
100320
100320
|
return 1;
|
|
100321
100321
|
}
|
|
100322
|
-
if ("CI" in
|
|
100323
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in
|
|
100322
|
+
if ("CI" in env2) {
|
|
100323
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
100324
100324
|
return 1;
|
|
100325
100325
|
}
|
|
100326
100326
|
return min;
|
|
100327
100327
|
}
|
|
100328
|
-
if ("TEAMCITY_VERSION" in
|
|
100329
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
100328
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
100329
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
100330
100330
|
}
|
|
100331
|
-
if (
|
|
100331
|
+
if (env2.COLORTERM === "truecolor") {
|
|
100332
100332
|
return 3;
|
|
100333
100333
|
}
|
|
100334
|
-
if ("TERM_PROGRAM" in
|
|
100335
|
-
const version = parseInt((
|
|
100336
|
-
switch (
|
|
100334
|
+
if ("TERM_PROGRAM" in env2) {
|
|
100335
|
+
const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
100336
|
+
switch (env2.TERM_PROGRAM) {
|
|
100337
100337
|
case "iTerm.app":
|
|
100338
100338
|
return version >= 3 ? 3 : 2;
|
|
100339
100339
|
case "Apple_Terminal":
|
|
100340
100340
|
return 2;
|
|
100341
100341
|
}
|
|
100342
100342
|
}
|
|
100343
|
-
if (/-256(color)?$/i.test(
|
|
100343
|
+
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
100344
100344
|
return 2;
|
|
100345
100345
|
}
|
|
100346
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
|
|
100346
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
100347
100347
|
return 1;
|
|
100348
100348
|
}
|
|
100349
|
-
if ("COLORTERM" in
|
|
100349
|
+
if ("COLORTERM" in env2) {
|
|
100350
100350
|
return 1;
|
|
100351
100351
|
}
|
|
100352
|
-
if (
|
|
100352
|
+
if (env2.TERM === "dumb") {
|
|
100353
100353
|
return min;
|
|
100354
100354
|
}
|
|
100355
100355
|
return min;
|
|
100356
100356
|
}
|
|
100357
100357
|
function getSupportLevel(stream2) {
|
|
100358
|
-
const level =
|
|
100359
|
-
return
|
|
100358
|
+
const level = supportsColor2(stream2);
|
|
100359
|
+
return translateLevel2(level);
|
|
100360
100360
|
}
|
|
100361
100361
|
module2.exports = {
|
|
100362
100362
|
supportsColor: getSupportLevel,
|
|
@@ -100422,14 +100422,14 @@ var require_templates2 = __commonJS({
|
|
|
100422
100422
|
}
|
|
100423
100423
|
return results;
|
|
100424
100424
|
}
|
|
100425
|
-
function buildStyle(
|
|
100425
|
+
function buildStyle(chalk2, styles3) {
|
|
100426
100426
|
const enabled = {};
|
|
100427
|
-
for (const layer of
|
|
100427
|
+
for (const layer of styles3) {
|
|
100428
100428
|
for (const style of layer.styles) {
|
|
100429
100429
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
100430
100430
|
}
|
|
100431
100431
|
}
|
|
100432
|
-
let current =
|
|
100432
|
+
let current = chalk2;
|
|
100433
100433
|
for (const styleName of Object.keys(enabled)) {
|
|
100434
100434
|
if (Array.isArray(enabled[styleName])) {
|
|
100435
100435
|
if (!(styleName in current)) {
|
|
@@ -100444,8 +100444,8 @@ var require_templates2 = __commonJS({
|
|
|
100444
100444
|
}
|
|
100445
100445
|
return current;
|
|
100446
100446
|
}
|
|
100447
|
-
module2.exports = (
|
|
100448
|
-
const
|
|
100447
|
+
module2.exports = (chalk2, tmp) => {
|
|
100448
|
+
const styles3 = [];
|
|
100449
100449
|
const chunks = [];
|
|
100450
100450
|
let chunk = [];
|
|
100451
100451
|
tmp.replace(TEMPLATE_REGEX, (m, escapeChar, inverse, style, close, chr) => {
|
|
@@ -100454,22 +100454,22 @@ var require_templates2 = __commonJS({
|
|
|
100454
100454
|
} else if (style) {
|
|
100455
100455
|
const str = chunk.join("");
|
|
100456
100456
|
chunk = [];
|
|
100457
|
-
chunks.push(
|
|
100458
|
-
|
|
100457
|
+
chunks.push(styles3.length === 0 ? str : buildStyle(chalk2, styles3)(str));
|
|
100458
|
+
styles3.push({ inverse, styles: parseStyle(style) });
|
|
100459
100459
|
} else if (close) {
|
|
100460
|
-
if (
|
|
100460
|
+
if (styles3.length === 0) {
|
|
100461
100461
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
100462
100462
|
}
|
|
100463
|
-
chunks.push(buildStyle(
|
|
100463
|
+
chunks.push(buildStyle(chalk2, styles3)(chunk.join("")));
|
|
100464
100464
|
chunk = [];
|
|
100465
|
-
|
|
100465
|
+
styles3.pop();
|
|
100466
100466
|
} else {
|
|
100467
100467
|
chunk.push(chr);
|
|
100468
100468
|
}
|
|
100469
100469
|
});
|
|
100470
100470
|
chunks.push(chunk.join(""));
|
|
100471
|
-
if (
|
|
100472
|
-
const errMsg = `Chalk template literal is missing ${
|
|
100471
|
+
if (styles3.length > 0) {
|
|
100472
|
+
const errMsg = `Chalk template literal is missing ${styles3.length} closing bracket${styles3.length === 1 ? "" : "s"} (\`}\`)`;
|
|
100473
100473
|
throw new Error(errMsg);
|
|
100474
100474
|
}
|
|
100475
100475
|
return chunks.join("");
|
|
@@ -100482,97 +100482,97 @@ var require_chalk = __commonJS({
|
|
|
100482
100482
|
"node_modules/.pnpm/chalk@2.4.2/node_modules/chalk/index.js"(exports, module2) {
|
|
100483
100483
|
"use strict";
|
|
100484
100484
|
var escapeStringRegexp = require_escape_string_regexp();
|
|
100485
|
-
var
|
|
100486
|
-
var
|
|
100485
|
+
var ansiStyles2 = require_ansi_styles2();
|
|
100486
|
+
var stdoutColor2 = require_supports_color2().stdout;
|
|
100487
100487
|
var template = require_templates2();
|
|
100488
100488
|
var isSimpleWindowsTerm = process.platform === "win32" && !(process.env.TERM || "").toLowerCase().startsWith("xterm");
|
|
100489
|
-
var
|
|
100489
|
+
var levelMapping2 = ["ansi", "ansi", "ansi256", "ansi16m"];
|
|
100490
100490
|
var skipModels = /* @__PURE__ */ new Set(["gray"]);
|
|
100491
|
-
var
|
|
100492
|
-
function
|
|
100491
|
+
var styles3 = /* @__PURE__ */ Object.create(null);
|
|
100492
|
+
function applyOptions2(obj, options) {
|
|
100493
100493
|
options = options || {};
|
|
100494
|
-
const scLevel =
|
|
100494
|
+
const scLevel = stdoutColor2 ? stdoutColor2.level : 0;
|
|
100495
100495
|
obj.level = options.level === void 0 ? scLevel : options.level;
|
|
100496
100496
|
obj.enabled = "enabled" in options ? options.enabled : obj.level > 0;
|
|
100497
100497
|
}
|
|
100498
100498
|
function Chalk(options) {
|
|
100499
100499
|
if (!this || !(this instanceof Chalk) || this.template) {
|
|
100500
|
-
const
|
|
100501
|
-
|
|
100502
|
-
|
|
100500
|
+
const chalk2 = {};
|
|
100501
|
+
applyOptions2(chalk2, options);
|
|
100502
|
+
chalk2.template = function() {
|
|
100503
100503
|
const args = [].slice.call(arguments);
|
|
100504
|
-
return chalkTag.apply(null, [
|
|
100504
|
+
return chalkTag.apply(null, [chalk2.template].concat(args));
|
|
100505
100505
|
};
|
|
100506
|
-
Object.setPrototypeOf(
|
|
100507
|
-
Object.setPrototypeOf(
|
|
100508
|
-
|
|
100509
|
-
return
|
|
100506
|
+
Object.setPrototypeOf(chalk2, Chalk.prototype);
|
|
100507
|
+
Object.setPrototypeOf(chalk2.template, chalk2);
|
|
100508
|
+
chalk2.template.constructor = Chalk;
|
|
100509
|
+
return chalk2.template;
|
|
100510
100510
|
}
|
|
100511
|
-
|
|
100511
|
+
applyOptions2(this, options);
|
|
100512
100512
|
}
|
|
100513
100513
|
if (isSimpleWindowsTerm) {
|
|
100514
|
-
|
|
100514
|
+
ansiStyles2.blue.open = "\x1B[94m";
|
|
100515
100515
|
}
|
|
100516
|
-
for (const key of Object.keys(
|
|
100517
|
-
|
|
100518
|
-
|
|
100516
|
+
for (const key of Object.keys(ansiStyles2)) {
|
|
100517
|
+
ansiStyles2[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles2[key].close), "g");
|
|
100518
|
+
styles3[key] = {
|
|
100519
100519
|
get() {
|
|
100520
|
-
const codes =
|
|
100520
|
+
const codes = ansiStyles2[key];
|
|
100521
100521
|
return build2.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key);
|
|
100522
100522
|
}
|
|
100523
100523
|
};
|
|
100524
100524
|
}
|
|
100525
|
-
|
|
100525
|
+
styles3.visible = {
|
|
100526
100526
|
get() {
|
|
100527
100527
|
return build2.call(this, this._styles || [], true, "visible");
|
|
100528
100528
|
}
|
|
100529
100529
|
};
|
|
100530
|
-
|
|
100531
|
-
for (const model of Object.keys(
|
|
100530
|
+
ansiStyles2.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles2.color.close), "g");
|
|
100531
|
+
for (const model of Object.keys(ansiStyles2.color.ansi)) {
|
|
100532
100532
|
if (skipModels.has(model)) {
|
|
100533
100533
|
continue;
|
|
100534
100534
|
}
|
|
100535
|
-
|
|
100535
|
+
styles3[model] = {
|
|
100536
100536
|
get() {
|
|
100537
100537
|
const level = this.level;
|
|
100538
100538
|
return function() {
|
|
100539
|
-
const open =
|
|
100539
|
+
const open = ansiStyles2.color[levelMapping2[level]][model].apply(null, arguments);
|
|
100540
100540
|
const codes = {
|
|
100541
100541
|
open,
|
|
100542
|
-
close:
|
|
100543
|
-
closeRe:
|
|
100542
|
+
close: ansiStyles2.color.close,
|
|
100543
|
+
closeRe: ansiStyles2.color.closeRe
|
|
100544
100544
|
};
|
|
100545
100545
|
return build2.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
|
|
100546
100546
|
};
|
|
100547
100547
|
}
|
|
100548
100548
|
};
|
|
100549
100549
|
}
|
|
100550
|
-
|
|
100551
|
-
for (const model of Object.keys(
|
|
100550
|
+
ansiStyles2.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles2.bgColor.close), "g");
|
|
100551
|
+
for (const model of Object.keys(ansiStyles2.bgColor.ansi)) {
|
|
100552
100552
|
if (skipModels.has(model)) {
|
|
100553
100553
|
continue;
|
|
100554
100554
|
}
|
|
100555
100555
|
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
100556
|
-
|
|
100556
|
+
styles3[bgModel] = {
|
|
100557
100557
|
get() {
|
|
100558
100558
|
const level = this.level;
|
|
100559
100559
|
return function() {
|
|
100560
|
-
const open =
|
|
100560
|
+
const open = ansiStyles2.bgColor[levelMapping2[level]][model].apply(null, arguments);
|
|
100561
100561
|
const codes = {
|
|
100562
100562
|
open,
|
|
100563
|
-
close:
|
|
100564
|
-
closeRe:
|
|
100563
|
+
close: ansiStyles2.bgColor.close,
|
|
100564
|
+
closeRe: ansiStyles2.bgColor.closeRe
|
|
100565
100565
|
};
|
|
100566
100566
|
return build2.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
|
|
100567
100567
|
};
|
|
100568
100568
|
}
|
|
100569
100569
|
};
|
|
100570
100570
|
}
|
|
100571
|
-
var
|
|
100572
|
-
},
|
|
100571
|
+
var proto2 = Object.defineProperties(() => {
|
|
100572
|
+
}, styles3);
|
|
100573
100573
|
function build2(_styles, _empty, key) {
|
|
100574
100574
|
const builder = function() {
|
|
100575
|
-
return
|
|
100575
|
+
return applyStyle2.apply(builder, arguments);
|
|
100576
100576
|
};
|
|
100577
100577
|
builder._styles = _styles;
|
|
100578
100578
|
builder._empty = _empty;
|
|
@@ -100596,10 +100596,10 @@ var require_chalk = __commonJS({
|
|
|
100596
100596
|
}
|
|
100597
100597
|
});
|
|
100598
100598
|
builder.hasGrey = this.hasGrey || key === "gray" || key === "grey";
|
|
100599
|
-
builder.__proto__ =
|
|
100599
|
+
builder.__proto__ = proto2;
|
|
100600
100600
|
return builder;
|
|
100601
100601
|
}
|
|
100602
|
-
function
|
|
100602
|
+
function applyStyle2() {
|
|
100603
100603
|
const args = arguments;
|
|
100604
100604
|
const argsLen = args.length;
|
|
100605
100605
|
let str = String(arguments[0]);
|
|
@@ -100614,18 +100614,18 @@ var require_chalk = __commonJS({
|
|
|
100614
100614
|
if (!this.enabled || this.level <= 0 || !str) {
|
|
100615
100615
|
return this._empty ? "" : str;
|
|
100616
100616
|
}
|
|
100617
|
-
const originalDim =
|
|
100617
|
+
const originalDim = ansiStyles2.dim.open;
|
|
100618
100618
|
if (isSimpleWindowsTerm && this.hasGrey) {
|
|
100619
|
-
|
|
100619
|
+
ansiStyles2.dim.open = "";
|
|
100620
100620
|
}
|
|
100621
100621
|
for (const code of this._styles.slice().reverse()) {
|
|
100622
100622
|
str = code.open + str.replace(code.closeRe, code.open) + code.close;
|
|
100623
100623
|
str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`);
|
|
100624
100624
|
}
|
|
100625
|
-
|
|
100625
|
+
ansiStyles2.dim.open = originalDim;
|
|
100626
100626
|
return str;
|
|
100627
100627
|
}
|
|
100628
|
-
function chalkTag(
|
|
100628
|
+
function chalkTag(chalk2, strings) {
|
|
100629
100629
|
if (!Array.isArray(strings)) {
|
|
100630
100630
|
return [].slice.call(arguments, 1).join(" ");
|
|
100631
100631
|
}
|
|
@@ -100635,11 +100635,11 @@ var require_chalk = __commonJS({
|
|
|
100635
100635
|
parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
|
100636
100636
|
parts.push(String(strings.raw[i]));
|
|
100637
100637
|
}
|
|
100638
|
-
return template(
|
|
100638
|
+
return template(chalk2, parts.join(""));
|
|
100639
100639
|
}
|
|
100640
|
-
Object.defineProperties(Chalk.prototype,
|
|
100640
|
+
Object.defineProperties(Chalk.prototype, styles3);
|
|
100641
100641
|
module2.exports = Chalk();
|
|
100642
|
-
module2.exports.supportsColor =
|
|
100642
|
+
module2.exports.supportsColor = stdoutColor2;
|
|
100643
100643
|
module2.exports.default = module2.exports;
|
|
100644
100644
|
}
|
|
100645
100645
|
});
|
|
@@ -100695,17 +100695,17 @@ var require_lib5 = __commonJS({
|
|
|
100695
100695
|
return newObj;
|
|
100696
100696
|
}
|
|
100697
100697
|
var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
|
|
100698
|
-
function getDefs(
|
|
100698
|
+
function getDefs(chalk2) {
|
|
100699
100699
|
return {
|
|
100700
|
-
keyword:
|
|
100701
|
-
capitalized:
|
|
100702
|
-
jsxIdentifier:
|
|
100703
|
-
punctuator:
|
|
100704
|
-
number:
|
|
100705
|
-
string:
|
|
100706
|
-
regex:
|
|
100707
|
-
comment:
|
|
100708
|
-
invalid:
|
|
100700
|
+
keyword: chalk2.cyan,
|
|
100701
|
+
capitalized: chalk2.yellow,
|
|
100702
|
+
jsxIdentifier: chalk2.yellow,
|
|
100703
|
+
punctuator: chalk2.yellow,
|
|
100704
|
+
number: chalk2.magenta,
|
|
100705
|
+
string: chalk2.green,
|
|
100706
|
+
regex: chalk2.magenta,
|
|
100707
|
+
comment: chalk2.grey,
|
|
100708
|
+
invalid: chalk2.white.bgRed.bold
|
|
100709
100709
|
};
|
|
100710
100710
|
}
|
|
100711
100711
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -100850,11 +100850,11 @@ var require_lib6 = __commonJS({
|
|
|
100850
100850
|
return _chalk.default;
|
|
100851
100851
|
}
|
|
100852
100852
|
var deprecationWarningShown = false;
|
|
100853
|
-
function getDefs(
|
|
100853
|
+
function getDefs(chalk2) {
|
|
100854
100854
|
return {
|
|
100855
|
-
gutter:
|
|
100856
|
-
marker:
|
|
100857
|
-
message:
|
|
100855
|
+
gutter: chalk2.grey,
|
|
100856
|
+
marker: chalk2.red.bold,
|
|
100857
|
+
message: chalk2.red.bold
|
|
100858
100858
|
};
|
|
100859
100859
|
}
|
|
100860
100860
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -100916,8 +100916,8 @@ var require_lib6 = __commonJS({
|
|
|
100916
100916
|
}
|
|
100917
100917
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
100918
100918
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
100919
|
-
const
|
|
100920
|
-
const defs = getDefs(
|
|
100919
|
+
const chalk2 = getChalk(opts.forceColor);
|
|
100920
|
+
const defs = getDefs(chalk2);
|
|
100921
100921
|
const maybeHighlight = (chalkFn, string) => {
|
|
100922
100922
|
return highlighted ? chalkFn(string) : string;
|
|
100923
100923
|
};
|
|
@@ -100956,7 +100956,7 @@ var require_lib6 = __commonJS({
|
|
|
100956
100956
|
${frame}`;
|
|
100957
100957
|
}
|
|
100958
100958
|
if (highlighted) {
|
|
100959
|
-
return
|
|
100959
|
+
return chalk2.reset(frame);
|
|
100960
100960
|
} else {
|
|
100961
100961
|
return frame;
|
|
100962
100962
|
}
|
|
@@ -104155,10 +104155,10 @@ var require_env_paths = __commonJS({
|
|
|
104155
104155
|
"node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports, module2) {
|
|
104156
104156
|
"use strict";
|
|
104157
104157
|
var path2 = require("path");
|
|
104158
|
-
var
|
|
104159
|
-
var homedir =
|
|
104160
|
-
var tmpdir =
|
|
104161
|
-
var { env } = process;
|
|
104158
|
+
var os2 = require("os");
|
|
104159
|
+
var homedir = os2.homedir();
|
|
104160
|
+
var tmpdir = os2.tmpdir();
|
|
104161
|
+
var { env: env2 } = process;
|
|
104162
104162
|
var macos = (name) => {
|
|
104163
104163
|
const library = path2.join(homedir, "Library");
|
|
104164
104164
|
return {
|
|
@@ -104170,8 +104170,8 @@ var require_env_paths = __commonJS({
|
|
|
104170
104170
|
};
|
|
104171
104171
|
};
|
|
104172
104172
|
var windows = (name) => {
|
|
104173
|
-
const appData =
|
|
104174
|
-
const localAppData =
|
|
104173
|
+
const appData = env2.APPDATA || path2.join(homedir, "AppData", "Roaming");
|
|
104174
|
+
const localAppData = env2.LOCALAPPDATA || path2.join(homedir, "AppData", "Local");
|
|
104175
104175
|
return {
|
|
104176
104176
|
// Data/config/cache/log are invented by me as Windows isn't opinionated about this
|
|
104177
104177
|
data: path2.join(localAppData, name, "Data"),
|
|
@@ -104184,11 +104184,11 @@ var require_env_paths = __commonJS({
|
|
|
104184
104184
|
var linux = (name) => {
|
|
104185
104185
|
const username = path2.basename(homedir);
|
|
104186
104186
|
return {
|
|
104187
|
-
data: path2.join(
|
|
104188
|
-
config: path2.join(
|
|
104189
|
-
cache: path2.join(
|
|
104187
|
+
data: path2.join(env2.XDG_DATA_HOME || path2.join(homedir, ".local", "share"), name),
|
|
104188
|
+
config: path2.join(env2.XDG_CONFIG_HOME || path2.join(homedir, ".config"), name),
|
|
104189
|
+
cache: path2.join(env2.XDG_CACHE_HOME || path2.join(homedir, ".cache"), name),
|
|
104190
104190
|
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
104191
|
-
log: path2.join(
|
|
104191
|
+
log: path2.join(env2.XDG_STATE_HOME || path2.join(homedir, ".local", "state"), name),
|
|
104192
104192
|
temp: path2.join(tmpdir, username, name)
|
|
104193
104193
|
};
|
|
104194
104194
|
};
|
|
@@ -105003,10 +105003,10 @@ var environmentPlugin = (data) => ({
|
|
|
105003
105003
|
name: PLUGIN_NAME2,
|
|
105004
105004
|
async setup(build2) {
|
|
105005
105005
|
const entries = Array.isArray(data) ? data.map((key) => [key, ""]) : Object.entries(data);
|
|
105006
|
-
const
|
|
105006
|
+
const env2 = Object.fromEntries(entries.map(([key, defaultValue]) => {
|
|
105007
105007
|
return [key, String(process.env[key] ?? defaultValue)];
|
|
105008
105008
|
}));
|
|
105009
|
-
await definePlugin({ process: { env } }).setup(build2);
|
|
105009
|
+
await definePlugin({ process: { env: env2 } }).setup(build2);
|
|
105010
105010
|
}
|
|
105011
105011
|
});
|
|
105012
105012
|
|
|
@@ -109980,7 +109980,7 @@ var PathScurryBase = class {
|
|
|
109980
109980
|
const dirs = /* @__PURE__ */ new Set();
|
|
109981
109981
|
const queue = [entry];
|
|
109982
109982
|
let processing = 0;
|
|
109983
|
-
const
|
|
109983
|
+
const process3 = () => {
|
|
109984
109984
|
let paused = false;
|
|
109985
109985
|
while (!paused) {
|
|
109986
109986
|
const dir = queue.shift();
|
|
@@ -110021,9 +110021,9 @@ var PathScurryBase = class {
|
|
|
110021
110021
|
}
|
|
110022
110022
|
}
|
|
110023
110023
|
if (paused && !results.flowing) {
|
|
110024
|
-
results.once("drain",
|
|
110024
|
+
results.once("drain", process3);
|
|
110025
110025
|
} else if (!sync2) {
|
|
110026
|
-
|
|
110026
|
+
process3();
|
|
110027
110027
|
}
|
|
110028
110028
|
};
|
|
110029
110029
|
let sync2 = true;
|
|
@@ -110031,7 +110031,7 @@ var PathScurryBase = class {
|
|
|
110031
110031
|
sync2 = false;
|
|
110032
110032
|
}
|
|
110033
110033
|
};
|
|
110034
|
-
|
|
110034
|
+
process3();
|
|
110035
110035
|
return results;
|
|
110036
110036
|
}
|
|
110037
110037
|
streamSync(entry = this.cwd, opts = {}) {
|
|
@@ -110049,7 +110049,7 @@ var PathScurryBase = class {
|
|
|
110049
110049
|
}
|
|
110050
110050
|
const queue = [entry];
|
|
110051
110051
|
let processing = 0;
|
|
110052
|
-
const
|
|
110052
|
+
const process3 = () => {
|
|
110053
110053
|
let paused = false;
|
|
110054
110054
|
while (!paused) {
|
|
110055
110055
|
const dir = queue.shift();
|
|
@@ -110083,9 +110083,9 @@ var PathScurryBase = class {
|
|
|
110083
110083
|
}
|
|
110084
110084
|
}
|
|
110085
110085
|
if (paused && !results.flowing)
|
|
110086
|
-
results.once("drain",
|
|
110086
|
+
results.once("drain", process3);
|
|
110087
110087
|
};
|
|
110088
|
-
|
|
110088
|
+
process3();
|
|
110089
110089
|
return results;
|
|
110090
110090
|
}
|
|
110091
110091
|
chdir(path2 = this.cwd) {
|
|
@@ -115138,6 +115138,495 @@ var setConfigEnv = (config) => {
|
|
|
115138
115138
|
});
|
|
115139
115139
|
};
|
|
115140
115140
|
|
|
115141
|
+
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
115142
|
+
var ANSI_BACKGROUND_OFFSET = 10;
|
|
115143
|
+
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
115144
|
+
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
115145
|
+
var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
115146
|
+
var styles = {
|
|
115147
|
+
modifier: {
|
|
115148
|
+
reset: [0, 0],
|
|
115149
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
115150
|
+
bold: [1, 22],
|
|
115151
|
+
dim: [2, 22],
|
|
115152
|
+
italic: [3, 23],
|
|
115153
|
+
underline: [4, 24],
|
|
115154
|
+
overline: [53, 55],
|
|
115155
|
+
inverse: [7, 27],
|
|
115156
|
+
hidden: [8, 28],
|
|
115157
|
+
strikethrough: [9, 29]
|
|
115158
|
+
},
|
|
115159
|
+
color: {
|
|
115160
|
+
black: [30, 39],
|
|
115161
|
+
red: [31, 39],
|
|
115162
|
+
green: [32, 39],
|
|
115163
|
+
yellow: [33, 39],
|
|
115164
|
+
blue: [34, 39],
|
|
115165
|
+
magenta: [35, 39],
|
|
115166
|
+
cyan: [36, 39],
|
|
115167
|
+
white: [37, 39],
|
|
115168
|
+
// Bright color
|
|
115169
|
+
blackBright: [90, 39],
|
|
115170
|
+
gray: [90, 39],
|
|
115171
|
+
// Alias of `blackBright`
|
|
115172
|
+
grey: [90, 39],
|
|
115173
|
+
// Alias of `blackBright`
|
|
115174
|
+
redBright: [91, 39],
|
|
115175
|
+
greenBright: [92, 39],
|
|
115176
|
+
yellowBright: [93, 39],
|
|
115177
|
+
blueBright: [94, 39],
|
|
115178
|
+
magentaBright: [95, 39],
|
|
115179
|
+
cyanBright: [96, 39],
|
|
115180
|
+
whiteBright: [97, 39]
|
|
115181
|
+
},
|
|
115182
|
+
bgColor: {
|
|
115183
|
+
bgBlack: [40, 49],
|
|
115184
|
+
bgRed: [41, 49],
|
|
115185
|
+
bgGreen: [42, 49],
|
|
115186
|
+
bgYellow: [43, 49],
|
|
115187
|
+
bgBlue: [44, 49],
|
|
115188
|
+
bgMagenta: [45, 49],
|
|
115189
|
+
bgCyan: [46, 49],
|
|
115190
|
+
bgWhite: [47, 49],
|
|
115191
|
+
// Bright color
|
|
115192
|
+
bgBlackBright: [100, 49],
|
|
115193
|
+
bgGray: [100, 49],
|
|
115194
|
+
// Alias of `bgBlackBright`
|
|
115195
|
+
bgGrey: [100, 49],
|
|
115196
|
+
// Alias of `bgBlackBright`
|
|
115197
|
+
bgRedBright: [101, 49],
|
|
115198
|
+
bgGreenBright: [102, 49],
|
|
115199
|
+
bgYellowBright: [103, 49],
|
|
115200
|
+
bgBlueBright: [104, 49],
|
|
115201
|
+
bgMagentaBright: [105, 49],
|
|
115202
|
+
bgCyanBright: [106, 49],
|
|
115203
|
+
bgWhiteBright: [107, 49]
|
|
115204
|
+
}
|
|
115205
|
+
};
|
|
115206
|
+
var modifierNames = Object.keys(styles.modifier);
|
|
115207
|
+
var foregroundColorNames = Object.keys(styles.color);
|
|
115208
|
+
var backgroundColorNames = Object.keys(styles.bgColor);
|
|
115209
|
+
var colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
115210
|
+
function assembleStyles() {
|
|
115211
|
+
const codes = /* @__PURE__ */ new Map();
|
|
115212
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
115213
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
115214
|
+
styles[styleName] = {
|
|
115215
|
+
open: `\x1B[${style[0]}m`,
|
|
115216
|
+
close: `\x1B[${style[1]}m`
|
|
115217
|
+
};
|
|
115218
|
+
group[styleName] = styles[styleName];
|
|
115219
|
+
codes.set(style[0], style[1]);
|
|
115220
|
+
}
|
|
115221
|
+
Object.defineProperty(styles, groupName, {
|
|
115222
|
+
value: group,
|
|
115223
|
+
enumerable: false
|
|
115224
|
+
});
|
|
115225
|
+
}
|
|
115226
|
+
Object.defineProperty(styles, "codes", {
|
|
115227
|
+
value: codes,
|
|
115228
|
+
enumerable: false
|
|
115229
|
+
});
|
|
115230
|
+
styles.color.close = "\x1B[39m";
|
|
115231
|
+
styles.bgColor.close = "\x1B[49m";
|
|
115232
|
+
styles.color.ansi = wrapAnsi16();
|
|
115233
|
+
styles.color.ansi256 = wrapAnsi256();
|
|
115234
|
+
styles.color.ansi16m = wrapAnsi16m();
|
|
115235
|
+
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
115236
|
+
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
115237
|
+
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
115238
|
+
Object.defineProperties(styles, {
|
|
115239
|
+
rgbToAnsi256: {
|
|
115240
|
+
value(red, green, blue) {
|
|
115241
|
+
if (red === green && green === blue) {
|
|
115242
|
+
if (red < 8) {
|
|
115243
|
+
return 16;
|
|
115244
|
+
}
|
|
115245
|
+
if (red > 248) {
|
|
115246
|
+
return 231;
|
|
115247
|
+
}
|
|
115248
|
+
return Math.round((red - 8) / 247 * 24) + 232;
|
|
115249
|
+
}
|
|
115250
|
+
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
115251
|
+
},
|
|
115252
|
+
enumerable: false
|
|
115253
|
+
},
|
|
115254
|
+
hexToRgb: {
|
|
115255
|
+
value(hex) {
|
|
115256
|
+
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
115257
|
+
if (!matches) {
|
|
115258
|
+
return [0, 0, 0];
|
|
115259
|
+
}
|
|
115260
|
+
let [colorString] = matches;
|
|
115261
|
+
if (colorString.length === 3) {
|
|
115262
|
+
colorString = [...colorString].map((character) => character + character).join("");
|
|
115263
|
+
}
|
|
115264
|
+
const integer = Number.parseInt(colorString, 16);
|
|
115265
|
+
return [
|
|
115266
|
+
/* eslint-disable no-bitwise */
|
|
115267
|
+
integer >> 16 & 255,
|
|
115268
|
+
integer >> 8 & 255,
|
|
115269
|
+
integer & 255
|
|
115270
|
+
/* eslint-enable no-bitwise */
|
|
115271
|
+
];
|
|
115272
|
+
},
|
|
115273
|
+
enumerable: false
|
|
115274
|
+
},
|
|
115275
|
+
hexToAnsi256: {
|
|
115276
|
+
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
115277
|
+
enumerable: false
|
|
115278
|
+
},
|
|
115279
|
+
ansi256ToAnsi: {
|
|
115280
|
+
value(code) {
|
|
115281
|
+
if (code < 8) {
|
|
115282
|
+
return 30 + code;
|
|
115283
|
+
}
|
|
115284
|
+
if (code < 16) {
|
|
115285
|
+
return 90 + (code - 8);
|
|
115286
|
+
}
|
|
115287
|
+
let red;
|
|
115288
|
+
let green;
|
|
115289
|
+
let blue;
|
|
115290
|
+
if (code >= 232) {
|
|
115291
|
+
red = ((code - 232) * 10 + 8) / 255;
|
|
115292
|
+
green = red;
|
|
115293
|
+
blue = red;
|
|
115294
|
+
} else {
|
|
115295
|
+
code -= 16;
|
|
115296
|
+
const remainder = code % 36;
|
|
115297
|
+
red = Math.floor(code / 36) / 5;
|
|
115298
|
+
green = Math.floor(remainder / 6) / 5;
|
|
115299
|
+
blue = remainder % 6 / 5;
|
|
115300
|
+
}
|
|
115301
|
+
const value = Math.max(red, green, blue) * 2;
|
|
115302
|
+
if (value === 0) {
|
|
115303
|
+
return 30;
|
|
115304
|
+
}
|
|
115305
|
+
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
115306
|
+
if (value === 2) {
|
|
115307
|
+
result += 60;
|
|
115308
|
+
}
|
|
115309
|
+
return result;
|
|
115310
|
+
},
|
|
115311
|
+
enumerable: false
|
|
115312
|
+
},
|
|
115313
|
+
rgbToAnsi: {
|
|
115314
|
+
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
115315
|
+
enumerable: false
|
|
115316
|
+
},
|
|
115317
|
+
hexToAnsi: {
|
|
115318
|
+
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
115319
|
+
enumerable: false
|
|
115320
|
+
}
|
|
115321
|
+
});
|
|
115322
|
+
return styles;
|
|
115323
|
+
}
|
|
115324
|
+
var ansiStyles = assembleStyles();
|
|
115325
|
+
var ansi_styles_default = ansiStyles;
|
|
115326
|
+
|
|
115327
|
+
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
115328
|
+
var import_node_process = __toESM(require("node:process"), 1);
|
|
115329
|
+
var import_node_os = __toESM(require("node:os"), 1);
|
|
115330
|
+
var import_node_tty = __toESM(require("node:tty"), 1);
|
|
115331
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
|
|
115332
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
115333
|
+
const position = argv.indexOf(prefix + flag);
|
|
115334
|
+
const terminatorPosition = argv.indexOf("--");
|
|
115335
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
115336
|
+
}
|
|
115337
|
+
var { env } = import_node_process.default;
|
|
115338
|
+
var flagForceColor;
|
|
115339
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
115340
|
+
flagForceColor = 0;
|
|
115341
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
115342
|
+
flagForceColor = 1;
|
|
115343
|
+
}
|
|
115344
|
+
function envForceColor() {
|
|
115345
|
+
if ("FORCE_COLOR" in env) {
|
|
115346
|
+
if (env.FORCE_COLOR === "true") {
|
|
115347
|
+
return 1;
|
|
115348
|
+
}
|
|
115349
|
+
if (env.FORCE_COLOR === "false") {
|
|
115350
|
+
return 0;
|
|
115351
|
+
}
|
|
115352
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
115353
|
+
}
|
|
115354
|
+
}
|
|
115355
|
+
function translateLevel(level) {
|
|
115356
|
+
if (level === 0) {
|
|
115357
|
+
return false;
|
|
115358
|
+
}
|
|
115359
|
+
return {
|
|
115360
|
+
level,
|
|
115361
|
+
hasBasic: true,
|
|
115362
|
+
has256: level >= 2,
|
|
115363
|
+
has16m: level >= 3
|
|
115364
|
+
};
|
|
115365
|
+
}
|
|
115366
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
115367
|
+
const noFlagForceColor = envForceColor();
|
|
115368
|
+
if (noFlagForceColor !== void 0) {
|
|
115369
|
+
flagForceColor = noFlagForceColor;
|
|
115370
|
+
}
|
|
115371
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
115372
|
+
if (forceColor === 0) {
|
|
115373
|
+
return 0;
|
|
115374
|
+
}
|
|
115375
|
+
if (sniffFlags) {
|
|
115376
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
115377
|
+
return 3;
|
|
115378
|
+
}
|
|
115379
|
+
if (hasFlag("color=256")) {
|
|
115380
|
+
return 2;
|
|
115381
|
+
}
|
|
115382
|
+
}
|
|
115383
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
115384
|
+
return 1;
|
|
115385
|
+
}
|
|
115386
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
115387
|
+
return 0;
|
|
115388
|
+
}
|
|
115389
|
+
const min = forceColor || 0;
|
|
115390
|
+
if (env.TERM === "dumb") {
|
|
115391
|
+
return min;
|
|
115392
|
+
}
|
|
115393
|
+
if (import_node_process.default.platform === "win32") {
|
|
115394
|
+
const osRelease = import_node_os.default.release().split(".");
|
|
115395
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
115396
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
115397
|
+
}
|
|
115398
|
+
return 1;
|
|
115399
|
+
}
|
|
115400
|
+
if ("CI" in env) {
|
|
115401
|
+
if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
|
|
115402
|
+
return 3;
|
|
115403
|
+
}
|
|
115404
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
115405
|
+
return 1;
|
|
115406
|
+
}
|
|
115407
|
+
return min;
|
|
115408
|
+
}
|
|
115409
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
115410
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
115411
|
+
}
|
|
115412
|
+
if (env.COLORTERM === "truecolor") {
|
|
115413
|
+
return 3;
|
|
115414
|
+
}
|
|
115415
|
+
if (env.TERM === "xterm-kitty") {
|
|
115416
|
+
return 3;
|
|
115417
|
+
}
|
|
115418
|
+
if ("TERM_PROGRAM" in env) {
|
|
115419
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
115420
|
+
switch (env.TERM_PROGRAM) {
|
|
115421
|
+
case "iTerm.app": {
|
|
115422
|
+
return version >= 3 ? 3 : 2;
|
|
115423
|
+
}
|
|
115424
|
+
case "Apple_Terminal": {
|
|
115425
|
+
return 2;
|
|
115426
|
+
}
|
|
115427
|
+
}
|
|
115428
|
+
}
|
|
115429
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
115430
|
+
return 2;
|
|
115431
|
+
}
|
|
115432
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
115433
|
+
return 1;
|
|
115434
|
+
}
|
|
115435
|
+
if ("COLORTERM" in env) {
|
|
115436
|
+
return 1;
|
|
115437
|
+
}
|
|
115438
|
+
return min;
|
|
115439
|
+
}
|
|
115440
|
+
function createSupportsColor(stream2, options = {}) {
|
|
115441
|
+
const level = _supportsColor(stream2, {
|
|
115442
|
+
streamIsTTY: stream2 && stream2.isTTY,
|
|
115443
|
+
...options
|
|
115444
|
+
});
|
|
115445
|
+
return translateLevel(level);
|
|
115446
|
+
}
|
|
115447
|
+
var supportsColor = {
|
|
115448
|
+
stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
|
|
115449
|
+
stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
|
|
115450
|
+
};
|
|
115451
|
+
var supports_color_default = supportsColor;
|
|
115452
|
+
|
|
115453
|
+
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/utilities.js
|
|
115454
|
+
function stringReplaceAll(string, substring, replacer) {
|
|
115455
|
+
let index = string.indexOf(substring);
|
|
115456
|
+
if (index === -1) {
|
|
115457
|
+
return string;
|
|
115458
|
+
}
|
|
115459
|
+
const substringLength = substring.length;
|
|
115460
|
+
let endIndex = 0;
|
|
115461
|
+
let returnValue = "";
|
|
115462
|
+
do {
|
|
115463
|
+
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
115464
|
+
endIndex = index + substringLength;
|
|
115465
|
+
index = string.indexOf(substring, endIndex);
|
|
115466
|
+
} while (index !== -1);
|
|
115467
|
+
returnValue += string.slice(endIndex);
|
|
115468
|
+
return returnValue;
|
|
115469
|
+
}
|
|
115470
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
115471
|
+
let endIndex = 0;
|
|
115472
|
+
let returnValue = "";
|
|
115473
|
+
do {
|
|
115474
|
+
const gotCR = string[index - 1] === "\r";
|
|
115475
|
+
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
115476
|
+
endIndex = index + 1;
|
|
115477
|
+
index = string.indexOf("\n", endIndex);
|
|
115478
|
+
} while (index !== -1);
|
|
115479
|
+
returnValue += string.slice(endIndex);
|
|
115480
|
+
return returnValue;
|
|
115481
|
+
}
|
|
115482
|
+
|
|
115483
|
+
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js
|
|
115484
|
+
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
115485
|
+
var GENERATOR = Symbol("GENERATOR");
|
|
115486
|
+
var STYLER = Symbol("STYLER");
|
|
115487
|
+
var IS_EMPTY = Symbol("IS_EMPTY");
|
|
115488
|
+
var levelMapping = [
|
|
115489
|
+
"ansi",
|
|
115490
|
+
"ansi",
|
|
115491
|
+
"ansi256",
|
|
115492
|
+
"ansi16m"
|
|
115493
|
+
];
|
|
115494
|
+
var styles2 = /* @__PURE__ */ Object.create(null);
|
|
115495
|
+
var applyOptions = (object, options = {}) => {
|
|
115496
|
+
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
115497
|
+
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
115498
|
+
}
|
|
115499
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
115500
|
+
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
115501
|
+
};
|
|
115502
|
+
var chalkFactory = (options) => {
|
|
115503
|
+
const chalk2 = (...strings) => strings.join(" ");
|
|
115504
|
+
applyOptions(chalk2, options);
|
|
115505
|
+
Object.setPrototypeOf(chalk2, createChalk.prototype);
|
|
115506
|
+
return chalk2;
|
|
115507
|
+
};
|
|
115508
|
+
function createChalk(options) {
|
|
115509
|
+
return chalkFactory(options);
|
|
115510
|
+
}
|
|
115511
|
+
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
115512
|
+
for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
115513
|
+
styles2[styleName] = {
|
|
115514
|
+
get() {
|
|
115515
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
115516
|
+
Object.defineProperty(this, styleName, { value: builder });
|
|
115517
|
+
return builder;
|
|
115518
|
+
}
|
|
115519
|
+
};
|
|
115520
|
+
}
|
|
115521
|
+
styles2.visible = {
|
|
115522
|
+
get() {
|
|
115523
|
+
const builder = createBuilder(this, this[STYLER], true);
|
|
115524
|
+
Object.defineProperty(this, "visible", { value: builder });
|
|
115525
|
+
return builder;
|
|
115526
|
+
}
|
|
115527
|
+
};
|
|
115528
|
+
var getModelAnsi = (model, level, type, ...arguments_) => {
|
|
115529
|
+
if (model === "rgb") {
|
|
115530
|
+
if (level === "ansi16m") {
|
|
115531
|
+
return ansi_styles_default[type].ansi16m(...arguments_);
|
|
115532
|
+
}
|
|
115533
|
+
if (level === "ansi256") {
|
|
115534
|
+
return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
|
|
115535
|
+
}
|
|
115536
|
+
return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
|
|
115537
|
+
}
|
|
115538
|
+
if (model === "hex") {
|
|
115539
|
+
return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
|
|
115540
|
+
}
|
|
115541
|
+
return ansi_styles_default[type][model](...arguments_);
|
|
115542
|
+
};
|
|
115543
|
+
var usedModels = ["rgb", "hex", "ansi256"];
|
|
115544
|
+
for (const model of usedModels) {
|
|
115545
|
+
styles2[model] = {
|
|
115546
|
+
get() {
|
|
115547
|
+
const { level } = this;
|
|
115548
|
+
return function(...arguments_) {
|
|
115549
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
|
|
115550
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
115551
|
+
};
|
|
115552
|
+
}
|
|
115553
|
+
};
|
|
115554
|
+
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
115555
|
+
styles2[bgModel] = {
|
|
115556
|
+
get() {
|
|
115557
|
+
const { level } = this;
|
|
115558
|
+
return function(...arguments_) {
|
|
115559
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
|
|
115560
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
115561
|
+
};
|
|
115562
|
+
}
|
|
115563
|
+
};
|
|
115564
|
+
}
|
|
115565
|
+
var proto = Object.defineProperties(() => {
|
|
115566
|
+
}, {
|
|
115567
|
+
...styles2,
|
|
115568
|
+
level: {
|
|
115569
|
+
enumerable: true,
|
|
115570
|
+
get() {
|
|
115571
|
+
return this[GENERATOR].level;
|
|
115572
|
+
},
|
|
115573
|
+
set(level) {
|
|
115574
|
+
this[GENERATOR].level = level;
|
|
115575
|
+
}
|
|
115576
|
+
}
|
|
115577
|
+
});
|
|
115578
|
+
var createStyler = (open, close, parent) => {
|
|
115579
|
+
let openAll;
|
|
115580
|
+
let closeAll;
|
|
115581
|
+
if (parent === void 0) {
|
|
115582
|
+
openAll = open;
|
|
115583
|
+
closeAll = close;
|
|
115584
|
+
} else {
|
|
115585
|
+
openAll = parent.openAll + open;
|
|
115586
|
+
closeAll = close + parent.closeAll;
|
|
115587
|
+
}
|
|
115588
|
+
return {
|
|
115589
|
+
open,
|
|
115590
|
+
close,
|
|
115591
|
+
openAll,
|
|
115592
|
+
closeAll,
|
|
115593
|
+
parent
|
|
115594
|
+
};
|
|
115595
|
+
};
|
|
115596
|
+
var createBuilder = (self2, _styler, _isEmpty) => {
|
|
115597
|
+
const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
115598
|
+
Object.setPrototypeOf(builder, proto);
|
|
115599
|
+
builder[GENERATOR] = self2;
|
|
115600
|
+
builder[STYLER] = _styler;
|
|
115601
|
+
builder[IS_EMPTY] = _isEmpty;
|
|
115602
|
+
return builder;
|
|
115603
|
+
};
|
|
115604
|
+
var applyStyle = (self2, string) => {
|
|
115605
|
+
if (self2.level <= 0 || !string) {
|
|
115606
|
+
return self2[IS_EMPTY] ? "" : string;
|
|
115607
|
+
}
|
|
115608
|
+
let styler = self2[STYLER];
|
|
115609
|
+
if (styler === void 0) {
|
|
115610
|
+
return string;
|
|
115611
|
+
}
|
|
115612
|
+
const { openAll, closeAll } = styler;
|
|
115613
|
+
if (string.includes("\x1B")) {
|
|
115614
|
+
while (styler !== void 0) {
|
|
115615
|
+
string = stringReplaceAll(string, styler.close, styler.open);
|
|
115616
|
+
styler = styler.parent;
|
|
115617
|
+
}
|
|
115618
|
+
}
|
|
115619
|
+
const lfIndex = string.indexOf("\n");
|
|
115620
|
+
if (lfIndex !== -1) {
|
|
115621
|
+
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
115622
|
+
}
|
|
115623
|
+
return openAll + string + closeAll;
|
|
115624
|
+
};
|
|
115625
|
+
Object.defineProperties(createChalk.prototype, styles2);
|
|
115626
|
+
var chalk = createChalk();
|
|
115627
|
+
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
115628
|
+
var source_default = chalk;
|
|
115629
|
+
|
|
115141
115630
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
115142
115631
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
115143
115632
|
var getWorkspaceRoot2 = () => {
|
|
@@ -115226,7 +115715,9 @@ var withRunExecutor = (name, executorFn, executorOptions = {
|
|
|
115226
115715
|
}) => async (options, context) => {
|
|
115227
115716
|
const startTime = Date.now();
|
|
115228
115717
|
try {
|
|
115229
|
-
console.info(
|
|
115718
|
+
console.info(
|
|
115719
|
+
source_default.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} executor...`)
|
|
115720
|
+
);
|
|
115230
115721
|
if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
115231
115722
|
throw new Error(
|
|
115232
115723
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -115244,19 +115735,21 @@ var withRunExecutor = (name, executorFn, executorOptions = {
|
|
|
115244
115735
|
});
|
|
115245
115736
|
setConfigEnv(config);
|
|
115246
115737
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug(
|
|
115247
|
-
|
|
115738
|
+
source_default.dim(
|
|
115739
|
+
`Loaded Storm config into env:
|
|
115248
115740
|
${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}`
|
|
115741
|
+
)
|
|
115249
115742
|
);
|
|
115250
115743
|
}
|
|
115251
115744
|
if (executorOptions?.hooks?.applyDefaultOptions) {
|
|
115252
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Running the applyDefaultOptions hook...`);
|
|
115745
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Running the applyDefaultOptions hook...`));
|
|
115253
115746
|
options = await Promise.resolve(
|
|
115254
115747
|
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
115255
115748
|
);
|
|
115256
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Completed the applyDefaultOptions hook...`);
|
|
115749
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Completed the applyDefaultOptions hook...`));
|
|
115257
115750
|
}
|
|
115258
|
-
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug(`\u2699\uFE0F Executor schema options:
|
|
115259
|
-
|
|
115751
|
+
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug(source_default.dim(`\u2699\uFE0F Executor schema options:
|
|
115752
|
+
`), options);
|
|
115260
115753
|
const tokenized = applyWorkspaceTokens(
|
|
115261
115754
|
options,
|
|
115262
115755
|
{
|
|
@@ -115271,11 +115764,11 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
|
|
|
115271
115764
|
applyWorkspaceExecutorTokens
|
|
115272
115765
|
);
|
|
115273
115766
|
if (executorOptions?.hooks?.preProcess) {
|
|
115274
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Running the preProcess hook...`);
|
|
115767
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Running the preProcess hook...`));
|
|
115275
115768
|
await Promise.resolve(
|
|
115276
115769
|
executorOptions.hooks.preProcess(tokenized, config)
|
|
115277
115770
|
);
|
|
115278
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Completed the preProcess hook...`);
|
|
115771
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Completed the preProcess hook...`));
|
|
115279
115772
|
}
|
|
115280
115773
|
const result = await Promise.resolve(
|
|
115281
115774
|
executorFn(tokenized, context, config)
|
|
@@ -115286,22 +115779,34 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
|
|
|
115286
115779
|
});
|
|
115287
115780
|
}
|
|
115288
115781
|
if (executorOptions?.hooks?.postProcess) {
|
|
115289
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Running the postProcess hook...`);
|
|
115782
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Running the postProcess hook...`));
|
|
115290
115783
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
115291
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Completed the postProcess hook...`);
|
|
115784
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Completed the postProcess hook...`));
|
|
115292
115785
|
}
|
|
115293
|
-
console.info(
|
|
115786
|
+
console.info(
|
|
115787
|
+
source_default.bold.hex("#087f5b")(
|
|
115788
|
+
`\u{1F389} Successfully completed running the ${name} executor!`
|
|
115789
|
+
)
|
|
115790
|
+
);
|
|
115294
115791
|
return {
|
|
115295
115792
|
success: true
|
|
115296
115793
|
};
|
|
115297
115794
|
} catch (error) {
|
|
115298
|
-
console.error(
|
|
115299
|
-
|
|
115795
|
+
console.error(
|
|
115796
|
+
source_default.bold.hex("#7d1a1a")(
|
|
115797
|
+
`\u274C An error occurred while running the executor`
|
|
115798
|
+
)
|
|
115799
|
+
);
|
|
115800
|
+
console.error(source_default.bold.hex("#7d1a1a")(error));
|
|
115300
115801
|
return {
|
|
115301
115802
|
success: false
|
|
115302
115803
|
};
|
|
115303
115804
|
} finally {
|
|
115304
|
-
console.info(
|
|
115805
|
+
console.info(
|
|
115806
|
+
source_default.dim(
|
|
115807
|
+
`\u23F1\uFE0F The${name ? ` ${name}` : ""} generator took ${Date.now() - startTime}ms to complete`
|
|
115808
|
+
)
|
|
115809
|
+
);
|
|
115305
115810
|
}
|
|
115306
115811
|
};
|
|
115307
115812
|
|
|
@@ -115328,7 +115833,7 @@ function modernConfig({
|
|
|
115328
115833
|
docModel = true,
|
|
115329
115834
|
tsdocMetadata = true,
|
|
115330
115835
|
define: define2,
|
|
115331
|
-
env,
|
|
115836
|
+
env: env2,
|
|
115332
115837
|
plugins,
|
|
115333
115838
|
dtsTsConfig
|
|
115334
115839
|
}) {
|
|
@@ -115358,7 +115863,7 @@ function modernConfig({
|
|
|
115358
115863
|
platform,
|
|
115359
115864
|
banner,
|
|
115360
115865
|
define: define2,
|
|
115361
|
-
env,
|
|
115866
|
+
env: env2,
|
|
115362
115867
|
dts: false,
|
|
115363
115868
|
experimentalDts: {
|
|
115364
115869
|
entry,
|
|
@@ -115392,7 +115897,7 @@ function legacyConfig({
|
|
|
115392
115897
|
platform = "neutral",
|
|
115393
115898
|
verbose = false,
|
|
115394
115899
|
define: define2,
|
|
115395
|
-
env,
|
|
115900
|
+
env: env2,
|
|
115396
115901
|
plugins,
|
|
115397
115902
|
dtsTsConfig
|
|
115398
115903
|
}) {
|
|
@@ -115414,7 +115919,7 @@ function legacyConfig({
|
|
|
115414
115919
|
platform,
|
|
115415
115920
|
banner,
|
|
115416
115921
|
define: define2,
|
|
115417
|
-
env,
|
|
115922
|
+
env: env2,
|
|
115418
115923
|
dts: false,
|
|
115419
115924
|
experimentalDts: {
|
|
115420
115925
|
entry,
|
|
@@ -115450,7 +115955,7 @@ function workerConfig({
|
|
|
115450
115955
|
docModel = true,
|
|
115451
115956
|
tsdocMetadata = true,
|
|
115452
115957
|
define: define2,
|
|
115453
|
-
env,
|
|
115958
|
+
env: env2,
|
|
115454
115959
|
plugins,
|
|
115455
115960
|
dtsTsConfig
|
|
115456
115961
|
}) {
|
|
@@ -115472,7 +115977,7 @@ function workerConfig({
|
|
|
115472
115977
|
platform: "browser",
|
|
115473
115978
|
banner,
|
|
115474
115979
|
define: define2,
|
|
115475
|
-
env,
|
|
115980
|
+
env: env2,
|
|
115476
115981
|
dts: false,
|
|
115477
115982
|
experimentalDts: {
|
|
115478
115983
|
entry,
|
|
@@ -115507,7 +116012,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
115507
116012
|
docModel,
|
|
115508
116013
|
tsdocMetadata,
|
|
115509
116014
|
define: define2,
|
|
115510
|
-
env,
|
|
116015
|
+
env: env2,
|
|
115511
116016
|
verbose,
|
|
115512
116017
|
dtsTsConfig,
|
|
115513
116018
|
plugins,
|
|
@@ -115548,7 +116053,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
115548
116053
|
docModel,
|
|
115549
116054
|
tsdocMetadata,
|
|
115550
116055
|
define: define2,
|
|
115551
|
-
env,
|
|
116056
|
+
env: env2,
|
|
115552
116057
|
options,
|
|
115553
116058
|
plugins,
|
|
115554
116059
|
dtsTsConfig
|