@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;
|
|
@@ -3948,15 +3948,14 @@ var init_lib = __esm({
|
|
|
3948
3948
|
});
|
|
3949
3949
|
|
|
3950
3950
|
// packages/config/src/schema.ts
|
|
3951
|
-
var DarkColorSchema, LightColorSchema,
|
|
3951
|
+
var DarkColorSchema, LightColorSchema, BrandColorSchema, AccentColorSchema, SuccessColorSchema, InfoColorSchema, WarningColorSchema, ErrorColorSchema, FatalColorSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema;
|
|
3952
3952
|
var init_schema = __esm({
|
|
3953
3953
|
"packages/config/src/schema.ts"() {
|
|
3954
3954
|
init_lib();
|
|
3955
3955
|
DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace");
|
|
3956
3956
|
LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
Brand3ColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The third brand specific color of the workspace");
|
|
3957
|
+
BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
|
|
3958
|
+
AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
3960
3959
|
SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
|
|
3961
3960
|
InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace");
|
|
3962
3961
|
WarningColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
@@ -3965,9 +3964,8 @@ var init_schema = __esm({
|
|
|
3965
3964
|
DarkThemeColorConfigSchema = z.object({
|
|
3966
3965
|
foreground: LightColorSchema,
|
|
3967
3966
|
background: DarkColorSchema,
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
brand3: Brand3ColorSchema,
|
|
3967
|
+
brand: BrandColorSchema,
|
|
3968
|
+
accent: AccentColorSchema,
|
|
3971
3969
|
success: SuccessColorSchema,
|
|
3972
3970
|
info: InfoColorSchema,
|
|
3973
3971
|
warning: WarningColorSchema,
|
|
@@ -3977,9 +3975,8 @@ var init_schema = __esm({
|
|
|
3977
3975
|
LightThemeColorConfigSchema = z.object({
|
|
3978
3976
|
foreground: DarkColorSchema,
|
|
3979
3977
|
background: LightColorSchema,
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
brand3: Brand3ColorSchema,
|
|
3978
|
+
brand: BrandColorSchema,
|
|
3979
|
+
accent: AccentColorSchema,
|
|
3983
3980
|
success: SuccessColorSchema,
|
|
3984
3981
|
info: InfoColorSchema,
|
|
3985
3982
|
warning: WarningColorSchema,
|
|
@@ -3993,9 +3990,8 @@ var init_schema = __esm({
|
|
|
3993
3990
|
SingleThemeColorConfigSchema = z.object({
|
|
3994
3991
|
dark: DarkColorSchema,
|
|
3995
3992
|
light: LightColorSchema,
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
brand3: Brand3ColorSchema,
|
|
3993
|
+
brand: BrandColorSchema,
|
|
3994
|
+
accent: AccentColorSchema,
|
|
3999
3995
|
success: SuccessColorSchema,
|
|
4000
3996
|
info: InfoColorSchema,
|
|
4001
3997
|
warning: WarningColorSchema,
|
|
@@ -4041,7 +4037,7 @@ var init_schema = __esm({
|
|
|
4041
4037
|
runtimeVersion: z.string().trim().regex(
|
|
4042
4038
|
/^(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-]+)*))?$/
|
|
4043
4039
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
4044
|
-
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
4040
|
+
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("pnpm").describe("The package manager used by the repository"),
|
|
4045
4041
|
timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
4046
4042
|
locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
4047
4043
|
logLevel: z.enum([
|
|
@@ -4076,9 +4072,8 @@ var init_types = __esm({
|
|
|
4076
4072
|
COLOR_KEYS = [
|
|
4077
4073
|
"dark",
|
|
4078
4074
|
"light",
|
|
4079
|
-
"
|
|
4080
|
-
"
|
|
4081
|
-
"brand3",
|
|
4075
|
+
"brand",
|
|
4076
|
+
"accent",
|
|
4082
4077
|
"success",
|
|
4083
4078
|
"info",
|
|
4084
4079
|
"warning",
|
|
@@ -6077,7 +6072,7 @@ var require_jiti = __commonJS({
|
|
|
6077
6072
|
return ".";
|
|
6078
6073
|
const isUNCPath = (path5 = normalizeWindowsPath2(path5)).match(_UNC_REGEX2), isPathAbsolute = isAbsolute2(path5), trailingSeparator = "/" === path5[path5.length - 1];
|
|
6079
6074
|
return 0 === (path5 = normalizeString2(path5, !isPathAbsolute)).length ? isPathAbsolute ? "/" : trailingSeparator ? "./" : "." : (trailingSeparator && (path5 += "/"), _DRIVE_LETTER_RE2.test(path5) && (path5 += "/"), isUNCPath ? isPathAbsolute ? `//${path5}` : `//./${path5}` : isPathAbsolute && !isAbsolute2(path5) ? `/${path5}` : path5);
|
|
6080
|
-
},
|
|
6075
|
+
}, join4 = function(...arguments_) {
|
|
6081
6076
|
if (0 === arguments_.length)
|
|
6082
6077
|
return ".";
|
|
6083
6078
|
let joined;
|
|
@@ -8923,13 +8918,13 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
8923
8918
|
} catch (_a) {
|
|
8924
8919
|
return false;
|
|
8925
8920
|
}
|
|
8926
|
-
}(_filename) && (_filename =
|
|
8921
|
+
}(_filename) && (_filename = join4(_filename, "index.js")), true === opts.cache && (opts.cache = function() {
|
|
8927
8922
|
let _tmpDir = (0, external_os_namespaceObject.tmpdir)();
|
|
8928
8923
|
if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
|
|
8929
8924
|
const _env = process.env.TMPDIR;
|
|
8930
8925
|
delete process.env.TMPDIR, _tmpDir = (0, external_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
|
|
8931
8926
|
}
|
|
8932
|
-
return
|
|
8927
|
+
return join4(_tmpDir, "node-jiti");
|
|
8933
8928
|
}()), opts.cache)
|
|
8934
8929
|
try {
|
|
8935
8930
|
if ((0, external_fs_.mkdirSync)(opts.cache, { recursive: true }), !function(filename) {
|
|
@@ -8955,7 +8950,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
8955
8950
|
aliases2 = normalizeAliases(aliases2);
|
|
8956
8951
|
for (const alias2 in aliases2)
|
|
8957
8952
|
if (_path.startsWith(alias2) && pathSeparators.has(_path[alias2.length]))
|
|
8958
|
-
return
|
|
8953
|
+
return join4(aliases2[alias2], _path.slice(alias2.length));
|
|
8959
8954
|
return _path;
|
|
8960
8955
|
}(id, alias)), opts.esmResolve) {
|
|
8961
8956
|
const conditionSets = [["node", "require"], ["node", "import"]];
|
|
@@ -8986,7 +8981,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
8986
8981
|
let code = function(filename, source, get) {
|
|
8987
8982
|
if (!opts.cache || !filename)
|
|
8988
8983
|
return get();
|
|
8989
|
-
const sourceHash = ` /* v${opts.cacheVersion}-${md5(source, 16)} */`, filebase = basename2(pathe_92c04245_dirname(filename)) + "-" + basename2(filename), cacheFile =
|
|
8984
|
+
const sourceHash = ` /* v${opts.cacheVersion}-${md5(source, 16)} */`, filebase = basename2(pathe_92c04245_dirname(filename)) + "-" + basename2(filename), cacheFile = join4(opts.cache, filebase + "." + md5(filename) + ".js");
|
|
8990
8985
|
if ((0, external_fs_.existsSync)(cacheFile)) {
|
|
8991
8986
|
const cacheSource = (0, external_fs_.readFileSync)(cacheFile, "utf8");
|
|
8992
8987
|
if (cacheSource.endsWith(sourceHash))
|
|
@@ -9055,9 +9050,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9055
9050
|
var _a;
|
|
9056
9051
|
const id = evalOptions.id || (evalOptions.filename ? basename2(evalOptions.filename) : `_jitiEval.${evalOptions.ext || ".js"}`), filename = evalOptions.filename || _resolve3(id), ext = evalOptions.ext || extname3(filename), cache2 = evalOptions.cache || parentCache || {}, isTypescript = ".ts" === ext || ".mts" === ext || ".cts" === ext, isNativeModule = ".mjs" === ext || ".js" === ext && "module" === (null === (_a = function(path5) {
|
|
9057
9052
|
for (; path5 && "." !== path5 && "/" !== path5; ) {
|
|
9058
|
-
path5 =
|
|
9053
|
+
path5 = join4(path5, "..");
|
|
9059
9054
|
try {
|
|
9060
|
-
const pkg = (0, external_fs_.readFileSync)(
|
|
9055
|
+
const pkg = (0, external_fs_.readFileSync)(join4(path5, "package.json"), "utf8");
|
|
9061
9056
|
try {
|
|
9062
9057
|
return JSON.parse(pkg);
|
|
9063
9058
|
} catch (_a2) {
|
|
@@ -53850,7 +53845,7 @@ var require_path_reservations = __commonJS({
|
|
|
53850
53845
|
var assert2 = require("assert");
|
|
53851
53846
|
var normalize2 = require_normalize_unicode();
|
|
53852
53847
|
var stripSlashes = require_strip_trailing_slashes();
|
|
53853
|
-
var { join:
|
|
53848
|
+
var { join: join4 } = require("path");
|
|
53854
53849
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
53855
53850
|
var isWindows = platform === "win32";
|
|
53856
53851
|
module2.exports = () => {
|
|
@@ -53859,7 +53854,7 @@ var require_path_reservations = __commonJS({
|
|
|
53859
53854
|
const getDirs = (path5) => {
|
|
53860
53855
|
const dirs = path5.split("/").slice(0, -1).reduce((set, path6) => {
|
|
53861
53856
|
if (set.length) {
|
|
53862
|
-
path6 =
|
|
53857
|
+
path6 = join4(set[set.length - 1], path6);
|
|
53863
53858
|
}
|
|
53864
53859
|
set.push(path6 || "/");
|
|
53865
53860
|
return set;
|
|
@@ -53927,7 +53922,7 @@ var require_path_reservations = __commonJS({
|
|
|
53927
53922
|
};
|
|
53928
53923
|
const reserve = (paths, fn2) => {
|
|
53929
53924
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p2) => {
|
|
53930
|
-
return stripSlashes(
|
|
53925
|
+
return stripSlashes(join4(normalize2(p2))).toLowerCase();
|
|
53931
53926
|
});
|
|
53932
53927
|
const dirs = new Set(
|
|
53933
53928
|
paths.map((path5) => getDirs(path5)).reduce((a2, b6) => a2.concat(b6))
|
|
@@ -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;
|
|
@@ -73556,7 +73553,6 @@ __export(generator_exports, {
|
|
|
73556
73553
|
module.exports = __toCommonJS(generator_exports);
|
|
73557
73554
|
var import_devkit = require("@nx/devkit");
|
|
73558
73555
|
init_src();
|
|
73559
|
-
var import_node_path8 = require("node:path");
|
|
73560
73556
|
|
|
73561
73557
|
// node_modules/.pnpm/zod-to-json-schema@3.23.0_zod@3.23.4/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
73562
73558
|
var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
@@ -74733,15 +74729,30 @@ ${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[ke
|
|
|
74733
74729
|
};
|
|
74734
74730
|
|
|
74735
74731
|
// packages/workspace-tools/src/generators/config-schema/generator.ts
|
|
74732
|
+
init_src2();
|
|
74736
74733
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
74737
|
-
const { findWorkspaceRoot: findWorkspaceRoot2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
74738
|
-
|
|
74739
|
-
(
|
|
74740
|
-
|
|
74741
|
-
|
|
74742
|
-
|
|
74734
|
+
const { findWorkspaceRoot: findWorkspaceRoot2, writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
74735
|
+
writeInfo2("\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
|
|
74736
|
+
writeTrace(`Determining the Storm Configuration JSON Schema...`, config);
|
|
74737
|
+
const jsonSchema = zodToJsonSchema(StormConfigSchema, {
|
|
74738
|
+
name: "StormConfiguration"
|
|
74739
|
+
});
|
|
74740
|
+
writeTrace(jsonSchema, config);
|
|
74741
|
+
let outputPath = options.outputFile ? options.outputFile.replaceAll("{workspaceRoot}", "") : "storm.schema.json";
|
|
74742
|
+
outputPath = outputPath.replaceAll(
|
|
74743
|
+
config?.workspaceRoot ?? findWorkspaceRoot2(),
|
|
74744
|
+
outputPath.startsWith("./") ? "" : "./"
|
|
74743
74745
|
);
|
|
74746
|
+
writeTrace(
|
|
74747
|
+
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
74748
|
+
config
|
|
74749
|
+
);
|
|
74750
|
+
(0, import_devkit.writeJson)(tree, outputPath, jsonSchema, { spaces: 2 });
|
|
74744
74751
|
await (0, import_devkit.formatFiles)(tree);
|
|
74752
|
+
writeSuccess2(
|
|
74753
|
+
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
74754
|
+
config
|
|
74755
|
+
);
|
|
74745
74756
|
return {
|
|
74746
74757
|
success: true
|
|
74747
74758
|
};
|