@storm-software/workspace-tools 1.74.0 → 1.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -12
- package/README.md +2 -2
- package/index.js +98 -87
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +53 -56
- package/src/executors/rolldown/executor.js +53 -56
- package/src/executors/tsup/executor.js +53 -56
- package/src/executors/tsup-browser/executor.js +53 -56
- package/src/executors/tsup-neutral/executor.js +53 -56
- package/src/executors/tsup-node/executor.js +53 -56
- package/src/executors/typia/executor.js +53 -56
- package/src/executors/unbuild/executor.js +53 -56
- package/src/generators/browser-library/generator.js +53 -56
- package/src/generators/config-schema/generator.js +84 -73
- package/src/generators/config-schema/schema.json +1 -1
- package/src/generators/neutral-library/generator.js +53 -56
- package/src/generators/node-library/generator.js +53 -56
- package/src/generators/preset/files/.markdownlint-cli2.cjs +10 -0
- package/src/generators/preset/generator.js +54 -57
- package/src/generators/release-version/generator.js +53 -56
- package/src/utils/index.js +53 -56
- package/src/generators/preset/files/.markdownlint.json +0 -28
|
@@ -70745,15 +70745,14 @@ var init_lib = __esm({
|
|
|
70745
70745
|
});
|
|
70746
70746
|
|
|
70747
70747
|
// packages/config/src/schema.ts
|
|
70748
|
-
var DarkColorSchema, LightColorSchema,
|
|
70748
|
+
var DarkColorSchema, LightColorSchema, BrandColorSchema, AccentColorSchema, SuccessColorSchema, InfoColorSchema, WarningColorSchema, ErrorColorSchema, FatalColorSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema;
|
|
70749
70749
|
var init_schema = __esm({
|
|
70750
70750
|
"packages/config/src/schema.ts"() {
|
|
70751
70751
|
init_lib();
|
|
70752
70752
|
DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace");
|
|
70753
70753
|
LightColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
70754
|
-
|
|
70755
|
-
|
|
70756
|
-
Brand3ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The third brand specific color of the workspace");
|
|
70754
|
+
BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
|
|
70755
|
+
AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
70757
70756
|
SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
|
|
70758
70757
|
InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace");
|
|
70759
70758
|
WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
@@ -70762,9 +70761,8 @@ var init_schema = __esm({
|
|
|
70762
70761
|
DarkThemeColorConfigSchema = z2.object({
|
|
70763
70762
|
foreground: LightColorSchema,
|
|
70764
70763
|
background: DarkColorSchema,
|
|
70765
|
-
|
|
70766
|
-
|
|
70767
|
-
brand3: Brand3ColorSchema,
|
|
70764
|
+
brand: BrandColorSchema,
|
|
70765
|
+
accent: AccentColorSchema,
|
|
70768
70766
|
success: SuccessColorSchema,
|
|
70769
70767
|
info: InfoColorSchema,
|
|
70770
70768
|
warning: WarningColorSchema,
|
|
@@ -70774,9 +70772,8 @@ var init_schema = __esm({
|
|
|
70774
70772
|
LightThemeColorConfigSchema = z2.object({
|
|
70775
70773
|
foreground: DarkColorSchema,
|
|
70776
70774
|
background: LightColorSchema,
|
|
70777
|
-
|
|
70778
|
-
|
|
70779
|
-
brand3: Brand3ColorSchema,
|
|
70775
|
+
brand: BrandColorSchema,
|
|
70776
|
+
accent: AccentColorSchema,
|
|
70780
70777
|
success: SuccessColorSchema,
|
|
70781
70778
|
info: InfoColorSchema,
|
|
70782
70779
|
warning: WarningColorSchema,
|
|
@@ -70790,9 +70787,8 @@ var init_schema = __esm({
|
|
|
70790
70787
|
SingleThemeColorConfigSchema = z2.object({
|
|
70791
70788
|
dark: DarkColorSchema,
|
|
70792
70789
|
light: LightColorSchema,
|
|
70793
|
-
|
|
70794
|
-
|
|
70795
|
-
brand3: Brand3ColorSchema,
|
|
70790
|
+
brand: BrandColorSchema,
|
|
70791
|
+
accent: AccentColorSchema,
|
|
70796
70792
|
success: SuccessColorSchema,
|
|
70797
70793
|
info: InfoColorSchema,
|
|
70798
70794
|
warning: WarningColorSchema,
|
|
@@ -70838,7 +70834,7 @@ var init_schema = __esm({
|
|
|
70838
70834
|
runtimeVersion: z2.string().trim().regex(
|
|
70839
70835
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
70840
70836
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
70841
|
-
packageManager: z2.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
70837
|
+
packageManager: z2.enum(["npm", "yarn", "pnpm", "bun"]).default("pnpm").describe("The package manager used by the repository"),
|
|
70842
70838
|
timezone: z2.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
70843
70839
|
locale: z2.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
70844
70840
|
logLevel: z2.enum([
|
|
@@ -70873,9 +70869,8 @@ var init_types = __esm({
|
|
|
70873
70869
|
COLOR_KEYS = [
|
|
70874
70870
|
"dark",
|
|
70875
70871
|
"light",
|
|
70876
|
-
"
|
|
70877
|
-
"
|
|
70878
|
-
"brand3",
|
|
70872
|
+
"brand",
|
|
70873
|
+
"accent",
|
|
70879
70874
|
"success",
|
|
70880
70875
|
"info",
|
|
70881
70876
|
"warning",
|
|
@@ -70909,16 +70904,26 @@ var init_get_default_config = __esm({
|
|
|
70909
70904
|
init_src();
|
|
70910
70905
|
init_find_workspace_root();
|
|
70911
70906
|
DEFAULT_COLOR_CONFIG = {
|
|
70912
|
-
|
|
70913
|
-
|
|
70914
|
-
|
|
70915
|
-
|
|
70916
|
-
|
|
70917
|
-
|
|
70918
|
-
|
|
70919
|
-
|
|
70920
|
-
|
|
70921
|
-
|
|
70907
|
+
light: {
|
|
70908
|
+
background: "#f4f4f5",
|
|
70909
|
+
foreground: "#1d232a",
|
|
70910
|
+
brand: "#1fb2a6",
|
|
70911
|
+
accent: "#8250df",
|
|
70912
|
+
success: "#087f5b",
|
|
70913
|
+
info: "#0550ae",
|
|
70914
|
+
warning: "#e3b341",
|
|
70915
|
+
error: "#a40e26"
|
|
70916
|
+
},
|
|
70917
|
+
dark: {
|
|
70918
|
+
background: "#22272E",
|
|
70919
|
+
foreground: "#fcfcf5",
|
|
70920
|
+
brand: "#1fb2a6",
|
|
70921
|
+
accent: "#8256D0",
|
|
70922
|
+
success: "#087f5b",
|
|
70923
|
+
info: "#316DCA",
|
|
70924
|
+
warning: "#F3D371",
|
|
70925
|
+
error: "#d1242f"
|
|
70926
|
+
}
|
|
70922
70927
|
};
|
|
70923
70928
|
DEFAULT_STORM_CONFIG = {
|
|
70924
70929
|
name: "storm",
|
|
@@ -72678,7 +72683,7 @@ var init_logger = __esm({
|
|
|
72678
72683
|
return (message) => {
|
|
72679
72684
|
console.error(
|
|
72680
72685
|
`
|
|
72681
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#
|
|
72686
|
+
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
72682
72687
|
" \u{1F480} Fatal "
|
|
72683
72688
|
)} ${_chalk.hex(colors.error ?? "#f85149")(formatLogMessage(message))}
|
|
72684
72689
|
`
|
|
@@ -72733,9 +72738,9 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
72733
72738
|
return (message) => {
|
|
72734
72739
|
console.debug(
|
|
72735
72740
|
`
|
|
72736
|
-
${_chalk.bold.hex(colors.
|
|
72741
|
+
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
72737
72742
|
" \u{1F6E0} Debug "
|
|
72738
|
-
)} ${_chalk.hex(colors.
|
|
72743
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
72739
72744
|
`
|
|
72740
72745
|
);
|
|
72741
72746
|
};
|
|
@@ -72743,9 +72748,9 @@ ${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.b
|
|
|
72743
72748
|
return (message) => {
|
|
72744
72749
|
console.log(
|
|
72745
72750
|
`
|
|
72746
|
-
${_chalk.bold.hex(colors.
|
|
72751
|
+
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
72747
72752
|
" \u2709 System "
|
|
72748
|
-
)} ${_chalk.hex(colors.
|
|
72753
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
72749
72754
|
`
|
|
72750
72755
|
);
|
|
72751
72756
|
};
|
|
@@ -72773,7 +72778,7 @@ ${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.b
|
|
|
72773
72778
|
};
|
|
72774
72779
|
};
|
|
72775
72780
|
formatLogMessage = (message, prefix = "-") => {
|
|
72776
|
-
return typeof message === "string" ? message : typeof message === "object" ? `
|
|
72781
|
+
return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : typeof message === "object" ? `
|
|
72777
72782
|
${Object.keys(message).map(
|
|
72778
72783
|
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], `${prefix}-`) : message[key]}`
|
|
72779
72784
|
).join("\n")}` : message;
|
|
@@ -73028,7 +73033,7 @@ var init_get_config_file = __esm({
|
|
|
73028
73033
|
}
|
|
73029
73034
|
);
|
|
73030
73035
|
writeTrace(result.config, { logLevel: "all" });
|
|
73031
|
-
config = (0, import_deepmerge.default)(config ?? {},
|
|
73036
|
+
config = (0, import_deepmerge.default)(result.config ?? {}, config ?? {});
|
|
73032
73037
|
}
|
|
73033
73038
|
}
|
|
73034
73039
|
}
|
|
@@ -73130,15 +73135,14 @@ var init_get_env = __esm({
|
|
|
73130
73135
|
};
|
|
73131
73136
|
getThemeColorConfigEnv = (prefix, theme) => {
|
|
73132
73137
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
73133
|
-
return process.env[`${prefix}${themeName}
|
|
73138
|
+
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
|
|
73134
73139
|
};
|
|
73135
73140
|
getSingleThemeColorConfigEnv = (prefix) => {
|
|
73136
73141
|
return {
|
|
73137
73142
|
dark: process.env[`${prefix}DARK`],
|
|
73138
73143
|
light: process.env[`${prefix}LIGHT`],
|
|
73139
|
-
|
|
73140
|
-
|
|
73141
|
-
brand3: process.env[`${prefix}BRAND3`],
|
|
73144
|
+
brand: process.env[`${prefix}BRAND`],
|
|
73145
|
+
accent: process.env[`${prefix}ACCENT`],
|
|
73142
73146
|
success: process.env[`${prefix}SUCCESS`],
|
|
73143
73147
|
info: process.env[`${prefix}INFO`],
|
|
73144
73148
|
warning: process.env[`${prefix}WARNING`],
|
|
@@ -73158,9 +73162,8 @@ var init_get_env = __esm({
|
|
|
73158
73162
|
return {
|
|
73159
73163
|
foreground: process.env[`${prefix}FOREGROUND`],
|
|
73160
73164
|
background: process.env[`${prefix}BACKGROUND`],
|
|
73161
|
-
|
|
73162
|
-
|
|
73163
|
-
brand3: process.env[`${prefix}BRAND3`],
|
|
73165
|
+
brand: process.env[`${prefix}BRAND`],
|
|
73166
|
+
accent: process.env[`${prefix}ACCENT`],
|
|
73164
73167
|
success: process.env[`${prefix}SUCCESS`],
|
|
73165
73168
|
info: process.env[`${prefix}INFO`],
|
|
73166
73169
|
warning: process.env[`${prefix}WARNING`],
|
|
@@ -73326,7 +73329,7 @@ var init_set_env = __esm({
|
|
|
73326
73329
|
}
|
|
73327
73330
|
};
|
|
73328
73331
|
setThemeColorConfigEnv = (prefix, config) => {
|
|
73329
|
-
return config?.light?.
|
|
73332
|
+
return config?.light?.brand || config?.dark?.brand ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
73330
73333
|
};
|
|
73331
73334
|
setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
73332
73335
|
if (config.dark) {
|
|
@@ -73335,14 +73338,11 @@ var init_set_env = __esm({
|
|
|
73335
73338
|
if (config.light) {
|
|
73336
73339
|
process.env[`${prefix}LIGHT`] = config.light;
|
|
73337
73340
|
}
|
|
73338
|
-
if (config.
|
|
73339
|
-
process.env[`${prefix}
|
|
73341
|
+
if (config.brand) {
|
|
73342
|
+
process.env[`${prefix}BRAND`] = config.brand;
|
|
73340
73343
|
}
|
|
73341
|
-
if (config.
|
|
73342
|
-
process.env[`${prefix}
|
|
73343
|
-
}
|
|
73344
|
-
if (config.brand3) {
|
|
73345
|
-
process.env[`${prefix}BRAND3`] = config.brand3;
|
|
73344
|
+
if (config.accent) {
|
|
73345
|
+
process.env[`${prefix}ACCENT`] = config.accent;
|
|
73346
73346
|
}
|
|
73347
73347
|
if (config.success) {
|
|
73348
73348
|
process.env[`${prefix}SUCCESS`] = config.success;
|
|
@@ -73373,14 +73373,11 @@ var init_set_env = __esm({
|
|
|
73373
73373
|
if (config.background) {
|
|
73374
73374
|
process.env[`${prefix}BACKGROUND`] = config.background;
|
|
73375
73375
|
}
|
|
73376
|
-
if (config.
|
|
73377
|
-
process.env[`${prefix}
|
|
73378
|
-
}
|
|
73379
|
-
if (config.brand2) {
|
|
73380
|
-
process.env[`${prefix}BRAND2`] = config.brand2;
|
|
73376
|
+
if (config.brand) {
|
|
73377
|
+
process.env[`${prefix}BRAND`] = config.brand;
|
|
73381
73378
|
}
|
|
73382
|
-
if (config.
|
|
73383
|
-
process.env[`${prefix}
|
|
73379
|
+
if (config.accent) {
|
|
73380
|
+
process.env[`${prefix}ACCENT`] = config.accent;
|
|
73384
73381
|
}
|
|
73385
73382
|
if (config.success) {
|
|
73386
73383
|
process.env[`${prefix}SUCCESS`] = config.success;
|
|
@@ -73709,7 +73706,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
73709
73706
|
url: "https://stormsoftware.com/support",
|
|
73710
73707
|
email: "support@stormsoftware.com"
|
|
73711
73708
|
};
|
|
73712
|
-
json.license = "Apache
|
|
73709
|
+
json.license = "Apache-2.0";
|
|
73713
73710
|
json.author ??= {
|
|
73714
73711
|
name: "Storm Software",
|
|
73715
73712
|
email: "contact@stormsoftware.com",
|
|
@@ -72905,15 +72905,14 @@ var init_lib = __esm({
|
|
|
72905
72905
|
});
|
|
72906
72906
|
|
|
72907
72907
|
// packages/config/src/schema.ts
|
|
72908
|
-
var DarkColorSchema, LightColorSchema,
|
|
72908
|
+
var DarkColorSchema, LightColorSchema, BrandColorSchema, AccentColorSchema, SuccessColorSchema, InfoColorSchema, WarningColorSchema, ErrorColorSchema, FatalColorSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema;
|
|
72909
72909
|
var init_schema = __esm({
|
|
72910
72910
|
"packages/config/src/schema.ts"() {
|
|
72911
72911
|
init_lib();
|
|
72912
72912
|
DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace");
|
|
72913
72913
|
LightColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
72914
|
-
|
|
72915
|
-
|
|
72916
|
-
Brand3ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The third brand specific color of the workspace");
|
|
72914
|
+
BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
|
|
72915
|
+
AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
72917
72916
|
SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
|
|
72918
72917
|
InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace");
|
|
72919
72918
|
WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
@@ -72922,9 +72921,8 @@ var init_schema = __esm({
|
|
|
72922
72921
|
DarkThemeColorConfigSchema = z2.object({
|
|
72923
72922
|
foreground: LightColorSchema,
|
|
72924
72923
|
background: DarkColorSchema,
|
|
72925
|
-
|
|
72926
|
-
|
|
72927
|
-
brand3: Brand3ColorSchema,
|
|
72924
|
+
brand: BrandColorSchema,
|
|
72925
|
+
accent: AccentColorSchema,
|
|
72928
72926
|
success: SuccessColorSchema,
|
|
72929
72927
|
info: InfoColorSchema,
|
|
72930
72928
|
warning: WarningColorSchema,
|
|
@@ -72934,9 +72932,8 @@ var init_schema = __esm({
|
|
|
72934
72932
|
LightThemeColorConfigSchema = z2.object({
|
|
72935
72933
|
foreground: DarkColorSchema,
|
|
72936
72934
|
background: LightColorSchema,
|
|
72937
|
-
|
|
72938
|
-
|
|
72939
|
-
brand3: Brand3ColorSchema,
|
|
72935
|
+
brand: BrandColorSchema,
|
|
72936
|
+
accent: AccentColorSchema,
|
|
72940
72937
|
success: SuccessColorSchema,
|
|
72941
72938
|
info: InfoColorSchema,
|
|
72942
72939
|
warning: WarningColorSchema,
|
|
@@ -72950,9 +72947,8 @@ var init_schema = __esm({
|
|
|
72950
72947
|
SingleThemeColorConfigSchema = z2.object({
|
|
72951
72948
|
dark: DarkColorSchema,
|
|
72952
72949
|
light: LightColorSchema,
|
|
72953
|
-
|
|
72954
|
-
|
|
72955
|
-
brand3: Brand3ColorSchema,
|
|
72950
|
+
brand: BrandColorSchema,
|
|
72951
|
+
accent: AccentColorSchema,
|
|
72956
72952
|
success: SuccessColorSchema,
|
|
72957
72953
|
info: InfoColorSchema,
|
|
72958
72954
|
warning: WarningColorSchema,
|
|
@@ -72998,7 +72994,7 @@ var init_schema = __esm({
|
|
|
72998
72994
|
runtimeVersion: z2.string().trim().regex(
|
|
72999
72995
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
73000
72996
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
73001
|
-
packageManager: z2.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
72997
|
+
packageManager: z2.enum(["npm", "yarn", "pnpm", "bun"]).default("pnpm").describe("The package manager used by the repository"),
|
|
73002
72998
|
timezone: z2.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
73003
72999
|
locale: z2.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
73004
73000
|
logLevel: z2.enum([
|
|
@@ -73033,9 +73029,8 @@ var init_types = __esm({
|
|
|
73033
73029
|
COLOR_KEYS = [
|
|
73034
73030
|
"dark",
|
|
73035
73031
|
"light",
|
|
73036
|
-
"
|
|
73037
|
-
"
|
|
73038
|
-
"brand3",
|
|
73032
|
+
"brand",
|
|
73033
|
+
"accent",
|
|
73039
73034
|
"success",
|
|
73040
73035
|
"info",
|
|
73041
73036
|
"warning",
|
|
@@ -73069,16 +73064,26 @@ var init_get_default_config = __esm({
|
|
|
73069
73064
|
init_src();
|
|
73070
73065
|
init_find_workspace_root();
|
|
73071
73066
|
DEFAULT_COLOR_CONFIG = {
|
|
73072
|
-
|
|
73073
|
-
|
|
73074
|
-
|
|
73075
|
-
|
|
73076
|
-
|
|
73077
|
-
|
|
73078
|
-
|
|
73079
|
-
|
|
73080
|
-
|
|
73081
|
-
|
|
73067
|
+
light: {
|
|
73068
|
+
background: "#f4f4f5",
|
|
73069
|
+
foreground: "#1d232a",
|
|
73070
|
+
brand: "#1fb2a6",
|
|
73071
|
+
accent: "#8250df",
|
|
73072
|
+
success: "#087f5b",
|
|
73073
|
+
info: "#0550ae",
|
|
73074
|
+
warning: "#e3b341",
|
|
73075
|
+
error: "#a40e26"
|
|
73076
|
+
},
|
|
73077
|
+
dark: {
|
|
73078
|
+
background: "#22272E",
|
|
73079
|
+
foreground: "#fcfcf5",
|
|
73080
|
+
brand: "#1fb2a6",
|
|
73081
|
+
accent: "#8256D0",
|
|
73082
|
+
success: "#087f5b",
|
|
73083
|
+
info: "#316DCA",
|
|
73084
|
+
warning: "#F3D371",
|
|
73085
|
+
error: "#d1242f"
|
|
73086
|
+
}
|
|
73082
73087
|
};
|
|
73083
73088
|
DEFAULT_STORM_CONFIG = {
|
|
73084
73089
|
name: "storm",
|
|
@@ -74838,7 +74843,7 @@ var init_logger = __esm({
|
|
|
74838
74843
|
return (message) => {
|
|
74839
74844
|
console.error(
|
|
74840
74845
|
`
|
|
74841
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#
|
|
74846
|
+
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
74842
74847
|
" \u{1F480} Fatal "
|
|
74843
74848
|
)} ${_chalk.hex(colors.error ?? "#f85149")(formatLogMessage(message))}
|
|
74844
74849
|
`
|
|
@@ -74893,9 +74898,9 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
74893
74898
|
return (message) => {
|
|
74894
74899
|
console.debug(
|
|
74895
74900
|
`
|
|
74896
|
-
${_chalk.bold.hex(colors.
|
|
74901
|
+
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
74897
74902
|
" \u{1F6E0} Debug "
|
|
74898
|
-
)} ${_chalk.hex(colors.
|
|
74903
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
74899
74904
|
`
|
|
74900
74905
|
);
|
|
74901
74906
|
};
|
|
@@ -74903,9 +74908,9 @@ ${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.b
|
|
|
74903
74908
|
return (message) => {
|
|
74904
74909
|
console.log(
|
|
74905
74910
|
`
|
|
74906
|
-
${_chalk.bold.hex(colors.
|
|
74911
|
+
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
74907
74912
|
" \u2709 System "
|
|
74908
|
-
)} ${_chalk.hex(colors.
|
|
74913
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
74909
74914
|
`
|
|
74910
74915
|
);
|
|
74911
74916
|
};
|
|
@@ -74933,7 +74938,7 @@ ${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.b
|
|
|
74933
74938
|
};
|
|
74934
74939
|
};
|
|
74935
74940
|
formatLogMessage = (message, prefix = "-") => {
|
|
74936
|
-
return typeof message === "string" ? message : typeof message === "object" ? `
|
|
74941
|
+
return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : typeof message === "object" ? `
|
|
74937
74942
|
${Object.keys(message).map(
|
|
74938
74943
|
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], `${prefix}-`) : message[key]}`
|
|
74939
74944
|
).join("\n")}` : message;
|
|
@@ -75188,7 +75193,7 @@ var init_get_config_file = __esm({
|
|
|
75188
75193
|
}
|
|
75189
75194
|
);
|
|
75190
75195
|
writeTrace(result.config, { logLevel: "all" });
|
|
75191
|
-
config = (0, import_deepmerge.default)(config ?? {},
|
|
75196
|
+
config = (0, import_deepmerge.default)(result.config ?? {}, config ?? {});
|
|
75192
75197
|
}
|
|
75193
75198
|
}
|
|
75194
75199
|
}
|
|
@@ -75290,15 +75295,14 @@ var init_get_env = __esm({
|
|
|
75290
75295
|
};
|
|
75291
75296
|
getThemeColorConfigEnv = (prefix, theme) => {
|
|
75292
75297
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
75293
|
-
return process.env[`${prefix}${themeName}
|
|
75298
|
+
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
|
|
75294
75299
|
};
|
|
75295
75300
|
getSingleThemeColorConfigEnv = (prefix) => {
|
|
75296
75301
|
return {
|
|
75297
75302
|
dark: process.env[`${prefix}DARK`],
|
|
75298
75303
|
light: process.env[`${prefix}LIGHT`],
|
|
75299
|
-
|
|
75300
|
-
|
|
75301
|
-
brand3: process.env[`${prefix}BRAND3`],
|
|
75304
|
+
brand: process.env[`${prefix}BRAND`],
|
|
75305
|
+
accent: process.env[`${prefix}ACCENT`],
|
|
75302
75306
|
success: process.env[`${prefix}SUCCESS`],
|
|
75303
75307
|
info: process.env[`${prefix}INFO`],
|
|
75304
75308
|
warning: process.env[`${prefix}WARNING`],
|
|
@@ -75318,9 +75322,8 @@ var init_get_env = __esm({
|
|
|
75318
75322
|
return {
|
|
75319
75323
|
foreground: process.env[`${prefix}FOREGROUND`],
|
|
75320
75324
|
background: process.env[`${prefix}BACKGROUND`],
|
|
75321
|
-
|
|
75322
|
-
|
|
75323
|
-
brand3: process.env[`${prefix}BRAND3`],
|
|
75325
|
+
brand: process.env[`${prefix}BRAND`],
|
|
75326
|
+
accent: process.env[`${prefix}ACCENT`],
|
|
75324
75327
|
success: process.env[`${prefix}SUCCESS`],
|
|
75325
75328
|
info: process.env[`${prefix}INFO`],
|
|
75326
75329
|
warning: process.env[`${prefix}WARNING`],
|
|
@@ -75486,7 +75489,7 @@ var init_set_env = __esm({
|
|
|
75486
75489
|
}
|
|
75487
75490
|
};
|
|
75488
75491
|
setThemeColorConfigEnv = (prefix, config) => {
|
|
75489
|
-
return config?.light?.
|
|
75492
|
+
return config?.light?.brand || config?.dark?.brand ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
75490
75493
|
};
|
|
75491
75494
|
setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
75492
75495
|
if (config.dark) {
|
|
@@ -75495,14 +75498,11 @@ var init_set_env = __esm({
|
|
|
75495
75498
|
if (config.light) {
|
|
75496
75499
|
process.env[`${prefix}LIGHT`] = config.light;
|
|
75497
75500
|
}
|
|
75498
|
-
if (config.
|
|
75499
|
-
process.env[`${prefix}
|
|
75501
|
+
if (config.brand) {
|
|
75502
|
+
process.env[`${prefix}BRAND`] = config.brand;
|
|
75500
75503
|
}
|
|
75501
|
-
if (config.
|
|
75502
|
-
process.env[`${prefix}
|
|
75503
|
-
}
|
|
75504
|
-
if (config.brand3) {
|
|
75505
|
-
process.env[`${prefix}BRAND3`] = config.brand3;
|
|
75504
|
+
if (config.accent) {
|
|
75505
|
+
process.env[`${prefix}ACCENT`] = config.accent;
|
|
75506
75506
|
}
|
|
75507
75507
|
if (config.success) {
|
|
75508
75508
|
process.env[`${prefix}SUCCESS`] = config.success;
|
|
@@ -75533,14 +75533,11 @@ var init_set_env = __esm({
|
|
|
75533
75533
|
if (config.background) {
|
|
75534
75534
|
process.env[`${prefix}BACKGROUND`] = config.background;
|
|
75535
75535
|
}
|
|
75536
|
-
if (config.
|
|
75537
|
-
process.env[`${prefix}
|
|
75538
|
-
}
|
|
75539
|
-
if (config.brand2) {
|
|
75540
|
-
process.env[`${prefix}BRAND2`] = config.brand2;
|
|
75536
|
+
if (config.brand) {
|
|
75537
|
+
process.env[`${prefix}BRAND`] = config.brand;
|
|
75541
75538
|
}
|
|
75542
|
-
if (config.
|
|
75543
|
-
process.env[`${prefix}
|
|
75539
|
+
if (config.accent) {
|
|
75540
|
+
process.env[`${prefix}ACCENT`] = config.accent;
|
|
75544
75541
|
}
|
|
75545
75542
|
if (config.success) {
|
|
75546
75543
|
process.env[`${prefix}SUCCESS`] = config.success;
|