@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
package/src/base/index.js
CHANGED
|
@@ -1668,21 +1668,21 @@ var require_ansi_styles = __commonJS({
|
|
|
1668
1668
|
"node_modules/.pnpm/ansi-styles@3.2.1/node_modules/ansi-styles/index.js"(exports, module2) {
|
|
1669
1669
|
"use strict";
|
|
1670
1670
|
var colorConvert = require_color_convert();
|
|
1671
|
-
var
|
|
1671
|
+
var wrapAnsi162 = (fn, offset) => function() {
|
|
1672
1672
|
const code = fn.apply(colorConvert, arguments);
|
|
1673
1673
|
return `\x1B[${code + offset}m`;
|
|
1674
1674
|
};
|
|
1675
|
-
var
|
|
1675
|
+
var wrapAnsi2562 = (fn, offset) => function() {
|
|
1676
1676
|
const code = fn.apply(colorConvert, arguments);
|
|
1677
1677
|
return `\x1B[${38 + offset};5;${code}m`;
|
|
1678
1678
|
};
|
|
1679
|
-
var
|
|
1679
|
+
var wrapAnsi16m2 = (fn, offset) => function() {
|
|
1680
1680
|
const rgb = fn.apply(colorConvert, arguments);
|
|
1681
1681
|
return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
1682
1682
|
};
|
|
1683
|
-
function
|
|
1683
|
+
function assembleStyles2() {
|
|
1684
1684
|
const codes = /* @__PURE__ */ new Map();
|
|
1685
|
-
const
|
|
1685
|
+
const styles3 = {
|
|
1686
1686
|
modifier: {
|
|
1687
1687
|
reset: [0, 0],
|
|
1688
1688
|
// 21 isn't widely supported and 22 does the same thing
|
|
@@ -1733,48 +1733,48 @@ var require_ansi_styles = __commonJS({
|
|
|
1733
1733
|
bgWhiteBright: [107, 49]
|
|
1734
1734
|
}
|
|
1735
1735
|
};
|
|
1736
|
-
|
|
1737
|
-
for (const groupName of Object.keys(
|
|
1738
|
-
const group =
|
|
1736
|
+
styles3.color.grey = styles3.color.gray;
|
|
1737
|
+
for (const groupName of Object.keys(styles3)) {
|
|
1738
|
+
const group = styles3[groupName];
|
|
1739
1739
|
for (const styleName of Object.keys(group)) {
|
|
1740
1740
|
const style = group[styleName];
|
|
1741
|
-
|
|
1741
|
+
styles3[styleName] = {
|
|
1742
1742
|
open: `\x1B[${style[0]}m`,
|
|
1743
1743
|
close: `\x1B[${style[1]}m`
|
|
1744
1744
|
};
|
|
1745
|
-
group[styleName] =
|
|
1745
|
+
group[styleName] = styles3[styleName];
|
|
1746
1746
|
codes.set(style[0], style[1]);
|
|
1747
1747
|
}
|
|
1748
|
-
Object.defineProperty(
|
|
1748
|
+
Object.defineProperty(styles3, groupName, {
|
|
1749
1749
|
value: group,
|
|
1750
1750
|
enumerable: false
|
|
1751
1751
|
});
|
|
1752
|
-
Object.defineProperty(
|
|
1752
|
+
Object.defineProperty(styles3, "codes", {
|
|
1753
1753
|
value: codes,
|
|
1754
1754
|
enumerable: false
|
|
1755
1755
|
});
|
|
1756
1756
|
}
|
|
1757
1757
|
const ansi2ansi = (n) => n;
|
|
1758
1758
|
const rgb2rgb = (r, g, b) => [r, g, b];
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
ansi:
|
|
1759
|
+
styles3.color.close = "\x1B[39m";
|
|
1760
|
+
styles3.bgColor.close = "\x1B[49m";
|
|
1761
|
+
styles3.color.ansi = {
|
|
1762
|
+
ansi: wrapAnsi162(ansi2ansi, 0)
|
|
1763
1763
|
};
|
|
1764
|
-
|
|
1765
|
-
ansi256:
|
|
1764
|
+
styles3.color.ansi256 = {
|
|
1765
|
+
ansi256: wrapAnsi2562(ansi2ansi, 0)
|
|
1766
1766
|
};
|
|
1767
|
-
|
|
1768
|
-
rgb:
|
|
1767
|
+
styles3.color.ansi16m = {
|
|
1768
|
+
rgb: wrapAnsi16m2(rgb2rgb, 0)
|
|
1769
1769
|
};
|
|
1770
|
-
|
|
1771
|
-
ansi:
|
|
1770
|
+
styles3.bgColor.ansi = {
|
|
1771
|
+
ansi: wrapAnsi162(ansi2ansi, 10)
|
|
1772
1772
|
};
|
|
1773
|
-
|
|
1774
|
-
ansi256:
|
|
1773
|
+
styles3.bgColor.ansi256 = {
|
|
1774
|
+
ansi256: wrapAnsi2562(ansi2ansi, 10)
|
|
1775
1775
|
};
|
|
1776
|
-
|
|
1777
|
-
rgb:
|
|
1776
|
+
styles3.bgColor.ansi16m = {
|
|
1777
|
+
rgb: wrapAnsi16m2(rgb2rgb, 10)
|
|
1778
1778
|
};
|
|
1779
1779
|
for (let key of Object.keys(colorConvert)) {
|
|
1780
1780
|
if (typeof colorConvert[key] !== "object") {
|
|
@@ -1785,23 +1785,23 @@ var require_ansi_styles = __commonJS({
|
|
|
1785
1785
|
key = "ansi";
|
|
1786
1786
|
}
|
|
1787
1787
|
if ("ansi16" in suite) {
|
|
1788
|
-
|
|
1789
|
-
|
|
1788
|
+
styles3.color.ansi[key] = wrapAnsi162(suite.ansi16, 0);
|
|
1789
|
+
styles3.bgColor.ansi[key] = wrapAnsi162(suite.ansi16, 10);
|
|
1790
1790
|
}
|
|
1791
1791
|
if ("ansi256" in suite) {
|
|
1792
|
-
|
|
1793
|
-
|
|
1792
|
+
styles3.color.ansi256[key] = wrapAnsi2562(suite.ansi256, 0);
|
|
1793
|
+
styles3.bgColor.ansi256[key] = wrapAnsi2562(suite.ansi256, 10);
|
|
1794
1794
|
}
|
|
1795
1795
|
if ("rgb" in suite) {
|
|
1796
|
-
|
|
1797
|
-
|
|
1796
|
+
styles3.color.ansi16m[key] = wrapAnsi16m2(suite.rgb, 0);
|
|
1797
|
+
styles3.bgColor.ansi16m[key] = wrapAnsi16m2(suite.rgb, 10);
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
1800
|
-
return
|
|
1800
|
+
return styles3;
|
|
1801
1801
|
}
|
|
1802
1802
|
Object.defineProperty(module2, "exports", {
|
|
1803
1803
|
enumerable: true,
|
|
1804
|
-
get:
|
|
1804
|
+
get: assembleStyles2
|
|
1805
1805
|
});
|
|
1806
1806
|
}
|
|
1807
1807
|
});
|
|
@@ -1824,19 +1824,19 @@ var require_has_flag = __commonJS({
|
|
|
1824
1824
|
var require_supports_color = __commonJS({
|
|
1825
1825
|
"node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
1826
1826
|
"use strict";
|
|
1827
|
-
var
|
|
1828
|
-
var
|
|
1829
|
-
var
|
|
1827
|
+
var os2 = require("os");
|
|
1828
|
+
var hasFlag2 = require_has_flag();
|
|
1829
|
+
var env2 = process.env;
|
|
1830
1830
|
var forceColor;
|
|
1831
|
-
if (
|
|
1831
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false")) {
|
|
1832
1832
|
forceColor = false;
|
|
1833
|
-
} else if (
|
|
1833
|
+
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
1834
1834
|
forceColor = true;
|
|
1835
1835
|
}
|
|
1836
|
-
if ("FORCE_COLOR" in
|
|
1837
|
-
forceColor =
|
|
1836
|
+
if ("FORCE_COLOR" in env2) {
|
|
1837
|
+
forceColor = env2.FORCE_COLOR.length === 0 || parseInt(env2.FORCE_COLOR, 10) !== 0;
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1839
|
+
function translateLevel2(level) {
|
|
1840
1840
|
if (level === 0) {
|
|
1841
1841
|
return false;
|
|
1842
1842
|
}
|
|
@@ -1847,14 +1847,14 @@ var require_supports_color = __commonJS({
|
|
|
1847
1847
|
has16m: level >= 3
|
|
1848
1848
|
};
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1850
|
+
function supportsColor2(stream) {
|
|
1851
1851
|
if (forceColor === false) {
|
|
1852
1852
|
return 0;
|
|
1853
1853
|
}
|
|
1854
|
-
if (
|
|
1854
|
+
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
1855
1855
|
return 3;
|
|
1856
1856
|
}
|
|
1857
|
-
if (
|
|
1857
|
+
if (hasFlag2("color=256")) {
|
|
1858
1858
|
return 2;
|
|
1859
1859
|
}
|
|
1860
1860
|
if (stream && !stream.isTTY && forceColor !== true) {
|
|
@@ -1862,50 +1862,50 @@ var require_supports_color = __commonJS({
|
|
|
1862
1862
|
}
|
|
1863
1863
|
const min = forceColor ? 1 : 0;
|
|
1864
1864
|
if (process.platform === "win32") {
|
|
1865
|
-
const osRelease =
|
|
1865
|
+
const osRelease = os2.release().split(".");
|
|
1866
1866
|
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
1867
1867
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
1868
1868
|
}
|
|
1869
1869
|
return 1;
|
|
1870
1870
|
}
|
|
1871
|
-
if ("CI" in
|
|
1872
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in
|
|
1871
|
+
if ("CI" in env2) {
|
|
1872
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
1873
1873
|
return 1;
|
|
1874
1874
|
}
|
|
1875
1875
|
return min;
|
|
1876
1876
|
}
|
|
1877
|
-
if ("TEAMCITY_VERSION" in
|
|
1878
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
1877
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
1878
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
1879
1879
|
}
|
|
1880
|
-
if (
|
|
1880
|
+
if (env2.COLORTERM === "truecolor") {
|
|
1881
1881
|
return 3;
|
|
1882
1882
|
}
|
|
1883
|
-
if ("TERM_PROGRAM" in
|
|
1884
|
-
const version = parseInt((
|
|
1885
|
-
switch (
|
|
1883
|
+
if ("TERM_PROGRAM" in env2) {
|
|
1884
|
+
const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
1885
|
+
switch (env2.TERM_PROGRAM) {
|
|
1886
1886
|
case "iTerm.app":
|
|
1887
1887
|
return version >= 3 ? 3 : 2;
|
|
1888
1888
|
case "Apple_Terminal":
|
|
1889
1889
|
return 2;
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
|
-
if (/-256(color)?$/i.test(
|
|
1892
|
+
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
1893
1893
|
return 2;
|
|
1894
1894
|
}
|
|
1895
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
|
|
1895
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
1896
1896
|
return 1;
|
|
1897
1897
|
}
|
|
1898
|
-
if ("COLORTERM" in
|
|
1898
|
+
if ("COLORTERM" in env2) {
|
|
1899
1899
|
return 1;
|
|
1900
1900
|
}
|
|
1901
|
-
if (
|
|
1901
|
+
if (env2.TERM === "dumb") {
|
|
1902
1902
|
return min;
|
|
1903
1903
|
}
|
|
1904
1904
|
return min;
|
|
1905
1905
|
}
|
|
1906
1906
|
function getSupportLevel(stream) {
|
|
1907
|
-
const level =
|
|
1908
|
-
return
|
|
1907
|
+
const level = supportsColor2(stream);
|
|
1908
|
+
return translateLevel2(level);
|
|
1909
1909
|
}
|
|
1910
1910
|
module2.exports = {
|
|
1911
1911
|
supportsColor: getSupportLevel,
|
|
@@ -1971,14 +1971,14 @@ var require_templates = __commonJS({
|
|
|
1971
1971
|
}
|
|
1972
1972
|
return results;
|
|
1973
1973
|
}
|
|
1974
|
-
function buildStyle(
|
|
1974
|
+
function buildStyle(chalk2, styles3) {
|
|
1975
1975
|
const enabled = {};
|
|
1976
|
-
for (const layer of
|
|
1976
|
+
for (const layer of styles3) {
|
|
1977
1977
|
for (const style of layer.styles) {
|
|
1978
1978
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
1981
|
-
let current =
|
|
1981
|
+
let current = chalk2;
|
|
1982
1982
|
for (const styleName of Object.keys(enabled)) {
|
|
1983
1983
|
if (Array.isArray(enabled[styleName])) {
|
|
1984
1984
|
if (!(styleName in current)) {
|
|
@@ -1993,8 +1993,8 @@ var require_templates = __commonJS({
|
|
|
1993
1993
|
}
|
|
1994
1994
|
return current;
|
|
1995
1995
|
}
|
|
1996
|
-
module2.exports = (
|
|
1997
|
-
const
|
|
1996
|
+
module2.exports = (chalk2, tmp) => {
|
|
1997
|
+
const styles3 = [];
|
|
1998
1998
|
const chunks = [];
|
|
1999
1999
|
let chunk = [];
|
|
2000
2000
|
tmp.replace(TEMPLATE_REGEX, (m, escapeChar, inverse, style, close, chr) => {
|
|
@@ -2003,22 +2003,22 @@ var require_templates = __commonJS({
|
|
|
2003
2003
|
} else if (style) {
|
|
2004
2004
|
const str = chunk.join("");
|
|
2005
2005
|
chunk = [];
|
|
2006
|
-
chunks.push(
|
|
2007
|
-
|
|
2006
|
+
chunks.push(styles3.length === 0 ? str : buildStyle(chalk2, styles3)(str));
|
|
2007
|
+
styles3.push({ inverse, styles: parseStyle(style) });
|
|
2008
2008
|
} else if (close) {
|
|
2009
|
-
if (
|
|
2009
|
+
if (styles3.length === 0) {
|
|
2010
2010
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
2011
2011
|
}
|
|
2012
|
-
chunks.push(buildStyle(
|
|
2012
|
+
chunks.push(buildStyle(chalk2, styles3)(chunk.join("")));
|
|
2013
2013
|
chunk = [];
|
|
2014
|
-
|
|
2014
|
+
styles3.pop();
|
|
2015
2015
|
} else {
|
|
2016
2016
|
chunk.push(chr);
|
|
2017
2017
|
}
|
|
2018
2018
|
});
|
|
2019
2019
|
chunks.push(chunk.join(""));
|
|
2020
|
-
if (
|
|
2021
|
-
const errMsg = `Chalk template literal is missing ${
|
|
2020
|
+
if (styles3.length > 0) {
|
|
2021
|
+
const errMsg = `Chalk template literal is missing ${styles3.length} closing bracket${styles3.length === 1 ? "" : "s"} (\`}\`)`;
|
|
2022
2022
|
throw new Error(errMsg);
|
|
2023
2023
|
}
|
|
2024
2024
|
return chunks.join("");
|
|
@@ -2031,97 +2031,97 @@ var require_chalk = __commonJS({
|
|
|
2031
2031
|
"node_modules/.pnpm/chalk@2.4.2/node_modules/chalk/index.js"(exports, module2) {
|
|
2032
2032
|
"use strict";
|
|
2033
2033
|
var escapeStringRegexp = require_escape_string_regexp();
|
|
2034
|
-
var
|
|
2035
|
-
var
|
|
2034
|
+
var ansiStyles2 = require_ansi_styles();
|
|
2035
|
+
var stdoutColor2 = require_supports_color().stdout;
|
|
2036
2036
|
var template = require_templates();
|
|
2037
2037
|
var isSimpleWindowsTerm = process.platform === "win32" && !(process.env.TERM || "").toLowerCase().startsWith("xterm");
|
|
2038
|
-
var
|
|
2038
|
+
var levelMapping2 = ["ansi", "ansi", "ansi256", "ansi16m"];
|
|
2039
2039
|
var skipModels = /* @__PURE__ */ new Set(["gray"]);
|
|
2040
|
-
var
|
|
2041
|
-
function
|
|
2040
|
+
var styles3 = /* @__PURE__ */ Object.create(null);
|
|
2041
|
+
function applyOptions2(obj, options) {
|
|
2042
2042
|
options = options || {};
|
|
2043
|
-
const scLevel =
|
|
2043
|
+
const scLevel = stdoutColor2 ? stdoutColor2.level : 0;
|
|
2044
2044
|
obj.level = options.level === void 0 ? scLevel : options.level;
|
|
2045
2045
|
obj.enabled = "enabled" in options ? options.enabled : obj.level > 0;
|
|
2046
2046
|
}
|
|
2047
2047
|
function Chalk(options) {
|
|
2048
2048
|
if (!this || !(this instanceof Chalk) || this.template) {
|
|
2049
|
-
const
|
|
2050
|
-
|
|
2051
|
-
|
|
2049
|
+
const chalk2 = {};
|
|
2050
|
+
applyOptions2(chalk2, options);
|
|
2051
|
+
chalk2.template = function() {
|
|
2052
2052
|
const args = [].slice.call(arguments);
|
|
2053
|
-
return chalkTag.apply(null, [
|
|
2053
|
+
return chalkTag.apply(null, [chalk2.template].concat(args));
|
|
2054
2054
|
};
|
|
2055
|
-
Object.setPrototypeOf(
|
|
2056
|
-
Object.setPrototypeOf(
|
|
2057
|
-
|
|
2058
|
-
return
|
|
2055
|
+
Object.setPrototypeOf(chalk2, Chalk.prototype);
|
|
2056
|
+
Object.setPrototypeOf(chalk2.template, chalk2);
|
|
2057
|
+
chalk2.template.constructor = Chalk;
|
|
2058
|
+
return chalk2.template;
|
|
2059
2059
|
}
|
|
2060
|
-
|
|
2060
|
+
applyOptions2(this, options);
|
|
2061
2061
|
}
|
|
2062
2062
|
if (isSimpleWindowsTerm) {
|
|
2063
|
-
|
|
2063
|
+
ansiStyles2.blue.open = "\x1B[94m";
|
|
2064
2064
|
}
|
|
2065
|
-
for (const key of Object.keys(
|
|
2066
|
-
|
|
2067
|
-
|
|
2065
|
+
for (const key of Object.keys(ansiStyles2)) {
|
|
2066
|
+
ansiStyles2[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles2[key].close), "g");
|
|
2067
|
+
styles3[key] = {
|
|
2068
2068
|
get() {
|
|
2069
|
-
const codes =
|
|
2069
|
+
const codes = ansiStyles2[key];
|
|
2070
2070
|
return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key);
|
|
2071
2071
|
}
|
|
2072
2072
|
};
|
|
2073
2073
|
}
|
|
2074
|
-
|
|
2074
|
+
styles3.visible = {
|
|
2075
2075
|
get() {
|
|
2076
2076
|
return build.call(this, this._styles || [], true, "visible");
|
|
2077
2077
|
}
|
|
2078
2078
|
};
|
|
2079
|
-
|
|
2080
|
-
for (const model of Object.keys(
|
|
2079
|
+
ansiStyles2.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles2.color.close), "g");
|
|
2080
|
+
for (const model of Object.keys(ansiStyles2.color.ansi)) {
|
|
2081
2081
|
if (skipModels.has(model)) {
|
|
2082
2082
|
continue;
|
|
2083
2083
|
}
|
|
2084
|
-
|
|
2084
|
+
styles3[model] = {
|
|
2085
2085
|
get() {
|
|
2086
2086
|
const level = this.level;
|
|
2087
2087
|
return function() {
|
|
2088
|
-
const open =
|
|
2088
|
+
const open = ansiStyles2.color[levelMapping2[level]][model].apply(null, arguments);
|
|
2089
2089
|
const codes = {
|
|
2090
2090
|
open,
|
|
2091
|
-
close:
|
|
2092
|
-
closeRe:
|
|
2091
|
+
close: ansiStyles2.color.close,
|
|
2092
|
+
closeRe: ansiStyles2.color.closeRe
|
|
2093
2093
|
};
|
|
2094
2094
|
return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
|
|
2095
2095
|
};
|
|
2096
2096
|
}
|
|
2097
2097
|
};
|
|
2098
2098
|
}
|
|
2099
|
-
|
|
2100
|
-
for (const model of Object.keys(
|
|
2099
|
+
ansiStyles2.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles2.bgColor.close), "g");
|
|
2100
|
+
for (const model of Object.keys(ansiStyles2.bgColor.ansi)) {
|
|
2101
2101
|
if (skipModels.has(model)) {
|
|
2102
2102
|
continue;
|
|
2103
2103
|
}
|
|
2104
2104
|
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
2105
|
-
|
|
2105
|
+
styles3[bgModel] = {
|
|
2106
2106
|
get() {
|
|
2107
2107
|
const level = this.level;
|
|
2108
2108
|
return function() {
|
|
2109
|
-
const open =
|
|
2109
|
+
const open = ansiStyles2.bgColor[levelMapping2[level]][model].apply(null, arguments);
|
|
2110
2110
|
const codes = {
|
|
2111
2111
|
open,
|
|
2112
|
-
close:
|
|
2113
|
-
closeRe:
|
|
2112
|
+
close: ansiStyles2.bgColor.close,
|
|
2113
|
+
closeRe: ansiStyles2.bgColor.closeRe
|
|
2114
2114
|
};
|
|
2115
2115
|
return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
|
|
2116
2116
|
};
|
|
2117
2117
|
}
|
|
2118
2118
|
};
|
|
2119
2119
|
}
|
|
2120
|
-
var
|
|
2121
|
-
},
|
|
2120
|
+
var proto2 = Object.defineProperties(() => {
|
|
2121
|
+
}, styles3);
|
|
2122
2122
|
function build(_styles, _empty, key) {
|
|
2123
2123
|
const builder = function() {
|
|
2124
|
-
return
|
|
2124
|
+
return applyStyle2.apply(builder, arguments);
|
|
2125
2125
|
};
|
|
2126
2126
|
builder._styles = _styles;
|
|
2127
2127
|
builder._empty = _empty;
|
|
@@ -2145,10 +2145,10 @@ var require_chalk = __commonJS({
|
|
|
2145
2145
|
}
|
|
2146
2146
|
});
|
|
2147
2147
|
builder.hasGrey = this.hasGrey || key === "gray" || key === "grey";
|
|
2148
|
-
builder.__proto__ =
|
|
2148
|
+
builder.__proto__ = proto2;
|
|
2149
2149
|
return builder;
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function applyStyle2() {
|
|
2152
2152
|
const args = arguments;
|
|
2153
2153
|
const argsLen = args.length;
|
|
2154
2154
|
let str = String(arguments[0]);
|
|
@@ -2163,18 +2163,18 @@ var require_chalk = __commonJS({
|
|
|
2163
2163
|
if (!this.enabled || this.level <= 0 || !str) {
|
|
2164
2164
|
return this._empty ? "" : str;
|
|
2165
2165
|
}
|
|
2166
|
-
const originalDim =
|
|
2166
|
+
const originalDim = ansiStyles2.dim.open;
|
|
2167
2167
|
if (isSimpleWindowsTerm && this.hasGrey) {
|
|
2168
|
-
|
|
2168
|
+
ansiStyles2.dim.open = "";
|
|
2169
2169
|
}
|
|
2170
2170
|
for (const code of this._styles.slice().reverse()) {
|
|
2171
2171
|
str = code.open + str.replace(code.closeRe, code.open) + code.close;
|
|
2172
2172
|
str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`);
|
|
2173
2173
|
}
|
|
2174
|
-
|
|
2174
|
+
ansiStyles2.dim.open = originalDim;
|
|
2175
2175
|
return str;
|
|
2176
2176
|
}
|
|
2177
|
-
function chalkTag(
|
|
2177
|
+
function chalkTag(chalk2, strings) {
|
|
2178
2178
|
if (!Array.isArray(strings)) {
|
|
2179
2179
|
return [].slice.call(arguments, 1).join(" ");
|
|
2180
2180
|
}
|
|
@@ -2184,11 +2184,11 @@ var require_chalk = __commonJS({
|
|
|
2184
2184
|
parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
|
2185
2185
|
parts.push(String(strings.raw[i]));
|
|
2186
2186
|
}
|
|
2187
|
-
return template(
|
|
2187
|
+
return template(chalk2, parts.join(""));
|
|
2188
2188
|
}
|
|
2189
|
-
Object.defineProperties(Chalk.prototype,
|
|
2189
|
+
Object.defineProperties(Chalk.prototype, styles3);
|
|
2190
2190
|
module2.exports = Chalk();
|
|
2191
|
-
module2.exports.supportsColor =
|
|
2191
|
+
module2.exports.supportsColor = stdoutColor2;
|
|
2192
2192
|
module2.exports.default = module2.exports;
|
|
2193
2193
|
}
|
|
2194
2194
|
});
|
|
@@ -2244,17 +2244,17 @@ var require_lib2 = __commonJS({
|
|
|
2244
2244
|
return newObj;
|
|
2245
2245
|
}
|
|
2246
2246
|
var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
|
|
2247
|
-
function getDefs(
|
|
2247
|
+
function getDefs(chalk2) {
|
|
2248
2248
|
return {
|
|
2249
|
-
keyword:
|
|
2250
|
-
capitalized:
|
|
2251
|
-
jsxIdentifier:
|
|
2252
|
-
punctuator:
|
|
2253
|
-
number:
|
|
2254
|
-
string:
|
|
2255
|
-
regex:
|
|
2256
|
-
comment:
|
|
2257
|
-
invalid:
|
|
2249
|
+
keyword: chalk2.cyan,
|
|
2250
|
+
capitalized: chalk2.yellow,
|
|
2251
|
+
jsxIdentifier: chalk2.yellow,
|
|
2252
|
+
punctuator: chalk2.yellow,
|
|
2253
|
+
number: chalk2.magenta,
|
|
2254
|
+
string: chalk2.green,
|
|
2255
|
+
regex: chalk2.magenta,
|
|
2256
|
+
comment: chalk2.grey,
|
|
2257
|
+
invalid: chalk2.white.bgRed.bold
|
|
2258
2258
|
};
|
|
2259
2259
|
}
|
|
2260
2260
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -2399,11 +2399,11 @@ var require_lib3 = __commonJS({
|
|
|
2399
2399
|
return _chalk.default;
|
|
2400
2400
|
}
|
|
2401
2401
|
var deprecationWarningShown = false;
|
|
2402
|
-
function getDefs(
|
|
2402
|
+
function getDefs(chalk2) {
|
|
2403
2403
|
return {
|
|
2404
|
-
gutter:
|
|
2405
|
-
marker:
|
|
2406
|
-
message:
|
|
2404
|
+
gutter: chalk2.grey,
|
|
2405
|
+
marker: chalk2.red.bold,
|
|
2406
|
+
message: chalk2.red.bold
|
|
2407
2407
|
};
|
|
2408
2408
|
}
|
|
2409
2409
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -2465,8 +2465,8 @@ var require_lib3 = __commonJS({
|
|
|
2465
2465
|
}
|
|
2466
2466
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
2467
2467
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
2468
|
-
const
|
|
2469
|
-
const defs = getDefs(
|
|
2468
|
+
const chalk2 = getChalk(opts.forceColor);
|
|
2469
|
+
const defs = getDefs(chalk2);
|
|
2470
2470
|
const maybeHighlight = (chalkFn, string) => {
|
|
2471
2471
|
return highlighted ? chalkFn(string) : string;
|
|
2472
2472
|
};
|
|
@@ -2505,7 +2505,7 @@ var require_lib3 = __commonJS({
|
|
|
2505
2505
|
${frame}`;
|
|
2506
2506
|
}
|
|
2507
2507
|
if (highlighted) {
|
|
2508
|
-
return
|
|
2508
|
+
return chalk2.reset(frame);
|
|
2509
2509
|
} else {
|
|
2510
2510
|
return frame;
|
|
2511
2511
|
}
|
|
@@ -5704,10 +5704,10 @@ var require_env_paths = __commonJS({
|
|
|
5704
5704
|
"node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports, module2) {
|
|
5705
5705
|
"use strict";
|
|
5706
5706
|
var path = require("path");
|
|
5707
|
-
var
|
|
5708
|
-
var homedir =
|
|
5709
|
-
var tmpdir =
|
|
5710
|
-
var { env } = process;
|
|
5707
|
+
var os2 = require("os");
|
|
5708
|
+
var homedir = os2.homedir();
|
|
5709
|
+
var tmpdir = os2.tmpdir();
|
|
5710
|
+
var { env: env2 } = process;
|
|
5711
5711
|
var macos = (name) => {
|
|
5712
5712
|
const library = path.join(homedir, "Library");
|
|
5713
5713
|
return {
|
|
@@ -5719,8 +5719,8 @@ var require_env_paths = __commonJS({
|
|
|
5719
5719
|
};
|
|
5720
5720
|
};
|
|
5721
5721
|
var windows = (name) => {
|
|
5722
|
-
const appData =
|
|
5723
|
-
const localAppData =
|
|
5722
|
+
const appData = env2.APPDATA || path.join(homedir, "AppData", "Roaming");
|
|
5723
|
+
const localAppData = env2.LOCALAPPDATA || path.join(homedir, "AppData", "Local");
|
|
5724
5724
|
return {
|
|
5725
5725
|
// Data/config/cache/log are invented by me as Windows isn't opinionated about this
|
|
5726
5726
|
data: path.join(localAppData, name, "Data"),
|
|
@@ -5733,11 +5733,11 @@ var require_env_paths = __commonJS({
|
|
|
5733
5733
|
var linux = (name) => {
|
|
5734
5734
|
const username = path.basename(homedir);
|
|
5735
5735
|
return {
|
|
5736
|
-
data: path.join(
|
|
5737
|
-
config: path.join(
|
|
5738
|
-
cache: path.join(
|
|
5736
|
+
data: path.join(env2.XDG_DATA_HOME || path.join(homedir, ".local", "share"), name),
|
|
5737
|
+
config: path.join(env2.XDG_CONFIG_HOME || path.join(homedir, ".config"), name),
|
|
5738
|
+
cache: path.join(env2.XDG_CACHE_HOME || path.join(homedir, ".cache"), name),
|
|
5739
5739
|
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
5740
|
-
log: path.join(
|
|
5740
|
+
log: path.join(env2.XDG_STATE_HOME || path.join(homedir, ".local", "state"), name),
|
|
5741
5741
|
temp: path.join(tmpdir, username, name)
|
|
5742
5742
|
};
|
|
5743
5743
|
};
|
|
@@ -10451,6 +10451,495 @@ var setConfigEnv = (config) => {
|
|
|
10451
10451
|
});
|
|
10452
10452
|
};
|
|
10453
10453
|
|
|
10454
|
+
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
10455
|
+
var ANSI_BACKGROUND_OFFSET = 10;
|
|
10456
|
+
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
10457
|
+
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
10458
|
+
var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
10459
|
+
var styles = {
|
|
10460
|
+
modifier: {
|
|
10461
|
+
reset: [0, 0],
|
|
10462
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
10463
|
+
bold: [1, 22],
|
|
10464
|
+
dim: [2, 22],
|
|
10465
|
+
italic: [3, 23],
|
|
10466
|
+
underline: [4, 24],
|
|
10467
|
+
overline: [53, 55],
|
|
10468
|
+
inverse: [7, 27],
|
|
10469
|
+
hidden: [8, 28],
|
|
10470
|
+
strikethrough: [9, 29]
|
|
10471
|
+
},
|
|
10472
|
+
color: {
|
|
10473
|
+
black: [30, 39],
|
|
10474
|
+
red: [31, 39],
|
|
10475
|
+
green: [32, 39],
|
|
10476
|
+
yellow: [33, 39],
|
|
10477
|
+
blue: [34, 39],
|
|
10478
|
+
magenta: [35, 39],
|
|
10479
|
+
cyan: [36, 39],
|
|
10480
|
+
white: [37, 39],
|
|
10481
|
+
// Bright color
|
|
10482
|
+
blackBright: [90, 39],
|
|
10483
|
+
gray: [90, 39],
|
|
10484
|
+
// Alias of `blackBright`
|
|
10485
|
+
grey: [90, 39],
|
|
10486
|
+
// Alias of `blackBright`
|
|
10487
|
+
redBright: [91, 39],
|
|
10488
|
+
greenBright: [92, 39],
|
|
10489
|
+
yellowBright: [93, 39],
|
|
10490
|
+
blueBright: [94, 39],
|
|
10491
|
+
magentaBright: [95, 39],
|
|
10492
|
+
cyanBright: [96, 39],
|
|
10493
|
+
whiteBright: [97, 39]
|
|
10494
|
+
},
|
|
10495
|
+
bgColor: {
|
|
10496
|
+
bgBlack: [40, 49],
|
|
10497
|
+
bgRed: [41, 49],
|
|
10498
|
+
bgGreen: [42, 49],
|
|
10499
|
+
bgYellow: [43, 49],
|
|
10500
|
+
bgBlue: [44, 49],
|
|
10501
|
+
bgMagenta: [45, 49],
|
|
10502
|
+
bgCyan: [46, 49],
|
|
10503
|
+
bgWhite: [47, 49],
|
|
10504
|
+
// Bright color
|
|
10505
|
+
bgBlackBright: [100, 49],
|
|
10506
|
+
bgGray: [100, 49],
|
|
10507
|
+
// Alias of `bgBlackBright`
|
|
10508
|
+
bgGrey: [100, 49],
|
|
10509
|
+
// Alias of `bgBlackBright`
|
|
10510
|
+
bgRedBright: [101, 49],
|
|
10511
|
+
bgGreenBright: [102, 49],
|
|
10512
|
+
bgYellowBright: [103, 49],
|
|
10513
|
+
bgBlueBright: [104, 49],
|
|
10514
|
+
bgMagentaBright: [105, 49],
|
|
10515
|
+
bgCyanBright: [106, 49],
|
|
10516
|
+
bgWhiteBright: [107, 49]
|
|
10517
|
+
}
|
|
10518
|
+
};
|
|
10519
|
+
var modifierNames = Object.keys(styles.modifier);
|
|
10520
|
+
var foregroundColorNames = Object.keys(styles.color);
|
|
10521
|
+
var backgroundColorNames = Object.keys(styles.bgColor);
|
|
10522
|
+
var colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
10523
|
+
function assembleStyles() {
|
|
10524
|
+
const codes = /* @__PURE__ */ new Map();
|
|
10525
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
10526
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
10527
|
+
styles[styleName] = {
|
|
10528
|
+
open: `\x1B[${style[0]}m`,
|
|
10529
|
+
close: `\x1B[${style[1]}m`
|
|
10530
|
+
};
|
|
10531
|
+
group[styleName] = styles[styleName];
|
|
10532
|
+
codes.set(style[0], style[1]);
|
|
10533
|
+
}
|
|
10534
|
+
Object.defineProperty(styles, groupName, {
|
|
10535
|
+
value: group,
|
|
10536
|
+
enumerable: false
|
|
10537
|
+
});
|
|
10538
|
+
}
|
|
10539
|
+
Object.defineProperty(styles, "codes", {
|
|
10540
|
+
value: codes,
|
|
10541
|
+
enumerable: false
|
|
10542
|
+
});
|
|
10543
|
+
styles.color.close = "\x1B[39m";
|
|
10544
|
+
styles.bgColor.close = "\x1B[49m";
|
|
10545
|
+
styles.color.ansi = wrapAnsi16();
|
|
10546
|
+
styles.color.ansi256 = wrapAnsi256();
|
|
10547
|
+
styles.color.ansi16m = wrapAnsi16m();
|
|
10548
|
+
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
10549
|
+
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
10550
|
+
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
10551
|
+
Object.defineProperties(styles, {
|
|
10552
|
+
rgbToAnsi256: {
|
|
10553
|
+
value(red, green, blue) {
|
|
10554
|
+
if (red === green && green === blue) {
|
|
10555
|
+
if (red < 8) {
|
|
10556
|
+
return 16;
|
|
10557
|
+
}
|
|
10558
|
+
if (red > 248) {
|
|
10559
|
+
return 231;
|
|
10560
|
+
}
|
|
10561
|
+
return Math.round((red - 8) / 247 * 24) + 232;
|
|
10562
|
+
}
|
|
10563
|
+
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
10564
|
+
},
|
|
10565
|
+
enumerable: false
|
|
10566
|
+
},
|
|
10567
|
+
hexToRgb: {
|
|
10568
|
+
value(hex) {
|
|
10569
|
+
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
10570
|
+
if (!matches) {
|
|
10571
|
+
return [0, 0, 0];
|
|
10572
|
+
}
|
|
10573
|
+
let [colorString] = matches;
|
|
10574
|
+
if (colorString.length === 3) {
|
|
10575
|
+
colorString = [...colorString].map((character) => character + character).join("");
|
|
10576
|
+
}
|
|
10577
|
+
const integer = Number.parseInt(colorString, 16);
|
|
10578
|
+
return [
|
|
10579
|
+
/* eslint-disable no-bitwise */
|
|
10580
|
+
integer >> 16 & 255,
|
|
10581
|
+
integer >> 8 & 255,
|
|
10582
|
+
integer & 255
|
|
10583
|
+
/* eslint-enable no-bitwise */
|
|
10584
|
+
];
|
|
10585
|
+
},
|
|
10586
|
+
enumerable: false
|
|
10587
|
+
},
|
|
10588
|
+
hexToAnsi256: {
|
|
10589
|
+
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
10590
|
+
enumerable: false
|
|
10591
|
+
},
|
|
10592
|
+
ansi256ToAnsi: {
|
|
10593
|
+
value(code) {
|
|
10594
|
+
if (code < 8) {
|
|
10595
|
+
return 30 + code;
|
|
10596
|
+
}
|
|
10597
|
+
if (code < 16) {
|
|
10598
|
+
return 90 + (code - 8);
|
|
10599
|
+
}
|
|
10600
|
+
let red;
|
|
10601
|
+
let green;
|
|
10602
|
+
let blue;
|
|
10603
|
+
if (code >= 232) {
|
|
10604
|
+
red = ((code - 232) * 10 + 8) / 255;
|
|
10605
|
+
green = red;
|
|
10606
|
+
blue = red;
|
|
10607
|
+
} else {
|
|
10608
|
+
code -= 16;
|
|
10609
|
+
const remainder = code % 36;
|
|
10610
|
+
red = Math.floor(code / 36) / 5;
|
|
10611
|
+
green = Math.floor(remainder / 6) / 5;
|
|
10612
|
+
blue = remainder % 6 / 5;
|
|
10613
|
+
}
|
|
10614
|
+
const value = Math.max(red, green, blue) * 2;
|
|
10615
|
+
if (value === 0) {
|
|
10616
|
+
return 30;
|
|
10617
|
+
}
|
|
10618
|
+
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
10619
|
+
if (value === 2) {
|
|
10620
|
+
result += 60;
|
|
10621
|
+
}
|
|
10622
|
+
return result;
|
|
10623
|
+
},
|
|
10624
|
+
enumerable: false
|
|
10625
|
+
},
|
|
10626
|
+
rgbToAnsi: {
|
|
10627
|
+
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
10628
|
+
enumerable: false
|
|
10629
|
+
},
|
|
10630
|
+
hexToAnsi: {
|
|
10631
|
+
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
10632
|
+
enumerable: false
|
|
10633
|
+
}
|
|
10634
|
+
});
|
|
10635
|
+
return styles;
|
|
10636
|
+
}
|
|
10637
|
+
var ansiStyles = assembleStyles();
|
|
10638
|
+
var ansi_styles_default = ansiStyles;
|
|
10639
|
+
|
|
10640
|
+
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
10641
|
+
var import_node_process = __toESM(require("node:process"), 1);
|
|
10642
|
+
var import_node_os = __toESM(require("node:os"), 1);
|
|
10643
|
+
var import_node_tty = __toESM(require("node:tty"), 1);
|
|
10644
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
|
|
10645
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
10646
|
+
const position = argv.indexOf(prefix + flag);
|
|
10647
|
+
const terminatorPosition = argv.indexOf("--");
|
|
10648
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
10649
|
+
}
|
|
10650
|
+
var { env } = import_node_process.default;
|
|
10651
|
+
var flagForceColor;
|
|
10652
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
10653
|
+
flagForceColor = 0;
|
|
10654
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
10655
|
+
flagForceColor = 1;
|
|
10656
|
+
}
|
|
10657
|
+
function envForceColor() {
|
|
10658
|
+
if ("FORCE_COLOR" in env) {
|
|
10659
|
+
if (env.FORCE_COLOR === "true") {
|
|
10660
|
+
return 1;
|
|
10661
|
+
}
|
|
10662
|
+
if (env.FORCE_COLOR === "false") {
|
|
10663
|
+
return 0;
|
|
10664
|
+
}
|
|
10665
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
10666
|
+
}
|
|
10667
|
+
}
|
|
10668
|
+
function translateLevel(level) {
|
|
10669
|
+
if (level === 0) {
|
|
10670
|
+
return false;
|
|
10671
|
+
}
|
|
10672
|
+
return {
|
|
10673
|
+
level,
|
|
10674
|
+
hasBasic: true,
|
|
10675
|
+
has256: level >= 2,
|
|
10676
|
+
has16m: level >= 3
|
|
10677
|
+
};
|
|
10678
|
+
}
|
|
10679
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
10680
|
+
const noFlagForceColor = envForceColor();
|
|
10681
|
+
if (noFlagForceColor !== void 0) {
|
|
10682
|
+
flagForceColor = noFlagForceColor;
|
|
10683
|
+
}
|
|
10684
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
10685
|
+
if (forceColor === 0) {
|
|
10686
|
+
return 0;
|
|
10687
|
+
}
|
|
10688
|
+
if (sniffFlags) {
|
|
10689
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
10690
|
+
return 3;
|
|
10691
|
+
}
|
|
10692
|
+
if (hasFlag("color=256")) {
|
|
10693
|
+
return 2;
|
|
10694
|
+
}
|
|
10695
|
+
}
|
|
10696
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
10697
|
+
return 1;
|
|
10698
|
+
}
|
|
10699
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
10700
|
+
return 0;
|
|
10701
|
+
}
|
|
10702
|
+
const min = forceColor || 0;
|
|
10703
|
+
if (env.TERM === "dumb") {
|
|
10704
|
+
return min;
|
|
10705
|
+
}
|
|
10706
|
+
if (import_node_process.default.platform === "win32") {
|
|
10707
|
+
const osRelease = import_node_os.default.release().split(".");
|
|
10708
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
10709
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
10710
|
+
}
|
|
10711
|
+
return 1;
|
|
10712
|
+
}
|
|
10713
|
+
if ("CI" in env) {
|
|
10714
|
+
if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
|
|
10715
|
+
return 3;
|
|
10716
|
+
}
|
|
10717
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
10718
|
+
return 1;
|
|
10719
|
+
}
|
|
10720
|
+
return min;
|
|
10721
|
+
}
|
|
10722
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
10723
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
10724
|
+
}
|
|
10725
|
+
if (env.COLORTERM === "truecolor") {
|
|
10726
|
+
return 3;
|
|
10727
|
+
}
|
|
10728
|
+
if (env.TERM === "xterm-kitty") {
|
|
10729
|
+
return 3;
|
|
10730
|
+
}
|
|
10731
|
+
if ("TERM_PROGRAM" in env) {
|
|
10732
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
10733
|
+
switch (env.TERM_PROGRAM) {
|
|
10734
|
+
case "iTerm.app": {
|
|
10735
|
+
return version >= 3 ? 3 : 2;
|
|
10736
|
+
}
|
|
10737
|
+
case "Apple_Terminal": {
|
|
10738
|
+
return 2;
|
|
10739
|
+
}
|
|
10740
|
+
}
|
|
10741
|
+
}
|
|
10742
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
10743
|
+
return 2;
|
|
10744
|
+
}
|
|
10745
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
10746
|
+
return 1;
|
|
10747
|
+
}
|
|
10748
|
+
if ("COLORTERM" in env) {
|
|
10749
|
+
return 1;
|
|
10750
|
+
}
|
|
10751
|
+
return min;
|
|
10752
|
+
}
|
|
10753
|
+
function createSupportsColor(stream, options = {}) {
|
|
10754
|
+
const level = _supportsColor(stream, {
|
|
10755
|
+
streamIsTTY: stream && stream.isTTY,
|
|
10756
|
+
...options
|
|
10757
|
+
});
|
|
10758
|
+
return translateLevel(level);
|
|
10759
|
+
}
|
|
10760
|
+
var supportsColor = {
|
|
10761
|
+
stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
|
|
10762
|
+
stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
|
|
10763
|
+
};
|
|
10764
|
+
var supports_color_default = supportsColor;
|
|
10765
|
+
|
|
10766
|
+
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/utilities.js
|
|
10767
|
+
function stringReplaceAll(string, substring, replacer) {
|
|
10768
|
+
let index = string.indexOf(substring);
|
|
10769
|
+
if (index === -1) {
|
|
10770
|
+
return string;
|
|
10771
|
+
}
|
|
10772
|
+
const substringLength = substring.length;
|
|
10773
|
+
let endIndex = 0;
|
|
10774
|
+
let returnValue = "";
|
|
10775
|
+
do {
|
|
10776
|
+
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
10777
|
+
endIndex = index + substringLength;
|
|
10778
|
+
index = string.indexOf(substring, endIndex);
|
|
10779
|
+
} while (index !== -1);
|
|
10780
|
+
returnValue += string.slice(endIndex);
|
|
10781
|
+
return returnValue;
|
|
10782
|
+
}
|
|
10783
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
10784
|
+
let endIndex = 0;
|
|
10785
|
+
let returnValue = "";
|
|
10786
|
+
do {
|
|
10787
|
+
const gotCR = string[index - 1] === "\r";
|
|
10788
|
+
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
10789
|
+
endIndex = index + 1;
|
|
10790
|
+
index = string.indexOf("\n", endIndex);
|
|
10791
|
+
} while (index !== -1);
|
|
10792
|
+
returnValue += string.slice(endIndex);
|
|
10793
|
+
return returnValue;
|
|
10794
|
+
}
|
|
10795
|
+
|
|
10796
|
+
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js
|
|
10797
|
+
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
10798
|
+
var GENERATOR = Symbol("GENERATOR");
|
|
10799
|
+
var STYLER = Symbol("STYLER");
|
|
10800
|
+
var IS_EMPTY = Symbol("IS_EMPTY");
|
|
10801
|
+
var levelMapping = [
|
|
10802
|
+
"ansi",
|
|
10803
|
+
"ansi",
|
|
10804
|
+
"ansi256",
|
|
10805
|
+
"ansi16m"
|
|
10806
|
+
];
|
|
10807
|
+
var styles2 = /* @__PURE__ */ Object.create(null);
|
|
10808
|
+
var applyOptions = (object, options = {}) => {
|
|
10809
|
+
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
10810
|
+
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
10811
|
+
}
|
|
10812
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
10813
|
+
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
10814
|
+
};
|
|
10815
|
+
var chalkFactory = (options) => {
|
|
10816
|
+
const chalk2 = (...strings) => strings.join(" ");
|
|
10817
|
+
applyOptions(chalk2, options);
|
|
10818
|
+
Object.setPrototypeOf(chalk2, createChalk.prototype);
|
|
10819
|
+
return chalk2;
|
|
10820
|
+
};
|
|
10821
|
+
function createChalk(options) {
|
|
10822
|
+
return chalkFactory(options);
|
|
10823
|
+
}
|
|
10824
|
+
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
10825
|
+
for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
10826
|
+
styles2[styleName] = {
|
|
10827
|
+
get() {
|
|
10828
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
10829
|
+
Object.defineProperty(this, styleName, { value: builder });
|
|
10830
|
+
return builder;
|
|
10831
|
+
}
|
|
10832
|
+
};
|
|
10833
|
+
}
|
|
10834
|
+
styles2.visible = {
|
|
10835
|
+
get() {
|
|
10836
|
+
const builder = createBuilder(this, this[STYLER], true);
|
|
10837
|
+
Object.defineProperty(this, "visible", { value: builder });
|
|
10838
|
+
return builder;
|
|
10839
|
+
}
|
|
10840
|
+
};
|
|
10841
|
+
var getModelAnsi = (model, level, type, ...arguments_) => {
|
|
10842
|
+
if (model === "rgb") {
|
|
10843
|
+
if (level === "ansi16m") {
|
|
10844
|
+
return ansi_styles_default[type].ansi16m(...arguments_);
|
|
10845
|
+
}
|
|
10846
|
+
if (level === "ansi256") {
|
|
10847
|
+
return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
|
|
10848
|
+
}
|
|
10849
|
+
return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
|
|
10850
|
+
}
|
|
10851
|
+
if (model === "hex") {
|
|
10852
|
+
return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
|
|
10853
|
+
}
|
|
10854
|
+
return ansi_styles_default[type][model](...arguments_);
|
|
10855
|
+
};
|
|
10856
|
+
var usedModels = ["rgb", "hex", "ansi256"];
|
|
10857
|
+
for (const model of usedModels) {
|
|
10858
|
+
styles2[model] = {
|
|
10859
|
+
get() {
|
|
10860
|
+
const { level } = this;
|
|
10861
|
+
return function(...arguments_) {
|
|
10862
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
|
|
10863
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
10864
|
+
};
|
|
10865
|
+
}
|
|
10866
|
+
};
|
|
10867
|
+
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
10868
|
+
styles2[bgModel] = {
|
|
10869
|
+
get() {
|
|
10870
|
+
const { level } = this;
|
|
10871
|
+
return function(...arguments_) {
|
|
10872
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
|
|
10873
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
10874
|
+
};
|
|
10875
|
+
}
|
|
10876
|
+
};
|
|
10877
|
+
}
|
|
10878
|
+
var proto = Object.defineProperties(() => {
|
|
10879
|
+
}, {
|
|
10880
|
+
...styles2,
|
|
10881
|
+
level: {
|
|
10882
|
+
enumerable: true,
|
|
10883
|
+
get() {
|
|
10884
|
+
return this[GENERATOR].level;
|
|
10885
|
+
},
|
|
10886
|
+
set(level) {
|
|
10887
|
+
this[GENERATOR].level = level;
|
|
10888
|
+
}
|
|
10889
|
+
}
|
|
10890
|
+
});
|
|
10891
|
+
var createStyler = (open, close, parent) => {
|
|
10892
|
+
let openAll;
|
|
10893
|
+
let closeAll;
|
|
10894
|
+
if (parent === void 0) {
|
|
10895
|
+
openAll = open;
|
|
10896
|
+
closeAll = close;
|
|
10897
|
+
} else {
|
|
10898
|
+
openAll = parent.openAll + open;
|
|
10899
|
+
closeAll = close + parent.closeAll;
|
|
10900
|
+
}
|
|
10901
|
+
return {
|
|
10902
|
+
open,
|
|
10903
|
+
close,
|
|
10904
|
+
openAll,
|
|
10905
|
+
closeAll,
|
|
10906
|
+
parent
|
|
10907
|
+
};
|
|
10908
|
+
};
|
|
10909
|
+
var createBuilder = (self, _styler, _isEmpty) => {
|
|
10910
|
+
const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
10911
|
+
Object.setPrototypeOf(builder, proto);
|
|
10912
|
+
builder[GENERATOR] = self;
|
|
10913
|
+
builder[STYLER] = _styler;
|
|
10914
|
+
builder[IS_EMPTY] = _isEmpty;
|
|
10915
|
+
return builder;
|
|
10916
|
+
};
|
|
10917
|
+
var applyStyle = (self, string) => {
|
|
10918
|
+
if (self.level <= 0 || !string) {
|
|
10919
|
+
return self[IS_EMPTY] ? "" : string;
|
|
10920
|
+
}
|
|
10921
|
+
let styler = self[STYLER];
|
|
10922
|
+
if (styler === void 0) {
|
|
10923
|
+
return string;
|
|
10924
|
+
}
|
|
10925
|
+
const { openAll, closeAll } = styler;
|
|
10926
|
+
if (string.includes("\x1B")) {
|
|
10927
|
+
while (styler !== void 0) {
|
|
10928
|
+
string = stringReplaceAll(string, styler.close, styler.open);
|
|
10929
|
+
styler = styler.parent;
|
|
10930
|
+
}
|
|
10931
|
+
}
|
|
10932
|
+
const lfIndex = string.indexOf("\n");
|
|
10933
|
+
if (lfIndex !== -1) {
|
|
10934
|
+
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
10935
|
+
}
|
|
10936
|
+
return openAll + string + closeAll;
|
|
10937
|
+
};
|
|
10938
|
+
Object.defineProperties(createChalk.prototype, styles2);
|
|
10939
|
+
var chalk = createChalk();
|
|
10940
|
+
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
10941
|
+
var source_default = chalk;
|
|
10942
|
+
|
|
10454
10943
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
10455
10944
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
10456
10945
|
var getWorkspaceRoot2 = () => {
|
|
@@ -10552,7 +11041,9 @@ var withRunExecutor = (name, executorFn, executorOptions = {
|
|
|
10552
11041
|
}) => async (options, context) => {
|
|
10553
11042
|
const startTime = Date.now();
|
|
10554
11043
|
try {
|
|
10555
|
-
console.info(
|
|
11044
|
+
console.info(
|
|
11045
|
+
source_default.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} executor...`)
|
|
11046
|
+
);
|
|
10556
11047
|
if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
10557
11048
|
throw new Error(
|
|
10558
11049
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -10570,19 +11061,21 @@ var withRunExecutor = (name, executorFn, executorOptions = {
|
|
|
10570
11061
|
});
|
|
10571
11062
|
setConfigEnv(config);
|
|
10572
11063
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug(
|
|
10573
|
-
|
|
11064
|
+
source_default.dim(
|
|
11065
|
+
`Loaded Storm config into env:
|
|
10574
11066
|
${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}`
|
|
11067
|
+
)
|
|
10575
11068
|
);
|
|
10576
11069
|
}
|
|
10577
11070
|
if (executorOptions?.hooks?.applyDefaultOptions) {
|
|
10578
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Running the applyDefaultOptions hook...`);
|
|
11071
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Running the applyDefaultOptions hook...`));
|
|
10579
11072
|
options = await Promise.resolve(
|
|
10580
11073
|
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
10581
11074
|
);
|
|
10582
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Completed the applyDefaultOptions hook...`);
|
|
11075
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Completed the applyDefaultOptions hook...`));
|
|
10583
11076
|
}
|
|
10584
|
-
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug(`\u2699\uFE0F Executor schema options:
|
|
10585
|
-
|
|
11077
|
+
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug(source_default.dim(`\u2699\uFE0F Executor schema options:
|
|
11078
|
+
`), options);
|
|
10586
11079
|
const tokenized = applyWorkspaceTokens(
|
|
10587
11080
|
options,
|
|
10588
11081
|
{
|
|
@@ -10597,11 +11090,11 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
|
|
|
10597
11090
|
applyWorkspaceExecutorTokens
|
|
10598
11091
|
);
|
|
10599
11092
|
if (executorOptions?.hooks?.preProcess) {
|
|
10600
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Running the preProcess hook...`);
|
|
11093
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Running the preProcess hook...`));
|
|
10601
11094
|
await Promise.resolve(
|
|
10602
11095
|
executorOptions.hooks.preProcess(tokenized, config)
|
|
10603
11096
|
);
|
|
10604
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Completed the preProcess hook...`);
|
|
11097
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Completed the preProcess hook...`));
|
|
10605
11098
|
}
|
|
10606
11099
|
const result = await Promise.resolve(
|
|
10607
11100
|
executorFn(tokenized, context, config)
|
|
@@ -10612,22 +11105,34 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
|
|
|
10612
11105
|
});
|
|
10613
11106
|
}
|
|
10614
11107
|
if (executorOptions?.hooks?.postProcess) {
|
|
10615
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Running the postProcess hook...`);
|
|
11108
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Running the postProcess hook...`));
|
|
10616
11109
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
10617
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Completed the postProcess hook...`);
|
|
11110
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Completed the postProcess hook...`));
|
|
10618
11111
|
}
|
|
10619
|
-
console.info(
|
|
11112
|
+
console.info(
|
|
11113
|
+
source_default.bold.hex("#087f5b")(
|
|
11114
|
+
`\u{1F389} Successfully completed running the ${name} executor!`
|
|
11115
|
+
)
|
|
11116
|
+
);
|
|
10620
11117
|
return {
|
|
10621
11118
|
success: true
|
|
10622
11119
|
};
|
|
10623
11120
|
} catch (error) {
|
|
10624
|
-
console.error(
|
|
10625
|
-
|
|
11121
|
+
console.error(
|
|
11122
|
+
source_default.bold.hex("#7d1a1a")(
|
|
11123
|
+
`\u274C An error occurred while running the executor`
|
|
11124
|
+
)
|
|
11125
|
+
);
|
|
11126
|
+
console.error(source_default.bold.hex("#7d1a1a")(error));
|
|
10626
11127
|
return {
|
|
10627
11128
|
success: false
|
|
10628
11129
|
};
|
|
10629
11130
|
} finally {
|
|
10630
|
-
console.info(
|
|
11131
|
+
console.info(
|
|
11132
|
+
source_default.dim(
|
|
11133
|
+
`\u23F1\uFE0F The${name ? ` ${name}` : ""} generator took ${Date.now() - startTime}ms to complete`
|
|
11134
|
+
)
|
|
11135
|
+
);
|
|
10631
11136
|
}
|
|
10632
11137
|
};
|
|
10633
11138
|
|
|
@@ -10637,7 +11142,9 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
10637
11142
|
}) => async (tree, options) => {
|
|
10638
11143
|
const startTime = Date.now();
|
|
10639
11144
|
try {
|
|
10640
|
-
console.info(
|
|
11145
|
+
console.info(
|
|
11146
|
+
source_default.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} generator...`)
|
|
11147
|
+
);
|
|
10641
11148
|
let config;
|
|
10642
11149
|
if (!generatorOptions.skipReadingConfig) {
|
|
10643
11150
|
config = getDefaultConfig({
|
|
@@ -10646,29 +11153,31 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
10646
11153
|
});
|
|
10647
11154
|
setConfigEnv(config);
|
|
10648
11155
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug(
|
|
10649
|
-
|
|
11156
|
+
source_default.dim(
|
|
11157
|
+
`Loaded Storm config into env:
|
|
10650
11158
|
${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}`
|
|
11159
|
+
)
|
|
10651
11160
|
);
|
|
10652
11161
|
}
|
|
10653
11162
|
if (generatorOptions?.hooks?.applyDefaultOptions) {
|
|
10654
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Running the applyDefaultOptions hook...`);
|
|
11163
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Running the applyDefaultOptions hook...`));
|
|
10655
11164
|
options = await Promise.resolve(
|
|
10656
11165
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
10657
11166
|
);
|
|
10658
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Completed the applyDefaultOptions hook...`);
|
|
11167
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Completed the applyDefaultOptions hook...`));
|
|
10659
11168
|
}
|
|
10660
|
-
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug("\u2699\uFE0F Generator schema options: \n", options);
|
|
11169
|
+
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug(source_default.dim("\u2699\uFE0F Generator schema options: \n"), options);
|
|
10661
11170
|
const tokenized = applyWorkspaceTokens(
|
|
10662
11171
|
options,
|
|
10663
11172
|
{ workspaceRoot: tree.root, config },
|
|
10664
11173
|
applyWorkspaceGeneratorTokens
|
|
10665
11174
|
);
|
|
10666
11175
|
if (generatorOptions?.hooks?.preProcess) {
|
|
10667
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Running the preProcess hook...`);
|
|
11176
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Running the preProcess hook...`));
|
|
10668
11177
|
await Promise.resolve(
|
|
10669
11178
|
generatorOptions.hooks.preProcess(options, config)
|
|
10670
11179
|
);
|
|
10671
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Completed the preProcess hook...`);
|
|
11180
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Completed the preProcess hook...`));
|
|
10672
11181
|
}
|
|
10673
11182
|
const result = await Promise.resolve(
|
|
10674
11183
|
generatorFn(tree, tokenized, config)
|
|
@@ -10679,23 +11188,33 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
|
|
|
10679
11188
|
});
|
|
10680
11189
|
}
|
|
10681
11190
|
if (generatorOptions?.hooks?.postProcess) {
|
|
10682
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Running the postProcess hook...`);
|
|
11191
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Running the postProcess hook...`));
|
|
10683
11192
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
10684
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Completed the postProcess hook...`);
|
|
11193
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Completed the postProcess hook...`));
|
|
10685
11194
|
}
|
|
10686
|
-
console.info(
|
|
11195
|
+
console.info(
|
|
11196
|
+
source_default.bold.hex("#087f5b")(
|
|
11197
|
+
`\u{1F389} Successfully completed running the ${name} generator!`
|
|
11198
|
+
)
|
|
11199
|
+
);
|
|
10687
11200
|
return {
|
|
10688
11201
|
success: true
|
|
10689
11202
|
};
|
|
10690
11203
|
} catch (error) {
|
|
10691
|
-
console.error(
|
|
10692
|
-
|
|
11204
|
+
console.error(
|
|
11205
|
+
source_default.bold.hex("#7d1a1a")(
|
|
11206
|
+
`\u274C An error occurred while running the generator`
|
|
11207
|
+
)
|
|
11208
|
+
);
|
|
11209
|
+
console.error(source_default.bold.hex("#7d1a1a")(error));
|
|
10693
11210
|
return {
|
|
10694
11211
|
success: false
|
|
10695
11212
|
};
|
|
10696
11213
|
} finally {
|
|
10697
11214
|
console.info(
|
|
10698
|
-
|
|
11215
|
+
source_default.dim(
|
|
11216
|
+
`\u23F1\uFE0F The${name ? ` ${name}` : ""} generator took ${Date.now() - startTime}ms to complete`
|
|
11217
|
+
)
|
|
10699
11218
|
);
|
|
10700
11219
|
}
|
|
10701
11220
|
};
|