@storm-software/tsup 0.2.72 → 0.2.74
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 -2
- package/dist/{chunk-TM2CJRVX.js → chunk-UPF5YXBV.js} +163 -144
- package/dist/index.cjs +165 -146
- package/dist/index.js +1 -1
- package/dist/options.cjs +156 -137
- package/dist/options.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -46,7 +46,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
46
46
|
|
|
47
47
|
<!-- START doctoc -->
|
|
48
48
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
49
|
-
|
|
50
49
|
## Table of Contents
|
|
51
50
|
|
|
52
51
|
- [Storm tsup build package](#storm-tsup-build-package)
|
|
@@ -16,7 +16,7 @@ init_esm_shims();
|
|
|
16
16
|
// ../build-tools/dist/chunk-KVP3YMX6.mjs
|
|
17
17
|
init_esm_shims();
|
|
18
18
|
|
|
19
|
-
// ../build-tools/dist/chunk-
|
|
19
|
+
// ../build-tools/dist/chunk-SVTS324V.mjs
|
|
20
20
|
init_esm_shims();
|
|
21
21
|
|
|
22
22
|
// ../build-tools/dist/chunk-B4H42WDA.mjs
|
|
@@ -29,7 +29,7 @@ init_esm_shims();
|
|
|
29
29
|
import { existsSync } from "node:fs";
|
|
30
30
|
import { join } from "node:path";
|
|
31
31
|
|
|
32
|
-
// ../build-tools/dist/chunk-
|
|
32
|
+
// ../build-tools/dist/chunk-BD3X6ZP4.mjs
|
|
33
33
|
init_esm_shims();
|
|
34
34
|
import { formatDistanceToNow } from "date-fns/formatDistanceToNow";
|
|
35
35
|
import chalk from "chalk";
|
|
@@ -65,7 +65,7 @@ var CONSOLE_ICONS = {
|
|
|
65
65
|
[LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
// ../build-tools/dist/chunk-
|
|
68
|
+
// ../build-tools/dist/chunk-SVTS324V.mjs
|
|
69
69
|
import { loadConfig } from "c12";
|
|
70
70
|
import defu from "defu";
|
|
71
71
|
import * as z from "zod/mini";
|
|
@@ -134,6 +134,10 @@ var infoColorSchema = z._default(colorSchema, "#38bdf8");
|
|
|
134
134
|
schemaRegistry.add(infoColorSchema, {
|
|
135
135
|
description: "The informational color of the workspace"
|
|
136
136
|
});
|
|
137
|
+
var debugColorSchema = z._default(colorSchema, "#8afafc");
|
|
138
|
+
schemaRegistry.add(debugColorSchema, {
|
|
139
|
+
description: "The debug color of the workspace"
|
|
140
|
+
});
|
|
137
141
|
var warningColorSchema = z._default(colorSchema, "#f3d371");
|
|
138
142
|
schemaRegistry.add(warningColorSchema, {
|
|
139
143
|
description: "The warning color of the workspace"
|
|
@@ -168,6 +172,7 @@ var darkColorsSchema = z.object({
|
|
|
168
172
|
help: helpColorSchema,
|
|
169
173
|
success: successColorSchema,
|
|
170
174
|
info: infoColorSchema,
|
|
175
|
+
debug: debugColorSchema,
|
|
171
176
|
warning: warningColorSchema,
|
|
172
177
|
danger: dangerColorSchema,
|
|
173
178
|
fatal: fatalColorSchema,
|
|
@@ -185,6 +190,7 @@ var lightColorsSchema = z.object({
|
|
|
185
190
|
help: helpColorSchema,
|
|
186
191
|
success: successColorSchema,
|
|
187
192
|
info: infoColorSchema,
|
|
193
|
+
debug: debugColorSchema,
|
|
188
194
|
warning: warningColorSchema,
|
|
189
195
|
danger: dangerColorSchema,
|
|
190
196
|
fatal: fatalColorSchema,
|
|
@@ -206,6 +212,7 @@ var singleColorsSchema = z.object({
|
|
|
206
212
|
help: helpColorSchema,
|
|
207
213
|
success: successColorSchema,
|
|
208
214
|
info: infoColorSchema,
|
|
215
|
+
debug: debugColorSchema,
|
|
209
216
|
warning: warningColorSchema,
|
|
210
217
|
danger: dangerColorSchema,
|
|
211
218
|
fatal: fatalColorSchema,
|
|
@@ -647,13 +654,13 @@ import {
|
|
|
647
654
|
mapTargetDefaultsToDependencies
|
|
648
655
|
} from "nx/src/tasks-runner/create-task-graph";
|
|
649
656
|
|
|
650
|
-
// ../build-tools/dist/chunk-
|
|
657
|
+
// ../build-tools/dist/chunk-Y3DAJZ6N.mjs
|
|
651
658
|
init_esm_shims();
|
|
652
659
|
import { CopyAssetsHandler } from "@nx/js/src/utils/assets/copy-assets-handler";
|
|
653
660
|
import { glob } from "glob";
|
|
654
661
|
import { readFile as readFile3, writeFile } from "node:fs/promises";
|
|
655
662
|
|
|
656
|
-
// ../build-tools/dist/chunk-
|
|
663
|
+
// ../build-tools/dist/chunk-L5EJL7HC.mjs
|
|
657
664
|
init_esm_shims();
|
|
658
665
|
import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
|
|
659
666
|
import { Glob } from "glob";
|
|
@@ -665,7 +672,7 @@ import {
|
|
|
665
672
|
readProjectsConfigurationFromProjectGraph
|
|
666
673
|
} from "nx/src/project-graph/project-graph";
|
|
667
674
|
|
|
668
|
-
// ../build-tools/dist/chunk-
|
|
675
|
+
// ../build-tools/dist/chunk-N7BG4G3W.mjs
|
|
669
676
|
init_esm_shims();
|
|
670
677
|
import { glob as glob2 } from "glob";
|
|
671
678
|
|
|
@@ -699,14 +706,14 @@ init_esm_shims();
|
|
|
699
706
|
// ../build-tools/dist/chunk-UN3B7LBV.mjs
|
|
700
707
|
init_esm_shims();
|
|
701
708
|
|
|
702
|
-
// ../build-tools/dist/chunk-
|
|
709
|
+
// ../build-tools/dist/chunk-JBZLYKSV.mjs
|
|
703
710
|
init_esm_shims();
|
|
704
711
|
|
|
705
712
|
// ../build-tools/dist/chunk-7YKXR5JJ.mjs
|
|
706
713
|
init_esm_shims();
|
|
707
714
|
import { transform } from "@swc/core";
|
|
708
715
|
|
|
709
|
-
// ../build-tools/dist/chunk-
|
|
716
|
+
// ../build-tools/dist/chunk-QOAEUKRL.mjs
|
|
710
717
|
init_esm_shims();
|
|
711
718
|
import fs from "node:fs";
|
|
712
719
|
import { builtinModules } from "node:module";
|
|
@@ -721,13 +728,13 @@ import { relative } from "path";
|
|
|
721
728
|
// ../config-tools/dist/get-config.js
|
|
722
729
|
init_esm_shims();
|
|
723
730
|
|
|
724
|
-
// ../config-tools/dist/chunk-
|
|
731
|
+
// ../config-tools/dist/chunk-ACQVK7YY.js
|
|
725
732
|
init_esm_shims();
|
|
726
733
|
|
|
727
|
-
// ../config-tools/dist/chunk-
|
|
734
|
+
// ../config-tools/dist/chunk-4VMNC3KN.js
|
|
728
735
|
init_esm_shims();
|
|
729
736
|
|
|
730
|
-
// ../config-tools/dist/chunk-
|
|
737
|
+
// ../config-tools/dist/chunk-C6VNQGUD.js
|
|
731
738
|
init_esm_shims();
|
|
732
739
|
|
|
733
740
|
// ../config-tools/dist/chunk-LF3SAK2O.js
|
|
@@ -953,10 +960,10 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
953
960
|
return result;
|
|
954
961
|
}
|
|
955
962
|
|
|
956
|
-
// ../config-tools/dist/chunk-
|
|
963
|
+
// ../config-tools/dist/chunk-SUXNQ4FP.js
|
|
957
964
|
init_esm_shims();
|
|
958
965
|
|
|
959
|
-
// ../config-tools/dist/chunk-
|
|
966
|
+
// ../config-tools/dist/chunk-DJB7XLHA.js
|
|
960
967
|
init_esm_shims();
|
|
961
968
|
var DEFAULT_COLOR_CONFIG = {
|
|
962
969
|
light: {
|
|
@@ -967,6 +974,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
967
974
|
help: "#5C4EE5",
|
|
968
975
|
success: "#087f5b",
|
|
969
976
|
info: "#0550ae",
|
|
977
|
+
debug: "#8afafc",
|
|
970
978
|
warning: "#e3b341",
|
|
971
979
|
danger: "#D8314A",
|
|
972
980
|
fatal: "#51070f",
|
|
@@ -983,6 +991,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
983
991
|
help: "#818cf8",
|
|
984
992
|
success: "#10b981",
|
|
985
993
|
info: "#58a6ff",
|
|
994
|
+
debug: "#8afafc",
|
|
986
995
|
warning: "#f3d371",
|
|
987
996
|
danger: "#D8314A",
|
|
988
997
|
fatal: "#a40e26",
|
|
@@ -1138,7 +1147,7 @@ var getLogLevelLabel2 = (logLevel = LogLevel2.INFO) => {
|
|
|
1138
1147
|
return LogLevelLabel2.INFO;
|
|
1139
1148
|
};
|
|
1140
1149
|
|
|
1141
|
-
// ../config-tools/dist/chunk-
|
|
1150
|
+
// ../config-tools/dist/chunk-SUXNQ4FP.js
|
|
1142
1151
|
import { formatDistanceToNow as formatDistanceToNow2 } from "date-fns/formatDistanceToNow";
|
|
1143
1152
|
var getLogFn = (logLevel = LogLevel2.INFO, config = {}, _chalk = getChalk()) => {
|
|
1144
1153
|
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
@@ -1196,7 +1205,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
|
|
|
1196
1205
|
return (message) => {
|
|
1197
1206
|
console.debug(
|
|
1198
1207
|
`
|
|
1199
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.
|
|
1208
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS2[LogLevelLabel2.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage2(message))}
|
|
1200
1209
|
`
|
|
1201
1210
|
);
|
|
1202
1211
|
};
|
|
@@ -1205,7 +1214,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
|
|
|
1205
1214
|
return (message) => {
|
|
1206
1215
|
console.debug(
|
|
1207
1216
|
`
|
|
1208
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.
|
|
1217
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(`[${CONSOLE_ICONS2[LogLevelLabel2.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage2(message))}
|
|
1209
1218
|
`
|
|
1210
1219
|
);
|
|
1211
1220
|
};
|
|
@@ -1258,7 +1267,7 @@ var _isFunction = (value) => {
|
|
|
1258
1267
|
}
|
|
1259
1268
|
};
|
|
1260
1269
|
|
|
1261
|
-
// ../config-tools/dist/chunk-
|
|
1270
|
+
// ../config-tools/dist/chunk-C6VNQGUD.js
|
|
1262
1271
|
import { loadConfig as loadConfig2 } from "c12";
|
|
1263
1272
|
import defu3 from "defu";
|
|
1264
1273
|
var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
@@ -1345,7 +1354,7 @@ init_esm_shims();
|
|
|
1345
1354
|
// ../config/dist/chunk-5QIMO5EY.js
|
|
1346
1355
|
init_esm_shims();
|
|
1347
1356
|
|
|
1348
|
-
// ../config/dist/chunk-
|
|
1357
|
+
// ../config/dist/chunk-OIOMONUX.js
|
|
1349
1358
|
init_esm_shims();
|
|
1350
1359
|
|
|
1351
1360
|
// ../config/dist/chunk-TYDRIJER.js
|
|
@@ -1367,7 +1376,7 @@ If this sounds interesting, and you would like to help us in creating the next g
|
|
|
1367
1376
|
var S = "tools/errors/codes.json";
|
|
1368
1377
|
var A = "The workspace's banner image";
|
|
1369
1378
|
|
|
1370
|
-
// ../config/dist/chunk-
|
|
1379
|
+
// ../config/dist/chunk-OIOMONUX.js
|
|
1371
1380
|
import * as e2 from "zod/mini";
|
|
1372
1381
|
var o2 = e2.registry();
|
|
1373
1382
|
var t2 = e2.string().check(e2.length(7), e2.toLowerCase(), e2.regex(/^#([0-9a-f]{3}){1,2}$/i), e2.trim());
|
|
@@ -1390,150 +1399,152 @@ var h = e2._default(t2, "#45b27e");
|
|
|
1390
1399
|
o2.add(h, { description: "The success color of the workspace" });
|
|
1391
1400
|
var l = e2._default(t2, "#38bdf8");
|
|
1392
1401
|
o2.add(l, { description: "The informational color of the workspace" });
|
|
1393
|
-
var m = e2._default(t2, "#
|
|
1394
|
-
o2.add(m, { description: "The
|
|
1395
|
-
var z2 = e2._default(t2, "#
|
|
1396
|
-
o2.add(z2, { description: "The
|
|
1397
|
-
var g = e2.
|
|
1398
|
-
o2.add(g, { description: "The
|
|
1399
|
-
var u = e2.
|
|
1400
|
-
o2.add(u, { description: "The
|
|
1401
|
-
var f = e2._default(t2, "#
|
|
1402
|
-
o2.add(f, { description: "The
|
|
1403
|
-
var k = e2.
|
|
1404
|
-
o2.add(k, { description: "The
|
|
1405
|
-
var
|
|
1406
|
-
|
|
1407
|
-
var
|
|
1408
|
-
var
|
|
1402
|
+
var m = e2._default(t2, "#8afafc");
|
|
1403
|
+
o2.add(m, { description: "The debug color of the workspace" });
|
|
1404
|
+
var z2 = e2._default(t2, "#f3d371");
|
|
1405
|
+
o2.add(z2, { description: "The warning color of the workspace" });
|
|
1406
|
+
var g = e2._default(t2, "#d8314a");
|
|
1407
|
+
o2.add(g, { description: "The danger color of the workspace" });
|
|
1408
|
+
var u = e2.optional(t2);
|
|
1409
|
+
o2.add(u, { description: "The fatal color of the workspace" });
|
|
1410
|
+
var f = e2._default(t2, "#4ade80");
|
|
1411
|
+
o2.add(f, { description: "The positive number color of the workspace" });
|
|
1412
|
+
var k = e2._default(t2, "#ef4444");
|
|
1413
|
+
o2.add(k, { description: "The negative number color of the workspace" });
|
|
1414
|
+
var w = e2.optional(e2.array(t2));
|
|
1415
|
+
o2.add(w, { description: "The color stops for the base gradient color pattern used in the workspace" });
|
|
1416
|
+
var Ae = e2.object({ foreground: i2, background: a2, brand: c, alternate: s2, accent: n, link: d, help: p, success: h, info: l, debug: m, warning: z2, danger: g, fatal: u, positive: f, negative: k, gradient: w });
|
|
1417
|
+
var Re = e2.object({ foreground: a2, background: i2, brand: c, alternate: s2, accent: n, link: d, help: p, success: h, info: l, debug: m, warning: z2, danger: g, fatal: u, positive: f, negative: k, gradient: w });
|
|
1418
|
+
var Ue = e2.object({ dark: Ae, light: Re });
|
|
1419
|
+
var De = e2.object({ dark: a2, light: i2, brand: c, alternate: s2, accent: n, link: d, help: p, success: h, info: l, debug: m, warning: z2, danger: g, fatal: u, positive: f, negative: k, gradient: w });
|
|
1409
1420
|
var r2 = e2.optional(e2.url());
|
|
1410
1421
|
o2.add(r2, { description: "A remote registry URL used to publish distributable packages" });
|
|
1411
|
-
var
|
|
1412
|
-
o2.add(
|
|
1413
|
-
var
|
|
1414
|
-
o2.add(
|
|
1415
|
-
var
|
|
1416
|
-
o2.add(
|
|
1417
|
-
var
|
|
1418
|
-
o2.add(
|
|
1419
|
-
var C = e2.string().check(e2.trim());
|
|
1420
|
-
o2.add(C, { description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)" });
|
|
1422
|
+
var v = e2._default(e2.object({ github: r2, npm: r2, cargo: r2, cyclone: r2, container: r2 }), {});
|
|
1423
|
+
o2.add(v, { description: "A list of remote registry URLs used by Storm Software" });
|
|
1424
|
+
var S2 = e2.union([De, Ue]);
|
|
1425
|
+
o2.add(S2, { description: "Colors used for various workspace elements" });
|
|
1426
|
+
var y = e2.record(e2.union([e2.union([e2.literal("base"), e2.string()]), e2.string()]), S2);
|
|
1427
|
+
o2.add(y, { description: "Storm theme config values used for styling various package elements" });
|
|
1428
|
+
var C = e2.optional(e2.union([e2.string().check(e2.trim()), e2.array(e2.string().check(e2.trim()))]));
|
|
1429
|
+
o2.add(C, { description: "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration." });
|
|
1421
1430
|
var _ = e2.string().check(e2.trim());
|
|
1422
|
-
o2.add(_, { description: "The
|
|
1423
|
-
var L = e2.
|
|
1424
|
-
o2.add(L, { description: "The
|
|
1425
|
-
var j = e2.
|
|
1426
|
-
o2.add(j, { description: "
|
|
1427
|
-
var A2 = e2.
|
|
1428
|
-
o2.add(A2, { description: "
|
|
1429
|
-
var R = e2.
|
|
1430
|
-
o2.add(R, { description: "The workspace's banner image
|
|
1431
|
-
var U = e2.
|
|
1432
|
-
o2.add(U, { description: "
|
|
1431
|
+
o2.add(_, { description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)" });
|
|
1432
|
+
var L = e2.string().check(e2.trim());
|
|
1433
|
+
o2.add(L, { description: "The email of the workspace bot" });
|
|
1434
|
+
var j = e2.object({ name: _, email: L });
|
|
1435
|
+
o2.add(j, { description: "The workspace's bot user's config used to automated various operations tasks" });
|
|
1436
|
+
var A2 = e2.optional(e2.string().check(e2.trim(), e2.url()));
|
|
1437
|
+
o2.add(A2, { description: "A URL to a banner image used to display the workspace's release" });
|
|
1438
|
+
var R = e2._default(e2.string().check(e2.trim()), A);
|
|
1439
|
+
o2.add(R, { description: "The alt text for the workspace's release banner image" });
|
|
1440
|
+
var U = e2.object({ url: A2, alt: R });
|
|
1441
|
+
o2.add(U, { description: "The workspace's banner image used during the release process" });
|
|
1433
1442
|
var D = e2.optional(e2.string().check(e2.trim()));
|
|
1434
|
-
o2.add(D, { description: "A
|
|
1435
|
-
var B = e2.
|
|
1436
|
-
o2.add(B, { description: "
|
|
1437
|
-
var F = e2.
|
|
1438
|
-
o2.add(F, { description: "
|
|
1443
|
+
o2.add(D, { description: "A header message appended to the start of the workspace's release notes" });
|
|
1444
|
+
var B = e2.optional(e2.string().check(e2.trim()));
|
|
1445
|
+
o2.add(B, { description: "A footer message appended to the end of the workspace's release notes" });
|
|
1446
|
+
var F = e2.object({ banner: e2.union([U, e2.string().check(e2.trim(), e2.url())]), header: D, footer: B });
|
|
1447
|
+
o2.add(F, { description: "The workspace's release config used during the release process" });
|
|
1439
1448
|
var N = e2.optional(e2.string().check(e2.trim()));
|
|
1440
|
-
o2.add(N, { description: "A
|
|
1449
|
+
o2.add(N, { description: "A Twitter/X account associated with the organization/project" });
|
|
1441
1450
|
var E2 = e2.optional(e2.string().check(e2.trim()));
|
|
1442
|
-
o2.add(E2, { description: "A
|
|
1451
|
+
o2.add(E2, { description: "A Discord account associated with the organization/project" });
|
|
1443
1452
|
var M = e2.optional(e2.string().check(e2.trim()));
|
|
1444
|
-
o2.add(M, { description: "A
|
|
1453
|
+
o2.add(M, { description: "A Telegram account associated with the organization/project" });
|
|
1445
1454
|
var O = e2.optional(e2.string().check(e2.trim()));
|
|
1446
|
-
o2.add(O, { description: "A
|
|
1455
|
+
o2.add(O, { description: "A Slack account associated with the organization/project" });
|
|
1447
1456
|
var I = e2.optional(e2.string().check(e2.trim()));
|
|
1448
|
-
o2.add(I, { description: "A
|
|
1449
|
-
var G = e2.
|
|
1450
|
-
o2.add(G, { description: "
|
|
1451
|
-
var H = e2.
|
|
1452
|
-
o2.add(H, { description: "The
|
|
1457
|
+
o2.add(I, { description: "A Medium account associated with the organization/project" });
|
|
1458
|
+
var G = e2.optional(e2.string().check(e2.trim()));
|
|
1459
|
+
o2.add(G, { description: "A GitHub account associated with the organization/project" });
|
|
1460
|
+
var H = e2.object({ twitter: N, discord: E2, telegram: M, slack: O, medium: I, github: G });
|
|
1461
|
+
o2.add(H, { description: "The workspace's account config used to store various social media links" });
|
|
1453
1462
|
var J = e2.optional(e2.string().check(e2.trim()));
|
|
1454
|
-
o2.add(J, { description: "The directory used to store the environment's data
|
|
1463
|
+
o2.add(J, { description: "The directory used to store the environment's cached file data" });
|
|
1455
1464
|
var W = e2.optional(e2.string().check(e2.trim()));
|
|
1456
|
-
o2.add(W, { description: "The directory used to store the environment's
|
|
1465
|
+
o2.add(W, { description: "The directory used to store the environment's data files" });
|
|
1457
1466
|
var P = e2.optional(e2.string().check(e2.trim()));
|
|
1458
|
-
o2.add(P, { description: "The directory used to store the environment's
|
|
1467
|
+
o2.add(P, { description: "The directory used to store the environment's configuration files" });
|
|
1459
1468
|
var $ = e2.optional(e2.string().check(e2.trim()));
|
|
1460
|
-
o2.add($, { description: "The directory used to store the environment's
|
|
1461
|
-
var V = e2.
|
|
1462
|
-
o2.add(V, { description: "The directory used to store the
|
|
1463
|
-
var X = e2.
|
|
1464
|
-
o2.add(X, { description: "
|
|
1465
|
-
var Y = e2.
|
|
1466
|
-
o2.add(Y, { description: "
|
|
1467
|
-
var q = e2._default(e2.
|
|
1468
|
-
o2.add(q, { description: "The
|
|
1469
|
-
var K = e2.
|
|
1470
|
-
o2.add(K, { description: "
|
|
1471
|
-
var Q = e2.
|
|
1472
|
-
o2.add(Q, { description: "
|
|
1473
|
-
var Z = e2.
|
|
1474
|
-
o2.add(Z, { description: "The
|
|
1475
|
-
var ee = e2.optional(e2.string().check(e2.trim()));
|
|
1476
|
-
o2.add(ee, { description: "
|
|
1477
|
-
var oe = e2.optional(e2.
|
|
1478
|
-
o2.add(oe, { description: "A
|
|
1469
|
+
o2.add($, { description: "The directory used to store the environment's temp files" });
|
|
1470
|
+
var V = e2.optional(e2.string().check(e2.trim()));
|
|
1471
|
+
o2.add(V, { description: "The directory used to store the environment's log files" });
|
|
1472
|
+
var X = e2._default(e2.string().check(e2.trim()), "dist");
|
|
1473
|
+
o2.add(X, { description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)" });
|
|
1474
|
+
var Y = e2.object({ cache: J, data: W, config: P, temp: $, log: V, build: X });
|
|
1475
|
+
o2.add(Y, { description: "Various directories used by the workspace to store data, cache, and configuration files" });
|
|
1476
|
+
var q = e2._default(e2.enum(["minimal", "monorepo"]), "monorepo");
|
|
1477
|
+
o2.add(q, { description: "The variant of the workspace. This can be used to enable or disable certain features or configurations." });
|
|
1478
|
+
var K = e2._default(e2.string().check(e2.trim()), S);
|
|
1479
|
+
o2.add(K, { description: "The path to the workspace's error codes JSON file" });
|
|
1480
|
+
var Q = e2.optional(e2.url());
|
|
1481
|
+
o2.add(Q, { description: "A URL to a page that looks up the workspace's error messages given a specific error code" });
|
|
1482
|
+
var Z = e2.object({ codesFile: K, url: Q });
|
|
1483
|
+
o2.add(Z, { description: "The workspace's error config used when creating error details during a system error" });
|
|
1484
|
+
var ee = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
|
|
1485
|
+
o2.add(ee, { description: "The name of the organization" });
|
|
1486
|
+
var oe = e2.optional(e2.string().check(e2.trim()));
|
|
1487
|
+
o2.add(oe, { description: "A description of the organization" });
|
|
1479
1488
|
var te = e2.optional(e2.url());
|
|
1480
|
-
o2.add(te, { description: "A URL to the organization's
|
|
1489
|
+
o2.add(te, { description: "A URL to the organization's logo image" });
|
|
1481
1490
|
var re = e2.optional(e2.url());
|
|
1482
|
-
o2.add(re, { description: "A URL to
|
|
1483
|
-
var ae = e2.
|
|
1484
|
-
o2.add(ae, { description: "
|
|
1485
|
-
var ie = e2.
|
|
1486
|
-
o2.add(ie, { description: "The
|
|
1487
|
-
var ce = e2.string().check(e2.trim(), e2.toLowerCase());
|
|
1488
|
-
o2.add(ce, { description: "The
|
|
1491
|
+
o2.add(re, { description: "A URL to the organization's icon image" });
|
|
1492
|
+
var ae = e2.optional(e2.url());
|
|
1493
|
+
o2.add(ae, { description: "A URL to a page that provides more information about the organization" });
|
|
1494
|
+
var ie = e2.object({ name: ee, description: oe, logo: te, icon: re, url: ae });
|
|
1495
|
+
o2.add(ie, { description: "The workspace's organization details" });
|
|
1496
|
+
var ce = e2._default(e2.string().check(e2.trim(), e2.toLowerCase()), "https://public.storm-cdn.com/schemas/storm-workspace.schema.json");
|
|
1497
|
+
o2.add(ce, { description: "The URL or file path to the JSON schema file that describes the Storm configuration file" });
|
|
1489
1498
|
var se = e2.string().check(e2.trim(), e2.toLowerCase());
|
|
1490
|
-
o2.add(se, { description: "The
|
|
1491
|
-
var ne = e2.
|
|
1492
|
-
o2.add(ne, { description: "The
|
|
1493
|
-
var de = e2.string().check(e2.trim(), e2.toLowerCase());
|
|
1494
|
-
o2.add(de, { description: "The
|
|
1495
|
-
var pe = e2.
|
|
1496
|
-
o2.add(pe, { description: "The
|
|
1497
|
-
var he = e2.
|
|
1498
|
-
o2.add(he, { description: "The
|
|
1499
|
+
o2.add(se, { description: "The name of the workspace/project/service/package/scope using this configuration" });
|
|
1500
|
+
var ne = e2.string().check(e2.trim(), e2.toLowerCase());
|
|
1501
|
+
o2.add(ne, { description: "The namespace of the workspace/project/service/package/scope using this configuration" });
|
|
1502
|
+
var de = e2.union([ie, e2.string().check(e2.trim(), e2.toLowerCase())]);
|
|
1503
|
+
o2.add(de, { description: "The organization of the workspace. This can be a string or an object containing the organization's details" });
|
|
1504
|
+
var pe = e2.string().check(e2.trim(), e2.toLowerCase());
|
|
1505
|
+
o2.add(pe, { description: "The repo URL of the workspace (i.e. the GitHub repository URL)" });
|
|
1506
|
+
var he = e2._default(e2.string().check(e2.trim()), "Apache-2.0");
|
|
1507
|
+
o2.add(he, { description: "The license type of the package" });
|
|
1499
1508
|
var le = e2.optional(e2.url());
|
|
1500
|
-
o2.add(le, { description: "The
|
|
1509
|
+
o2.add(le, { description: "The homepage of the workspace" });
|
|
1501
1510
|
var me = e2.optional(e2.url());
|
|
1502
|
-
o2.add(me, { description: "The
|
|
1511
|
+
o2.add(me, { description: "The documentation site for the workspace" });
|
|
1503
1512
|
var ze = e2.optional(e2.url());
|
|
1504
|
-
o2.add(ze, { description: "The
|
|
1513
|
+
o2.add(ze, { description: "The development portal site for the workspace" });
|
|
1505
1514
|
var ge = e2.optional(e2.url());
|
|
1506
|
-
o2.add(ge, { description: "The
|
|
1515
|
+
o2.add(ge, { description: "The licensing site for the workspace" });
|
|
1507
1516
|
var ue = e2.optional(e2.url());
|
|
1508
|
-
o2.add(ue, { description: "The
|
|
1509
|
-
var fe = e2.
|
|
1510
|
-
o2.add(fe, { description: "The
|
|
1511
|
-
var ke = e2.
|
|
1512
|
-
o2.add(ke, { description: "
|
|
1517
|
+
o2.add(ue, { description: "The contact site for the workspace" });
|
|
1518
|
+
var fe = e2.optional(e2.url());
|
|
1519
|
+
o2.add(fe, { description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value" });
|
|
1520
|
+
var ke = e2._default(e2.string().check(e2.trim(), e2.toLowerCase()), "main");
|
|
1521
|
+
o2.add(ke, { description: "The branch of the workspace" });
|
|
1513
1522
|
var we = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
|
|
1514
|
-
o2.add(we, { description: "
|
|
1515
|
-
var Se = e2.
|
|
1516
|
-
o2.add(Se, { description: "The
|
|
1523
|
+
o2.add(we, { description: "A tag specifying the version pre-release identifier" });
|
|
1524
|
+
var Se = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
|
|
1525
|
+
o2.add(Se, { description: "The owner of the package" });
|
|
1526
|
+
var be = e2._default(e2.enum(["development", "test", "production"]).check(e2.trim(), e2.toLowerCase()), "production");
|
|
1527
|
+
o2.add(be, { description: "The current runtime environment mode for the package" });
|
|
1517
1528
|
var xe = e2.string().check(e2.trim(), e2.toLowerCase());
|
|
1518
1529
|
o2.add(xe, { description: "The root directory of the workspace" });
|
|
1519
|
-
var
|
|
1520
|
-
o2.add(
|
|
1521
|
-
var
|
|
1522
|
-
o2.add(
|
|
1523
|
-
var
|
|
1524
|
-
o2.add(
|
|
1525
|
-
var
|
|
1526
|
-
o2.add(
|
|
1527
|
-
var
|
|
1528
|
-
o2.add(
|
|
1529
|
-
var
|
|
1530
|
-
o2.add(
|
|
1531
|
-
var
|
|
1532
|
-
o2.add(
|
|
1533
|
-
var
|
|
1534
|
-
o2.add(
|
|
1535
|
-
var
|
|
1536
|
-
o2.add(
|
|
1530
|
+
var Te = e2._default(e2.boolean(), false);
|
|
1531
|
+
o2.add(Te, { description: "Should all known types of workspace caching be skipped?" });
|
|
1532
|
+
var ve = e2._default(e2.enum(["npm", "yarn", "pnpm", "bun"]), "npm");
|
|
1533
|
+
o2.add(ve, { description: "The JavaScript/TypeScript package manager used by the repository" });
|
|
1534
|
+
var ye = e2._default(e2.string().check(e2.trim()), "America/New_York");
|
|
1535
|
+
o2.add(ye, { description: "The default timezone of the workspace" });
|
|
1536
|
+
var Ce = e2._default(e2.string().check(e2.trim()), "en-US");
|
|
1537
|
+
o2.add(Ce, { description: "The default locale of the workspace" });
|
|
1538
|
+
var _e = e2._default(e2.enum(["silent", "fatal", "error", "warn", "success", "info", "debug", "trace", "all"]), "info");
|
|
1539
|
+
o2.add(_e, { description: "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)." });
|
|
1540
|
+
var Le = e2._default(e2.boolean(), true);
|
|
1541
|
+
o2.add(Le, { description: "Should the logging of the current Storm Workspace configuration be skipped?" });
|
|
1542
|
+
var je = e2._default(e2.nullable(e2.string().check(e2.trim())), null);
|
|
1543
|
+
o2.add(je, { description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace." });
|
|
1544
|
+
var b = e2._default(e2.record(e2.string(), e2.any()), {});
|
|
1545
|
+
o2.add(b, { description: "Configuration of each used extension" });
|
|
1546
|
+
var Fe = e2.object({ $schema: ce, extends: C, name: se, variant: q, namespace: ne, organization: de, repository: pe, license: he, homepage: le, docs: me, portal: ze, licensing: ge, contact: ue, support: fe, branch: ke, preid: we, owner: Se, bot: j, release: F, socials: H, error: Z, mode: be, workspaceRoot: xe, skipCache: Te, directories: Y, packageManager: ve, timezone: ye, locale: Ce, logLevel: _e, skipConfigLogging: Le, registry: v, configFile: je, colors: e2.union([S2, y]), extensions: b });
|
|
1547
|
+
o2.add(b, { description: "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo." });
|
|
1537
1548
|
|
|
1538
1549
|
// ../config/dist/chunk-WIOU3CJS.js
|
|
1539
1550
|
init_esm_shims();
|
|
@@ -1626,7 +1637,7 @@ function applyDefaultConfig(config) {
|
|
|
1626
1637
|
return config;
|
|
1627
1638
|
}
|
|
1628
1639
|
|
|
1629
|
-
// ../config-tools/dist/chunk-
|
|
1640
|
+
// ../config-tools/dist/chunk-4XFFB6C2.js
|
|
1630
1641
|
init_esm_shims();
|
|
1631
1642
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1632
1643
|
for (const key of Object.keys(extension ?? {})) {
|
|
@@ -1919,6 +1930,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
|
|
|
1919
1930
|
if (config.info) {
|
|
1920
1931
|
process.env[`${prefix}INFO`] = config.info;
|
|
1921
1932
|
}
|
|
1933
|
+
if (config.debug) {
|
|
1934
|
+
process.env[`${prefix}DEBUG`] = config.debug;
|
|
1935
|
+
}
|
|
1922
1936
|
if (config.warning) {
|
|
1923
1937
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
1924
1938
|
}
|
|
@@ -1974,6 +1988,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
1974
1988
|
if (config.info) {
|
|
1975
1989
|
process.env[`${prefix}INFO`] = config.info;
|
|
1976
1990
|
}
|
|
1991
|
+
if (config.debug) {
|
|
1992
|
+
process.env[`${prefix}DEBUG`] = config.debug;
|
|
1993
|
+
}
|
|
1977
1994
|
if (config.warning) {
|
|
1978
1995
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
1979
1996
|
}
|
|
@@ -1996,7 +2013,7 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
1996
2013
|
}
|
|
1997
2014
|
};
|
|
1998
2015
|
|
|
1999
|
-
// ../config-tools/dist/chunk-
|
|
2016
|
+
// ../config-tools/dist/chunk-XT72Z7BW.js
|
|
2000
2017
|
init_esm_shims();
|
|
2001
2018
|
var getExtensionEnv = (extensionName) => {
|
|
2002
2019
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
@@ -2162,6 +2179,7 @@ var getSingleThemeColorsEnv = (prefix) => {
|
|
|
2162
2179
|
help: process.env[`${prefix}HELP`],
|
|
2163
2180
|
success: process.env[`${prefix}SUCCESS`],
|
|
2164
2181
|
info: process.env[`${prefix}INFO`],
|
|
2182
|
+
debug: process.env[`${prefix}DEBUG`],
|
|
2165
2183
|
warning: process.env[`${prefix}WARNING`],
|
|
2166
2184
|
danger: process.env[`${prefix}DANGER`],
|
|
2167
2185
|
fatal: process.env[`${prefix}FATAL`],
|
|
@@ -2200,6 +2218,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
2200
2218
|
help: process.env[`${prefix}HELP`],
|
|
2201
2219
|
success: process.env[`${prefix}SUCCESS`],
|
|
2202
2220
|
info: process.env[`${prefix}INFO`],
|
|
2221
|
+
debug: process.env[`${prefix}DEBUG`],
|
|
2203
2222
|
warning: process.env[`${prefix}WARNING`],
|
|
2204
2223
|
danger: process.env[`${prefix}DANGER`],
|
|
2205
2224
|
fatal: process.env[`${prefix}FATAL`],
|
|
@@ -2212,7 +2231,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
2212
2231
|
// ../config/dist/schema.js
|
|
2213
2232
|
init_esm_shims();
|
|
2214
2233
|
|
|
2215
|
-
// ../config-tools/dist/chunk-
|
|
2234
|
+
// ../config-tools/dist/chunk-4VMNC3KN.js
|
|
2216
2235
|
import defu4 from "defu";
|
|
2217
2236
|
import { existsSync as existsSync7 } from "node:fs";
|
|
2218
2237
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
@@ -2248,7 +2267,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
2248
2267
|
}
|
|
2249
2268
|
try {
|
|
2250
2269
|
result = applyDefaultConfig(
|
|
2251
|
-
await
|
|
2270
|
+
await Fe.parseAsync(configInput)
|
|
2252
2271
|
);
|
|
2253
2272
|
result.workspaceRoot ??= _workspaceRoot;
|
|
2254
2273
|
} catch (error) {
|
|
@@ -2309,7 +2328,7 @@ ${formatLogMessage2(config)}`,
|
|
|
2309
2328
|
return config;
|
|
2310
2329
|
};
|
|
2311
2330
|
|
|
2312
|
-
// ../config-tools/dist/chunk-
|
|
2331
|
+
// ../config-tools/dist/chunk-ACQVK7YY.js
|
|
2313
2332
|
function getConfig(workspaceRoot, skipLogs = false) {
|
|
2314
2333
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
2315
2334
|
}
|