@storm-software/tsup 0.2.118 → 0.2.120
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-P7TRVIIZ.js → chunk-BM3RWK2R.js} +199 -158
- package/dist/index.cjs +204 -163
- package/dist/index.js +1 -1
- package/dist/options.cjs +190 -149
- package/dist/options.js +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -87,11 +87,11 @@ var require_chunk_TWFEYLU4 = __commonJS({
|
|
|
87
87
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
88
88
|
var __getProtoOf2 = Object.getPrototypeOf;
|
|
89
89
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
90
|
-
var __require = /* @__PURE__ */ ((
|
|
90
|
+
var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, {
|
|
91
91
|
get: (a3, b2) => (typeof require !== "undefined" ? require : a3)[b2]
|
|
92
|
-
}) :
|
|
92
|
+
}) : x2)(function(x2) {
|
|
93
93
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
94
|
-
throw Error('Dynamic require of "' +
|
|
94
|
+
throw Error('Dynamic require of "' + x2 + '" is not supported');
|
|
95
95
|
});
|
|
96
96
|
var __commonJS2 = (cb, mod) => function __require2() {
|
|
97
97
|
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
@@ -2608,7 +2608,7 @@ module.exports = exports.default;
|
|
|
2608
2608
|
buildDependencies
|
|
2609
2609
|
}).catch((error) => {
|
|
2610
2610
|
previousBuildDependencies.forEach(
|
|
2611
|
-
(
|
|
2611
|
+
(v) => buildDependencies.add(v)
|
|
2612
2612
|
);
|
|
2613
2613
|
throw error;
|
|
2614
2614
|
});
|
|
@@ -2641,11 +2641,11 @@ module.exports = exports.default;
|
|
|
2641
2641
|
const watchPaths = typeof options2.watch === "boolean" ? "." : Array.isArray(options2.watch) ? options2.watch.filter((path12) => typeof path12 === "string") : options2.watch;
|
|
2642
2642
|
logger3.info(
|
|
2643
2643
|
"CLI",
|
|
2644
|
-
`Watching for changes in ${Array.isArray(watchPaths) ? watchPaths.map((
|
|
2644
|
+
`Watching for changes in ${Array.isArray(watchPaths) ? watchPaths.map((v) => `"${v}"`).join(" | ") : `"${watchPaths}"`}`
|
|
2645
2645
|
);
|
|
2646
2646
|
logger3.info(
|
|
2647
2647
|
"CLI",
|
|
2648
|
-
`Ignoring changes in ${ignored.map((
|
|
2648
|
+
`Ignoring changes in ${ignored.map((v) => `"${v}"`).join(" | ")}`
|
|
2649
2649
|
);
|
|
2650
2650
|
const watcher = watch(await _tinyglobby.glob.call(void 0, watchPaths), {
|
|
2651
2651
|
ignoreInitial: true,
|
|
@@ -2705,10 +2705,10 @@ init_cjs_shims();
|
|
|
2705
2705
|
// ../config-tools/dist/logger/console.js
|
|
2706
2706
|
init_cjs_shims();
|
|
2707
2707
|
|
|
2708
|
-
// ../config-tools/dist/chunk-
|
|
2708
|
+
// ../config-tools/dist/chunk-V5S4LLZX.js
|
|
2709
2709
|
init_cjs_shims();
|
|
2710
2710
|
|
|
2711
|
-
// ../config-tools/dist/chunk-
|
|
2711
|
+
// ../config-tools/dist/chunk-TEXP3QH5.js
|
|
2712
2712
|
init_cjs_shims();
|
|
2713
2713
|
var DEFAULT_COLOR_CONFIG = {
|
|
2714
2714
|
light: {
|
|
@@ -2723,6 +2723,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
2723
2723
|
warning: "#e3b341",
|
|
2724
2724
|
danger: "#D8314A",
|
|
2725
2725
|
fatal: "#51070f",
|
|
2726
|
+
performance: "#83ff83",
|
|
2726
2727
|
link: "#3fa6ff",
|
|
2727
2728
|
positive: "#22c55e",
|
|
2728
2729
|
negative: "#dc2626",
|
|
@@ -2740,6 +2741,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
2740
2741
|
warning: "#f3d371",
|
|
2741
2742
|
danger: "#D8314A",
|
|
2742
2743
|
fatal: "#a40e26",
|
|
2744
|
+
performance: "#00ff00",
|
|
2743
2745
|
link: "#3fa6ff",
|
|
2744
2746
|
positive: "#22c55e",
|
|
2745
2747
|
negative: "#dc2626",
|
|
@@ -2781,7 +2783,7 @@ var getChalk = () => {
|
|
|
2781
2783
|
return _chalk;
|
|
2782
2784
|
};
|
|
2783
2785
|
|
|
2784
|
-
// ../config-tools/dist/chunk-
|
|
2786
|
+
// ../config-tools/dist/chunk-ZFNAUMQS.js
|
|
2785
2787
|
init_cjs_shims();
|
|
2786
2788
|
|
|
2787
2789
|
// ../config-tools/dist/chunk-G2MK47WL.js
|
|
@@ -2796,7 +2798,7 @@ function isUnicodeSupported() {
|
|
|
2796
2798
|
process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
2797
2799
|
}
|
|
2798
2800
|
|
|
2799
|
-
// ../config-tools/dist/chunk-
|
|
2801
|
+
// ../config-tools/dist/chunk-RALMUN5C.js
|
|
2800
2802
|
init_cjs_shims();
|
|
2801
2803
|
var LogLevel = {
|
|
2802
2804
|
SILENT: 0,
|
|
@@ -2805,6 +2807,7 @@ var LogLevel = {
|
|
|
2805
2807
|
WARN: 30,
|
|
2806
2808
|
SUCCESS: 35,
|
|
2807
2809
|
INFO: 40,
|
|
2810
|
+
PERFORMANCE: 50,
|
|
2808
2811
|
DEBUG: 60,
|
|
2809
2812
|
TRACE: 70,
|
|
2810
2813
|
ALL: 100
|
|
@@ -2816,18 +2819,20 @@ var LogLevelLabel = {
|
|
|
2816
2819
|
WARN: "warn",
|
|
2817
2820
|
SUCCESS: "success",
|
|
2818
2821
|
INFO: "info",
|
|
2822
|
+
PERFORMANCE: "performance",
|
|
2819
2823
|
DEBUG: "debug",
|
|
2820
2824
|
TRACE: "trace",
|
|
2821
2825
|
ALL: "all"
|
|
2822
2826
|
};
|
|
2823
2827
|
|
|
2824
|
-
// ../config-tools/dist/chunk-
|
|
2828
|
+
// ../config-tools/dist/chunk-ZFNAUMQS.js
|
|
2825
2829
|
var useIcon = (c3, fallback) => isUnicodeSupported() ? c3 : fallback;
|
|
2826
2830
|
var CONSOLE_ICONS = {
|
|
2827
2831
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
2828
2832
|
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
2829
2833
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
2830
2834
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
2835
|
+
[LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
|
|
2831
2836
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
2832
2837
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
2833
2838
|
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
@@ -2840,7 +2845,7 @@ var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
|
2840
2845
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
2841
2846
|
};
|
|
2842
2847
|
|
|
2843
|
-
// ../config-tools/dist/chunk-
|
|
2848
|
+
// ../config-tools/dist/chunk-SXPH7ILL.js
|
|
2844
2849
|
init_cjs_shims();
|
|
2845
2850
|
var getLogLevel = (label) => {
|
|
2846
2851
|
switch (label) {
|
|
@@ -2850,6 +2855,8 @@ var getLogLevel = (label) => {
|
|
|
2850
2855
|
return LogLevel.TRACE;
|
|
2851
2856
|
case "debug":
|
|
2852
2857
|
return LogLevel.DEBUG;
|
|
2858
|
+
case "performance":
|
|
2859
|
+
return LogLevel.PERFORMANCE;
|
|
2853
2860
|
case "info":
|
|
2854
2861
|
return LogLevel.INFO;
|
|
2855
2862
|
case "warn":
|
|
@@ -2874,6 +2881,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
2874
2881
|
if (logLevel >= LogLevel.DEBUG) {
|
|
2875
2882
|
return LogLevelLabel.DEBUG;
|
|
2876
2883
|
}
|
|
2884
|
+
if (logLevel >= LogLevel.PERFORMANCE) {
|
|
2885
|
+
return LogLevelLabel.PERFORMANCE;
|
|
2886
|
+
}
|
|
2877
2887
|
if (logLevel >= LogLevel.INFO) {
|
|
2878
2888
|
return LogLevelLabel.INFO;
|
|
2879
2889
|
}
|
|
@@ -2892,7 +2902,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
2892
2902
|
return LogLevelLabel.INFO;
|
|
2893
2903
|
};
|
|
2894
2904
|
|
|
2895
|
-
// ../config-tools/dist/chunk-
|
|
2905
|
+
// ../config-tools/dist/chunk-V5S4LLZX.js
|
|
2896
2906
|
var daysInYear = 365.2425;
|
|
2897
2907
|
var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
|
|
2898
2908
|
var minTime = -maxTime;
|
|
@@ -3645,6 +3655,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
3645
3655
|
)(
|
|
3646
3656
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
3647
3657
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
3658
|
+
`
|
|
3659
|
+
);
|
|
3660
|
+
};
|
|
3661
|
+
}
|
|
3662
|
+
if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
|
|
3663
|
+
return (message) => {
|
|
3664
|
+
console.debug(
|
|
3665
|
+
`
|
|
3666
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
3667
|
+
colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
|
|
3668
|
+
)(
|
|
3669
|
+
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
3670
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
3648
3671
|
`
|
|
3649
3672
|
);
|
|
3650
3673
|
};
|
|
@@ -3686,18 +3709,16 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
3686
3709
|
};
|
|
3687
3710
|
};
|
|
3688
3711
|
var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
3712
|
+
var writePerformance = (message, config) => getLogFn(LogLevel.PERFORMANCE, config)(message);
|
|
3689
3713
|
var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
|
|
3690
3714
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
3691
3715
|
var getStopwatch = (name) => {
|
|
3692
3716
|
const start = /* @__PURE__ */ new Date();
|
|
3693
3717
|
return () => {
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
includeSeconds: true
|
|
3699
|
-
}
|
|
3700
|
-
)} to complete`
|
|
3718
|
+
writePerformance(
|
|
3719
|
+
`The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(start, {
|
|
3720
|
+
includeSeconds: true
|
|
3721
|
+
})} to complete`
|
|
3701
3722
|
);
|
|
3702
3723
|
};
|
|
3703
3724
|
};
|
|
@@ -3801,7 +3822,7 @@ init_cjs_shims();
|
|
|
3801
3822
|
// ../build-tools/dist/chunk-KVP3YMX6.mjs
|
|
3802
3823
|
init_cjs_shims();
|
|
3803
3824
|
|
|
3804
|
-
// ../build-tools/dist/chunk-
|
|
3825
|
+
// ../build-tools/dist/chunk-P3RDPIXU.mjs
|
|
3805
3826
|
init_cjs_shims();
|
|
3806
3827
|
|
|
3807
3828
|
// ../build-tools/dist/chunk-B4H42WDA.mjs
|
|
@@ -3814,7 +3835,7 @@ init_cjs_shims();
|
|
|
3814
3835
|
var import_node_fs = require("fs");
|
|
3815
3836
|
var import_node_path = require("path");
|
|
3816
3837
|
|
|
3817
|
-
// ../build-tools/dist/chunk-
|
|
3838
|
+
// ../build-tools/dist/chunk-GIDQQPFS.mjs
|
|
3818
3839
|
init_cjs_shims();
|
|
3819
3840
|
var import_formatDistanceToNow = require("date-fns/formatDistanceToNow");
|
|
3820
3841
|
var import_chalk2 = __toESM(require("chalk"), 1);
|
|
@@ -3825,6 +3846,7 @@ var LogLevelLabel2 = {
|
|
|
3825
3846
|
WARN: "warn",
|
|
3826
3847
|
SUCCESS: "success",
|
|
3827
3848
|
INFO: "info",
|
|
3849
|
+
PERFORMANCE: "performance",
|
|
3828
3850
|
DEBUG: "debug",
|
|
3829
3851
|
TRACE: "trace",
|
|
3830
3852
|
ALL: "all"
|
|
@@ -3844,13 +3866,14 @@ var CONSOLE_ICONS2 = {
|
|
|
3844
3866
|
[LogLevelLabel2.FATAL]: useIcon2("\u{1F571}", "\xD7"),
|
|
3845
3867
|
[LogLevelLabel2.WARN]: useIcon2("\u26A0", "\u203C"),
|
|
3846
3868
|
[LogLevelLabel2.INFO]: useIcon2("\u2139", "i"),
|
|
3869
|
+
[LogLevelLabel2.PERFORMANCE]: useIcon2("\u23F1", "\u23F1"),
|
|
3847
3870
|
[LogLevelLabel2.SUCCESS]: useIcon2("\u2714", "\u221A"),
|
|
3848
3871
|
[LogLevelLabel2.DEBUG]: useIcon2("\u{1F6E0}", "D"),
|
|
3849
3872
|
[LogLevelLabel2.TRACE]: useIcon2("\u2699", "T"),
|
|
3850
3873
|
[LogLevelLabel2.ALL]: useIcon2("\u2709", "\u2192")
|
|
3851
3874
|
};
|
|
3852
3875
|
|
|
3853
|
-
// ../build-tools/dist/chunk-
|
|
3876
|
+
// ../build-tools/dist/chunk-P3RDPIXU.mjs
|
|
3854
3877
|
var import_c12 = require("c12");
|
|
3855
3878
|
var import_defu = __toESM(require("defu"), 1);
|
|
3856
3879
|
var z = __toESM(require("zod/mini"), 1);
|
|
@@ -3935,6 +3958,10 @@ var fatalColorSchema = z.optional(colorSchema);
|
|
|
3935
3958
|
schemaRegistry.add(fatalColorSchema, {
|
|
3936
3959
|
description: "The fatal color of the workspace"
|
|
3937
3960
|
});
|
|
3961
|
+
var performanceColorSchema = z._default(colorSchema, "#00ff00");
|
|
3962
|
+
schemaRegistry.add(performanceColorSchema, {
|
|
3963
|
+
description: "The performance color of the workspace"
|
|
3964
|
+
});
|
|
3938
3965
|
var positiveColorSchema = z._default(colorSchema, "#4ade80");
|
|
3939
3966
|
schemaRegistry.add(positiveColorSchema, {
|
|
3940
3967
|
description: "The positive number color of the workspace"
|
|
@@ -3961,6 +3988,7 @@ var darkColorsSchema = z.object({
|
|
|
3961
3988
|
warning: warningColorSchema,
|
|
3962
3989
|
danger: dangerColorSchema,
|
|
3963
3990
|
fatal: fatalColorSchema,
|
|
3991
|
+
performance: performanceColorSchema,
|
|
3964
3992
|
positive: positiveColorSchema,
|
|
3965
3993
|
negative: negativeColorSchema,
|
|
3966
3994
|
gradient: gradientStopsSchema
|
|
@@ -3979,6 +4007,7 @@ var lightColorsSchema = z.object({
|
|
|
3979
4007
|
warning: warningColorSchema,
|
|
3980
4008
|
danger: dangerColorSchema,
|
|
3981
4009
|
fatal: fatalColorSchema,
|
|
4010
|
+
performance: performanceColorSchema,
|
|
3982
4011
|
positive: positiveColorSchema,
|
|
3983
4012
|
negative: negativeColorSchema,
|
|
3984
4013
|
gradient: gradientStopsSchema
|
|
@@ -4001,6 +4030,7 @@ var singleColorsSchema = z.object({
|
|
|
4001
4030
|
warning: warningColorSchema,
|
|
4002
4031
|
danger: dangerColorSchema,
|
|
4003
4032
|
fatal: fatalColorSchema,
|
|
4033
|
+
performance: performanceColorSchema,
|
|
4004
4034
|
positive: positiveColorSchema,
|
|
4005
4035
|
negative: negativeColorSchema,
|
|
4006
4036
|
gradient: gradientStopsSchema
|
|
@@ -4368,6 +4398,7 @@ var logLevelSchema = z._default(
|
|
|
4368
4398
|
"warn",
|
|
4369
4399
|
"success",
|
|
4370
4400
|
"info",
|
|
4401
|
+
"performance",
|
|
4371
4402
|
"debug",
|
|
4372
4403
|
"trace",
|
|
4373
4404
|
"all"
|
|
@@ -4436,13 +4467,13 @@ schemaRegistry.add(extensionsSchema, {
|
|
|
4436
4467
|
init_cjs_shims();
|
|
4437
4468
|
var import_create_task_graph = require("nx/src/tasks-runner/create-task-graph");
|
|
4438
4469
|
|
|
4439
|
-
// ../build-tools/dist/chunk-
|
|
4470
|
+
// ../build-tools/dist/chunk-337LPH6T.mjs
|
|
4440
4471
|
init_cjs_shims();
|
|
4441
4472
|
var import_copy_assets_handler = require("@nx/js/src/utils/assets/copy-assets-handler");
|
|
4442
4473
|
var import_glob = require("glob");
|
|
4443
4474
|
var import_promises3 = require("fs/promises");
|
|
4444
4475
|
|
|
4445
|
-
// ../build-tools/dist/chunk-
|
|
4476
|
+
// ../build-tools/dist/chunk-EXQPJWWX.mjs
|
|
4446
4477
|
init_cjs_shims();
|
|
4447
4478
|
var import_buildable_libs_utils = require("@nx/js/src/utils/buildable-libs-utils");
|
|
4448
4479
|
var import_glob2 = require("glob");
|
|
@@ -4450,7 +4481,7 @@ var import_node_fs5 = require("fs");
|
|
|
4450
4481
|
var import_promises4 = require("fs/promises");
|
|
4451
4482
|
var import_project_graph = require("nx/src/project-graph/project-graph");
|
|
4452
4483
|
|
|
4453
|
-
// ../build-tools/dist/chunk-
|
|
4484
|
+
// ../build-tools/dist/chunk-Z4D4DE4H.mjs
|
|
4454
4485
|
init_cjs_shims();
|
|
4455
4486
|
var import_glob3 = require("glob");
|
|
4456
4487
|
|
|
@@ -4484,14 +4515,14 @@ init_cjs_shims();
|
|
|
4484
4515
|
// ../build-tools/dist/chunk-UN3B7LBV.mjs
|
|
4485
4516
|
init_cjs_shims();
|
|
4486
4517
|
|
|
4487
|
-
// ../build-tools/dist/chunk-
|
|
4518
|
+
// ../build-tools/dist/chunk-ZNDFNV23.mjs
|
|
4488
4519
|
init_cjs_shims();
|
|
4489
4520
|
|
|
4490
4521
|
// ../build-tools/dist/chunk-7YKXR5JJ.mjs
|
|
4491
4522
|
init_cjs_shims();
|
|
4492
4523
|
var import_core = require("@swc/core");
|
|
4493
4524
|
|
|
4494
|
-
// ../build-tools/dist/chunk-
|
|
4525
|
+
// ../build-tools/dist/chunk-77OPD7VA.mjs
|
|
4495
4526
|
init_cjs_shims();
|
|
4496
4527
|
var import_node_fs6 = __toESM(require("fs"), 1);
|
|
4497
4528
|
var import_node_module = require("module");
|
|
@@ -4506,13 +4537,13 @@ var import_path = require("path");
|
|
|
4506
4537
|
// ../config-tools/dist/get-config.js
|
|
4507
4538
|
init_cjs_shims();
|
|
4508
4539
|
|
|
4509
|
-
// ../config-tools/dist/chunk-
|
|
4540
|
+
// ../config-tools/dist/chunk-SKRN3T4M.js
|
|
4510
4541
|
init_cjs_shims();
|
|
4511
4542
|
|
|
4512
|
-
// ../config-tools/dist/chunk-
|
|
4543
|
+
// ../config-tools/dist/chunk-JIQOUQGG.js
|
|
4513
4544
|
init_cjs_shims();
|
|
4514
4545
|
|
|
4515
|
-
// ../config-tools/dist/chunk-
|
|
4546
|
+
// ../config-tools/dist/chunk-HVUY6B36.js
|
|
4516
4547
|
init_cjs_shims();
|
|
4517
4548
|
|
|
4518
4549
|
// ../config-tools/dist/chunk-LF3SAK2O.js
|
|
@@ -4738,7 +4769,7 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
4738
4769
|
return result;
|
|
4739
4770
|
}
|
|
4740
4771
|
|
|
4741
|
-
// ../config-tools/dist/chunk-
|
|
4772
|
+
// ../config-tools/dist/chunk-HVUY6B36.js
|
|
4742
4773
|
var import_c122 = require("c12");
|
|
4743
4774
|
var import_defu3 = __toESM(require("defu"), 1);
|
|
4744
4775
|
var getConfigFileByName = async (fileName, filePath, options2 = {}) => {
|
|
@@ -4825,7 +4856,7 @@ init_cjs_shims();
|
|
|
4825
4856
|
// ../config/dist/chunk-5QIMO5EY.js
|
|
4826
4857
|
init_cjs_shims();
|
|
4827
4858
|
|
|
4828
|
-
// ../config/dist/chunk-
|
|
4859
|
+
// ../config/dist/chunk-WOVNFELF.js
|
|
4829
4860
|
init_cjs_shims();
|
|
4830
4861
|
|
|
4831
4862
|
// ../config/dist/chunk-TYDRIJER.js
|
|
@@ -4847,17 +4878,17 @@ If this sounds interesting, and you would like to help us in creating the next g
|
|
|
4847
4878
|
var S = "tools/errors/codes.json";
|
|
4848
4879
|
var A = "The workspace's banner image";
|
|
4849
4880
|
|
|
4850
|
-
// ../config/dist/chunk-
|
|
4881
|
+
// ../config/dist/chunk-WOVNFELF.js
|
|
4851
4882
|
var e2 = __toESM(require("zod/mini"), 1);
|
|
4852
4883
|
var o2 = e2.registry();
|
|
4853
4884
|
var t2 = e2.string().check(e2.length(7), e2.toLowerCase(), e2.regex(/^#([0-9a-f]{3}){1,2}$/i), e2.trim());
|
|
4854
4885
|
o2.add(t2, { description: "A base schema for describing the format of colors" });
|
|
4855
4886
|
var a2 = e2._default(t2, "#151718");
|
|
4856
4887
|
o2.add(a2, { description: "The dark background color of the workspace" });
|
|
4857
|
-
var
|
|
4858
|
-
o2.add(
|
|
4859
|
-
var
|
|
4860
|
-
o2.add(
|
|
4888
|
+
var c = e2._default(t2, "#cbd5e1");
|
|
4889
|
+
o2.add(c, { description: "The light background color of the workspace" });
|
|
4890
|
+
var i2 = e2._default(t2, "#1fb2a6");
|
|
4891
|
+
o2.add(i2, { description: "The primary brand specific color of the workspace" });
|
|
4861
4892
|
var s2 = e2.optional(t2);
|
|
4862
4893
|
o2.add(s2, { description: "The alternate brand specific color of the workspace" });
|
|
4863
4894
|
var n = e2.optional(t2);
|
|
@@ -4876,150 +4907,152 @@ var z2 = e2._default(t2, "#f3d371");
|
|
|
4876
4907
|
o2.add(z2, { description: "The warning color of the workspace" });
|
|
4877
4908
|
var g = e2._default(t2, "#d8314a");
|
|
4878
4909
|
o2.add(g, { description: "The danger color of the workspace" });
|
|
4879
|
-
var
|
|
4880
|
-
o2.add(
|
|
4881
|
-
var
|
|
4882
|
-
o2.add(
|
|
4883
|
-
var k = e2._default(t2, "#
|
|
4884
|
-
o2.add(k, { description: "The
|
|
4885
|
-
var w = e2.
|
|
4886
|
-
o2.add(w, { description: "The
|
|
4887
|
-
var
|
|
4888
|
-
|
|
4889
|
-
var
|
|
4890
|
-
var
|
|
4910
|
+
var f = e2.optional(t2);
|
|
4911
|
+
o2.add(f, { description: "The fatal color of the workspace" });
|
|
4912
|
+
var u = e2._default(t2, "#00ff00");
|
|
4913
|
+
o2.add(u, { description: "The performance color of the workspace" });
|
|
4914
|
+
var k = e2._default(t2, "#4ade80");
|
|
4915
|
+
o2.add(k, { description: "The positive number color of the workspace" });
|
|
4916
|
+
var w = e2._default(t2, "#ef4444");
|
|
4917
|
+
o2.add(w, { description: "The negative number color of the workspace" });
|
|
4918
|
+
var S2 = e2.optional(e2.array(t2));
|
|
4919
|
+
o2.add(S2, { description: "The color stops for the base gradient color pattern used in the workspace" });
|
|
4920
|
+
var Re = e2.object({ foreground: c, background: a2, brand: i2, alternate: s2, accent: n, link: d, help: p, success: h, info: l, debug: m, warning: z2, danger: g, fatal: f, performance: u, positive: k, negative: w, gradient: S2 });
|
|
4921
|
+
var Ue = e2.object({ foreground: a2, background: c, brand: i2, alternate: s2, accent: n, link: d, help: p, success: h, info: l, debug: m, warning: z2, danger: g, fatal: f, performance: u, positive: k, negative: w, gradient: S2 });
|
|
4922
|
+
var De = e2.object({ dark: Re, light: Ue });
|
|
4923
|
+
var Be = e2.object({ dark: a2, light: c, brand: i2, alternate: s2, accent: n, link: d, help: p, success: h, info: l, debug: m, warning: z2, danger: g, fatal: f, performance: u, positive: k, negative: w, gradient: S2 });
|
|
4891
4924
|
var r2 = e2.optional(e2.url());
|
|
4892
4925
|
o2.add(r2, { description: "A remote registry URL used to publish distributable packages" });
|
|
4893
|
-
var
|
|
4894
|
-
o2.add(
|
|
4895
|
-
var
|
|
4896
|
-
o2.add(
|
|
4897
|
-
var
|
|
4898
|
-
o2.add(
|
|
4899
|
-
var
|
|
4900
|
-
o2.add(
|
|
4901
|
-
var _ = e2.string().check(e2.trim());
|
|
4902
|
-
o2.add(_, { description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)" });
|
|
4926
|
+
var y = e2._default(e2.object({ github: r2, npm: r2, cargo: r2, cyclone: r2, container: r2 }), {});
|
|
4927
|
+
o2.add(y, { description: "A list of remote registry URLs used by Storm Software" });
|
|
4928
|
+
var b = e2.union([Be, De]);
|
|
4929
|
+
o2.add(b, { description: "Colors used for various workspace elements" });
|
|
4930
|
+
var C = e2.record(e2.union([e2.union([e2.literal("base"), e2.string()]), e2.string()]), b);
|
|
4931
|
+
o2.add(C, { description: "Storm theme config values used for styling various package elements" });
|
|
4932
|
+
var _ = e2.optional(e2.union([e2.string().check(e2.trim()), e2.array(e2.string().check(e2.trim()))]));
|
|
4933
|
+
o2.add(_, { 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." });
|
|
4903
4934
|
var L = e2.string().check(e2.trim());
|
|
4904
|
-
o2.add(L, { description: "The
|
|
4905
|
-
var j = e2.
|
|
4906
|
-
o2.add(j, { description: "The
|
|
4907
|
-
var A2 = e2.
|
|
4908
|
-
o2.add(A2, { description: "
|
|
4909
|
-
var R = e2.
|
|
4910
|
-
o2.add(R, { description: "
|
|
4911
|
-
var U = e2.
|
|
4912
|
-
o2.add(U, { description: "The workspace's banner image
|
|
4913
|
-
var D = e2.
|
|
4914
|
-
o2.add(D, { description: "
|
|
4935
|
+
o2.add(L, { description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)" });
|
|
4936
|
+
var j = e2.string().check(e2.trim());
|
|
4937
|
+
o2.add(j, { description: "The email of the workspace bot" });
|
|
4938
|
+
var A2 = e2.object({ name: L, email: j });
|
|
4939
|
+
o2.add(A2, { description: "The workspace's bot user's config used to automated various operations tasks" });
|
|
4940
|
+
var R = e2.optional(e2.string().check(e2.trim(), e2.url()));
|
|
4941
|
+
o2.add(R, { description: "A URL to a banner image used to display the workspace's release" });
|
|
4942
|
+
var U = e2._default(e2.string().check(e2.trim()), A);
|
|
4943
|
+
o2.add(U, { description: "The alt text for the workspace's release banner image" });
|
|
4944
|
+
var D = e2.object({ url: R, alt: U });
|
|
4945
|
+
o2.add(D, { description: "The workspace's banner image used during the release process" });
|
|
4915
4946
|
var B = e2.optional(e2.string().check(e2.trim()));
|
|
4916
|
-
o2.add(B, { description: "A
|
|
4917
|
-
var F = e2.
|
|
4918
|
-
o2.add(F, { description: "
|
|
4919
|
-
var N = e2.
|
|
4920
|
-
o2.add(N, { description: "
|
|
4947
|
+
o2.add(B, { description: "A header message appended to the start of the workspace's release notes" });
|
|
4948
|
+
var F = e2.optional(e2.string().check(e2.trim()));
|
|
4949
|
+
o2.add(F, { description: "A footer message appended to the end of the workspace's release notes" });
|
|
4950
|
+
var N = e2.object({ banner: e2.union([D, e2.string().check(e2.trim(), e2.url())]), header: B, footer: F });
|
|
4951
|
+
o2.add(N, { description: "The workspace's release config used during the release process" });
|
|
4921
4952
|
var E2 = e2.optional(e2.string().check(e2.trim()));
|
|
4922
|
-
o2.add(E2, { description: "A
|
|
4953
|
+
o2.add(E2, { description: "A Twitter/X account associated with the organization/project" });
|
|
4923
4954
|
var M = e2.optional(e2.string().check(e2.trim()));
|
|
4924
|
-
o2.add(M, { description: "A
|
|
4955
|
+
o2.add(M, { description: "A Discord account associated with the organization/project" });
|
|
4925
4956
|
var O = e2.optional(e2.string().check(e2.trim()));
|
|
4926
|
-
o2.add(O, { description: "A
|
|
4957
|
+
o2.add(O, { description: "A Telegram account associated with the organization/project" });
|
|
4927
4958
|
var I = e2.optional(e2.string().check(e2.trim()));
|
|
4928
|
-
o2.add(I, { description: "A
|
|
4959
|
+
o2.add(I, { description: "A Slack account associated with the organization/project" });
|
|
4929
4960
|
var G = e2.optional(e2.string().check(e2.trim()));
|
|
4930
|
-
o2.add(G, { description: "A
|
|
4931
|
-
var H = e2.
|
|
4932
|
-
o2.add(H, { description: "
|
|
4933
|
-
var J = e2.
|
|
4934
|
-
o2.add(J, { description: "The
|
|
4961
|
+
o2.add(G, { description: "A Medium account associated with the organization/project" });
|
|
4962
|
+
var H = e2.optional(e2.string().check(e2.trim()));
|
|
4963
|
+
o2.add(H, { description: "A GitHub account associated with the organization/project" });
|
|
4964
|
+
var J = e2.object({ twitter: E2, discord: M, telegram: O, slack: I, medium: G, github: H });
|
|
4965
|
+
o2.add(J, { description: "The workspace's account config used to store various social media links" });
|
|
4935
4966
|
var W = e2.optional(e2.string().check(e2.trim()));
|
|
4936
|
-
o2.add(W, { description: "The directory used to store the environment's data
|
|
4967
|
+
o2.add(W, { description: "The directory used to store the environment's cached file data" });
|
|
4937
4968
|
var P = e2.optional(e2.string().check(e2.trim()));
|
|
4938
|
-
o2.add(P, { description: "The directory used to store the environment's
|
|
4969
|
+
o2.add(P, { description: "The directory used to store the environment's data files" });
|
|
4939
4970
|
var $ = e2.optional(e2.string().check(e2.trim()));
|
|
4940
|
-
o2.add($, { description: "The directory used to store the environment's
|
|
4971
|
+
o2.add($, { description: "The directory used to store the environment's configuration files" });
|
|
4941
4972
|
var V = e2.optional(e2.string().check(e2.trim()));
|
|
4942
|
-
o2.add(V, { description: "The directory used to store the environment's
|
|
4943
|
-
var X = e2.
|
|
4944
|
-
o2.add(X, { description: "The directory used to store the
|
|
4945
|
-
var Y = e2.
|
|
4946
|
-
o2.add(Y, { description: "
|
|
4947
|
-
var q = e2.
|
|
4948
|
-
o2.add(q, { description: "
|
|
4949
|
-
var K = e2._default(e2.
|
|
4950
|
-
o2.add(K, { description: "The
|
|
4951
|
-
var Q = e2.
|
|
4952
|
-
o2.add(Q, { description: "
|
|
4953
|
-
var Z = e2.
|
|
4954
|
-
o2.add(Z, { description: "
|
|
4955
|
-
var ee = e2.
|
|
4956
|
-
o2.add(ee, { description: "The
|
|
4957
|
-
var oe = e2.optional(e2.string().check(e2.trim()));
|
|
4958
|
-
o2.add(oe, { description: "
|
|
4959
|
-
var te = e2.optional(e2.
|
|
4960
|
-
o2.add(te, { description: "A
|
|
4973
|
+
o2.add(V, { description: "The directory used to store the environment's temp files" });
|
|
4974
|
+
var X = e2.optional(e2.string().check(e2.trim()));
|
|
4975
|
+
o2.add(X, { description: "The directory used to store the environment's log files" });
|
|
4976
|
+
var Y = e2._default(e2.string().check(e2.trim()), "dist");
|
|
4977
|
+
o2.add(Y, { description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)" });
|
|
4978
|
+
var q = e2.object({ cache: W, data: P, config: $, temp: V, log: X, build: Y });
|
|
4979
|
+
o2.add(q, { description: "Various directories used by the workspace to store data, cache, and configuration files" });
|
|
4980
|
+
var K = e2._default(e2.enum(["minimal", "monorepo"]), "monorepo");
|
|
4981
|
+
o2.add(K, { description: "The variant of the workspace. This can be used to enable or disable certain features or configurations." });
|
|
4982
|
+
var Q = e2._default(e2.string().check(e2.trim()), S);
|
|
4983
|
+
o2.add(Q, { description: "The path to the workspace's error codes JSON file" });
|
|
4984
|
+
var Z = e2.optional(e2.url());
|
|
4985
|
+
o2.add(Z, { description: "A URL to a page that looks up the workspace's error messages given a specific error code" });
|
|
4986
|
+
var ee = e2.object({ codesFile: Q, url: Z });
|
|
4987
|
+
o2.add(ee, { description: "The workspace's error config used when creating error details during a system error" });
|
|
4988
|
+
var oe = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
|
|
4989
|
+
o2.add(oe, { description: "The name of the organization" });
|
|
4990
|
+
var te = e2.optional(e2.string().check(e2.trim()));
|
|
4991
|
+
o2.add(te, { description: "A description of the organization" });
|
|
4961
4992
|
var re = e2.optional(e2.url());
|
|
4962
|
-
o2.add(re, { description: "A URL to the organization's
|
|
4993
|
+
o2.add(re, { description: "A URL to the organization's logo image" });
|
|
4963
4994
|
var ae = e2.optional(e2.url());
|
|
4964
|
-
o2.add(ae, { description: "A URL to
|
|
4965
|
-
var
|
|
4995
|
+
o2.add(ae, { description: "A URL to the organization's icon image" });
|
|
4996
|
+
var ce = e2.optional(e2.url());
|
|
4997
|
+
o2.add(ce, { description: "A URL to a page that provides more information about the organization" });
|
|
4998
|
+
var ie = e2.object({ name: oe, description: te, logo: re, icon: ae, url: ce });
|
|
4966
4999
|
o2.add(ie, { description: "The workspace's organization details" });
|
|
4967
|
-
var
|
|
4968
|
-
o2.add(
|
|
4969
|
-
var se = e2.string().check(e2.trim(), e2.toLowerCase());
|
|
4970
|
-
o2.add(se, { description: "The name of the workspace/project/service/package/scope using this configuration" });
|
|
5000
|
+
var se = e2._default(e2.string().check(e2.trim(), e2.toLowerCase()), "https://public.storm-cdn.com/schemas/storm-workspace.schema.json");
|
|
5001
|
+
o2.add(se, { description: "The URL or file path to the JSON schema file that describes the Storm configuration file" });
|
|
4971
5002
|
var ne = e2.string().check(e2.trim(), e2.toLowerCase());
|
|
4972
|
-
o2.add(ne, { description: "The
|
|
4973
|
-
var de = e2.
|
|
4974
|
-
o2.add(de, { description: "The
|
|
4975
|
-
var pe = e2.string().check(e2.trim(), e2.toLowerCase());
|
|
4976
|
-
o2.add(pe, { description: "The
|
|
4977
|
-
var he = e2.
|
|
4978
|
-
o2.add(he, { description: "The
|
|
4979
|
-
var le = e2.
|
|
4980
|
-
o2.add(le, { description: "The
|
|
5003
|
+
o2.add(ne, { description: "The name of the workspace/project/service/package/scope using this configuration" });
|
|
5004
|
+
var de = e2.string().check(e2.trim(), e2.toLowerCase());
|
|
5005
|
+
o2.add(de, { description: "The namespace of the workspace/project/service/package/scope using this configuration" });
|
|
5006
|
+
var pe = e2.union([ie, e2.string().check(e2.trim(), e2.toLowerCase())]);
|
|
5007
|
+
o2.add(pe, { description: "The organization of the workspace. This can be a string or an object containing the organization's details" });
|
|
5008
|
+
var he = e2.string().check(e2.trim(), e2.toLowerCase());
|
|
5009
|
+
o2.add(he, { description: "The repo URL of the workspace (i.e. the GitHub repository URL)" });
|
|
5010
|
+
var le = e2._default(e2.string().check(e2.trim()), "Apache-2.0");
|
|
5011
|
+
o2.add(le, { description: "The license type of the package" });
|
|
4981
5012
|
var me = e2.optional(e2.url());
|
|
4982
|
-
o2.add(me, { description: "The
|
|
5013
|
+
o2.add(me, { description: "The homepage of the workspace" });
|
|
4983
5014
|
var ze = e2.optional(e2.url());
|
|
4984
|
-
o2.add(ze, { description: "The
|
|
5015
|
+
o2.add(ze, { description: "The documentation site for the workspace" });
|
|
4985
5016
|
var ge = e2.optional(e2.url());
|
|
4986
|
-
o2.add(ge, { description: "The
|
|
5017
|
+
o2.add(ge, { description: "The development portal site for the workspace" });
|
|
5018
|
+
var fe = e2.optional(e2.url());
|
|
5019
|
+
o2.add(fe, { description: "The licensing site for the workspace" });
|
|
4987
5020
|
var ue = e2.optional(e2.url());
|
|
4988
5021
|
o2.add(ue, { description: "The contact site for the workspace" });
|
|
4989
|
-
var
|
|
4990
|
-
o2.add(
|
|
4991
|
-
var
|
|
4992
|
-
o2.add(
|
|
4993
|
-
var we = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
|
|
4994
|
-
o2.add(we, { description: "A tag specifying the version pre-release identifier" });
|
|
5022
|
+
var ke = e2.optional(e2.url());
|
|
5023
|
+
o2.add(ke, { description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value" });
|
|
5024
|
+
var we = e2._default(e2.string().check(e2.trim(), e2.toLowerCase()), "main");
|
|
5025
|
+
o2.add(we, { description: "The branch of the workspace" });
|
|
4995
5026
|
var Se = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
|
|
4996
|
-
o2.add(Se, { description: "
|
|
4997
|
-
var be = e2.
|
|
4998
|
-
o2.add(be, { description: "The
|
|
4999
|
-
var xe = e2.
|
|
5000
|
-
o2.add(xe, { description: "The
|
|
5001
|
-
var Te = e2.
|
|
5002
|
-
o2.add(Te, { description: "
|
|
5003
|
-
var ve = e2._default(e2.
|
|
5004
|
-
o2.add(ve, { description: "
|
|
5005
|
-
var ye = e2._default(e2.
|
|
5006
|
-
o2.add(ye, { description: "The
|
|
5007
|
-
var Ce = e2._default(e2.string().check(e2.trim()), "
|
|
5008
|
-
o2.add(Ce, { description: "The default
|
|
5009
|
-
var _e = e2._default(e2.
|
|
5010
|
-
o2.add(_e, { description: "The
|
|
5011
|
-
var Le = e2._default(e2.
|
|
5012
|
-
o2.add(Le, { description: "
|
|
5013
|
-
var je = e2._default(e2.
|
|
5014
|
-
o2.add(je, { description: "
|
|
5015
|
-
var
|
|
5016
|
-
o2.add(
|
|
5017
|
-
var
|
|
5018
|
-
o2.add(
|
|
5027
|
+
o2.add(Se, { description: "A tag specifying the version pre-release identifier" });
|
|
5028
|
+
var be = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
|
|
5029
|
+
o2.add(be, { description: "The owner of the package" });
|
|
5030
|
+
var xe = e2._default(e2.enum(["development", "test", "production"]).check(e2.trim(), e2.toLowerCase()), "production");
|
|
5031
|
+
o2.add(xe, { description: "The current runtime environment mode for the package" });
|
|
5032
|
+
var Te = e2.string().check(e2.trim(), e2.toLowerCase());
|
|
5033
|
+
o2.add(Te, { description: "The root directory of the workspace" });
|
|
5034
|
+
var ve = e2._default(e2.boolean(), false);
|
|
5035
|
+
o2.add(ve, { description: "Should all known types of workspace caching be skipped?" });
|
|
5036
|
+
var ye = e2._default(e2.enum(["npm", "yarn", "pnpm", "bun"]), "npm");
|
|
5037
|
+
o2.add(ye, { description: "The JavaScript/TypeScript package manager used by the repository" });
|
|
5038
|
+
var Ce = e2._default(e2.string().check(e2.trim()), "America/New_York");
|
|
5039
|
+
o2.add(Ce, { description: "The default timezone of the workspace" });
|
|
5040
|
+
var _e = e2._default(e2.string().check(e2.trim()), "en-US");
|
|
5041
|
+
o2.add(_e, { description: "The default locale of the workspace" });
|
|
5042
|
+
var Le = e2._default(e2.enum(["silent", "fatal", "error", "warn", "success", "info", "performance", "debug", "trace", "all"]), "info");
|
|
5043
|
+
o2.add(Le, { 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`)." });
|
|
5044
|
+
var je = e2._default(e2.boolean(), true);
|
|
5045
|
+
o2.add(je, { description: "Should the logging of the current Storm Workspace configuration be skipped?" });
|
|
5046
|
+
var Ae = e2._default(e2.nullable(e2.string().check(e2.trim())), null);
|
|
5047
|
+
o2.add(Ae, { description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace." });
|
|
5048
|
+
var x = e2._default(e2.record(e2.string(), e2.any()), {});
|
|
5049
|
+
o2.add(x, { description: "Configuration of each used extension" });
|
|
5050
|
+
var Ne = e2.object({ $schema: se, extends: _, name: ne, variant: K, namespace: de, organization: pe, repository: he, license: le, homepage: me, docs: ze, portal: ge, licensing: fe, contact: ue, support: ke, branch: we, preid: Se, owner: be, bot: A2, release: N, socials: J, error: ee, mode: xe, workspaceRoot: Te, skipCache: ve, directories: q, packageManager: ye, timezone: Ce, locale: _e, logLevel: Le, skipConfigLogging: je, registry: y, configFile: Ae, colors: e2.union([b, C]), extensions: x });
|
|
5051
|
+
o2.add(x, { 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." });
|
|
5019
5052
|
|
|
5020
|
-
// ../config/dist/chunk-
|
|
5053
|
+
// ../config/dist/chunk-YKRE3MWC.js
|
|
5021
5054
|
init_cjs_shims();
|
|
5022
|
-
var e3 = ["dark", "light", "base", "brand", "alternate", "accent", "link", "success", "help", "info", "warning", "danger", "fatal", "positive", "negative"];
|
|
5055
|
+
var e3 = ["dark", "light", "base", "brand", "alternate", "accent", "link", "success", "help", "info", "warning", "danger", "fatal", "performance", "positive", "negative"];
|
|
5023
5056
|
|
|
5024
5057
|
// ../config-tools/dist/chunk-RGET2UQV.js
|
|
5025
5058
|
var import_node_fs8 = require("fs");
|
|
@@ -5108,7 +5141,7 @@ function applyDefaultConfig(config) {
|
|
|
5108
5141
|
return config;
|
|
5109
5142
|
}
|
|
5110
5143
|
|
|
5111
|
-
// ../config-tools/dist/chunk-
|
|
5144
|
+
// ../config-tools/dist/chunk-SDSQ2HHF.js
|
|
5112
5145
|
init_cjs_shims();
|
|
5113
5146
|
var setExtensionEnv = (extensionName, extension) => {
|
|
5114
5147
|
for (const key of Object.keys(extension ?? {})) {
|
|
@@ -5116,7 +5149,7 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
5116
5149
|
const result = key?.replace(
|
|
5117
5150
|
/([A-Z])+/g,
|
|
5118
5151
|
(input) => input ? input[0]?.toUpperCase() + input.slice(1) : ""
|
|
5119
|
-
).split(/(?=[A-Z])|[.\-\s_]/).map((
|
|
5152
|
+
).split(/(?=[A-Z])|[.\-\s_]/).map((x2) => x2.toLowerCase()) ?? [];
|
|
5120
5153
|
let extensionKey;
|
|
5121
5154
|
if (result.length === 0) {
|
|
5122
5155
|
return;
|
|
@@ -5413,6 +5446,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
|
|
|
5413
5446
|
if (config.fatal) {
|
|
5414
5447
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
5415
5448
|
}
|
|
5449
|
+
if (config.performance) {
|
|
5450
|
+
process.env[`${prefix}PERFORMANCE`] = config.performance;
|
|
5451
|
+
}
|
|
5416
5452
|
if (config.positive) {
|
|
5417
5453
|
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
5418
5454
|
}
|
|
@@ -5471,6 +5507,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
5471
5507
|
if (config.fatal) {
|
|
5472
5508
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
5473
5509
|
}
|
|
5510
|
+
if (config.performance) {
|
|
5511
|
+
process.env[`${prefix}PERFORMANCE`] = config.performance;
|
|
5512
|
+
}
|
|
5474
5513
|
if (config.positive) {
|
|
5475
5514
|
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
5476
5515
|
}
|
|
@@ -5484,7 +5523,7 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
5484
5523
|
}
|
|
5485
5524
|
};
|
|
5486
5525
|
|
|
5487
|
-
// ../config-tools/dist/chunk-
|
|
5526
|
+
// ../config-tools/dist/chunk-A5JXMY6X.js
|
|
5488
5527
|
init_cjs_shims();
|
|
5489
5528
|
var getExtensionEnv = (extensionName) => {
|
|
5490
5529
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
@@ -5654,6 +5693,7 @@ var getSingleThemeColorsEnv = (prefix) => {
|
|
|
5654
5693
|
warning: process.env[`${prefix}WARNING`],
|
|
5655
5694
|
danger: process.env[`${prefix}DANGER`],
|
|
5656
5695
|
fatal: process.env[`${prefix}FATAL`],
|
|
5696
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
5657
5697
|
positive: process.env[`${prefix}POSITIVE`],
|
|
5658
5698
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
5659
5699
|
gradient
|
|
@@ -5693,6 +5733,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
5693
5733
|
warning: process.env[`${prefix}WARNING`],
|
|
5694
5734
|
danger: process.env[`${prefix}DANGER`],
|
|
5695
5735
|
fatal: process.env[`${prefix}FATAL`],
|
|
5736
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
5696
5737
|
positive: process.env[`${prefix}POSITIVE`],
|
|
5697
5738
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
5698
5739
|
gradient
|
|
@@ -5702,7 +5743,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
5702
5743
|
// ../config/dist/schema.js
|
|
5703
5744
|
init_cjs_shims();
|
|
5704
5745
|
|
|
5705
|
-
// ../config-tools/dist/chunk-
|
|
5746
|
+
// ../config-tools/dist/chunk-JIQOUQGG.js
|
|
5706
5747
|
var import_defu4 = __toESM(require("defu"), 1);
|
|
5707
5748
|
var import_node_fs9 = require("fs");
|
|
5708
5749
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
@@ -5738,7 +5779,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
5738
5779
|
}
|
|
5739
5780
|
try {
|
|
5740
5781
|
result = applyDefaultConfig(
|
|
5741
|
-
await
|
|
5782
|
+
await Ne.parseAsync(configInput)
|
|
5742
5783
|
);
|
|
5743
5784
|
result.workspaceRoot ??= _workspaceRoot;
|
|
5744
5785
|
} catch (error) {
|
|
@@ -5799,7 +5840,7 @@ ${formatLogMessage(config)}`,
|
|
|
5799
5840
|
return config;
|
|
5800
5841
|
};
|
|
5801
5842
|
|
|
5802
|
-
// ../config-tools/dist/chunk-
|
|
5843
|
+
// ../config-tools/dist/chunk-SKRN3T4M.js
|
|
5803
5844
|
function getConfig(workspaceRoot, skipLogs = false) {
|
|
5804
5845
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
5805
5846
|
}
|