@storm-software/config-tools 1.119.0 → 1.130.1
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/README.md +1 -1
- package/dist/chunk-4IYEDNYJ.mjs +426 -0
- package/dist/chunk-5P4S7DMV.js +51 -0
- package/dist/chunk-5QZ7AV2J.js +27 -0
- package/dist/chunk-6OYLNZFT.mjs +169 -0
- package/dist/chunk-6SJLAEJ3.js +70 -0
- package/dist/chunk-6WPG3DXV.js +32 -0
- package/dist/chunk-7XY63NME.js +44 -0
- package/dist/chunk-A7VLTBS6.mjs +271 -0
- package/dist/chunk-BNNLKDKI.mjs +102 -0
- package/dist/chunk-BO45V6E2.mjs +51 -0
- package/dist/chunk-BS5OC5E6.js +426 -0
- package/dist/chunk-E3IN3SQD.mjs +6 -0
- package/dist/chunk-FW22KPOW.mjs +27 -0
- package/dist/chunk-GIZ23UUE.js +189 -0
- package/dist/chunk-GOQAHXJF.mjs +28 -0
- package/dist/chunk-H6XXDZ7A.js +28 -0
- package/dist/chunk-K6TQN2LZ.js +6 -0
- package/dist/chunk-LCD7F65X.js +545 -0
- package/dist/chunk-LKZSRXS7.js +169 -0
- package/dist/chunk-MGI2M3SX.js +6 -0
- package/dist/chunk-N32EGEJB.js +90 -0
- package/dist/chunk-N4BRCEYB.js +27 -0
- package/dist/chunk-PEHVR33I.js +67 -0
- package/dist/chunk-PQNCKJAR.js +271 -0
- package/dist/chunk-PVPSTJNJ.mjs +90 -0
- package/dist/chunk-QHVHX67K.js +6 -0
- package/dist/chunk-QUVGIEZZ.mjs +6 -0
- package/dist/chunk-RAWSXKTG.mjs +189 -0
- package/dist/chunk-RHGJNRVE.mjs +125 -0
- package/dist/chunk-RYIDKM6L.mjs +545 -0
- package/dist/chunk-SJO5XZQA.js +6 -0
- package/dist/chunk-T2X5W62C.js +125 -0
- package/dist/chunk-TEKFJAJJ.mjs +70 -0
- package/dist/chunk-TTCXDK6S.mjs +27 -0
- package/dist/chunk-UCUOC6LA.mjs +70 -0
- package/dist/chunk-VFRDDJD4.js +102 -0
- package/dist/chunk-VQLOUFMG.mjs +32 -0
- package/dist/chunk-WRFJFYOU.mjs +51 -0
- package/dist/chunk-WXOSG64C.js +70 -0
- package/dist/chunk-WXYJGX4C.mjs +6 -0
- package/dist/chunk-X6VIYUJR.mjs +6 -0
- package/dist/chunk-XJEQHMOE.js +49 -0
- package/dist/chunk-XLMGW4ZW.mjs +67 -0
- package/dist/chunk-XXHENMLT.mjs +44 -0
- package/dist/config-file/get-config-file.d.mts +20 -0
- package/dist/config-file/get-config-file.d.ts +20 -0
- package/dist/config-file/get-config-file.js +23 -0
- package/dist/config-file/get-config-file.mjs +23 -0
- package/dist/config-file/index.d.mts +4 -0
- package/dist/config-file/index.d.ts +4 -0
- package/dist/config-file/index.js +24 -0
- package/dist/config-file/index.mjs +24 -0
- package/dist/create-storm-config.d.mts +29 -0
- package/dist/create-storm-config.d.ts +29 -0
- package/dist/create-storm-config.js +30 -0
- package/dist/create-storm-config.mjs +30 -0
- package/dist/env/get-env.d.mts +19 -0
- package/dist/env/get-env.d.ts +19 -0
- package/dist/env/get-env.js +13 -0
- package/dist/env/get-env.mjs +13 -0
- package/dist/env/index.d.mts +5 -0
- package/dist/env/index.d.ts +5 -0
- package/dist/env/index.js +20 -0
- package/dist/env/index.mjs +20 -0
- package/{src/env/get-env.d.ts → dist/env/set-env.d.mts} +7 -4
- package/{src → dist}/env/set-env.d.ts +7 -3
- package/dist/env/set-env.js +12 -0
- package/dist/env/set-env.mjs +12 -0
- package/dist/index.d.mts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +132 -0
- package/dist/index.mjs +132 -0
- package/dist/types-DGWqy1xb.d.mts +1395 -0
- package/dist/types-DGWqy1xb.d.ts +1395 -0
- package/dist/types.d.mts +40 -0
- package/{src → dist}/types.d.ts +14 -7
- package/dist/types.js +9 -0
- package/dist/types.mjs +9 -0
- package/dist/utilities/apply-workspace-tokens.d.mts +9 -0
- package/dist/utilities/apply-workspace-tokens.d.ts +9 -0
- package/dist/utilities/apply-workspace-tokens.js +14 -0
- package/dist/utilities/apply-workspace-tokens.mjs +14 -0
- package/dist/utilities/correct-paths.d.mts +19 -0
- package/dist/utilities/correct-paths.d.ts +19 -0
- package/dist/utilities/correct-paths.js +9 -0
- package/dist/utilities/correct-paths.mjs +9 -0
- package/dist/utilities/file-path-utils.d.mts +4 -0
- package/dist/utilities/file-path-utils.d.ts +4 -0
- package/dist/utilities/file-path-utils.js +9 -0
- package/dist/utilities/file-path-utils.mjs +9 -0
- package/dist/utilities/find-up.d.mts +6 -0
- package/dist/utilities/find-up.d.ts +6 -0
- package/dist/utilities/find-up.js +7 -0
- package/dist/utilities/find-up.mjs +7 -0
- package/dist/utilities/find-workspace-root.d.mts +16 -0
- package/{src → dist}/utilities/find-workspace-root.d.ts +4 -2
- package/dist/utilities/find-workspace-root.js +11 -0
- package/dist/utilities/find-workspace-root.mjs +11 -0
- package/dist/utilities/get-default-config.d.mts +15 -0
- package/dist/utilities/get-default-config.d.ts +15 -0
- package/dist/utilities/get-default-config.js +13 -0
- package/dist/utilities/get-default-config.mjs +13 -0
- package/dist/utilities/index.d.mts +11 -0
- package/dist/utilities/index.d.ts +11 -0
- package/dist/utilities/index.js +58 -0
- package/dist/utilities/index.mjs +58 -0
- package/dist/utilities/process-handler.d.mts +8 -0
- package/dist/utilities/process-handler.d.ts +8 -0
- package/dist/utilities/process-handler.js +20 -0
- package/dist/utilities/process-handler.mjs +20 -0
- package/dist/utilities/run.d.mts +36 -0
- package/dist/utilities/run.d.ts +36 -0
- package/dist/utilities/run.js +11 -0
- package/dist/utilities/run.mjs +11 -0
- package/package.json +1 -24
- package/CHANGELOG.md +0 -3122
- package/declarations.d.ts +0 -304
- package/index.cjs +0 -67508
- package/index.js +0 -67463
- package/meta.cjs.json +0 -5352
- package/meta.esm.json +0 -5413
- package/src/config-file/get-config-file.d.ts +0 -16
- package/src/config-file/index.d.ts +0 -1
- package/src/create-storm-config.d.ts +0 -26
- package/src/env/index.d.ts +0 -2
- package/src/index.d.ts +0 -13
- package/src/utilities/apply-workspace-tokens.d.ts +0 -4
- package/src/utilities/chalk.d.ts +0 -23
- package/src/utilities/correct-paths.d.ts +0 -1
- package/src/utilities/file-path-utils.d.ts +0 -2
- package/src/utilities/find-up.d.ts +0 -4
- package/src/utilities/get-default-config.d.ts +0 -15
- package/src/utilities/get-log-level.d.ts +0 -22
- package/src/utilities/index.d.ts +0 -10
- package/src/utilities/logger.d.ts +0 -78
- package/src/utilities/process-handler.d.ts +0 -4
- package/src/utilities/run.d.ts +0 -18
- package/utilities/chalk.cjs +0 -1610
- package/utilities/chalk.js +0 -1605
- package/utilities/find-workspace-root.cjs +0 -118
- package/utilities/find-workspace-root.js +0 -91
- package/utilities/logger.cjs +0 -5914
- package/utilities/logger.js +0 -5897
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS,
|
|
3
|
+
__name,
|
|
4
|
+
__require,
|
|
5
|
+
__toESM,
|
|
6
|
+
init_esm_shims
|
|
7
|
+
} from "./chunk-WRFJFYOU.mjs";
|
|
8
|
+
|
|
9
|
+
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js
|
|
10
|
+
var require_util = __commonJS({
|
|
11
|
+
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js"(exports, module) {
|
|
12
|
+
"use strict";
|
|
13
|
+
init_esm_shims();
|
|
14
|
+
var stringReplaceAll = /* @__PURE__ */ __name((string, substring, replacer) => {
|
|
15
|
+
let index = string.indexOf(substring);
|
|
16
|
+
if (index === -1) {
|
|
17
|
+
return string;
|
|
18
|
+
}
|
|
19
|
+
const substringLength = substring.length;
|
|
20
|
+
let endIndex = 0;
|
|
21
|
+
let returnValue = "";
|
|
22
|
+
do {
|
|
23
|
+
returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
|
|
24
|
+
endIndex = index + substringLength;
|
|
25
|
+
index = string.indexOf(substring, endIndex);
|
|
26
|
+
} while (index !== -1);
|
|
27
|
+
returnValue += string.substr(endIndex);
|
|
28
|
+
return returnValue;
|
|
29
|
+
}, "stringReplaceAll");
|
|
30
|
+
var stringEncaseCRLFWithFirstIndex = /* @__PURE__ */ __name((string, prefix, postfix, index) => {
|
|
31
|
+
let endIndex = 0;
|
|
32
|
+
let returnValue = "";
|
|
33
|
+
do {
|
|
34
|
+
const gotCR = string[index - 1] === "\r";
|
|
35
|
+
returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
36
|
+
endIndex = index + 1;
|
|
37
|
+
index = string.indexOf("\n", endIndex);
|
|
38
|
+
} while (index !== -1);
|
|
39
|
+
returnValue += string.substr(endIndex);
|
|
40
|
+
return returnValue;
|
|
41
|
+
}, "stringEncaseCRLFWithFirstIndex");
|
|
42
|
+
module.exports = {
|
|
43
|
+
stringReplaceAll,
|
|
44
|
+
stringEncaseCRLFWithFirstIndex
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js
|
|
50
|
+
var require_templates = __commonJS({
|
|
51
|
+
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js"(exports, module) {
|
|
52
|
+
"use strict";
|
|
53
|
+
init_esm_shims();
|
|
54
|
+
var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
|
55
|
+
var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
56
|
+
var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
|
|
57
|
+
var ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
|
|
58
|
+
var ESCAPES = /* @__PURE__ */ new Map([
|
|
59
|
+
[
|
|
60
|
+
"n",
|
|
61
|
+
"\n"
|
|
62
|
+
],
|
|
63
|
+
[
|
|
64
|
+
"r",
|
|
65
|
+
"\r"
|
|
66
|
+
],
|
|
67
|
+
[
|
|
68
|
+
"t",
|
|
69
|
+
" "
|
|
70
|
+
],
|
|
71
|
+
[
|
|
72
|
+
"b",
|
|
73
|
+
"\b"
|
|
74
|
+
],
|
|
75
|
+
[
|
|
76
|
+
"f",
|
|
77
|
+
"\f"
|
|
78
|
+
],
|
|
79
|
+
[
|
|
80
|
+
"v",
|
|
81
|
+
"\v"
|
|
82
|
+
],
|
|
83
|
+
[
|
|
84
|
+
"0",
|
|
85
|
+
"\0"
|
|
86
|
+
],
|
|
87
|
+
[
|
|
88
|
+
"\\",
|
|
89
|
+
"\\"
|
|
90
|
+
],
|
|
91
|
+
[
|
|
92
|
+
"e",
|
|
93
|
+
"\x1B"
|
|
94
|
+
],
|
|
95
|
+
[
|
|
96
|
+
"a",
|
|
97
|
+
"\x07"
|
|
98
|
+
]
|
|
99
|
+
]);
|
|
100
|
+
function unescape(c) {
|
|
101
|
+
const u = c[0] === "u";
|
|
102
|
+
const bracket = c[1] === "{";
|
|
103
|
+
if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
|
|
104
|
+
return String.fromCharCode(parseInt(c.slice(1), 16));
|
|
105
|
+
}
|
|
106
|
+
if (u && bracket) {
|
|
107
|
+
return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
|
|
108
|
+
}
|
|
109
|
+
return ESCAPES.get(c) || c;
|
|
110
|
+
}
|
|
111
|
+
__name(unescape, "unescape");
|
|
112
|
+
function parseArguments(name, arguments_) {
|
|
113
|
+
const results = [];
|
|
114
|
+
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
|
115
|
+
let matches;
|
|
116
|
+
for (const chunk of chunks) {
|
|
117
|
+
const number = Number(chunk);
|
|
118
|
+
if (!Number.isNaN(number)) {
|
|
119
|
+
results.push(number);
|
|
120
|
+
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
121
|
+
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
|
|
122
|
+
} else {
|
|
123
|
+
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return results;
|
|
127
|
+
}
|
|
128
|
+
__name(parseArguments, "parseArguments");
|
|
129
|
+
function parseStyle(style) {
|
|
130
|
+
STYLE_REGEX.lastIndex = 0;
|
|
131
|
+
const results = [];
|
|
132
|
+
let matches;
|
|
133
|
+
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
|
134
|
+
const name = matches[1];
|
|
135
|
+
if (matches[2]) {
|
|
136
|
+
const args = parseArguments(name, matches[2]);
|
|
137
|
+
results.push([
|
|
138
|
+
name
|
|
139
|
+
].concat(args));
|
|
140
|
+
} else {
|
|
141
|
+
results.push([
|
|
142
|
+
name
|
|
143
|
+
]);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return results;
|
|
147
|
+
}
|
|
148
|
+
__name(parseStyle, "parseStyle");
|
|
149
|
+
function buildStyle(chalk2, styles) {
|
|
150
|
+
const enabled = {};
|
|
151
|
+
for (const layer of styles) {
|
|
152
|
+
for (const style of layer.styles) {
|
|
153
|
+
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
let current = chalk2;
|
|
157
|
+
for (const [styleName, styles2] of Object.entries(enabled)) {
|
|
158
|
+
if (!Array.isArray(styles2)) {
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
if (!(styleName in current)) {
|
|
162
|
+
throw new Error(`Unknown Chalk style: ${styleName}`);
|
|
163
|
+
}
|
|
164
|
+
current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
|
|
165
|
+
}
|
|
166
|
+
return current;
|
|
167
|
+
}
|
|
168
|
+
__name(buildStyle, "buildStyle");
|
|
169
|
+
module.exports = (chalk2, temporary) => {
|
|
170
|
+
const styles = [];
|
|
171
|
+
const chunks = [];
|
|
172
|
+
let chunk = [];
|
|
173
|
+
temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
|
|
174
|
+
if (escapeCharacter) {
|
|
175
|
+
chunk.push(unescape(escapeCharacter));
|
|
176
|
+
} else if (style) {
|
|
177
|
+
const string = chunk.join("");
|
|
178
|
+
chunk = [];
|
|
179
|
+
chunks.push(styles.length === 0 ? string : buildStyle(chalk2, styles)(string));
|
|
180
|
+
styles.push({
|
|
181
|
+
inverse,
|
|
182
|
+
styles: parseStyle(style)
|
|
183
|
+
});
|
|
184
|
+
} else if (close) {
|
|
185
|
+
if (styles.length === 0) {
|
|
186
|
+
throw new Error("Found extraneous } in Chalk template literal");
|
|
187
|
+
}
|
|
188
|
+
chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
|
|
189
|
+
chunk = [];
|
|
190
|
+
styles.pop();
|
|
191
|
+
} else {
|
|
192
|
+
chunk.push(character);
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
chunks.push(chunk.join(""));
|
|
196
|
+
if (styles.length > 0) {
|
|
197
|
+
const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
|
|
198
|
+
throw new Error(errMessage);
|
|
199
|
+
}
|
|
200
|
+
return chunks.join("");
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js
|
|
206
|
+
var require_source = __commonJS({
|
|
207
|
+
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"(exports, module) {
|
|
208
|
+
"use strict";
|
|
209
|
+
init_esm_shims();
|
|
210
|
+
var ansiStyles = __require("ansi-styles");
|
|
211
|
+
var { stdout: stdoutColor, stderr: stderrColor } = __require("supports-color");
|
|
212
|
+
var { stringReplaceAll, stringEncaseCRLFWithFirstIndex } = require_util();
|
|
213
|
+
var { isArray } = Array;
|
|
214
|
+
var levelMapping = [
|
|
215
|
+
"ansi",
|
|
216
|
+
"ansi",
|
|
217
|
+
"ansi256",
|
|
218
|
+
"ansi16m"
|
|
219
|
+
];
|
|
220
|
+
var styles = /* @__PURE__ */ Object.create(null);
|
|
221
|
+
var applyOptions = /* @__PURE__ */ __name((object, options = {}) => {
|
|
222
|
+
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
223
|
+
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
224
|
+
}
|
|
225
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
226
|
+
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
227
|
+
}, "applyOptions");
|
|
228
|
+
var ChalkClass = class ChalkClass {
|
|
229
|
+
static {
|
|
230
|
+
__name(this, "ChalkClass");
|
|
231
|
+
}
|
|
232
|
+
constructor(options) {
|
|
233
|
+
return chalkFactory(options);
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
var chalkFactory = /* @__PURE__ */ __name((options) => {
|
|
237
|
+
const chalk3 = {};
|
|
238
|
+
applyOptions(chalk3, options);
|
|
239
|
+
chalk3.template = (...arguments_) => chalkTag(chalk3.template, ...arguments_);
|
|
240
|
+
Object.setPrototypeOf(chalk3, Chalk.prototype);
|
|
241
|
+
Object.setPrototypeOf(chalk3.template, chalk3);
|
|
242
|
+
chalk3.template.constructor = () => {
|
|
243
|
+
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
244
|
+
};
|
|
245
|
+
chalk3.template.Instance = ChalkClass;
|
|
246
|
+
return chalk3.template;
|
|
247
|
+
}, "chalkFactory");
|
|
248
|
+
function Chalk(options) {
|
|
249
|
+
return chalkFactory(options);
|
|
250
|
+
}
|
|
251
|
+
__name(Chalk, "Chalk");
|
|
252
|
+
for (const [styleName, style] of Object.entries(ansiStyles)) {
|
|
253
|
+
styles[styleName] = {
|
|
254
|
+
get() {
|
|
255
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
|
|
256
|
+
Object.defineProperty(this, styleName, {
|
|
257
|
+
value: builder
|
|
258
|
+
});
|
|
259
|
+
return builder;
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
styles.visible = {
|
|
264
|
+
get() {
|
|
265
|
+
const builder = createBuilder(this, this._styler, true);
|
|
266
|
+
Object.defineProperty(this, "visible", {
|
|
267
|
+
value: builder
|
|
268
|
+
});
|
|
269
|
+
return builder;
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
var usedModels = [
|
|
273
|
+
"rgb",
|
|
274
|
+
"hex",
|
|
275
|
+
"keyword",
|
|
276
|
+
"hsl",
|
|
277
|
+
"hsv",
|
|
278
|
+
"hwb",
|
|
279
|
+
"ansi",
|
|
280
|
+
"ansi256"
|
|
281
|
+
];
|
|
282
|
+
for (const model of usedModels) {
|
|
283
|
+
styles[model] = {
|
|
284
|
+
get() {
|
|
285
|
+
const { level } = this;
|
|
286
|
+
return function(...arguments_) {
|
|
287
|
+
const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
|
|
288
|
+
return createBuilder(this, styler, this._isEmpty);
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
for (const model of usedModels) {
|
|
294
|
+
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
295
|
+
styles[bgModel] = {
|
|
296
|
+
get() {
|
|
297
|
+
const { level } = this;
|
|
298
|
+
return function(...arguments_) {
|
|
299
|
+
const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
|
|
300
|
+
return createBuilder(this, styler, this._isEmpty);
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
var proto = Object.defineProperties(() => {
|
|
306
|
+
}, {
|
|
307
|
+
...styles,
|
|
308
|
+
level: {
|
|
309
|
+
enumerable: true,
|
|
310
|
+
get() {
|
|
311
|
+
return this._generator.level;
|
|
312
|
+
},
|
|
313
|
+
set(level) {
|
|
314
|
+
this._generator.level = level;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
var createStyler = /* @__PURE__ */ __name((open, close, parent) => {
|
|
319
|
+
let openAll;
|
|
320
|
+
let closeAll;
|
|
321
|
+
if (parent === void 0) {
|
|
322
|
+
openAll = open;
|
|
323
|
+
closeAll = close;
|
|
324
|
+
} else {
|
|
325
|
+
openAll = parent.openAll + open;
|
|
326
|
+
closeAll = close + parent.closeAll;
|
|
327
|
+
}
|
|
328
|
+
return {
|
|
329
|
+
open,
|
|
330
|
+
close,
|
|
331
|
+
openAll,
|
|
332
|
+
closeAll,
|
|
333
|
+
parent
|
|
334
|
+
};
|
|
335
|
+
}, "createStyler");
|
|
336
|
+
var createBuilder = /* @__PURE__ */ __name((self, _styler, _isEmpty) => {
|
|
337
|
+
const builder = /* @__PURE__ */ __name((...arguments_) => {
|
|
338
|
+
if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
|
|
339
|
+
return applyStyle(builder, chalkTag(builder, ...arguments_));
|
|
340
|
+
}
|
|
341
|
+
return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
342
|
+
}, "builder");
|
|
343
|
+
Object.setPrototypeOf(builder, proto);
|
|
344
|
+
builder._generator = self;
|
|
345
|
+
builder._styler = _styler;
|
|
346
|
+
builder._isEmpty = _isEmpty;
|
|
347
|
+
return builder;
|
|
348
|
+
}, "createBuilder");
|
|
349
|
+
var applyStyle = /* @__PURE__ */ __name((self, string) => {
|
|
350
|
+
if (self.level <= 0 || !string) {
|
|
351
|
+
return self._isEmpty ? "" : string;
|
|
352
|
+
}
|
|
353
|
+
let styler = self._styler;
|
|
354
|
+
if (styler === void 0) {
|
|
355
|
+
return string;
|
|
356
|
+
}
|
|
357
|
+
const { openAll, closeAll } = styler;
|
|
358
|
+
if (string.indexOf("\x1B") !== -1) {
|
|
359
|
+
while (styler !== void 0) {
|
|
360
|
+
string = stringReplaceAll(string, styler.close, styler.open);
|
|
361
|
+
styler = styler.parent;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
const lfIndex = string.indexOf("\n");
|
|
365
|
+
if (lfIndex !== -1) {
|
|
366
|
+
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
367
|
+
}
|
|
368
|
+
return openAll + string + closeAll;
|
|
369
|
+
}, "applyStyle");
|
|
370
|
+
var template;
|
|
371
|
+
var chalkTag = /* @__PURE__ */ __name((chalk3, ...strings) => {
|
|
372
|
+
const [firstString] = strings;
|
|
373
|
+
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
|
374
|
+
return strings.join(" ");
|
|
375
|
+
}
|
|
376
|
+
const arguments_ = strings.slice(1);
|
|
377
|
+
const parts = [
|
|
378
|
+
firstString.raw[0]
|
|
379
|
+
];
|
|
380
|
+
for (let i = 1; i < firstString.length; i++) {
|
|
381
|
+
parts.push(String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"), String(firstString.raw[i]));
|
|
382
|
+
}
|
|
383
|
+
if (template === void 0) {
|
|
384
|
+
template = require_templates();
|
|
385
|
+
}
|
|
386
|
+
return template(chalk3, parts.join(""));
|
|
387
|
+
}, "chalkTag");
|
|
388
|
+
Object.defineProperties(Chalk.prototype, styles);
|
|
389
|
+
var chalk2 = Chalk();
|
|
390
|
+
chalk2.supportsColor = stdoutColor;
|
|
391
|
+
chalk2.stderr = Chalk({
|
|
392
|
+
level: stderrColor ? stderrColor.level : 0
|
|
393
|
+
});
|
|
394
|
+
chalk2.stderr.supportsColor = stderrColor;
|
|
395
|
+
module.exports = chalk2;
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
|
|
399
|
+
// src/logger/chalk.ts
|
|
400
|
+
init_esm_shims();
|
|
401
|
+
var import_chalk = __toESM(require_source());
|
|
402
|
+
var chalkDefault = {
|
|
403
|
+
hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
|
|
404
|
+
bgHex: /* @__PURE__ */ __name((_) => ({
|
|
405
|
+
whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
|
|
406
|
+
}), "bgHex"),
|
|
407
|
+
whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright"),
|
|
408
|
+
bold: {
|
|
409
|
+
hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
|
|
410
|
+
bgHex: /* @__PURE__ */ __name((_) => ({
|
|
411
|
+
whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
|
|
412
|
+
}), "bgHex"),
|
|
413
|
+
whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
var getChalk = /* @__PURE__ */ __name(() => {
|
|
417
|
+
let _chalk = import_chalk.default;
|
|
418
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
419
|
+
_chalk = chalkDefault;
|
|
420
|
+
}
|
|
421
|
+
return _chalk;
|
|
422
|
+
}, "getChalk");
|
|
423
|
+
|
|
424
|
+
export {
|
|
425
|
+
getChalk
|
|
426
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkT2X5W62Cjs = require('./chunk-T2X5W62C.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkXJEQHMOEjs = require('./chunk-XJEQHMOE.js');
|
|
11
|
+
|
|
12
|
+
// src/utilities/process-handler.ts
|
|
13
|
+
_chunkXJEQHMOEjs.init_cjs_shims.call(void 0, );
|
|
14
|
+
var exitWithError = /* @__PURE__ */ _chunkXJEQHMOEjs.__name.call(void 0, (config) => {
|
|
15
|
+
_chunkT2X5W62Cjs.writeFatal.call(void 0, "Exiting script with an error status...", config);
|
|
16
|
+
process.exit(1);
|
|
17
|
+
}, "exitWithError");
|
|
18
|
+
var exitWithSuccess = /* @__PURE__ */ _chunkXJEQHMOEjs.__name.call(void 0, (config) => {
|
|
19
|
+
_chunkT2X5W62Cjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
|
|
20
|
+
process.exit(0);
|
|
21
|
+
}, "exitWithSuccess");
|
|
22
|
+
var handleProcess = /* @__PURE__ */ _chunkXJEQHMOEjs.__name.call(void 0, (config) => {
|
|
23
|
+
_chunkT2X5W62Cjs.writeTrace.call(void 0, `Using the following arguments to process the script: ${process.argv.join(", ")}`, config);
|
|
24
|
+
process.on("unhandledRejection", (error) => {
|
|
25
|
+
_chunkT2X5W62Cjs.writeError.call(void 0, `An Unhandled Rejection occurred while running the program: ${error}`, config);
|
|
26
|
+
exitWithError(config);
|
|
27
|
+
});
|
|
28
|
+
process.on("uncaughtException", (error) => {
|
|
29
|
+
_chunkT2X5W62Cjs.writeError.call(void 0, `An Uncaught Exception occurred while running the program: ${error.message}
|
|
30
|
+
Stacktrace: ${error.stack}`, config);
|
|
31
|
+
exitWithError(config);
|
|
32
|
+
});
|
|
33
|
+
process.on("SIGTERM", (signal) => {
|
|
34
|
+
_chunkT2X5W62Cjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
|
|
35
|
+
exitWithError(config);
|
|
36
|
+
});
|
|
37
|
+
process.on("SIGINT", (signal) => {
|
|
38
|
+
_chunkT2X5W62Cjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
|
|
39
|
+
exitWithError(config);
|
|
40
|
+
});
|
|
41
|
+
process.on("SIGHUP", (signal) => {
|
|
42
|
+
_chunkT2X5W62Cjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
|
|
43
|
+
exitWithError(config);
|
|
44
|
+
});
|
|
45
|
+
}, "handleProcess");
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
exports.exitWithError = exitWithError; exports.exitWithSuccess = exitWithSuccess; exports.handleProcess = handleProcess;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkXJEQHMOEjs = require('./chunk-XJEQHMOE.js');
|
|
5
|
+
|
|
6
|
+
// src/utilities/file-path-utils.ts
|
|
7
|
+
_chunkXJEQHMOEjs.init_cjs_shims.call(void 0, );
|
|
8
|
+
var _path = require('path');
|
|
9
|
+
var removeExtension = /* @__PURE__ */ _chunkXJEQHMOEjs.__name.call(void 0, (filePath) => {
|
|
10
|
+
const result = !filePath || (filePath.match(/./g) || []).length <= 1 ? "." : filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
11
|
+
if (result.startsWith("./")) {
|
|
12
|
+
return result.substring(2);
|
|
13
|
+
}
|
|
14
|
+
if (result.startsWith(".") || result.startsWith("/")) {
|
|
15
|
+
return result.substring(1);
|
|
16
|
+
}
|
|
17
|
+
return result;
|
|
18
|
+
}, "removeExtension");
|
|
19
|
+
function findFileName(filePath) {
|
|
20
|
+
return _nullishCoalesce(_optionalChain([filePath, 'optionalAccess', _ => _.split, 'call', _2 => _2(_optionalChain([filePath, 'optionalAccess', _3 => _3.includes, 'call', _4 => _4(_path.sep)]) ? _path.sep : _optionalChain([filePath, 'optionalAccess', _5 => _5.includes, 'call', _6 => _6("/")]) ? "/" : "\\"), 'optionalAccess', _7 => _7.pop, 'call', _8 => _8()]), () => ( ""));
|
|
21
|
+
}
|
|
22
|
+
_chunkXJEQHMOEjs.__name.call(void 0, findFileName, "findFileName");
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
exports.removeExtension = removeExtension; exports.findFileName = findFileName;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COLOR_KEYS,
|
|
3
|
+
STORM_DEFAULT_DOCS,
|
|
4
|
+
STORM_DEFAULT_HOMEPAGE,
|
|
5
|
+
STORM_DEFAULT_LICENSING
|
|
6
|
+
} from "./chunk-RAWSXKTG.mjs";
|
|
7
|
+
import {
|
|
8
|
+
getLogLevelLabel
|
|
9
|
+
} from "./chunk-UCUOC6LA.mjs";
|
|
10
|
+
import {
|
|
11
|
+
correctPaths
|
|
12
|
+
} from "./chunk-GOQAHXJF.mjs";
|
|
13
|
+
import {
|
|
14
|
+
__name,
|
|
15
|
+
init_esm_shims
|
|
16
|
+
} from "./chunk-WRFJFYOU.mjs";
|
|
17
|
+
|
|
18
|
+
// src/env/get-env.ts
|
|
19
|
+
init_esm_shims();
|
|
20
|
+
var getExtensionEnv = /* @__PURE__ */ __name((extensionName) => {
|
|
21
|
+
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
22
|
+
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
23
|
+
const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
|
|
24
|
+
if (name) {
|
|
25
|
+
ret[name] = process.env[key];
|
|
26
|
+
}
|
|
27
|
+
return ret;
|
|
28
|
+
}, {});
|
|
29
|
+
}, "getExtensionEnv");
|
|
30
|
+
var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
31
|
+
const prefix = "STORM_";
|
|
32
|
+
let config = {
|
|
33
|
+
extends: process.env[`${prefix}EXTENDS`] || void 0,
|
|
34
|
+
name: process.env[`${prefix}NAME`] || void 0,
|
|
35
|
+
namespace: process.env[`${prefix}NAMESPACE`] || void 0,
|
|
36
|
+
owner: process.env[`${prefix}OWNER`] || void 0,
|
|
37
|
+
bot: {
|
|
38
|
+
name: process.env[`${prefix}BOT_NAME`] || void 0,
|
|
39
|
+
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
40
|
+
},
|
|
41
|
+
organization: process.env[`${prefix}ORGANIZATION`] || void 0,
|
|
42
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
43
|
+
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
44
|
+
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
45
|
+
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
46
|
+
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
47
|
+
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
48
|
+
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
49
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
50
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
51
|
+
directories: {
|
|
52
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
53
|
+
data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
54
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
55
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
56
|
+
log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
57
|
+
build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
58
|
+
},
|
|
59
|
+
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
60
|
+
env: (process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
|
|
61
|
+
// ci:
|
|
62
|
+
// process.env[`${prefix}CI`] !== undefined
|
|
63
|
+
// ? Boolean(
|
|
64
|
+
// process.env[`${prefix}CI`] ??
|
|
65
|
+
// process.env.CI ??
|
|
66
|
+
// process.env.CONTINUOUS_INTEGRATION
|
|
67
|
+
// )
|
|
68
|
+
// : undefined,
|
|
69
|
+
repository: process.env[`${prefix}REPOSITORY`] || void 0,
|
|
70
|
+
branch: process.env[`${prefix}BRANCH`] || void 0,
|
|
71
|
+
preid: process.env[`${prefix}PRE_ID`] || void 0,
|
|
72
|
+
externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
|
|
73
|
+
registry: {
|
|
74
|
+
github: process.env[`${prefix}REGISTRY_GITHUB`] || void 0,
|
|
75
|
+
npm: process.env[`${prefix}REGISTRY_NPM`] || void 0,
|
|
76
|
+
cargo: process.env[`${prefix}REGISTRY_CARGO`] || void 0,
|
|
77
|
+
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
78
|
+
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
79
|
+
},
|
|
80
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
81
|
+
};
|
|
82
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
83
|
+
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
84
|
+
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
85
|
+
return ret;
|
|
86
|
+
}, {}) : getThemeColorConfigEnv(prefix);
|
|
87
|
+
if (config.docs === STORM_DEFAULT_DOCS) {
|
|
88
|
+
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
89
|
+
config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
90
|
+
} else {
|
|
91
|
+
config.docs = `${config.homepage}/docs`;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if (config.licensing === STORM_DEFAULT_LICENSING) {
|
|
95
|
+
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
96
|
+
config.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
97
|
+
} else {
|
|
98
|
+
config.licensing = `${config.homepage}/docs`;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
102
|
+
if (serializedConfig) {
|
|
103
|
+
const parsed = JSON.parse(serializedConfig);
|
|
104
|
+
config = {
|
|
105
|
+
...config,
|
|
106
|
+
...parsed,
|
|
107
|
+
colors: {
|
|
108
|
+
...config.colors,
|
|
109
|
+
...parsed.colors
|
|
110
|
+
},
|
|
111
|
+
extensions: {
|
|
112
|
+
...config.extensions,
|
|
113
|
+
...parsed.extensions
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
return config;
|
|
118
|
+
}, "getConfigEnv");
|
|
119
|
+
var getThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, theme) => {
|
|
120
|
+
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
121
|
+
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
|
|
122
|
+
}, "getThemeColorConfigEnv");
|
|
123
|
+
var getSingleThemeColorConfigEnv = /* @__PURE__ */ __name((prefix) => {
|
|
124
|
+
return {
|
|
125
|
+
dark: process.env[`${prefix}DARK`],
|
|
126
|
+
light: process.env[`${prefix}LIGHT`],
|
|
127
|
+
brand: process.env[`${prefix}BRAND`],
|
|
128
|
+
alternate: process.env[`${prefix}ALTERNATE`],
|
|
129
|
+
accent: process.env[`${prefix}ACCENT`],
|
|
130
|
+
link: process.env[`${prefix}LINK`],
|
|
131
|
+
help: process.env[`${prefix}HELP`],
|
|
132
|
+
success: process.env[`${prefix}SUCCESS`],
|
|
133
|
+
info: process.env[`${prefix}INFO`],
|
|
134
|
+
warning: process.env[`${prefix}WARNING`],
|
|
135
|
+
danger: process.env[`${prefix}DANGER`],
|
|
136
|
+
fatal: process.env[`${prefix}FATAL`],
|
|
137
|
+
positive: process.env[`${prefix}POSITIVE`],
|
|
138
|
+
negative: process.env[`${prefix}NEGATIVE`]
|
|
139
|
+
};
|
|
140
|
+
}, "getSingleThemeColorConfigEnv");
|
|
141
|
+
var getMultiThemeColorConfigEnv = /* @__PURE__ */ __name((prefix) => {
|
|
142
|
+
return {
|
|
143
|
+
light: getBaseThemeColorConfigEnv(`${prefix}_LIGHT_`),
|
|
144
|
+
dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
|
|
145
|
+
};
|
|
146
|
+
}, "getMultiThemeColorConfigEnv");
|
|
147
|
+
var getBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix) => {
|
|
148
|
+
return {
|
|
149
|
+
foreground: process.env[`${prefix}FOREGROUND`],
|
|
150
|
+
background: process.env[`${prefix}BACKGROUND`],
|
|
151
|
+
brand: process.env[`${prefix}BRAND`],
|
|
152
|
+
alternate: process.env[`${prefix}ALTERNATE`],
|
|
153
|
+
accent: process.env[`${prefix}ACCENT`],
|
|
154
|
+
link: process.env[`${prefix}LINK`],
|
|
155
|
+
help: process.env[`${prefix}HELP`],
|
|
156
|
+
success: process.env[`${prefix}SUCCESS`],
|
|
157
|
+
info: process.env[`${prefix}INFO`],
|
|
158
|
+
warning: process.env[`${prefix}WARNING`],
|
|
159
|
+
danger: process.env[`${prefix}DANGER`],
|
|
160
|
+
fatal: process.env[`${prefix}FATAL`],
|
|
161
|
+
positive: process.env[`${prefix}POSITIVE`],
|
|
162
|
+
negative: process.env[`${prefix}NEGATIVE`]
|
|
163
|
+
};
|
|
164
|
+
}, "getBaseThemeColorConfigEnv");
|
|
165
|
+
|
|
166
|
+
export {
|
|
167
|
+
getExtensionEnv,
|
|
168
|
+
getConfigEnv
|
|
169
|
+
};
|