@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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 2.66.0 (2024-11-07)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **config:** Add the `danger` color token ([06dba937](https://github.com/storm-software/storm-ops/commit/06dba937))
|
|
6
|
+
|
|
7
|
+
## 2.65.0 (2024-11-01)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **eslint:** Resolve type issues with Nx plugin in preset ([d27162e2](https://github.com/storm-software/storm-ops/commit/d27162e2))
|
|
12
|
+
|
|
1
13
|
## 2.64.0 (2024-10-31)
|
|
2
14
|
|
|
3
15
|
### Features
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/bin/git.js
CHANGED
|
@@ -229897,17 +229897,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
229897
229897
|
});
|
|
229898
229898
|
|
|
229899
229899
|
// packages/config/src/schema.ts
|
|
229900
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
229900
|
+
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");
|
|
229901
229901
|
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");
|
|
229902
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
229902
|
+
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");
|
|
229903
229903
|
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");
|
|
229904
229904
|
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");
|
|
229905
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
229905
|
+
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");
|
|
229906
229906
|
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");
|
|
229907
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
229908
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
229907
|
+
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");
|
|
229908
|
+
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");
|
|
229909
229909
|
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");
|
|
229910
|
-
var
|
|
229910
|
+
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");
|
|
229911
229911
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
229912
229912
|
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");
|
|
229913
229913
|
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");
|
|
@@ -229922,7 +229922,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
229922
229922
|
success: SuccessColorSchema,
|
|
229923
229923
|
info: InfoColorSchema,
|
|
229924
229924
|
warning: WarningColorSchema,
|
|
229925
|
-
|
|
229925
|
+
danger: DangerColorSchema,
|
|
229926
229926
|
fatal: FatalColorSchema,
|
|
229927
229927
|
positive: PositiveColorSchema,
|
|
229928
229928
|
negative: NegativeColorSchema
|
|
@@ -229938,7 +229938,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
229938
229938
|
success: SuccessColorSchema,
|
|
229939
229939
|
info: InfoColorSchema,
|
|
229940
229940
|
warning: WarningColorSchema,
|
|
229941
|
-
|
|
229941
|
+
danger: DangerColorSchema,
|
|
229942
229942
|
fatal: FatalColorSchema,
|
|
229943
229943
|
positive: PositiveColorSchema,
|
|
229944
229944
|
negative: NegativeColorSchema
|
|
@@ -229958,7 +229958,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
229958
229958
|
success: SuccessColorSchema,
|
|
229959
229959
|
info: InfoColorSchema,
|
|
229960
229960
|
warning: WarningColorSchema,
|
|
229961
|
-
|
|
229961
|
+
danger: DangerColorSchema,
|
|
229962
229962
|
fatal: FatalColorSchema,
|
|
229963
229963
|
positive: PositiveColorSchema,
|
|
229964
229964
|
negative: NegativeColorSchema
|
|
@@ -230046,14 +230046,19 @@ var StormConfigSchema = z2.object({
|
|
|
230046
230046
|
var COLOR_KEYS = [
|
|
230047
230047
|
"dark",
|
|
230048
230048
|
"light",
|
|
230049
|
+
"base",
|
|
230049
230050
|
"brand",
|
|
230051
|
+
"alternate",
|
|
230050
230052
|
"accent",
|
|
230051
|
-
"
|
|
230053
|
+
"link",
|
|
230052
230054
|
"success",
|
|
230055
|
+
"help",
|
|
230053
230056
|
"info",
|
|
230054
230057
|
"warning",
|
|
230055
|
-
"
|
|
230056
|
-
"fatal"
|
|
230058
|
+
"danger",
|
|
230059
|
+
"fatal",
|
|
230060
|
+
"positive",
|
|
230061
|
+
"negative"
|
|
230057
230062
|
];
|
|
230058
230063
|
|
|
230059
230064
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
@@ -230069,7 +230074,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
230069
230074
|
"success": "#087f5b",
|
|
230070
230075
|
"info": "#0550ae",
|
|
230071
230076
|
"warning": "#e3b341",
|
|
230072
|
-
"
|
|
230077
|
+
"danger": "#D8314A",
|
|
230073
230078
|
"positive": "#22c55e",
|
|
230074
230079
|
"negative": "#dc2626"
|
|
230075
230080
|
},
|
|
@@ -230082,7 +230087,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
230082
230087
|
"success": "#10b981",
|
|
230083
230088
|
"info": "#58a6ff",
|
|
230084
230089
|
"warning": "#f3d371",
|
|
230085
|
-
"
|
|
230090
|
+
"danger": "#D8314A",
|
|
230086
230091
|
"positive": "#22c55e",
|
|
230087
230092
|
"negative": "#dc2626"
|
|
230088
230093
|
}
|
|
@@ -230105,7 +230110,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
230105
230110
|
organization: "storm-software",
|
|
230106
230111
|
configFile: null,
|
|
230107
230112
|
runtimeVersion: "1.0.0",
|
|
230108
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
230109
230113
|
extensions: {}
|
|
230110
230114
|
};
|
|
230111
230115
|
var getDefaultConfig = (config2 = {}, root3) => {
|
|
@@ -230148,7 +230152,7 @@ var getDefaultConfig = (config2 = {}, root3) => {
|
|
|
230148
230152
|
}
|
|
230149
230153
|
return ret;
|
|
230150
230154
|
}, {}),
|
|
230151
|
-
colors: config2.colors
|
|
230155
|
+
colors: config2.colors,
|
|
230152
230156
|
workspaceRoot: workspaceRoot3,
|
|
230153
230157
|
name,
|
|
230154
230158
|
namespace,
|
|
@@ -230250,9 +230254,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
230250
230254
|
return (message) => {
|
|
230251
230255
|
console.error(
|
|
230252
230256
|
`
|
|
230253
|
-
${_chalk.bold.hex(colors.
|
|
230257
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
230254
230258
|
" \u{1F480} Fatal "
|
|
230255
|
-
)} ${_chalk.hex(colors.
|
|
230259
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
230256
230260
|
`
|
|
230257
230261
|
);
|
|
230258
230262
|
};
|
|
@@ -230261,9 +230265,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
230261
230265
|
return (message) => {
|
|
230262
230266
|
console.error(
|
|
230263
230267
|
`
|
|
230264
|
-
${_chalk.bold.hex(colors.
|
|
230268
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
230265
230269
|
" \u2718 Error "
|
|
230266
|
-
)} ${_chalk.hex(colors.
|
|
230270
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
230267
230271
|
`
|
|
230268
230272
|
);
|
|
230269
230273
|
};
|
|
@@ -230578,7 +230582,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
230578
230582
|
success: process.env[`${prefix}SUCCESS`],
|
|
230579
230583
|
info: process.env[`${prefix}INFO`],
|
|
230580
230584
|
warning: process.env[`${prefix}WARNING`],
|
|
230581
|
-
|
|
230585
|
+
danger: process.env[`${prefix}DANGER`],
|
|
230582
230586
|
fatal: process.env[`${prefix}FATAL`],
|
|
230583
230587
|
positive: process.env[`${prefix}POSITIVE`],
|
|
230584
230588
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -230604,7 +230608,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
230604
230608
|
success: process.env[`${prefix}SUCCESS`],
|
|
230605
230609
|
info: process.env[`${prefix}INFO`],
|
|
230606
230610
|
warning: process.env[`${prefix}WARNING`],
|
|
230607
|
-
|
|
230611
|
+
danger: process.env[`${prefix}DANGER`],
|
|
230608
230612
|
fatal: process.env[`${prefix}FATAL`],
|
|
230609
230613
|
positive: process.env[`${prefix}POSITIVE`],
|
|
230610
230614
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -230824,8 +230828,8 @@ var setSingleThemeColorConfigEnv = (prefix, config2) => {
|
|
|
230824
230828
|
if (config2.warning) {
|
|
230825
230829
|
process.env[`${prefix}WARNING`] = config2.warning;
|
|
230826
230830
|
}
|
|
230827
|
-
if (config2.
|
|
230828
|
-
process.env[`${prefix}
|
|
230831
|
+
if (config2.danger) {
|
|
230832
|
+
process.env[`${prefix}DANGER`] = config2.danger;
|
|
230829
230833
|
}
|
|
230830
230834
|
if (config2.fatal) {
|
|
230831
230835
|
process.env[`${prefix}FATAL`] = config2.fatal;
|
|
@@ -230874,8 +230878,8 @@ var setBaseThemeColorConfigEnv = (prefix, config2) => {
|
|
|
230874
230878
|
if (config2.warning) {
|
|
230875
230879
|
process.env[`${prefix}WARNING`] = config2.warning;
|
|
230876
230880
|
}
|
|
230877
|
-
if (config2.
|
|
230878
|
-
process.env[`${prefix}
|
|
230881
|
+
if (config2.danger) {
|
|
230882
|
+
process.env[`${prefix}DANGER`] = config2.danger;
|
|
230879
230883
|
}
|
|
230880
230884
|
if (config2.fatal) {
|
|
230881
230885
|
process.env[`${prefix}FATAL`] = config2.fatal;
|
package/bin/post-checkout.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/post-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
|
};
|
|
@@ -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;
|