@storm-software/workspace-tools 1.72.2 → 1.73.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 +26 -13
- package/README.md +9 -3
- package/config/nx.json +19 -68
- package/declarations.d.ts +29 -7
- package/index.js +376 -212
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +366 -202
- package/src/executors/rolldown/executor.js +249 -76
- package/src/executors/tsup/executor.js +249 -76
- package/src/executors/tsup-browser/executor.js +249 -76
- package/src/executors/tsup-neutral/executor.js +249 -76
- package/src/executors/tsup-node/executor.js +249 -76
- package/src/executors/typia/executor.js +249 -76
- package/src/executors/unbuild/executor.js +249 -76
- package/src/generators/browser-library/generator.js +359 -201
- package/src/generators/config-schema/generator.js +242 -75
- package/src/generators/neutral-library/generator.js +359 -201
- package/src/generators/node-library/generator.js +359 -201
- package/src/generators/preset/generator.js +242 -75
- package/src/generators/release-version/generator.js +252 -85
- package/src/utils/index.js +242 -75
|
@@ -2473,9 +2473,9 @@ var require_semver2 = __commonJS({
|
|
|
2473
2473
|
}
|
|
2474
2474
|
});
|
|
2475
2475
|
|
|
2476
|
-
// node_modules/.pnpm/@nx+js@18.
|
|
2476
|
+
// node_modules/.pnpm/@nx+js@18.3.3_@swc-node+register@1.9.0_@swc+core@1.4.13_@swc+wasm@1.4.14_@types+node@20.12.7__djkm6pvgdlal6nacm3wh2i5iwa/node_modules/@nx/js/src/generators/release-version/utils/update-lock-file.js
|
|
2477
2477
|
var require_update_lock_file = __commonJS({
|
|
2478
|
-
"node_modules/.pnpm/@nx+js@18.
|
|
2478
|
+
"node_modules/.pnpm/@nx+js@18.3.3_@swc-node+register@1.9.0_@swc+core@1.4.13_@swc+wasm@1.4.14_@types+node@20.12.7__djkm6pvgdlal6nacm3wh2i5iwa/node_modules/@nx/js/src/generators/release-version/utils/update-lock-file.js"(exports2) {
|
|
2479
2479
|
"use strict";
|
|
2480
2480
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2481
2481
|
exports2.updateLockFile = void 0;
|
|
@@ -2616,9 +2616,13 @@ var init_find_up = __esm({
|
|
|
2616
2616
|
// packages/config-tools/src/utilities/find-workspace-root.ts
|
|
2617
2617
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
2618
2618
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
2619
|
-
return correctPaths(
|
|
2619
|
+
return correctPaths(
|
|
2620
|
+
process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
|
|
2621
|
+
);
|
|
2620
2622
|
}
|
|
2621
|
-
return correctPaths(
|
|
2623
|
+
return correctPaths(
|
|
2624
|
+
findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles)
|
|
2625
|
+
);
|
|
2622
2626
|
}
|
|
2623
2627
|
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
2624
2628
|
const result = findWorkspaceRootSafe(pathInsideMonorepo);
|
|
@@ -2640,8 +2644,11 @@ var init_find_workspace_root = __esm({
|
|
|
2640
2644
|
init_find_up();
|
|
2641
2645
|
rootFiles = [
|
|
2642
2646
|
"storm.json",
|
|
2643
|
-
"storm.
|
|
2644
|
-
"storm.
|
|
2647
|
+
"storm.json",
|
|
2648
|
+
"storm.yaml",
|
|
2649
|
+
"storm.yml",
|
|
2650
|
+
"storm.js",
|
|
2651
|
+
"storm.ts",
|
|
2645
2652
|
".storm.json",
|
|
2646
2653
|
".storm.yaml",
|
|
2647
2654
|
".storm.yml",
|
|
@@ -72753,23 +72760,71 @@ var init_lib = __esm({
|
|
|
72753
72760
|
});
|
|
72754
72761
|
|
|
72755
72762
|
// packages/config/src/schema.ts
|
|
72756
|
-
var ColorConfigSchema, StormConfigSchema;
|
|
72763
|
+
var DarkColorSchema, LightColorSchema, PrimaryColorSchema, SecondaryColorSchema, TertiaryColorSchema, AccentColorSchema, SuccessColorSchema, InfoColorSchema, WarningColorSchema, ErrorColorSchema, FatalColorSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema;
|
|
72757
72764
|
var init_schema = __esm({
|
|
72758
72765
|
"packages/config/src/schema.ts"() {
|
|
72759
72766
|
init_lib();
|
|
72760
|
-
|
|
72761
|
-
|
|
72762
|
-
|
|
72763
|
-
|
|
72764
|
-
|
|
72765
|
-
|
|
72766
|
-
|
|
72767
|
-
|
|
72768
|
-
|
|
72769
|
-
|
|
72770
|
-
|
|
72771
|
-
|
|
72772
|
-
|
|
72767
|
+
DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The dark background color of the workspace");
|
|
72768
|
+
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");
|
|
72769
|
+
PrimaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary color of the workspace");
|
|
72770
|
+
SecondaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The secondary color of the workspace");
|
|
72771
|
+
TertiaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ec5990").describe("The tertiary color of the workspace");
|
|
72772
|
+
AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#6366f1").describe("The accent color of the workspace");
|
|
72773
|
+
SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
|
|
72774
|
+
InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The informational color of the workspace");
|
|
72775
|
+
WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
72776
|
+
ErrorColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#990000").describe("The error color of the workspace");
|
|
72777
|
+
FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace");
|
|
72778
|
+
DarkThemeColorConfigSchema = z2.object({
|
|
72779
|
+
foreground: LightColorSchema,
|
|
72780
|
+
background: DarkColorSchema,
|
|
72781
|
+
primary: PrimaryColorSchema,
|
|
72782
|
+
secondary: SecondaryColorSchema,
|
|
72783
|
+
tertiary: TertiaryColorSchema,
|
|
72784
|
+
accent: AccentColorSchema,
|
|
72785
|
+
success: SuccessColorSchema,
|
|
72786
|
+
info: InfoColorSchema,
|
|
72787
|
+
warning: WarningColorSchema,
|
|
72788
|
+
error: ErrorColorSchema,
|
|
72789
|
+
fatal: FatalColorSchema
|
|
72790
|
+
});
|
|
72791
|
+
LightThemeColorConfigSchema = z2.object({
|
|
72792
|
+
foreground: DarkColorSchema,
|
|
72793
|
+
background: LightColorSchema,
|
|
72794
|
+
primary: PrimaryColorSchema,
|
|
72795
|
+
secondary: SecondaryColorSchema,
|
|
72796
|
+
tertiary: TertiaryColorSchema,
|
|
72797
|
+
accent: AccentColorSchema,
|
|
72798
|
+
success: SuccessColorSchema,
|
|
72799
|
+
info: InfoColorSchema,
|
|
72800
|
+
warning: WarningColorSchema,
|
|
72801
|
+
error: ErrorColorSchema,
|
|
72802
|
+
fatal: FatalColorSchema
|
|
72803
|
+
});
|
|
72804
|
+
MultiThemeColorConfigSchema = z2.object({
|
|
72805
|
+
dark: DarkThemeColorConfigSchema,
|
|
72806
|
+
light: LightThemeColorConfigSchema
|
|
72807
|
+
});
|
|
72808
|
+
SingleThemeColorConfigSchema = z2.object({
|
|
72809
|
+
dark: DarkColorSchema,
|
|
72810
|
+
light: LightColorSchema,
|
|
72811
|
+
primary: PrimaryColorSchema,
|
|
72812
|
+
secondary: SecondaryColorSchema,
|
|
72813
|
+
tertiary: TertiaryColorSchema,
|
|
72814
|
+
accent: AccentColorSchema,
|
|
72815
|
+
success: SuccessColorSchema,
|
|
72816
|
+
info: InfoColorSchema,
|
|
72817
|
+
warning: WarningColorSchema,
|
|
72818
|
+
error: ErrorColorSchema,
|
|
72819
|
+
fatal: FatalColorSchema
|
|
72820
|
+
});
|
|
72821
|
+
ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
72822
|
+
MultiThemeColorConfigSchema
|
|
72823
|
+
).describe("Colors used for various workspace elements");
|
|
72824
|
+
ColorConfigMapSchema = z2.union([
|
|
72825
|
+
z2.object({ "base": ColorConfigSchema }),
|
|
72826
|
+
z2.record(z2.string(), ColorConfigSchema)
|
|
72827
|
+
]);
|
|
72773
72828
|
StormConfigSchema = z2.object({
|
|
72774
72829
|
extends: z2.string().trim().optional().describe(
|
|
72775
72830
|
"The path to a base JSON file to use as a configuration preset file"
|
|
@@ -72820,7 +72875,7 @@ var init_schema = __esm({
|
|
|
72820
72875
|
configFile: z2.string().trim().nullable().default(null).describe(
|
|
72821
72876
|
"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
72822
72877
|
),
|
|
72823
|
-
colors: ColorConfigSchema.describe(
|
|
72878
|
+
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
72824
72879
|
"Storm theme config values used for styling various package elements"
|
|
72825
72880
|
),
|
|
72826
72881
|
extensions: z2.record(z2.any()).optional().default({}).describe("Configuration of each used extension")
|
|
@@ -72831,8 +72886,22 @@ var init_schema = __esm({
|
|
|
72831
72886
|
});
|
|
72832
72887
|
|
|
72833
72888
|
// packages/config/src/types.ts
|
|
72889
|
+
var COLOR_KEYS;
|
|
72834
72890
|
var init_types = __esm({
|
|
72835
72891
|
"packages/config/src/types.ts"() {
|
|
72892
|
+
COLOR_KEYS = [
|
|
72893
|
+
"dark",
|
|
72894
|
+
"light",
|
|
72895
|
+
"primary",
|
|
72896
|
+
"secondary",
|
|
72897
|
+
"tertiary",
|
|
72898
|
+
"accent",
|
|
72899
|
+
"success",
|
|
72900
|
+
"info",
|
|
72901
|
+
"warning",
|
|
72902
|
+
"error",
|
|
72903
|
+
"fatal"
|
|
72904
|
+
];
|
|
72836
72905
|
}
|
|
72837
72906
|
});
|
|
72838
72907
|
|
|
@@ -74610,8 +74679,10 @@ var init_logger = __esm({
|
|
|
74610
74679
|
init_types2();
|
|
74611
74680
|
init_get_log_level();
|
|
74612
74681
|
init_chalk();
|
|
74682
|
+
init_get_default_config();
|
|
74613
74683
|
getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
74614
74684
|
let _chalk = getChalk();
|
|
74685
|
+
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
74615
74686
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
74616
74687
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
74617
74688
|
return (_6) => {
|
|
@@ -74621,9 +74692,7 @@ var init_logger = __esm({
|
|
|
74621
74692
|
return (message) => {
|
|
74622
74693
|
console.error(
|
|
74623
74694
|
`
|
|
74624
|
-
${_chalk.bold.hex(
|
|
74625
|
-
config?.colors?.error ? config.colors.error : "#1fb2a6"
|
|
74626
|
-
)(message)}
|
|
74695
|
+
${_chalk.bold.hex(colors.error)(">")} ${_chalk.bold.bgHex(colors.fatal).whiteBright(" \u{1F480} Fatal ")} ${_chalk.hex(colors.error)(message)}
|
|
74627
74696
|
|
|
74628
74697
|
`
|
|
74629
74698
|
);
|
|
@@ -74633,9 +74702,7 @@ ${_chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")}
|
|
|
74633
74702
|
return (message) => {
|
|
74634
74703
|
console.error(
|
|
74635
74704
|
`
|
|
74636
|
-
${_chalk.bold.hex(
|
|
74637
|
-
config?.colors?.error ? config.colors.error : "#7d1a1a"
|
|
74638
|
-
)(message)}
|
|
74705
|
+
${_chalk.bold.hex(colors.error)(">")} ${_chalk.bold.bgHex(colors.error).whiteBright(" \u2718 Error ")} ${_chalk.hex(colors.error)(message)}
|
|
74639
74706
|
`
|
|
74640
74707
|
);
|
|
74641
74708
|
};
|
|
@@ -74644,9 +74711,7 @@ ${_chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")}
|
|
|
74644
74711
|
return (message) => {
|
|
74645
74712
|
console.warn(
|
|
74646
74713
|
`
|
|
74647
|
-
${_chalk.bold.hex(
|
|
74648
|
-
config?.colors?.warning ? config.colors.warning : "#fcc419"
|
|
74649
|
-
)(message)}
|
|
74714
|
+
${_chalk.bold.hex(colors.warning)("> ")} ${_chalk.bold.bgHex(colors.warning).whiteBright(" \u26A0 Warn ")} ${_chalk.hex(colors.warning)(message)}
|
|
74650
74715
|
`
|
|
74651
74716
|
);
|
|
74652
74717
|
};
|
|
@@ -74655,9 +74720,7 @@ ${_chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")("
|
|
|
74655
74720
|
return (message) => {
|
|
74656
74721
|
console.info(
|
|
74657
74722
|
`
|
|
74658
|
-
${_chalk.bold.hex(
|
|
74659
|
-
config?.colors?.success ? config.colors.success : "#087f5b"
|
|
74660
|
-
)(message)}
|
|
74723
|
+
${_chalk.bold.hex(colors.success)(">")} ${_chalk.bold.bgHex(colors.success).whiteBright(" \u2713 Success ")} ${_chalk.hex(colors.success)(message)}
|
|
74661
74724
|
`
|
|
74662
74725
|
);
|
|
74663
74726
|
};
|
|
@@ -74666,9 +74729,7 @@ ${_chalk.bold.hex(config?.colors?.success ? config.colors.success : "#087f5b")("
|
|
|
74666
74729
|
return (message) => {
|
|
74667
74730
|
console.info(
|
|
74668
74731
|
`
|
|
74669
|
-
${_chalk.bold.hex(
|
|
74670
|
-
config?.colors?.info ? config.colors.info : "#0ea5e9"
|
|
74671
|
-
)(message)}
|
|
74732
|
+
${_chalk.bold.hex(colors.info)(">")} ${_chalk.bold.bgHex(colors.info).whiteBright(" \u2139 Info ")} ${_chalk.hex(colors.info)(message)}
|
|
74672
74733
|
`
|
|
74673
74734
|
);
|
|
74674
74735
|
};
|
|
@@ -74677,9 +74738,7 @@ ${_chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(">")} $
|
|
|
74677
74738
|
return (message) => {
|
|
74678
74739
|
console.debug(
|
|
74679
74740
|
`
|
|
74680
|
-
${_chalk.bold.hex(
|
|
74681
|
-
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
74682
|
-
)(message)}
|
|
74741
|
+
${_chalk.bold.hex(colors.primary)(">")} ${_chalk.bold.bgHex(colors.primary).whiteBright(" \u{1F6E0} Debug ")} ${_chalk.hex(colors.primary)(message)}
|
|
74683
74742
|
`
|
|
74684
74743
|
);
|
|
74685
74744
|
};
|
|
@@ -74687,9 +74746,7 @@ ${_chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")("
|
|
|
74687
74746
|
return (message) => {
|
|
74688
74747
|
console.log(
|
|
74689
74748
|
`
|
|
74690
|
-
${_chalk.bold.hex(
|
|
74691
|
-
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
74692
|
-
)(message)}
|
|
74749
|
+
${_chalk.bold.hex(colors.primary)(">")} ${_chalk.bold.bgHex(colors.primary).whiteBright(" \u2709 System ")} ${_chalk.hex(colors.primary)(message)}
|
|
74693
74750
|
`
|
|
74694
74751
|
);
|
|
74695
74752
|
};
|
|
@@ -74893,9 +74950,10 @@ var init_utilities = __esm({
|
|
|
74893
74950
|
});
|
|
74894
74951
|
|
|
74895
74952
|
// packages/config-tools/src/env/get-env.ts
|
|
74896
|
-
var getExtensionEnv, getConfigEnv;
|
|
74953
|
+
var getExtensionEnv, getConfigEnv, getThemeColorConfigEnv, getSingleThemeColorConfigEnv, getMultiThemeColorConfigEnv, getBaseThemeColorConfigEnv;
|
|
74897
74954
|
var init_get_env = __esm({
|
|
74898
74955
|
"packages/config-tools/src/env/get-env.ts"() {
|
|
74956
|
+
init_src();
|
|
74899
74957
|
init_utilities();
|
|
74900
74958
|
init_correct_paths();
|
|
74901
74959
|
getExtensionEnv = (extensionName) => {
|
|
@@ -74936,16 +74994,6 @@ var init_get_env = __esm({
|
|
|
74936
74994
|
ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
|
|
74937
74995
|
process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
|
|
74938
74996
|
) : void 0,
|
|
74939
|
-
colors: {
|
|
74940
|
-
primary: process.env[`${prefix}COLOR_PRIMARY`],
|
|
74941
|
-
dark: process.env[`${prefix}COLOR_DARK`],
|
|
74942
|
-
light: process.env[`${prefix}COLOR_LIGHT`],
|
|
74943
|
-
success: process.env[`${prefix}COLOR_SUCCESS`],
|
|
74944
|
-
info: process.env[`${prefix}COLOR_INFO`],
|
|
74945
|
-
warning: process.env[`${prefix}COLOR_WARNING`],
|
|
74946
|
-
error: process.env[`${prefix}COLOR_ERROR`],
|
|
74947
|
-
fatal: process.env[`${prefix}COLOR_FATAL`]
|
|
74948
|
-
},
|
|
74949
74997
|
repository: process.env[`${prefix}REPOSITORY`],
|
|
74950
74998
|
branch: process.env[`${prefix}BRANCH`],
|
|
74951
74999
|
preid: process.env[`${prefix}PRE_ID`],
|
|
@@ -74956,6 +75004,18 @@ var init_get_env = __esm({
|
|
|
74956
75004
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
74957
75005
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
74958
75006
|
};
|
|
75007
|
+
const themeNames = Object.keys(process.env).filter(
|
|
75008
|
+
(envKey) => envKey.startsWith(`${prefix}COLOR_`) && COLOR_KEYS.every(
|
|
75009
|
+
(colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
|
|
75010
|
+
)
|
|
75011
|
+
);
|
|
75012
|
+
config.colors = themeNames.length > 0 ? themeNames.reduce(
|
|
75013
|
+
(ret, themeName) => {
|
|
75014
|
+
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
75015
|
+
return ret;
|
|
75016
|
+
},
|
|
75017
|
+
{}
|
|
75018
|
+
) : getThemeColorConfigEnv(prefix);
|
|
74959
75019
|
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
74960
75020
|
if (serializedConfig) {
|
|
74961
75021
|
const parsed = JSON.parse(serializedConfig);
|
|
@@ -74968,11 +75028,53 @@ var init_get_env = __esm({
|
|
|
74968
75028
|
}
|
|
74969
75029
|
return config;
|
|
74970
75030
|
};
|
|
75031
|
+
getThemeColorConfigEnv = (prefix, theme) => {
|
|
75032
|
+
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
75033
|
+
return process.env[`${prefix}${themeName}LIGHT_PRIMARY`] || process.env[`${prefix}${themeName}DARK_PRIMARY`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
|
|
75034
|
+
};
|
|
75035
|
+
getSingleThemeColorConfigEnv = (prefix) => {
|
|
75036
|
+
return {
|
|
75037
|
+
dark: process.env[`${prefix}DARK`],
|
|
75038
|
+
light: process.env[`${prefix}LIGHT`],
|
|
75039
|
+
primary: process.env[`${prefix}PRIMARY`],
|
|
75040
|
+
secondary: process.env[`${prefix}SECONDARY`],
|
|
75041
|
+
tertiary: process.env[`${prefix}TERTIARY`],
|
|
75042
|
+
accent: process.env[`${prefix}ACCENT`],
|
|
75043
|
+
success: process.env[`${prefix}SUCCESS`],
|
|
75044
|
+
info: process.env[`${prefix}INFO`],
|
|
75045
|
+
warning: process.env[`${prefix}WARNING`],
|
|
75046
|
+
error: process.env[`${prefix}ERROR`],
|
|
75047
|
+
fatal: process.env[`${prefix}FATAL`]
|
|
75048
|
+
};
|
|
75049
|
+
};
|
|
75050
|
+
getMultiThemeColorConfigEnv = (prefix) => {
|
|
75051
|
+
return {
|
|
75052
|
+
light: getBaseThemeColorConfigEnv(
|
|
75053
|
+
`${prefix}_LIGHT_`
|
|
75054
|
+
),
|
|
75055
|
+
dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
|
|
75056
|
+
};
|
|
75057
|
+
};
|
|
75058
|
+
getBaseThemeColorConfigEnv = (prefix) => {
|
|
75059
|
+
return {
|
|
75060
|
+
foreground: process.env[`${prefix}FOREGROUND`],
|
|
75061
|
+
background: process.env[`${prefix}BACKGROUND`],
|
|
75062
|
+
primary: process.env[`${prefix}PRIMARY`],
|
|
75063
|
+
secondary: process.env[`${prefix}SECONDARY`],
|
|
75064
|
+
tertiary: process.env[`${prefix}TERTIARY`],
|
|
75065
|
+
accent: process.env[`${prefix}ACCENT`],
|
|
75066
|
+
success: process.env[`${prefix}SUCCESS`],
|
|
75067
|
+
info: process.env[`${prefix}INFO`],
|
|
75068
|
+
warning: process.env[`${prefix}WARNING`],
|
|
75069
|
+
error: process.env[`${prefix}ERROR`],
|
|
75070
|
+
fatal: process.env[`${prefix}FATAL`]
|
|
75071
|
+
};
|
|
75072
|
+
};
|
|
74971
75073
|
}
|
|
74972
75074
|
});
|
|
74973
75075
|
|
|
74974
75076
|
// packages/config-tools/src/env/set-env.ts
|
|
74975
|
-
var setExtensionEnv, setConfigEnv;
|
|
75077
|
+
var setExtensionEnv, setConfigEnv, setThemeColorConfigEnv, setSingleThemeColorConfigEnv, setMultiThemeColorConfigEnv, setBaseThemeColorConfigEnv;
|
|
74976
75078
|
var init_set_env = __esm({
|
|
74977
75079
|
"packages/config-tools/src/env/set-env.ts"() {
|
|
74978
75080
|
init_types2();
|
|
@@ -75088,29 +75190,15 @@ var init_set_env = __esm({
|
|
|
75088
75190
|
process.env.CI = String(config.ci);
|
|
75089
75191
|
process.env.CONTINUOUS_INTEGRATION = String(config.ci);
|
|
75090
75192
|
}
|
|
75091
|
-
if (config.colors.
|
|
75092
|
-
|
|
75093
|
-
|
|
75094
|
-
|
|
75095
|
-
|
|
75096
|
-
|
|
75097
|
-
|
|
75098
|
-
|
|
75099
|
-
|
|
75100
|
-
if (config.colors.success) {
|
|
75101
|
-
process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success;
|
|
75102
|
-
}
|
|
75103
|
-
if (config.colors.info) {
|
|
75104
|
-
process.env[`${prefix}COLOR_INFO`] = config.colors.info;
|
|
75105
|
-
}
|
|
75106
|
-
if (config.colors.warning) {
|
|
75107
|
-
process.env[`${prefix}COLOR_WARNING`] = config.colors.warning;
|
|
75108
|
-
}
|
|
75109
|
-
if (config.colors.error) {
|
|
75110
|
-
process.env[`${prefix}COLOR_ERROR`] = config.colors.error;
|
|
75111
|
-
}
|
|
75112
|
-
if (config.colors.fatal) {
|
|
75113
|
-
process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal;
|
|
75193
|
+
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
75194
|
+
for (const key of Object.keys(config.colors)) {
|
|
75195
|
+
setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
75196
|
+
}
|
|
75197
|
+
} else {
|
|
75198
|
+
setThemeColorConfigEnv(
|
|
75199
|
+
`${prefix}COLOR_`,
|
|
75200
|
+
config.colors
|
|
75201
|
+
);
|
|
75114
75202
|
}
|
|
75115
75203
|
if (config.repository) {
|
|
75116
75204
|
process.env[`${prefix}REPOSITORY`] = config.repository;
|
|
@@ -75139,6 +75227,85 @@ var init_set_env = __esm({
|
|
|
75139
75227
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
75140
75228
|
}
|
|
75141
75229
|
};
|
|
75230
|
+
setThemeColorConfigEnv = (prefix, config) => {
|
|
75231
|
+
return config?.light?.primary || config?.dark?.primary ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
75232
|
+
};
|
|
75233
|
+
setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
75234
|
+
if (config.dark) {
|
|
75235
|
+
process.env[`${prefix}DARK`] = config.dark;
|
|
75236
|
+
}
|
|
75237
|
+
if (config.light) {
|
|
75238
|
+
process.env[`${prefix}LIGHT`] = config.light;
|
|
75239
|
+
}
|
|
75240
|
+
if (config.primary) {
|
|
75241
|
+
process.env[`${prefix}PRIMARY`] = config.primary;
|
|
75242
|
+
}
|
|
75243
|
+
if (config.secondary) {
|
|
75244
|
+
process.env[`${prefix}SECONDARY`] = config.secondary;
|
|
75245
|
+
}
|
|
75246
|
+
if (config.tertiary) {
|
|
75247
|
+
process.env[`${prefix}TERTIARY`] = config.tertiary;
|
|
75248
|
+
}
|
|
75249
|
+
if (config.accent) {
|
|
75250
|
+
process.env[`${prefix}ACCENT`] = config.accent;
|
|
75251
|
+
}
|
|
75252
|
+
if (config.success) {
|
|
75253
|
+
process.env[`${prefix}SUCCESS`] = config.success;
|
|
75254
|
+
}
|
|
75255
|
+
if (config.info) {
|
|
75256
|
+
process.env[`${prefix}INFO`] = config.info;
|
|
75257
|
+
}
|
|
75258
|
+
if (config.warning) {
|
|
75259
|
+
process.env[`${prefix}WARNING`] = config.warning;
|
|
75260
|
+
}
|
|
75261
|
+
if (config.error) {
|
|
75262
|
+
process.env[`${prefix}ERROR`] = config.error;
|
|
75263
|
+
}
|
|
75264
|
+
if (config.fatal) {
|
|
75265
|
+
process.env[`${prefix}FATAL`] = config.fatal;
|
|
75266
|
+
}
|
|
75267
|
+
};
|
|
75268
|
+
setMultiThemeColorConfigEnv = (prefix, config) => {
|
|
75269
|
+
return {
|
|
75270
|
+
light: setBaseThemeColorConfigEnv(`${prefix}_LIGHT_`, config.light),
|
|
75271
|
+
dark: setBaseThemeColorConfigEnv(`${prefix}_DARK_`, config.dark)
|
|
75272
|
+
};
|
|
75273
|
+
};
|
|
75274
|
+
setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
75275
|
+
if (config.foreground) {
|
|
75276
|
+
process.env[`${prefix}FOREGROUND`] = config.foreground;
|
|
75277
|
+
}
|
|
75278
|
+
if (config.background) {
|
|
75279
|
+
process.env[`${prefix}BACKGROUND`] = config.background;
|
|
75280
|
+
}
|
|
75281
|
+
if (config.primary) {
|
|
75282
|
+
process.env[`${prefix}PRIMARY`] = config.primary;
|
|
75283
|
+
}
|
|
75284
|
+
if (config.secondary) {
|
|
75285
|
+
process.env[`${prefix}SECONDARY`] = config.secondary;
|
|
75286
|
+
}
|
|
75287
|
+
if (config.tertiary) {
|
|
75288
|
+
process.env[`${prefix}TERTIARY`] = config.tertiary;
|
|
75289
|
+
}
|
|
75290
|
+
if (config.accent) {
|
|
75291
|
+
process.env[`${prefix}ACCENT`] = config.accent;
|
|
75292
|
+
}
|
|
75293
|
+
if (config.success) {
|
|
75294
|
+
process.env[`${prefix}SUCCESS`] = config.success;
|
|
75295
|
+
}
|
|
75296
|
+
if (config.info) {
|
|
75297
|
+
process.env[`${prefix}INFO`] = config.info;
|
|
75298
|
+
}
|
|
75299
|
+
if (config.warning) {
|
|
75300
|
+
process.env[`${prefix}WARNING`] = config.warning;
|
|
75301
|
+
}
|
|
75302
|
+
if (config.error) {
|
|
75303
|
+
process.env[`${prefix}ERROR`] = config.error;
|
|
75304
|
+
}
|
|
75305
|
+
if (config.fatal) {
|
|
75306
|
+
process.env[`${prefix}FATAL`] = config.fatal;
|
|
75307
|
+
}
|
|
75308
|
+
};
|
|
75142
75309
|
}
|
|
75143
75310
|
});
|
|
75144
75311
|
|
|
@@ -75285,9 +75452,9 @@ var init_src2 = __esm({
|
|
|
75285
75452
|
}
|
|
75286
75453
|
});
|
|
75287
75454
|
|
|
75288
|
-
// node_modules/.pnpm/@nx+js@18.
|
|
75455
|
+
// node_modules/.pnpm/@nx+js@18.3.3_@swc-node+register@1.9.0_@swc+core@1.4.13_@swc+wasm@1.4.14_@types+node@20.12.7__djkm6pvgdlal6nacm3wh2i5iwa/node_modules/@nx/js/src/generators/release-version/utils/package.js
|
|
75289
75456
|
var require_package2 = __commonJS({
|
|
75290
|
-
"node_modules/.pnpm/@nx+js@18.
|
|
75457
|
+
"node_modules/.pnpm/@nx+js@18.3.3_@swc-node+register@1.9.0_@swc+core@1.4.13_@swc+wasm@1.4.14_@types+node@20.12.7__djkm6pvgdlal6nacm3wh2i5iwa/node_modules/@nx/js/src/generators/release-version/utils/package.js"(exports2) {
|
|
75291
75458
|
"use strict";
|
|
75292
75459
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
75293
75460
|
exports2.Package = void 0;
|
|
@@ -77597,9 +77764,9 @@ var require_npa = __commonJS({
|
|
|
77597
77764
|
}
|
|
77598
77765
|
});
|
|
77599
77766
|
|
|
77600
|
-
// node_modules/.pnpm/@nx+js@18.
|
|
77767
|
+
// node_modules/.pnpm/@nx+js@18.3.3_@swc-node+register@1.9.0_@swc+core@1.4.13_@swc+wasm@1.4.14_@types+node@20.12.7__djkm6pvgdlal6nacm3wh2i5iwa/node_modules/@nx/js/src/generators/release-version/utils/resolve-version-spec.js
|
|
77601
77768
|
var require_resolve_version_spec = __commonJS({
|
|
77602
|
-
"node_modules/.pnpm/@nx+js@18.
|
|
77769
|
+
"node_modules/.pnpm/@nx+js@18.3.3_@swc-node+register@1.9.0_@swc+core@1.4.13_@swc+wasm@1.4.14_@types+node@20.12.7__djkm6pvgdlal6nacm3wh2i5iwa/node_modules/@nx/js/src/generators/release-version/utils/resolve-version-spec.js"(exports2) {
|
|
77603
77770
|
"use strict";
|
|
77604
77771
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
77605
77772
|
exports2.resolveVersionSpec = void 0;
|
|
@@ -77626,9 +77793,9 @@ var require_resolve_version_spec = __commonJS({
|
|
|
77626
77793
|
}
|
|
77627
77794
|
});
|
|
77628
77795
|
|
|
77629
|
-
// node_modules/.pnpm/@nx+js@18.
|
|
77796
|
+
// node_modules/.pnpm/@nx+js@18.3.3_@swc-node+register@1.9.0_@swc+core@1.4.13_@swc+wasm@1.4.14_@types+node@20.12.7__djkm6pvgdlal6nacm3wh2i5iwa/node_modules/@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies.js
|
|
77630
77797
|
var require_resolve_local_package_dependencies = __commonJS({
|
|
77631
|
-
"node_modules/.pnpm/@nx+js@18.
|
|
77798
|
+
"node_modules/.pnpm/@nx+js@18.3.3_@swc-node+register@1.9.0_@swc+core@1.4.13_@swc+wasm@1.4.14_@types+node@20.12.7__djkm6pvgdlal6nacm3wh2i5iwa/node_modules/@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies.js"(exports2) {
|
|
77632
77799
|
"use strict";
|
|
77633
77800
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
77634
77801
|
exports2.resolveLocalPackageDependencies = void 0;
|
|
@@ -77815,7 +77982,7 @@ ${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[ke
|
|
|
77815
77982
|
var import_node_child_process6 = require("node:child_process");
|
|
77816
77983
|
var import_git = require("nx/src/command-line/release/utils/git");
|
|
77817
77984
|
var import_resolve_semver_specifier = require("nx/src/command-line/release/utils/resolve-semver-specifier");
|
|
77818
|
-
var
|
|
77985
|
+
var import_config3 = require("nx/src/command-line/release/config/config");
|
|
77819
77986
|
var import_semver2 = __toESM(require_semver2());
|
|
77820
77987
|
var import_resolve_local_package_dependencies = __toESM(require_resolve_local_package_dependencies());
|
|
77821
77988
|
|
|
@@ -80976,7 +81143,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
80976
81143
|
}
|
|
80977
81144
|
case "prompt": {
|
|
80978
81145
|
const maybeLogReleaseGroup = (log2) => {
|
|
80979
|
-
if (options.releaseGroup.name ===
|
|
81146
|
+
if (options.releaseGroup.name === import_config3.IMPLICIT_DEFAULT_RELEASE_GROUP) {
|
|
80980
81147
|
return log2;
|
|
80981
81148
|
}
|
|
80982
81149
|
return `${log2} within release group "${options.releaseGroup.name}"`;
|