@storm-software/git-tools 2.64.0 → 2.66.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 +12 -0
- package/README.md +1 -1
- package/bin/git.js +30 -26
- package/bin/post-checkout.js +30 -26
- package/bin/post-commit.js +30 -26
- package/bin/post-merge.js +30 -26
- package/bin/pre-commit.js +30 -26
- package/bin/pre-install.js +30 -26
- package/bin/pre-push.js +30 -26
- package/bin/prepare.js +30 -26
- package/bin/version-warning.js +30 -26
- package/package.json +1 -1
- package/src/cli/index.js +30 -26
- package/src/commit/index.js +15 -36
- package/src/commitizen/index.js +15 -36
- package/src/index.js +30 -26
- package/src/release/index.js +15 -36
package/bin/post-merge.js
CHANGED
|
@@ -66213,17 +66213,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
66213
66213
|
});
|
|
66214
66214
|
|
|
66215
66215
|
// packages/config/src/schema.ts
|
|
66216
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66216
|
+
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
66217
66217
|
var 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");
|
|
66218
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66218
|
+
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
66219
66219
|
var AlternateColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
|
|
66220
66220
|
var AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
66221
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
66221
|
+
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
|
|
66222
66222
|
var HelpColorSchema = 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");
|
|
66223
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66224
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66223
|
+
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
|
|
66224
|
+
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
|
|
66225
66225
|
var WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
66226
|
-
var
|
|
66226
|
+
var DangerColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
|
|
66227
66227
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
66228
66228
|
var PositiveColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
|
|
66229
66229
|
var NegativeColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
|
|
@@ -66238,7 +66238,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
66238
66238
|
success: SuccessColorSchema,
|
|
66239
66239
|
info: InfoColorSchema,
|
|
66240
66240
|
warning: WarningColorSchema,
|
|
66241
|
-
|
|
66241
|
+
danger: DangerColorSchema,
|
|
66242
66242
|
fatal: FatalColorSchema,
|
|
66243
66243
|
positive: PositiveColorSchema,
|
|
66244
66244
|
negative: NegativeColorSchema
|
|
@@ -66254,7 +66254,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
66254
66254
|
success: SuccessColorSchema,
|
|
66255
66255
|
info: InfoColorSchema,
|
|
66256
66256
|
warning: WarningColorSchema,
|
|
66257
|
-
|
|
66257
|
+
danger: DangerColorSchema,
|
|
66258
66258
|
fatal: FatalColorSchema,
|
|
66259
66259
|
positive: PositiveColorSchema,
|
|
66260
66260
|
negative: NegativeColorSchema
|
|
@@ -66274,7 +66274,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
66274
66274
|
success: SuccessColorSchema,
|
|
66275
66275
|
info: InfoColorSchema,
|
|
66276
66276
|
warning: WarningColorSchema,
|
|
66277
|
-
|
|
66277
|
+
danger: DangerColorSchema,
|
|
66278
66278
|
fatal: FatalColorSchema,
|
|
66279
66279
|
positive: PositiveColorSchema,
|
|
66280
66280
|
negative: NegativeColorSchema
|
|
@@ -66362,14 +66362,19 @@ var StormConfigSchema = z2.object({
|
|
|
66362
66362
|
var COLOR_KEYS = [
|
|
66363
66363
|
"dark",
|
|
66364
66364
|
"light",
|
|
66365
|
+
"base",
|
|
66365
66366
|
"brand",
|
|
66367
|
+
"alternate",
|
|
66366
66368
|
"accent",
|
|
66367
|
-
"
|
|
66369
|
+
"link",
|
|
66368
66370
|
"success",
|
|
66371
|
+
"help",
|
|
66369
66372
|
"info",
|
|
66370
66373
|
"warning",
|
|
66371
|
-
"
|
|
66372
|
-
"fatal"
|
|
66374
|
+
"danger",
|
|
66375
|
+
"fatal",
|
|
66376
|
+
"positive",
|
|
66377
|
+
"negative"
|
|
66373
66378
|
];
|
|
66374
66379
|
|
|
66375
66380
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
@@ -66385,7 +66390,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66385
66390
|
"success": "#087f5b",
|
|
66386
66391
|
"info": "#0550ae",
|
|
66387
66392
|
"warning": "#e3b341",
|
|
66388
|
-
"
|
|
66393
|
+
"danger": "#D8314A",
|
|
66389
66394
|
"positive": "#22c55e",
|
|
66390
66395
|
"negative": "#dc2626"
|
|
66391
66396
|
},
|
|
@@ -66398,7 +66403,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66398
66403
|
"success": "#10b981",
|
|
66399
66404
|
"info": "#58a6ff",
|
|
66400
66405
|
"warning": "#f3d371",
|
|
66401
|
-
"
|
|
66406
|
+
"danger": "#D8314A",
|
|
66402
66407
|
"positive": "#22c55e",
|
|
66403
66408
|
"negative": "#dc2626"
|
|
66404
66409
|
}
|
|
@@ -66421,7 +66426,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
66421
66426
|
organization: "storm-software",
|
|
66422
66427
|
configFile: null,
|
|
66423
66428
|
runtimeVersion: "1.0.0",
|
|
66424
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
66425
66429
|
extensions: {}
|
|
66426
66430
|
};
|
|
66427
66431
|
var getDefaultConfig = (config = {}, root) => {
|
|
@@ -66464,7 +66468,7 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
66464
66468
|
}
|
|
66465
66469
|
return ret;
|
|
66466
66470
|
}, {}),
|
|
66467
|
-
colors: config.colors
|
|
66471
|
+
colors: config.colors,
|
|
66468
66472
|
workspaceRoot,
|
|
66469
66473
|
name,
|
|
66470
66474
|
namespace,
|
|
@@ -66566,9 +66570,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66566
66570
|
return (message) => {
|
|
66567
66571
|
console.error(
|
|
66568
66572
|
`
|
|
66569
|
-
${_chalk.bold.hex(colors.
|
|
66573
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66570
66574
|
" \u{1F480} Fatal "
|
|
66571
|
-
)} ${_chalk.hex(colors.
|
|
66575
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66572
66576
|
`
|
|
66573
66577
|
);
|
|
66574
66578
|
};
|
|
@@ -66577,9 +66581,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
66577
66581
|
return (message) => {
|
|
66578
66582
|
console.error(
|
|
66579
66583
|
`
|
|
66580
|
-
${_chalk.bold.hex(colors.
|
|
66584
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66581
66585
|
" \u2718 Error "
|
|
66582
|
-
)} ${_chalk.hex(colors.
|
|
66586
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66583
66587
|
`
|
|
66584
66588
|
);
|
|
66585
66589
|
};
|
|
@@ -66909,7 +66913,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
66909
66913
|
success: process.env[`${prefix}SUCCESS`],
|
|
66910
66914
|
info: process.env[`${prefix}INFO`],
|
|
66911
66915
|
warning: process.env[`${prefix}WARNING`],
|
|
66912
|
-
|
|
66916
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66913
66917
|
fatal: process.env[`${prefix}FATAL`],
|
|
66914
66918
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66915
66919
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -66935,7 +66939,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
66935
66939
|
success: process.env[`${prefix}SUCCESS`],
|
|
66936
66940
|
info: process.env[`${prefix}INFO`],
|
|
66937
66941
|
warning: process.env[`${prefix}WARNING`],
|
|
66938
|
-
|
|
66942
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66939
66943
|
fatal: process.env[`${prefix}FATAL`],
|
|
66940
66944
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66941
66945
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -67155,8 +67159,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
67155
67159
|
if (config.warning) {
|
|
67156
67160
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67157
67161
|
}
|
|
67158
|
-
if (config.
|
|
67159
|
-
process.env[`${prefix}
|
|
67162
|
+
if (config.danger) {
|
|
67163
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67160
67164
|
}
|
|
67161
67165
|
if (config.fatal) {
|
|
67162
67166
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
@@ -67205,8 +67209,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
67205
67209
|
if (config.warning) {
|
|
67206
67210
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67207
67211
|
}
|
|
67208
|
-
if (config.
|
|
67209
|
-
process.env[`${prefix}
|
|
67212
|
+
if (config.danger) {
|
|
67213
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67210
67214
|
}
|
|
67211
67215
|
if (config.fatal) {
|
|
67212
67216
|
process.env[`${prefix}FATAL`] = config.fatal;
|
package/bin/pre-commit.js
CHANGED
|
@@ -66213,17 +66213,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
66213
66213
|
});
|
|
66214
66214
|
|
|
66215
66215
|
// packages/config/src/schema.ts
|
|
66216
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66216
|
+
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
66217
66217
|
var 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");
|
|
66218
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66218
|
+
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
66219
66219
|
var AlternateColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
|
|
66220
66220
|
var AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
66221
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
66221
|
+
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
|
|
66222
66222
|
var HelpColorSchema = 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");
|
|
66223
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66224
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66223
|
+
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
|
|
66224
|
+
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
|
|
66225
66225
|
var WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
66226
|
-
var
|
|
66226
|
+
var DangerColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
|
|
66227
66227
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
66228
66228
|
var PositiveColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
|
|
66229
66229
|
var NegativeColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
|
|
@@ -66238,7 +66238,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
66238
66238
|
success: SuccessColorSchema,
|
|
66239
66239
|
info: InfoColorSchema,
|
|
66240
66240
|
warning: WarningColorSchema,
|
|
66241
|
-
|
|
66241
|
+
danger: DangerColorSchema,
|
|
66242
66242
|
fatal: FatalColorSchema,
|
|
66243
66243
|
positive: PositiveColorSchema,
|
|
66244
66244
|
negative: NegativeColorSchema
|
|
@@ -66254,7 +66254,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
66254
66254
|
success: SuccessColorSchema,
|
|
66255
66255
|
info: InfoColorSchema,
|
|
66256
66256
|
warning: WarningColorSchema,
|
|
66257
|
-
|
|
66257
|
+
danger: DangerColorSchema,
|
|
66258
66258
|
fatal: FatalColorSchema,
|
|
66259
66259
|
positive: PositiveColorSchema,
|
|
66260
66260
|
negative: NegativeColorSchema
|
|
@@ -66274,7 +66274,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
66274
66274
|
success: SuccessColorSchema,
|
|
66275
66275
|
info: InfoColorSchema,
|
|
66276
66276
|
warning: WarningColorSchema,
|
|
66277
|
-
|
|
66277
|
+
danger: DangerColorSchema,
|
|
66278
66278
|
fatal: FatalColorSchema,
|
|
66279
66279
|
positive: PositiveColorSchema,
|
|
66280
66280
|
negative: NegativeColorSchema
|
|
@@ -66362,14 +66362,19 @@ var StormConfigSchema = z2.object({
|
|
|
66362
66362
|
var COLOR_KEYS = [
|
|
66363
66363
|
"dark",
|
|
66364
66364
|
"light",
|
|
66365
|
+
"base",
|
|
66365
66366
|
"brand",
|
|
66367
|
+
"alternate",
|
|
66366
66368
|
"accent",
|
|
66367
|
-
"
|
|
66369
|
+
"link",
|
|
66368
66370
|
"success",
|
|
66371
|
+
"help",
|
|
66369
66372
|
"info",
|
|
66370
66373
|
"warning",
|
|
66371
|
-
"
|
|
66372
|
-
"fatal"
|
|
66374
|
+
"danger",
|
|
66375
|
+
"fatal",
|
|
66376
|
+
"positive",
|
|
66377
|
+
"negative"
|
|
66373
66378
|
];
|
|
66374
66379
|
|
|
66375
66380
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
@@ -66385,7 +66390,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66385
66390
|
"success": "#087f5b",
|
|
66386
66391
|
"info": "#0550ae",
|
|
66387
66392
|
"warning": "#e3b341",
|
|
66388
|
-
"
|
|
66393
|
+
"danger": "#D8314A",
|
|
66389
66394
|
"positive": "#22c55e",
|
|
66390
66395
|
"negative": "#dc2626"
|
|
66391
66396
|
},
|
|
@@ -66398,7 +66403,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66398
66403
|
"success": "#10b981",
|
|
66399
66404
|
"info": "#58a6ff",
|
|
66400
66405
|
"warning": "#f3d371",
|
|
66401
|
-
"
|
|
66406
|
+
"danger": "#D8314A",
|
|
66402
66407
|
"positive": "#22c55e",
|
|
66403
66408
|
"negative": "#dc2626"
|
|
66404
66409
|
}
|
|
@@ -66421,7 +66426,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
66421
66426
|
organization: "storm-software",
|
|
66422
66427
|
configFile: null,
|
|
66423
66428
|
runtimeVersion: "1.0.0",
|
|
66424
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
66425
66429
|
extensions: {}
|
|
66426
66430
|
};
|
|
66427
66431
|
var getDefaultConfig = (config = {}, root) => {
|
|
@@ -66464,7 +66468,7 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
66464
66468
|
}
|
|
66465
66469
|
return ret;
|
|
66466
66470
|
}, {}),
|
|
66467
|
-
colors: config.colors
|
|
66471
|
+
colors: config.colors,
|
|
66468
66472
|
workspaceRoot,
|
|
66469
66473
|
name,
|
|
66470
66474
|
namespace,
|
|
@@ -66566,9 +66570,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66566
66570
|
return (message) => {
|
|
66567
66571
|
console.error(
|
|
66568
66572
|
`
|
|
66569
|
-
${_chalk.bold.hex(colors.
|
|
66573
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66570
66574
|
" \u{1F480} Fatal "
|
|
66571
|
-
)} ${_chalk.hex(colors.
|
|
66575
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66572
66576
|
`
|
|
66573
66577
|
);
|
|
66574
66578
|
};
|
|
@@ -66577,9 +66581,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
66577
66581
|
return (message) => {
|
|
66578
66582
|
console.error(
|
|
66579
66583
|
`
|
|
66580
|
-
${_chalk.bold.hex(colors.
|
|
66584
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66581
66585
|
" \u2718 Error "
|
|
66582
|
-
)} ${_chalk.hex(colors.
|
|
66586
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66583
66587
|
`
|
|
66584
66588
|
);
|
|
66585
66589
|
};
|
|
@@ -66893,7 +66897,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
66893
66897
|
success: process.env[`${prefix}SUCCESS`],
|
|
66894
66898
|
info: process.env[`${prefix}INFO`],
|
|
66895
66899
|
warning: process.env[`${prefix}WARNING`],
|
|
66896
|
-
|
|
66900
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66897
66901
|
fatal: process.env[`${prefix}FATAL`],
|
|
66898
66902
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66899
66903
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -66919,7 +66923,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
66919
66923
|
success: process.env[`${prefix}SUCCESS`],
|
|
66920
66924
|
info: process.env[`${prefix}INFO`],
|
|
66921
66925
|
warning: process.env[`${prefix}WARNING`],
|
|
66922
|
-
|
|
66926
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66923
66927
|
fatal: process.env[`${prefix}FATAL`],
|
|
66924
66928
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66925
66929
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -67139,8 +67143,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
67139
67143
|
if (config.warning) {
|
|
67140
67144
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67141
67145
|
}
|
|
67142
|
-
if (config.
|
|
67143
|
-
process.env[`${prefix}
|
|
67146
|
+
if (config.danger) {
|
|
67147
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67144
67148
|
}
|
|
67145
67149
|
if (config.fatal) {
|
|
67146
67150
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
@@ -67189,8 +67193,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
67189
67193
|
if (config.warning) {
|
|
67190
67194
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67191
67195
|
}
|
|
67192
|
-
if (config.
|
|
67193
|
-
process.env[`${prefix}
|
|
67196
|
+
if (config.danger) {
|
|
67197
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67194
67198
|
}
|
|
67195
67199
|
if (config.fatal) {
|
|
67196
67200
|
process.env[`${prefix}FATAL`] = config.fatal;
|
package/bin/pre-install.js
CHANGED
|
@@ -66213,17 +66213,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
66213
66213
|
});
|
|
66214
66214
|
|
|
66215
66215
|
// packages/config/src/schema.ts
|
|
66216
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66216
|
+
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
66217
66217
|
var 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");
|
|
66218
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66218
|
+
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
66219
66219
|
var AlternateColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
|
|
66220
66220
|
var AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
66221
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
66221
|
+
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
|
|
66222
66222
|
var HelpColorSchema = 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");
|
|
66223
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66224
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66223
|
+
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
|
|
66224
|
+
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
|
|
66225
66225
|
var WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
66226
|
-
var
|
|
66226
|
+
var DangerColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
|
|
66227
66227
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
66228
66228
|
var PositiveColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
|
|
66229
66229
|
var NegativeColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
|
|
@@ -66238,7 +66238,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
66238
66238
|
success: SuccessColorSchema,
|
|
66239
66239
|
info: InfoColorSchema,
|
|
66240
66240
|
warning: WarningColorSchema,
|
|
66241
|
-
|
|
66241
|
+
danger: DangerColorSchema,
|
|
66242
66242
|
fatal: FatalColorSchema,
|
|
66243
66243
|
positive: PositiveColorSchema,
|
|
66244
66244
|
negative: NegativeColorSchema
|
|
@@ -66254,7 +66254,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
66254
66254
|
success: SuccessColorSchema,
|
|
66255
66255
|
info: InfoColorSchema,
|
|
66256
66256
|
warning: WarningColorSchema,
|
|
66257
|
-
|
|
66257
|
+
danger: DangerColorSchema,
|
|
66258
66258
|
fatal: FatalColorSchema,
|
|
66259
66259
|
positive: PositiveColorSchema,
|
|
66260
66260
|
negative: NegativeColorSchema
|
|
@@ -66274,7 +66274,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
66274
66274
|
success: SuccessColorSchema,
|
|
66275
66275
|
info: InfoColorSchema,
|
|
66276
66276
|
warning: WarningColorSchema,
|
|
66277
|
-
|
|
66277
|
+
danger: DangerColorSchema,
|
|
66278
66278
|
fatal: FatalColorSchema,
|
|
66279
66279
|
positive: PositiveColorSchema,
|
|
66280
66280
|
negative: NegativeColorSchema
|
|
@@ -66362,14 +66362,19 @@ var StormConfigSchema = z2.object({
|
|
|
66362
66362
|
var COLOR_KEYS = [
|
|
66363
66363
|
"dark",
|
|
66364
66364
|
"light",
|
|
66365
|
+
"base",
|
|
66365
66366
|
"brand",
|
|
66367
|
+
"alternate",
|
|
66366
66368
|
"accent",
|
|
66367
|
-
"
|
|
66369
|
+
"link",
|
|
66368
66370
|
"success",
|
|
66371
|
+
"help",
|
|
66369
66372
|
"info",
|
|
66370
66373
|
"warning",
|
|
66371
|
-
"
|
|
66372
|
-
"fatal"
|
|
66374
|
+
"danger",
|
|
66375
|
+
"fatal",
|
|
66376
|
+
"positive",
|
|
66377
|
+
"negative"
|
|
66373
66378
|
];
|
|
66374
66379
|
|
|
66375
66380
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
@@ -66385,7 +66390,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66385
66390
|
"success": "#087f5b",
|
|
66386
66391
|
"info": "#0550ae",
|
|
66387
66392
|
"warning": "#e3b341",
|
|
66388
|
-
"
|
|
66393
|
+
"danger": "#D8314A",
|
|
66389
66394
|
"positive": "#22c55e",
|
|
66390
66395
|
"negative": "#dc2626"
|
|
66391
66396
|
},
|
|
@@ -66398,7 +66403,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66398
66403
|
"success": "#10b981",
|
|
66399
66404
|
"info": "#58a6ff",
|
|
66400
66405
|
"warning": "#f3d371",
|
|
66401
|
-
"
|
|
66406
|
+
"danger": "#D8314A",
|
|
66402
66407
|
"positive": "#22c55e",
|
|
66403
66408
|
"negative": "#dc2626"
|
|
66404
66409
|
}
|
|
@@ -66421,7 +66426,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
66421
66426
|
organization: "storm-software",
|
|
66422
66427
|
configFile: null,
|
|
66423
66428
|
runtimeVersion: "1.0.0",
|
|
66424
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
66425
66429
|
extensions: {}
|
|
66426
66430
|
};
|
|
66427
66431
|
var getDefaultConfig = (config = {}, root) => {
|
|
@@ -66464,7 +66468,7 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
66464
66468
|
}
|
|
66465
66469
|
return ret;
|
|
66466
66470
|
}, {}),
|
|
66467
|
-
colors: config.colors
|
|
66471
|
+
colors: config.colors,
|
|
66468
66472
|
workspaceRoot,
|
|
66469
66473
|
name,
|
|
66470
66474
|
namespace,
|
|
@@ -66566,9 +66570,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66566
66570
|
return (message) => {
|
|
66567
66571
|
console.error(
|
|
66568
66572
|
`
|
|
66569
|
-
${_chalk.bold.hex(colors.
|
|
66573
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66570
66574
|
" \u{1F480} Fatal "
|
|
66571
|
-
)} ${_chalk.hex(colors.
|
|
66575
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66572
66576
|
`
|
|
66573
66577
|
);
|
|
66574
66578
|
};
|
|
@@ -66577,9 +66581,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
66577
66581
|
return (message) => {
|
|
66578
66582
|
console.error(
|
|
66579
66583
|
`
|
|
66580
|
-
${_chalk.bold.hex(colors.
|
|
66584
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66581
66585
|
" \u2718 Error "
|
|
66582
|
-
)} ${_chalk.hex(colors.
|
|
66586
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66583
66587
|
`
|
|
66584
66588
|
);
|
|
66585
66589
|
};
|
|
@@ -66909,7 +66913,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
66909
66913
|
success: process.env[`${prefix}SUCCESS`],
|
|
66910
66914
|
info: process.env[`${prefix}INFO`],
|
|
66911
66915
|
warning: process.env[`${prefix}WARNING`],
|
|
66912
|
-
|
|
66916
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66913
66917
|
fatal: process.env[`${prefix}FATAL`],
|
|
66914
66918
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66915
66919
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -66935,7 +66939,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
66935
66939
|
success: process.env[`${prefix}SUCCESS`],
|
|
66936
66940
|
info: process.env[`${prefix}INFO`],
|
|
66937
66941
|
warning: process.env[`${prefix}WARNING`],
|
|
66938
|
-
|
|
66942
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66939
66943
|
fatal: process.env[`${prefix}FATAL`],
|
|
66940
66944
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66941
66945
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -67155,8 +67159,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
67155
67159
|
if (config.warning) {
|
|
67156
67160
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67157
67161
|
}
|
|
67158
|
-
if (config.
|
|
67159
|
-
process.env[`${prefix}
|
|
67162
|
+
if (config.danger) {
|
|
67163
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67160
67164
|
}
|
|
67161
67165
|
if (config.fatal) {
|
|
67162
67166
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
@@ -67205,8 +67209,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
67205
67209
|
if (config.warning) {
|
|
67206
67210
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67207
67211
|
}
|
|
67208
|
-
if (config.
|
|
67209
|
-
process.env[`${prefix}
|
|
67212
|
+
if (config.danger) {
|
|
67213
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67210
67214
|
}
|
|
67211
67215
|
if (config.fatal) {
|
|
67212
67216
|
process.env[`${prefix}FATAL`] = config.fatal;
|