@storm-software/workspace-tools 1.21.7 → 1.21.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/index.js +1125 -599
- 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 +2470 -1828
- package/src/executors/tsup-neutral/schema.d.ts +2 -2
- package/src/executors/tsup-node/executor.js +941 -436
- 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
|
}
|
|
@@ -6892,16 +6892,16 @@ var require_rimraf = __commonJS({
|
|
|
6892
6892
|
var require_tmp = __commonJS({
|
|
6893
6893
|
"node_modules/.pnpm/tmp@0.2.1/node_modules/tmp/lib/tmp.js"(exports, module2) {
|
|
6894
6894
|
var fs = require("fs");
|
|
6895
|
-
var
|
|
6895
|
+
var os2 = require("os");
|
|
6896
6896
|
var path = require("path");
|
|
6897
6897
|
var crypto = require("crypto");
|
|
6898
|
-
var _c = { fs: fs.constants, os:
|
|
6898
|
+
var _c = { fs: fs.constants, os: os2.constants };
|
|
6899
6899
|
var rimraf = require_rimraf();
|
|
6900
6900
|
var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
6901
6901
|
var TEMPLATE_PATTERN = /XXXXXX/;
|
|
6902
6902
|
var DEFAULT_TRIES = 3;
|
|
6903
6903
|
var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR);
|
|
6904
|
-
var IS_WIN32 =
|
|
6904
|
+
var IS_WIN32 = os2.platform() === "win32";
|
|
6905
6905
|
var EBADF = _c.EBADF || _c.os.errno.EBADF;
|
|
6906
6906
|
var ENOENT = _c.ENOENT || _c.os.errno.ENOENT;
|
|
6907
6907
|
var DIR_MODE = 448;
|
|
@@ -7198,7 +7198,7 @@ var require_tmp = __commonJS({
|
|
|
7198
7198
|
_gracefulCleanup = true;
|
|
7199
7199
|
}
|
|
7200
7200
|
function _getTmpDir(options) {
|
|
7201
|
-
return path.resolve(_sanitizeName(options && options.tmpdir ||
|
|
7201
|
+
return path.resolve(_sanitizeName(options && options.tmpdir || os2.tmpdir()));
|
|
7202
7202
|
}
|
|
7203
7203
|
process.addListener(EXIT, _garbageCollector);
|
|
7204
7204
|
Object.defineProperty(module2.exports, "tmpdir", {
|
|
@@ -11571,7 +11571,7 @@ var require_innerFrom = __commonJS({
|
|
|
11571
11571
|
exports.fromIterable = fromIterable;
|
|
11572
11572
|
function fromAsyncIterable(asyncIterable) {
|
|
11573
11573
|
return new Observable_1.Observable(function(subscriber) {
|
|
11574
|
-
|
|
11574
|
+
process3(asyncIterable, subscriber).catch(function(err) {
|
|
11575
11575
|
return subscriber.error(err);
|
|
11576
11576
|
});
|
|
11577
11577
|
});
|
|
@@ -11581,7 +11581,7 @@ var require_innerFrom = __commonJS({
|
|
|
11581
11581
|
return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
|
|
11582
11582
|
}
|
|
11583
11583
|
exports.fromReadableStreamLike = fromReadableStreamLike;
|
|
11584
|
-
function
|
|
11584
|
+
function process3(asyncIterable, subscriber) {
|
|
11585
11585
|
var asyncIterable_1, asyncIterable_1_1;
|
|
11586
11586
|
var e_2, _a;
|
|
11587
11587
|
return __awaiter2(this, void 0, void 0, function() {
|
|
@@ -19871,21 +19871,21 @@ var require_ansi_styles = __commonJS({
|
|
|
19871
19871
|
"node_modules/.pnpm/ansi-styles@3.2.1/node_modules/ansi-styles/index.js"(exports, module2) {
|
|
19872
19872
|
"use strict";
|
|
19873
19873
|
var colorConvert = require_color_convert();
|
|
19874
|
-
var
|
|
19874
|
+
var wrapAnsi162 = (fn, offset) => function() {
|
|
19875
19875
|
const code = fn.apply(colorConvert, arguments);
|
|
19876
19876
|
return `\x1B[${code + offset}m`;
|
|
19877
19877
|
};
|
|
19878
|
-
var
|
|
19878
|
+
var wrapAnsi2562 = (fn, offset) => function() {
|
|
19879
19879
|
const code = fn.apply(colorConvert, arguments);
|
|
19880
19880
|
return `\x1B[${38 + offset};5;${code}m`;
|
|
19881
19881
|
};
|
|
19882
|
-
var
|
|
19882
|
+
var wrapAnsi16m2 = (fn, offset) => function() {
|
|
19883
19883
|
const rgb = fn.apply(colorConvert, arguments);
|
|
19884
19884
|
return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
19885
19885
|
};
|
|
19886
|
-
function
|
|
19886
|
+
function assembleStyles2() {
|
|
19887
19887
|
const codes = /* @__PURE__ */ new Map();
|
|
19888
|
-
const
|
|
19888
|
+
const styles3 = {
|
|
19889
19889
|
modifier: {
|
|
19890
19890
|
reset: [0, 0],
|
|
19891
19891
|
// 21 isn't widely supported and 22 does the same thing
|
|
@@ -19936,48 +19936,48 @@ var require_ansi_styles = __commonJS({
|
|
|
19936
19936
|
bgWhiteBright: [107, 49]
|
|
19937
19937
|
}
|
|
19938
19938
|
};
|
|
19939
|
-
|
|
19940
|
-
for (const groupName of Object.keys(
|
|
19941
|
-
const group =
|
|
19939
|
+
styles3.color.grey = styles3.color.gray;
|
|
19940
|
+
for (const groupName of Object.keys(styles3)) {
|
|
19941
|
+
const group = styles3[groupName];
|
|
19942
19942
|
for (const styleName of Object.keys(group)) {
|
|
19943
19943
|
const style = group[styleName];
|
|
19944
|
-
|
|
19944
|
+
styles3[styleName] = {
|
|
19945
19945
|
open: `\x1B[${style[0]}m`,
|
|
19946
19946
|
close: `\x1B[${style[1]}m`
|
|
19947
19947
|
};
|
|
19948
|
-
group[styleName] =
|
|
19948
|
+
group[styleName] = styles3[styleName];
|
|
19949
19949
|
codes.set(style[0], style[1]);
|
|
19950
19950
|
}
|
|
19951
|
-
Object.defineProperty(
|
|
19951
|
+
Object.defineProperty(styles3, groupName, {
|
|
19952
19952
|
value: group,
|
|
19953
19953
|
enumerable: false
|
|
19954
19954
|
});
|
|
19955
|
-
Object.defineProperty(
|
|
19955
|
+
Object.defineProperty(styles3, "codes", {
|
|
19956
19956
|
value: codes,
|
|
19957
19957
|
enumerable: false
|
|
19958
19958
|
});
|
|
19959
19959
|
}
|
|
19960
19960
|
const ansi2ansi = (n) => n;
|
|
19961
19961
|
const rgb2rgb = (r, g, b) => [r, g, b];
|
|
19962
|
-
|
|
19963
|
-
|
|
19964
|
-
|
|
19965
|
-
ansi:
|
|
19962
|
+
styles3.color.close = "\x1B[39m";
|
|
19963
|
+
styles3.bgColor.close = "\x1B[49m";
|
|
19964
|
+
styles3.color.ansi = {
|
|
19965
|
+
ansi: wrapAnsi162(ansi2ansi, 0)
|
|
19966
19966
|
};
|
|
19967
|
-
|
|
19968
|
-
ansi256:
|
|
19967
|
+
styles3.color.ansi256 = {
|
|
19968
|
+
ansi256: wrapAnsi2562(ansi2ansi, 0)
|
|
19969
19969
|
};
|
|
19970
|
-
|
|
19971
|
-
rgb:
|
|
19970
|
+
styles3.color.ansi16m = {
|
|
19971
|
+
rgb: wrapAnsi16m2(rgb2rgb, 0)
|
|
19972
19972
|
};
|
|
19973
|
-
|
|
19974
|
-
ansi:
|
|
19973
|
+
styles3.bgColor.ansi = {
|
|
19974
|
+
ansi: wrapAnsi162(ansi2ansi, 10)
|
|
19975
19975
|
};
|
|
19976
|
-
|
|
19977
|
-
ansi256:
|
|
19976
|
+
styles3.bgColor.ansi256 = {
|
|
19977
|
+
ansi256: wrapAnsi2562(ansi2ansi, 10)
|
|
19978
19978
|
};
|
|
19979
|
-
|
|
19980
|
-
rgb:
|
|
19979
|
+
styles3.bgColor.ansi16m = {
|
|
19980
|
+
rgb: wrapAnsi16m2(rgb2rgb, 10)
|
|
19981
19981
|
};
|
|
19982
19982
|
for (let key of Object.keys(colorConvert)) {
|
|
19983
19983
|
if (typeof colorConvert[key] !== "object") {
|
|
@@ -19988,23 +19988,23 @@ var require_ansi_styles = __commonJS({
|
|
|
19988
19988
|
key = "ansi";
|
|
19989
19989
|
}
|
|
19990
19990
|
if ("ansi16" in suite) {
|
|
19991
|
-
|
|
19992
|
-
|
|
19991
|
+
styles3.color.ansi[key] = wrapAnsi162(suite.ansi16, 0);
|
|
19992
|
+
styles3.bgColor.ansi[key] = wrapAnsi162(suite.ansi16, 10);
|
|
19993
19993
|
}
|
|
19994
19994
|
if ("ansi256" in suite) {
|
|
19995
|
-
|
|
19996
|
-
|
|
19995
|
+
styles3.color.ansi256[key] = wrapAnsi2562(suite.ansi256, 0);
|
|
19996
|
+
styles3.bgColor.ansi256[key] = wrapAnsi2562(suite.ansi256, 10);
|
|
19997
19997
|
}
|
|
19998
19998
|
if ("rgb" in suite) {
|
|
19999
|
-
|
|
20000
|
-
|
|
19999
|
+
styles3.color.ansi16m[key] = wrapAnsi16m2(suite.rgb, 0);
|
|
20000
|
+
styles3.bgColor.ansi16m[key] = wrapAnsi16m2(suite.rgb, 10);
|
|
20001
20001
|
}
|
|
20002
20002
|
}
|
|
20003
|
-
return
|
|
20003
|
+
return styles3;
|
|
20004
20004
|
}
|
|
20005
20005
|
Object.defineProperty(module2, "exports", {
|
|
20006
20006
|
enumerable: true,
|
|
20007
|
-
get:
|
|
20007
|
+
get: assembleStyles2
|
|
20008
20008
|
});
|
|
20009
20009
|
}
|
|
20010
20010
|
});
|
|
@@ -20027,19 +20027,19 @@ var require_has_flag = __commonJS({
|
|
|
20027
20027
|
var require_supports_color = __commonJS({
|
|
20028
20028
|
"node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
20029
20029
|
"use strict";
|
|
20030
|
-
var
|
|
20031
|
-
var
|
|
20032
|
-
var
|
|
20030
|
+
var os2 = require("os");
|
|
20031
|
+
var hasFlag2 = require_has_flag();
|
|
20032
|
+
var env2 = process.env;
|
|
20033
20033
|
var forceColor;
|
|
20034
|
-
if (
|
|
20034
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false")) {
|
|
20035
20035
|
forceColor = false;
|
|
20036
|
-
} else if (
|
|
20036
|
+
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
20037
20037
|
forceColor = true;
|
|
20038
20038
|
}
|
|
20039
|
-
if ("FORCE_COLOR" in
|
|
20040
|
-
forceColor =
|
|
20039
|
+
if ("FORCE_COLOR" in env2) {
|
|
20040
|
+
forceColor = env2.FORCE_COLOR.length === 0 || parseInt(env2.FORCE_COLOR, 10) !== 0;
|
|
20041
20041
|
}
|
|
20042
|
-
function
|
|
20042
|
+
function translateLevel2(level) {
|
|
20043
20043
|
if (level === 0) {
|
|
20044
20044
|
return false;
|
|
20045
20045
|
}
|
|
@@ -20050,14 +20050,14 @@ var require_supports_color = __commonJS({
|
|
|
20050
20050
|
has16m: level >= 3
|
|
20051
20051
|
};
|
|
20052
20052
|
}
|
|
20053
|
-
function
|
|
20053
|
+
function supportsColor2(stream) {
|
|
20054
20054
|
if (forceColor === false) {
|
|
20055
20055
|
return 0;
|
|
20056
20056
|
}
|
|
20057
|
-
if (
|
|
20057
|
+
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
20058
20058
|
return 3;
|
|
20059
20059
|
}
|
|
20060
|
-
if (
|
|
20060
|
+
if (hasFlag2("color=256")) {
|
|
20061
20061
|
return 2;
|
|
20062
20062
|
}
|
|
20063
20063
|
if (stream && !stream.isTTY && forceColor !== true) {
|
|
@@ -20065,50 +20065,50 @@ var require_supports_color = __commonJS({
|
|
|
20065
20065
|
}
|
|
20066
20066
|
const min = forceColor ? 1 : 0;
|
|
20067
20067
|
if (process.platform === "win32") {
|
|
20068
|
-
const osRelease =
|
|
20068
|
+
const osRelease = os2.release().split(".");
|
|
20069
20069
|
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
20070
20070
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
20071
20071
|
}
|
|
20072
20072
|
return 1;
|
|
20073
20073
|
}
|
|
20074
|
-
if ("CI" in
|
|
20075
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in
|
|
20074
|
+
if ("CI" in env2) {
|
|
20075
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
20076
20076
|
return 1;
|
|
20077
20077
|
}
|
|
20078
20078
|
return min;
|
|
20079
20079
|
}
|
|
20080
|
-
if ("TEAMCITY_VERSION" in
|
|
20081
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
20080
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
20081
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
20082
20082
|
}
|
|
20083
|
-
if (
|
|
20083
|
+
if (env2.COLORTERM === "truecolor") {
|
|
20084
20084
|
return 3;
|
|
20085
20085
|
}
|
|
20086
|
-
if ("TERM_PROGRAM" in
|
|
20087
|
-
const version = parseInt((
|
|
20088
|
-
switch (
|
|
20086
|
+
if ("TERM_PROGRAM" in env2) {
|
|
20087
|
+
const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
20088
|
+
switch (env2.TERM_PROGRAM) {
|
|
20089
20089
|
case "iTerm.app":
|
|
20090
20090
|
return version >= 3 ? 3 : 2;
|
|
20091
20091
|
case "Apple_Terminal":
|
|
20092
20092
|
return 2;
|
|
20093
20093
|
}
|
|
20094
20094
|
}
|
|
20095
|
-
if (/-256(color)?$/i.test(
|
|
20095
|
+
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
20096
20096
|
return 2;
|
|
20097
20097
|
}
|
|
20098
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
|
|
20098
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
20099
20099
|
return 1;
|
|
20100
20100
|
}
|
|
20101
|
-
if ("COLORTERM" in
|
|
20101
|
+
if ("COLORTERM" in env2) {
|
|
20102
20102
|
return 1;
|
|
20103
20103
|
}
|
|
20104
|
-
if (
|
|
20104
|
+
if (env2.TERM === "dumb") {
|
|
20105
20105
|
return min;
|
|
20106
20106
|
}
|
|
20107
20107
|
return min;
|
|
20108
20108
|
}
|
|
20109
20109
|
function getSupportLevel(stream) {
|
|
20110
|
-
const level =
|
|
20111
|
-
return
|
|
20110
|
+
const level = supportsColor2(stream);
|
|
20111
|
+
return translateLevel2(level);
|
|
20112
20112
|
}
|
|
20113
20113
|
module2.exports = {
|
|
20114
20114
|
supportsColor: getSupportLevel,
|
|
@@ -20174,14 +20174,14 @@ var require_templates = __commonJS({
|
|
|
20174
20174
|
}
|
|
20175
20175
|
return results;
|
|
20176
20176
|
}
|
|
20177
|
-
function buildStyle(
|
|
20177
|
+
function buildStyle(chalk2, styles3) {
|
|
20178
20178
|
const enabled = {};
|
|
20179
|
-
for (const layer of
|
|
20179
|
+
for (const layer of styles3) {
|
|
20180
20180
|
for (const style of layer.styles) {
|
|
20181
20181
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
20182
20182
|
}
|
|
20183
20183
|
}
|
|
20184
|
-
let current =
|
|
20184
|
+
let current = chalk2;
|
|
20185
20185
|
for (const styleName of Object.keys(enabled)) {
|
|
20186
20186
|
if (Array.isArray(enabled[styleName])) {
|
|
20187
20187
|
if (!(styleName in current)) {
|
|
@@ -20196,8 +20196,8 @@ var require_templates = __commonJS({
|
|
|
20196
20196
|
}
|
|
20197
20197
|
return current;
|
|
20198
20198
|
}
|
|
20199
|
-
module2.exports = (
|
|
20200
|
-
const
|
|
20199
|
+
module2.exports = (chalk2, tmp) => {
|
|
20200
|
+
const styles3 = [];
|
|
20201
20201
|
const chunks = [];
|
|
20202
20202
|
let chunk = [];
|
|
20203
20203
|
tmp.replace(TEMPLATE_REGEX, (m, escapeChar, inverse, style, close, chr) => {
|
|
@@ -20206,22 +20206,22 @@ var require_templates = __commonJS({
|
|
|
20206
20206
|
} else if (style) {
|
|
20207
20207
|
const str = chunk.join("");
|
|
20208
20208
|
chunk = [];
|
|
20209
|
-
chunks.push(
|
|
20210
|
-
|
|
20209
|
+
chunks.push(styles3.length === 0 ? str : buildStyle(chalk2, styles3)(str));
|
|
20210
|
+
styles3.push({ inverse, styles: parseStyle(style) });
|
|
20211
20211
|
} else if (close) {
|
|
20212
|
-
if (
|
|
20212
|
+
if (styles3.length === 0) {
|
|
20213
20213
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
20214
20214
|
}
|
|
20215
|
-
chunks.push(buildStyle(
|
|
20215
|
+
chunks.push(buildStyle(chalk2, styles3)(chunk.join("")));
|
|
20216
20216
|
chunk = [];
|
|
20217
|
-
|
|
20217
|
+
styles3.pop();
|
|
20218
20218
|
} else {
|
|
20219
20219
|
chunk.push(chr);
|
|
20220
20220
|
}
|
|
20221
20221
|
});
|
|
20222
20222
|
chunks.push(chunk.join(""));
|
|
20223
|
-
if (
|
|
20224
|
-
const errMsg = `Chalk template literal is missing ${
|
|
20223
|
+
if (styles3.length > 0) {
|
|
20224
|
+
const errMsg = `Chalk template literal is missing ${styles3.length} closing bracket${styles3.length === 1 ? "" : "s"} (\`}\`)`;
|
|
20225
20225
|
throw new Error(errMsg);
|
|
20226
20226
|
}
|
|
20227
20227
|
return chunks.join("");
|
|
@@ -20234,97 +20234,97 @@ var require_chalk = __commonJS({
|
|
|
20234
20234
|
"node_modules/.pnpm/chalk@2.4.2/node_modules/chalk/index.js"(exports, module2) {
|
|
20235
20235
|
"use strict";
|
|
20236
20236
|
var escapeStringRegexp = require_escape_string_regexp();
|
|
20237
|
-
var
|
|
20238
|
-
var
|
|
20237
|
+
var ansiStyles2 = require_ansi_styles();
|
|
20238
|
+
var stdoutColor2 = require_supports_color().stdout;
|
|
20239
20239
|
var template = require_templates();
|
|
20240
20240
|
var isSimpleWindowsTerm = process.platform === "win32" && !(process.env.TERM || "").toLowerCase().startsWith("xterm");
|
|
20241
|
-
var
|
|
20241
|
+
var levelMapping2 = ["ansi", "ansi", "ansi256", "ansi16m"];
|
|
20242
20242
|
var skipModels = /* @__PURE__ */ new Set(["gray"]);
|
|
20243
|
-
var
|
|
20244
|
-
function
|
|
20243
|
+
var styles3 = /* @__PURE__ */ Object.create(null);
|
|
20244
|
+
function applyOptions2(obj, options) {
|
|
20245
20245
|
options = options || {};
|
|
20246
|
-
const scLevel =
|
|
20246
|
+
const scLevel = stdoutColor2 ? stdoutColor2.level : 0;
|
|
20247
20247
|
obj.level = options.level === void 0 ? scLevel : options.level;
|
|
20248
20248
|
obj.enabled = "enabled" in options ? options.enabled : obj.level > 0;
|
|
20249
20249
|
}
|
|
20250
20250
|
function Chalk(options) {
|
|
20251
20251
|
if (!this || !(this instanceof Chalk) || this.template) {
|
|
20252
|
-
const
|
|
20253
|
-
|
|
20254
|
-
|
|
20252
|
+
const chalk2 = {};
|
|
20253
|
+
applyOptions2(chalk2, options);
|
|
20254
|
+
chalk2.template = function() {
|
|
20255
20255
|
const args = [].slice.call(arguments);
|
|
20256
|
-
return chalkTag.apply(null, [
|
|
20256
|
+
return chalkTag.apply(null, [chalk2.template].concat(args));
|
|
20257
20257
|
};
|
|
20258
|
-
Object.setPrototypeOf(
|
|
20259
|
-
Object.setPrototypeOf(
|
|
20260
|
-
|
|
20261
|
-
return
|
|
20258
|
+
Object.setPrototypeOf(chalk2, Chalk.prototype);
|
|
20259
|
+
Object.setPrototypeOf(chalk2.template, chalk2);
|
|
20260
|
+
chalk2.template.constructor = Chalk;
|
|
20261
|
+
return chalk2.template;
|
|
20262
20262
|
}
|
|
20263
|
-
|
|
20263
|
+
applyOptions2(this, options);
|
|
20264
20264
|
}
|
|
20265
20265
|
if (isSimpleWindowsTerm) {
|
|
20266
|
-
|
|
20266
|
+
ansiStyles2.blue.open = "\x1B[94m";
|
|
20267
20267
|
}
|
|
20268
|
-
for (const key of Object.keys(
|
|
20269
|
-
|
|
20270
|
-
|
|
20268
|
+
for (const key of Object.keys(ansiStyles2)) {
|
|
20269
|
+
ansiStyles2[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles2[key].close), "g");
|
|
20270
|
+
styles3[key] = {
|
|
20271
20271
|
get() {
|
|
20272
|
-
const codes =
|
|
20272
|
+
const codes = ansiStyles2[key];
|
|
20273
20273
|
return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key);
|
|
20274
20274
|
}
|
|
20275
20275
|
};
|
|
20276
20276
|
}
|
|
20277
|
-
|
|
20277
|
+
styles3.visible = {
|
|
20278
20278
|
get() {
|
|
20279
20279
|
return build.call(this, this._styles || [], true, "visible");
|
|
20280
20280
|
}
|
|
20281
20281
|
};
|
|
20282
|
-
|
|
20283
|
-
for (const model of Object.keys(
|
|
20282
|
+
ansiStyles2.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles2.color.close), "g");
|
|
20283
|
+
for (const model of Object.keys(ansiStyles2.color.ansi)) {
|
|
20284
20284
|
if (skipModels.has(model)) {
|
|
20285
20285
|
continue;
|
|
20286
20286
|
}
|
|
20287
|
-
|
|
20287
|
+
styles3[model] = {
|
|
20288
20288
|
get() {
|
|
20289
20289
|
const level = this.level;
|
|
20290
20290
|
return function() {
|
|
20291
|
-
const open =
|
|
20291
|
+
const open = ansiStyles2.color[levelMapping2[level]][model].apply(null, arguments);
|
|
20292
20292
|
const codes = {
|
|
20293
20293
|
open,
|
|
20294
|
-
close:
|
|
20295
|
-
closeRe:
|
|
20294
|
+
close: ansiStyles2.color.close,
|
|
20295
|
+
closeRe: ansiStyles2.color.closeRe
|
|
20296
20296
|
};
|
|
20297
20297
|
return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
|
|
20298
20298
|
};
|
|
20299
20299
|
}
|
|
20300
20300
|
};
|
|
20301
20301
|
}
|
|
20302
|
-
|
|
20303
|
-
for (const model of Object.keys(
|
|
20302
|
+
ansiStyles2.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles2.bgColor.close), "g");
|
|
20303
|
+
for (const model of Object.keys(ansiStyles2.bgColor.ansi)) {
|
|
20304
20304
|
if (skipModels.has(model)) {
|
|
20305
20305
|
continue;
|
|
20306
20306
|
}
|
|
20307
20307
|
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
20308
|
-
|
|
20308
|
+
styles3[bgModel] = {
|
|
20309
20309
|
get() {
|
|
20310
20310
|
const level = this.level;
|
|
20311
20311
|
return function() {
|
|
20312
|
-
const open =
|
|
20312
|
+
const open = ansiStyles2.bgColor[levelMapping2[level]][model].apply(null, arguments);
|
|
20313
20313
|
const codes = {
|
|
20314
20314
|
open,
|
|
20315
|
-
close:
|
|
20316
|
-
closeRe:
|
|
20315
|
+
close: ansiStyles2.bgColor.close,
|
|
20316
|
+
closeRe: ansiStyles2.bgColor.closeRe
|
|
20317
20317
|
};
|
|
20318
20318
|
return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
|
|
20319
20319
|
};
|
|
20320
20320
|
}
|
|
20321
20321
|
};
|
|
20322
20322
|
}
|
|
20323
|
-
var
|
|
20324
|
-
},
|
|
20323
|
+
var proto2 = Object.defineProperties(() => {
|
|
20324
|
+
}, styles3);
|
|
20325
20325
|
function build(_styles, _empty, key) {
|
|
20326
20326
|
const builder = function() {
|
|
20327
|
-
return
|
|
20327
|
+
return applyStyle2.apply(builder, arguments);
|
|
20328
20328
|
};
|
|
20329
20329
|
builder._styles = _styles;
|
|
20330
20330
|
builder._empty = _empty;
|
|
@@ -20348,10 +20348,10 @@ var require_chalk = __commonJS({
|
|
|
20348
20348
|
}
|
|
20349
20349
|
});
|
|
20350
20350
|
builder.hasGrey = this.hasGrey || key === "gray" || key === "grey";
|
|
20351
|
-
builder.__proto__ =
|
|
20351
|
+
builder.__proto__ = proto2;
|
|
20352
20352
|
return builder;
|
|
20353
20353
|
}
|
|
20354
|
-
function
|
|
20354
|
+
function applyStyle2() {
|
|
20355
20355
|
const args = arguments;
|
|
20356
20356
|
const argsLen = args.length;
|
|
20357
20357
|
let str = String(arguments[0]);
|
|
@@ -20366,18 +20366,18 @@ var require_chalk = __commonJS({
|
|
|
20366
20366
|
if (!this.enabled || this.level <= 0 || !str) {
|
|
20367
20367
|
return this._empty ? "" : str;
|
|
20368
20368
|
}
|
|
20369
|
-
const originalDim =
|
|
20369
|
+
const originalDim = ansiStyles2.dim.open;
|
|
20370
20370
|
if (isSimpleWindowsTerm && this.hasGrey) {
|
|
20371
|
-
|
|
20371
|
+
ansiStyles2.dim.open = "";
|
|
20372
20372
|
}
|
|
20373
20373
|
for (const code of this._styles.slice().reverse()) {
|
|
20374
20374
|
str = code.open + str.replace(code.closeRe, code.open) + code.close;
|
|
20375
20375
|
str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`);
|
|
20376
20376
|
}
|
|
20377
|
-
|
|
20377
|
+
ansiStyles2.dim.open = originalDim;
|
|
20378
20378
|
return str;
|
|
20379
20379
|
}
|
|
20380
|
-
function chalkTag(
|
|
20380
|
+
function chalkTag(chalk2, strings) {
|
|
20381
20381
|
if (!Array.isArray(strings)) {
|
|
20382
20382
|
return [].slice.call(arguments, 1).join(" ");
|
|
20383
20383
|
}
|
|
@@ -20387,11 +20387,11 @@ var require_chalk = __commonJS({
|
|
|
20387
20387
|
parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
|
20388
20388
|
parts.push(String(strings.raw[i]));
|
|
20389
20389
|
}
|
|
20390
|
-
return template(
|
|
20390
|
+
return template(chalk2, parts.join(""));
|
|
20391
20391
|
}
|
|
20392
|
-
Object.defineProperties(Chalk.prototype,
|
|
20392
|
+
Object.defineProperties(Chalk.prototype, styles3);
|
|
20393
20393
|
module2.exports = Chalk();
|
|
20394
|
-
module2.exports.supportsColor =
|
|
20394
|
+
module2.exports.supportsColor = stdoutColor2;
|
|
20395
20395
|
module2.exports.default = module2.exports;
|
|
20396
20396
|
}
|
|
20397
20397
|
});
|
|
@@ -20447,17 +20447,17 @@ var require_lib2 = __commonJS({
|
|
|
20447
20447
|
return newObj;
|
|
20448
20448
|
}
|
|
20449
20449
|
var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
|
|
20450
|
-
function getDefs(
|
|
20450
|
+
function getDefs(chalk2) {
|
|
20451
20451
|
return {
|
|
20452
|
-
keyword:
|
|
20453
|
-
capitalized:
|
|
20454
|
-
jsxIdentifier:
|
|
20455
|
-
punctuator:
|
|
20456
|
-
number:
|
|
20457
|
-
string:
|
|
20458
|
-
regex:
|
|
20459
|
-
comment:
|
|
20460
|
-
invalid:
|
|
20452
|
+
keyword: chalk2.cyan,
|
|
20453
|
+
capitalized: chalk2.yellow,
|
|
20454
|
+
jsxIdentifier: chalk2.yellow,
|
|
20455
|
+
punctuator: chalk2.yellow,
|
|
20456
|
+
number: chalk2.magenta,
|
|
20457
|
+
string: chalk2.green,
|
|
20458
|
+
regex: chalk2.magenta,
|
|
20459
|
+
comment: chalk2.grey,
|
|
20460
|
+
invalid: chalk2.white.bgRed.bold
|
|
20461
20461
|
};
|
|
20462
20462
|
}
|
|
20463
20463
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -20602,11 +20602,11 @@ var require_lib3 = __commonJS({
|
|
|
20602
20602
|
return _chalk.default;
|
|
20603
20603
|
}
|
|
20604
20604
|
var deprecationWarningShown = false;
|
|
20605
|
-
function getDefs(
|
|
20605
|
+
function getDefs(chalk2) {
|
|
20606
20606
|
return {
|
|
20607
|
-
gutter:
|
|
20608
|
-
marker:
|
|
20609
|
-
message:
|
|
20607
|
+
gutter: chalk2.grey,
|
|
20608
|
+
marker: chalk2.red.bold,
|
|
20609
|
+
message: chalk2.red.bold
|
|
20610
20610
|
};
|
|
20611
20611
|
}
|
|
20612
20612
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -20668,8 +20668,8 @@ var require_lib3 = __commonJS({
|
|
|
20668
20668
|
}
|
|
20669
20669
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
20670
20670
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
20671
|
-
const
|
|
20672
|
-
const defs = getDefs(
|
|
20671
|
+
const chalk2 = getChalk(opts.forceColor);
|
|
20672
|
+
const defs = getDefs(chalk2);
|
|
20673
20673
|
const maybeHighlight = (chalkFn, string) => {
|
|
20674
20674
|
return highlighted ? chalkFn(string) : string;
|
|
20675
20675
|
};
|
|
@@ -20708,7 +20708,7 @@ var require_lib3 = __commonJS({
|
|
|
20708
20708
|
${frame}`;
|
|
20709
20709
|
}
|
|
20710
20710
|
if (highlighted) {
|
|
20711
|
-
return
|
|
20711
|
+
return chalk2.reset(frame);
|
|
20712
20712
|
} else {
|
|
20713
20713
|
return frame;
|
|
20714
20714
|
}
|
|
@@ -23907,10 +23907,10 @@ var require_env_paths = __commonJS({
|
|
|
23907
23907
|
"node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports, module2) {
|
|
23908
23908
|
"use strict";
|
|
23909
23909
|
var path = require("path");
|
|
23910
|
-
var
|
|
23911
|
-
var homedir =
|
|
23912
|
-
var tmpdir =
|
|
23913
|
-
var { env } = process;
|
|
23910
|
+
var os2 = require("os");
|
|
23911
|
+
var homedir = os2.homedir();
|
|
23912
|
+
var tmpdir = os2.tmpdir();
|
|
23913
|
+
var { env: env2 } = process;
|
|
23914
23914
|
var macos = (name) => {
|
|
23915
23915
|
const library = path.join(homedir, "Library");
|
|
23916
23916
|
return {
|
|
@@ -23922,8 +23922,8 @@ var require_env_paths = __commonJS({
|
|
|
23922
23922
|
};
|
|
23923
23923
|
};
|
|
23924
23924
|
var windows = (name) => {
|
|
23925
|
-
const appData =
|
|
23926
|
-
const localAppData =
|
|
23925
|
+
const appData = env2.APPDATA || path.join(homedir, "AppData", "Roaming");
|
|
23926
|
+
const localAppData = env2.LOCALAPPDATA || path.join(homedir, "AppData", "Local");
|
|
23927
23927
|
return {
|
|
23928
23928
|
// Data/config/cache/log are invented by me as Windows isn't opinionated about this
|
|
23929
23929
|
data: path.join(localAppData, name, "Data"),
|
|
@@ -23936,11 +23936,11 @@ var require_env_paths = __commonJS({
|
|
|
23936
23936
|
var linux = (name) => {
|
|
23937
23937
|
const username = path.basename(homedir);
|
|
23938
23938
|
return {
|
|
23939
|
-
data: path.join(
|
|
23940
|
-
config: path.join(
|
|
23941
|
-
cache: path.join(
|
|
23939
|
+
data: path.join(env2.XDG_DATA_HOME || path.join(homedir, ".local", "share"), name),
|
|
23940
|
+
config: path.join(env2.XDG_CONFIG_HOME || path.join(homedir, ".config"), name),
|
|
23941
|
+
cache: path.join(env2.XDG_CACHE_HOME || path.join(homedir, ".cache"), name),
|
|
23942
23942
|
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
23943
|
-
log: path.join(
|
|
23943
|
+
log: path.join(env2.XDG_STATE_HOME || path.join(homedir, ".local", "state"), name),
|
|
23944
23944
|
temp: path.join(tmpdir, username, name)
|
|
23945
23945
|
};
|
|
23946
23946
|
};
|
|
@@ -29670,6 +29670,495 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
29670
29670
|
return combined;
|
|
29671
29671
|
};
|
|
29672
29672
|
|
|
29673
|
+
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
29674
|
+
var ANSI_BACKGROUND_OFFSET = 10;
|
|
29675
|
+
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
29676
|
+
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
29677
|
+
var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
29678
|
+
var styles = {
|
|
29679
|
+
modifier: {
|
|
29680
|
+
reset: [0, 0],
|
|
29681
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
29682
|
+
bold: [1, 22],
|
|
29683
|
+
dim: [2, 22],
|
|
29684
|
+
italic: [3, 23],
|
|
29685
|
+
underline: [4, 24],
|
|
29686
|
+
overline: [53, 55],
|
|
29687
|
+
inverse: [7, 27],
|
|
29688
|
+
hidden: [8, 28],
|
|
29689
|
+
strikethrough: [9, 29]
|
|
29690
|
+
},
|
|
29691
|
+
color: {
|
|
29692
|
+
black: [30, 39],
|
|
29693
|
+
red: [31, 39],
|
|
29694
|
+
green: [32, 39],
|
|
29695
|
+
yellow: [33, 39],
|
|
29696
|
+
blue: [34, 39],
|
|
29697
|
+
magenta: [35, 39],
|
|
29698
|
+
cyan: [36, 39],
|
|
29699
|
+
white: [37, 39],
|
|
29700
|
+
// Bright color
|
|
29701
|
+
blackBright: [90, 39],
|
|
29702
|
+
gray: [90, 39],
|
|
29703
|
+
// Alias of `blackBright`
|
|
29704
|
+
grey: [90, 39],
|
|
29705
|
+
// Alias of `blackBright`
|
|
29706
|
+
redBright: [91, 39],
|
|
29707
|
+
greenBright: [92, 39],
|
|
29708
|
+
yellowBright: [93, 39],
|
|
29709
|
+
blueBright: [94, 39],
|
|
29710
|
+
magentaBright: [95, 39],
|
|
29711
|
+
cyanBright: [96, 39],
|
|
29712
|
+
whiteBright: [97, 39]
|
|
29713
|
+
},
|
|
29714
|
+
bgColor: {
|
|
29715
|
+
bgBlack: [40, 49],
|
|
29716
|
+
bgRed: [41, 49],
|
|
29717
|
+
bgGreen: [42, 49],
|
|
29718
|
+
bgYellow: [43, 49],
|
|
29719
|
+
bgBlue: [44, 49],
|
|
29720
|
+
bgMagenta: [45, 49],
|
|
29721
|
+
bgCyan: [46, 49],
|
|
29722
|
+
bgWhite: [47, 49],
|
|
29723
|
+
// Bright color
|
|
29724
|
+
bgBlackBright: [100, 49],
|
|
29725
|
+
bgGray: [100, 49],
|
|
29726
|
+
// Alias of `bgBlackBright`
|
|
29727
|
+
bgGrey: [100, 49],
|
|
29728
|
+
// Alias of `bgBlackBright`
|
|
29729
|
+
bgRedBright: [101, 49],
|
|
29730
|
+
bgGreenBright: [102, 49],
|
|
29731
|
+
bgYellowBright: [103, 49],
|
|
29732
|
+
bgBlueBright: [104, 49],
|
|
29733
|
+
bgMagentaBright: [105, 49],
|
|
29734
|
+
bgCyanBright: [106, 49],
|
|
29735
|
+
bgWhiteBright: [107, 49]
|
|
29736
|
+
}
|
|
29737
|
+
};
|
|
29738
|
+
var modifierNames = Object.keys(styles.modifier);
|
|
29739
|
+
var foregroundColorNames = Object.keys(styles.color);
|
|
29740
|
+
var backgroundColorNames = Object.keys(styles.bgColor);
|
|
29741
|
+
var colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
29742
|
+
function assembleStyles() {
|
|
29743
|
+
const codes = /* @__PURE__ */ new Map();
|
|
29744
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
29745
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
29746
|
+
styles[styleName] = {
|
|
29747
|
+
open: `\x1B[${style[0]}m`,
|
|
29748
|
+
close: `\x1B[${style[1]}m`
|
|
29749
|
+
};
|
|
29750
|
+
group[styleName] = styles[styleName];
|
|
29751
|
+
codes.set(style[0], style[1]);
|
|
29752
|
+
}
|
|
29753
|
+
Object.defineProperty(styles, groupName, {
|
|
29754
|
+
value: group,
|
|
29755
|
+
enumerable: false
|
|
29756
|
+
});
|
|
29757
|
+
}
|
|
29758
|
+
Object.defineProperty(styles, "codes", {
|
|
29759
|
+
value: codes,
|
|
29760
|
+
enumerable: false
|
|
29761
|
+
});
|
|
29762
|
+
styles.color.close = "\x1B[39m";
|
|
29763
|
+
styles.bgColor.close = "\x1B[49m";
|
|
29764
|
+
styles.color.ansi = wrapAnsi16();
|
|
29765
|
+
styles.color.ansi256 = wrapAnsi256();
|
|
29766
|
+
styles.color.ansi16m = wrapAnsi16m();
|
|
29767
|
+
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
29768
|
+
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
29769
|
+
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
29770
|
+
Object.defineProperties(styles, {
|
|
29771
|
+
rgbToAnsi256: {
|
|
29772
|
+
value(red, green, blue) {
|
|
29773
|
+
if (red === green && green === blue) {
|
|
29774
|
+
if (red < 8) {
|
|
29775
|
+
return 16;
|
|
29776
|
+
}
|
|
29777
|
+
if (red > 248) {
|
|
29778
|
+
return 231;
|
|
29779
|
+
}
|
|
29780
|
+
return Math.round((red - 8) / 247 * 24) + 232;
|
|
29781
|
+
}
|
|
29782
|
+
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
29783
|
+
},
|
|
29784
|
+
enumerable: false
|
|
29785
|
+
},
|
|
29786
|
+
hexToRgb: {
|
|
29787
|
+
value(hex) {
|
|
29788
|
+
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
29789
|
+
if (!matches) {
|
|
29790
|
+
return [0, 0, 0];
|
|
29791
|
+
}
|
|
29792
|
+
let [colorString] = matches;
|
|
29793
|
+
if (colorString.length === 3) {
|
|
29794
|
+
colorString = [...colorString].map((character) => character + character).join("");
|
|
29795
|
+
}
|
|
29796
|
+
const integer = Number.parseInt(colorString, 16);
|
|
29797
|
+
return [
|
|
29798
|
+
/* eslint-disable no-bitwise */
|
|
29799
|
+
integer >> 16 & 255,
|
|
29800
|
+
integer >> 8 & 255,
|
|
29801
|
+
integer & 255
|
|
29802
|
+
/* eslint-enable no-bitwise */
|
|
29803
|
+
];
|
|
29804
|
+
},
|
|
29805
|
+
enumerable: false
|
|
29806
|
+
},
|
|
29807
|
+
hexToAnsi256: {
|
|
29808
|
+
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
29809
|
+
enumerable: false
|
|
29810
|
+
},
|
|
29811
|
+
ansi256ToAnsi: {
|
|
29812
|
+
value(code) {
|
|
29813
|
+
if (code < 8) {
|
|
29814
|
+
return 30 + code;
|
|
29815
|
+
}
|
|
29816
|
+
if (code < 16) {
|
|
29817
|
+
return 90 + (code - 8);
|
|
29818
|
+
}
|
|
29819
|
+
let red;
|
|
29820
|
+
let green;
|
|
29821
|
+
let blue;
|
|
29822
|
+
if (code >= 232) {
|
|
29823
|
+
red = ((code - 232) * 10 + 8) / 255;
|
|
29824
|
+
green = red;
|
|
29825
|
+
blue = red;
|
|
29826
|
+
} else {
|
|
29827
|
+
code -= 16;
|
|
29828
|
+
const remainder = code % 36;
|
|
29829
|
+
red = Math.floor(code / 36) / 5;
|
|
29830
|
+
green = Math.floor(remainder / 6) / 5;
|
|
29831
|
+
blue = remainder % 6 / 5;
|
|
29832
|
+
}
|
|
29833
|
+
const value = Math.max(red, green, blue) * 2;
|
|
29834
|
+
if (value === 0) {
|
|
29835
|
+
return 30;
|
|
29836
|
+
}
|
|
29837
|
+
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
29838
|
+
if (value === 2) {
|
|
29839
|
+
result += 60;
|
|
29840
|
+
}
|
|
29841
|
+
return result;
|
|
29842
|
+
},
|
|
29843
|
+
enumerable: false
|
|
29844
|
+
},
|
|
29845
|
+
rgbToAnsi: {
|
|
29846
|
+
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
29847
|
+
enumerable: false
|
|
29848
|
+
},
|
|
29849
|
+
hexToAnsi: {
|
|
29850
|
+
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
29851
|
+
enumerable: false
|
|
29852
|
+
}
|
|
29853
|
+
});
|
|
29854
|
+
return styles;
|
|
29855
|
+
}
|
|
29856
|
+
var ansiStyles = assembleStyles();
|
|
29857
|
+
var ansi_styles_default = ansiStyles;
|
|
29858
|
+
|
|
29859
|
+
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
29860
|
+
var import_node_process = __toESM(require("node:process"), 1);
|
|
29861
|
+
var import_node_os = __toESM(require("node:os"), 1);
|
|
29862
|
+
var import_node_tty = __toESM(require("node:tty"), 1);
|
|
29863
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
|
|
29864
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
29865
|
+
const position = argv.indexOf(prefix + flag);
|
|
29866
|
+
const terminatorPosition = argv.indexOf("--");
|
|
29867
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
29868
|
+
}
|
|
29869
|
+
var { env } = import_node_process.default;
|
|
29870
|
+
var flagForceColor;
|
|
29871
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
29872
|
+
flagForceColor = 0;
|
|
29873
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
29874
|
+
flagForceColor = 1;
|
|
29875
|
+
}
|
|
29876
|
+
function envForceColor() {
|
|
29877
|
+
if ("FORCE_COLOR" in env) {
|
|
29878
|
+
if (env.FORCE_COLOR === "true") {
|
|
29879
|
+
return 1;
|
|
29880
|
+
}
|
|
29881
|
+
if (env.FORCE_COLOR === "false") {
|
|
29882
|
+
return 0;
|
|
29883
|
+
}
|
|
29884
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
29885
|
+
}
|
|
29886
|
+
}
|
|
29887
|
+
function translateLevel(level) {
|
|
29888
|
+
if (level === 0) {
|
|
29889
|
+
return false;
|
|
29890
|
+
}
|
|
29891
|
+
return {
|
|
29892
|
+
level,
|
|
29893
|
+
hasBasic: true,
|
|
29894
|
+
has256: level >= 2,
|
|
29895
|
+
has16m: level >= 3
|
|
29896
|
+
};
|
|
29897
|
+
}
|
|
29898
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
29899
|
+
const noFlagForceColor = envForceColor();
|
|
29900
|
+
if (noFlagForceColor !== void 0) {
|
|
29901
|
+
flagForceColor = noFlagForceColor;
|
|
29902
|
+
}
|
|
29903
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
29904
|
+
if (forceColor === 0) {
|
|
29905
|
+
return 0;
|
|
29906
|
+
}
|
|
29907
|
+
if (sniffFlags) {
|
|
29908
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
29909
|
+
return 3;
|
|
29910
|
+
}
|
|
29911
|
+
if (hasFlag("color=256")) {
|
|
29912
|
+
return 2;
|
|
29913
|
+
}
|
|
29914
|
+
}
|
|
29915
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
29916
|
+
return 1;
|
|
29917
|
+
}
|
|
29918
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
29919
|
+
return 0;
|
|
29920
|
+
}
|
|
29921
|
+
const min = forceColor || 0;
|
|
29922
|
+
if (env.TERM === "dumb") {
|
|
29923
|
+
return min;
|
|
29924
|
+
}
|
|
29925
|
+
if (import_node_process.default.platform === "win32") {
|
|
29926
|
+
const osRelease = import_node_os.default.release().split(".");
|
|
29927
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
29928
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
29929
|
+
}
|
|
29930
|
+
return 1;
|
|
29931
|
+
}
|
|
29932
|
+
if ("CI" in env) {
|
|
29933
|
+
if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
|
|
29934
|
+
return 3;
|
|
29935
|
+
}
|
|
29936
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
29937
|
+
return 1;
|
|
29938
|
+
}
|
|
29939
|
+
return min;
|
|
29940
|
+
}
|
|
29941
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
29942
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
29943
|
+
}
|
|
29944
|
+
if (env.COLORTERM === "truecolor") {
|
|
29945
|
+
return 3;
|
|
29946
|
+
}
|
|
29947
|
+
if (env.TERM === "xterm-kitty") {
|
|
29948
|
+
return 3;
|
|
29949
|
+
}
|
|
29950
|
+
if ("TERM_PROGRAM" in env) {
|
|
29951
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
29952
|
+
switch (env.TERM_PROGRAM) {
|
|
29953
|
+
case "iTerm.app": {
|
|
29954
|
+
return version >= 3 ? 3 : 2;
|
|
29955
|
+
}
|
|
29956
|
+
case "Apple_Terminal": {
|
|
29957
|
+
return 2;
|
|
29958
|
+
}
|
|
29959
|
+
}
|
|
29960
|
+
}
|
|
29961
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
29962
|
+
return 2;
|
|
29963
|
+
}
|
|
29964
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
29965
|
+
return 1;
|
|
29966
|
+
}
|
|
29967
|
+
if ("COLORTERM" in env) {
|
|
29968
|
+
return 1;
|
|
29969
|
+
}
|
|
29970
|
+
return min;
|
|
29971
|
+
}
|
|
29972
|
+
function createSupportsColor(stream, options = {}) {
|
|
29973
|
+
const level = _supportsColor(stream, {
|
|
29974
|
+
streamIsTTY: stream && stream.isTTY,
|
|
29975
|
+
...options
|
|
29976
|
+
});
|
|
29977
|
+
return translateLevel(level);
|
|
29978
|
+
}
|
|
29979
|
+
var supportsColor = {
|
|
29980
|
+
stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
|
|
29981
|
+
stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
|
|
29982
|
+
};
|
|
29983
|
+
var supports_color_default = supportsColor;
|
|
29984
|
+
|
|
29985
|
+
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/utilities.js
|
|
29986
|
+
function stringReplaceAll(string, substring, replacer) {
|
|
29987
|
+
let index = string.indexOf(substring);
|
|
29988
|
+
if (index === -1) {
|
|
29989
|
+
return string;
|
|
29990
|
+
}
|
|
29991
|
+
const substringLength = substring.length;
|
|
29992
|
+
let endIndex = 0;
|
|
29993
|
+
let returnValue = "";
|
|
29994
|
+
do {
|
|
29995
|
+
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
29996
|
+
endIndex = index + substringLength;
|
|
29997
|
+
index = string.indexOf(substring, endIndex);
|
|
29998
|
+
} while (index !== -1);
|
|
29999
|
+
returnValue += string.slice(endIndex);
|
|
30000
|
+
return returnValue;
|
|
30001
|
+
}
|
|
30002
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
30003
|
+
let endIndex = 0;
|
|
30004
|
+
let returnValue = "";
|
|
30005
|
+
do {
|
|
30006
|
+
const gotCR = string[index - 1] === "\r";
|
|
30007
|
+
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
30008
|
+
endIndex = index + 1;
|
|
30009
|
+
index = string.indexOf("\n", endIndex);
|
|
30010
|
+
} while (index !== -1);
|
|
30011
|
+
returnValue += string.slice(endIndex);
|
|
30012
|
+
return returnValue;
|
|
30013
|
+
}
|
|
30014
|
+
|
|
30015
|
+
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js
|
|
30016
|
+
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
30017
|
+
var GENERATOR = Symbol("GENERATOR");
|
|
30018
|
+
var STYLER = Symbol("STYLER");
|
|
30019
|
+
var IS_EMPTY = Symbol("IS_EMPTY");
|
|
30020
|
+
var levelMapping = [
|
|
30021
|
+
"ansi",
|
|
30022
|
+
"ansi",
|
|
30023
|
+
"ansi256",
|
|
30024
|
+
"ansi16m"
|
|
30025
|
+
];
|
|
30026
|
+
var styles2 = /* @__PURE__ */ Object.create(null);
|
|
30027
|
+
var applyOptions = (object, options = {}) => {
|
|
30028
|
+
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
30029
|
+
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
30030
|
+
}
|
|
30031
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
30032
|
+
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
30033
|
+
};
|
|
30034
|
+
var chalkFactory = (options) => {
|
|
30035
|
+
const chalk2 = (...strings) => strings.join(" ");
|
|
30036
|
+
applyOptions(chalk2, options);
|
|
30037
|
+
Object.setPrototypeOf(chalk2, createChalk.prototype);
|
|
30038
|
+
return chalk2;
|
|
30039
|
+
};
|
|
30040
|
+
function createChalk(options) {
|
|
30041
|
+
return chalkFactory(options);
|
|
30042
|
+
}
|
|
30043
|
+
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
30044
|
+
for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
30045
|
+
styles2[styleName] = {
|
|
30046
|
+
get() {
|
|
30047
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
30048
|
+
Object.defineProperty(this, styleName, { value: builder });
|
|
30049
|
+
return builder;
|
|
30050
|
+
}
|
|
30051
|
+
};
|
|
30052
|
+
}
|
|
30053
|
+
styles2.visible = {
|
|
30054
|
+
get() {
|
|
30055
|
+
const builder = createBuilder(this, this[STYLER], true);
|
|
30056
|
+
Object.defineProperty(this, "visible", { value: builder });
|
|
30057
|
+
return builder;
|
|
30058
|
+
}
|
|
30059
|
+
};
|
|
30060
|
+
var getModelAnsi = (model, level, type, ...arguments_) => {
|
|
30061
|
+
if (model === "rgb") {
|
|
30062
|
+
if (level === "ansi16m") {
|
|
30063
|
+
return ansi_styles_default[type].ansi16m(...arguments_);
|
|
30064
|
+
}
|
|
30065
|
+
if (level === "ansi256") {
|
|
30066
|
+
return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
|
|
30067
|
+
}
|
|
30068
|
+
return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
|
|
30069
|
+
}
|
|
30070
|
+
if (model === "hex") {
|
|
30071
|
+
return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
|
|
30072
|
+
}
|
|
30073
|
+
return ansi_styles_default[type][model](...arguments_);
|
|
30074
|
+
};
|
|
30075
|
+
var usedModels = ["rgb", "hex", "ansi256"];
|
|
30076
|
+
for (const model of usedModels) {
|
|
30077
|
+
styles2[model] = {
|
|
30078
|
+
get() {
|
|
30079
|
+
const { level } = this;
|
|
30080
|
+
return function(...arguments_) {
|
|
30081
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
|
|
30082
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
30083
|
+
};
|
|
30084
|
+
}
|
|
30085
|
+
};
|
|
30086
|
+
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
30087
|
+
styles2[bgModel] = {
|
|
30088
|
+
get() {
|
|
30089
|
+
const { level } = this;
|
|
30090
|
+
return function(...arguments_) {
|
|
30091
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
|
|
30092
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
30093
|
+
};
|
|
30094
|
+
}
|
|
30095
|
+
};
|
|
30096
|
+
}
|
|
30097
|
+
var proto = Object.defineProperties(() => {
|
|
30098
|
+
}, {
|
|
30099
|
+
...styles2,
|
|
30100
|
+
level: {
|
|
30101
|
+
enumerable: true,
|
|
30102
|
+
get() {
|
|
30103
|
+
return this[GENERATOR].level;
|
|
30104
|
+
},
|
|
30105
|
+
set(level) {
|
|
30106
|
+
this[GENERATOR].level = level;
|
|
30107
|
+
}
|
|
30108
|
+
}
|
|
30109
|
+
});
|
|
30110
|
+
var createStyler = (open, close, parent) => {
|
|
30111
|
+
let openAll;
|
|
30112
|
+
let closeAll;
|
|
30113
|
+
if (parent === void 0) {
|
|
30114
|
+
openAll = open;
|
|
30115
|
+
closeAll = close;
|
|
30116
|
+
} else {
|
|
30117
|
+
openAll = parent.openAll + open;
|
|
30118
|
+
closeAll = close + parent.closeAll;
|
|
30119
|
+
}
|
|
30120
|
+
return {
|
|
30121
|
+
open,
|
|
30122
|
+
close,
|
|
30123
|
+
openAll,
|
|
30124
|
+
closeAll,
|
|
30125
|
+
parent
|
|
30126
|
+
};
|
|
30127
|
+
};
|
|
30128
|
+
var createBuilder = (self, _styler, _isEmpty) => {
|
|
30129
|
+
const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
30130
|
+
Object.setPrototypeOf(builder, proto);
|
|
30131
|
+
builder[GENERATOR] = self;
|
|
30132
|
+
builder[STYLER] = _styler;
|
|
30133
|
+
builder[IS_EMPTY] = _isEmpty;
|
|
30134
|
+
return builder;
|
|
30135
|
+
};
|
|
30136
|
+
var applyStyle = (self, string) => {
|
|
30137
|
+
if (self.level <= 0 || !string) {
|
|
30138
|
+
return self[IS_EMPTY] ? "" : string;
|
|
30139
|
+
}
|
|
30140
|
+
let styler = self[STYLER];
|
|
30141
|
+
if (styler === void 0) {
|
|
30142
|
+
return string;
|
|
30143
|
+
}
|
|
30144
|
+
const { openAll, closeAll } = styler;
|
|
30145
|
+
if (string.includes("\x1B")) {
|
|
30146
|
+
while (styler !== void 0) {
|
|
30147
|
+
string = stringReplaceAll(string, styler.close, styler.open);
|
|
30148
|
+
styler = styler.parent;
|
|
30149
|
+
}
|
|
30150
|
+
}
|
|
30151
|
+
const lfIndex = string.indexOf("\n");
|
|
30152
|
+
if (lfIndex !== -1) {
|
|
30153
|
+
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
30154
|
+
}
|
|
30155
|
+
return openAll + string + closeAll;
|
|
30156
|
+
};
|
|
30157
|
+
Object.defineProperties(createChalk.prototype, styles2);
|
|
30158
|
+
var chalk = createChalk();
|
|
30159
|
+
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
30160
|
+
var source_default = chalk;
|
|
30161
|
+
|
|
29673
30162
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
29674
30163
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
29675
30164
|
var getWorkspaceRoot2 = () => {
|
|
@@ -29721,7 +30210,9 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
29721
30210
|
}) => async (tree, options) => {
|
|
29722
30211
|
const startTime = Date.now();
|
|
29723
30212
|
try {
|
|
29724
|
-
console.info(
|
|
30213
|
+
console.info(
|
|
30214
|
+
source_default.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} generator...`)
|
|
30215
|
+
);
|
|
29725
30216
|
let config;
|
|
29726
30217
|
if (!generatorOptions.skipReadingConfig) {
|
|
29727
30218
|
config = getDefaultConfig({
|
|
@@ -29730,29 +30221,31 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
29730
30221
|
});
|
|
29731
30222
|
setConfigEnv(config);
|
|
29732
30223
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug(
|
|
29733
|
-
|
|
30224
|
+
source_default.dim(
|
|
30225
|
+
`Loaded Storm config into env:
|
|
29734
30226
|
${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}`
|
|
30227
|
+
)
|
|
29735
30228
|
);
|
|
29736
30229
|
}
|
|
29737
30230
|
if (generatorOptions?.hooks?.applyDefaultOptions) {
|
|
29738
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Running the applyDefaultOptions hook...`);
|
|
30231
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Running the applyDefaultOptions hook...`));
|
|
29739
30232
|
options = await Promise.resolve(
|
|
29740
30233
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
29741
30234
|
);
|
|
29742
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Completed the applyDefaultOptions hook...`);
|
|
30235
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Completed the applyDefaultOptions hook...`));
|
|
29743
30236
|
}
|
|
29744
|
-
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug("\u2699\uFE0F Generator schema options: \n", options);
|
|
30237
|
+
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug(source_default.dim("\u2699\uFE0F Generator schema options: \n"), options);
|
|
29745
30238
|
const tokenized = applyWorkspaceTokens(
|
|
29746
30239
|
options,
|
|
29747
30240
|
{ workspaceRoot: tree.root, config },
|
|
29748
30241
|
applyWorkspaceGeneratorTokens
|
|
29749
30242
|
);
|
|
29750
30243
|
if (generatorOptions?.hooks?.preProcess) {
|
|
29751
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Running the preProcess hook...`);
|
|
30244
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Running the preProcess hook...`));
|
|
29752
30245
|
await Promise.resolve(
|
|
29753
30246
|
generatorOptions.hooks.preProcess(options, config)
|
|
29754
30247
|
);
|
|
29755
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Completed the preProcess hook...`);
|
|
30248
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Completed the preProcess hook...`));
|
|
29756
30249
|
}
|
|
29757
30250
|
const result = await Promise.resolve(
|
|
29758
30251
|
generatorFn(tree, tokenized, config)
|
|
@@ -29763,23 +30256,33 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
|
|
|
29763
30256
|
});
|
|
29764
30257
|
}
|
|
29765
30258
|
if (generatorOptions?.hooks?.postProcess) {
|
|
29766
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Running the postProcess hook...`);
|
|
30259
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Running the postProcess hook...`));
|
|
29767
30260
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
29768
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Completed the postProcess hook...`);
|
|
30261
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Completed the postProcess hook...`));
|
|
29769
30262
|
}
|
|
29770
|
-
console.info(
|
|
30263
|
+
console.info(
|
|
30264
|
+
source_default.bold.hex("#087f5b")(
|
|
30265
|
+
`\u{1F389} Successfully completed running the ${name} generator!`
|
|
30266
|
+
)
|
|
30267
|
+
);
|
|
29771
30268
|
return {
|
|
29772
30269
|
success: true
|
|
29773
30270
|
};
|
|
29774
30271
|
} catch (error) {
|
|
29775
|
-
console.error(
|
|
29776
|
-
|
|
30272
|
+
console.error(
|
|
30273
|
+
source_default.bold.hex("#7d1a1a")(
|
|
30274
|
+
`\u274C An error occurred while running the generator`
|
|
30275
|
+
)
|
|
30276
|
+
);
|
|
30277
|
+
console.error(source_default.bold.hex("#7d1a1a")(error));
|
|
29777
30278
|
return {
|
|
29778
30279
|
success: false
|
|
29779
30280
|
};
|
|
29780
30281
|
} finally {
|
|
29781
30282
|
console.info(
|
|
29782
|
-
|
|
30283
|
+
source_default.dim(
|
|
30284
|
+
`\u23F1\uFE0F The${name ? ` ${name}` : ""} generator took ${Date.now() - startTime}ms to complete`
|
|
30285
|
+
)
|
|
29783
30286
|
);
|
|
29784
30287
|
}
|
|
29785
30288
|
};
|