@storm-software/git-tools 2.34.1 → 2.35.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 +9 -0
- package/README.md +1 -1
- package/bin/git.js +38 -12
- package/bin/post-checkout.js +36 -10
- package/bin/post-commit.js +36 -10
- package/bin/post-merge.js +36 -10
- package/bin/pre-commit.js +36 -10
- package/bin/pre-install.js +36 -10
- package/bin/pre-push.js +36 -10
- package/bin/prepare.js +36 -10
- package/bin/version-warning.js +36 -10
- package/lefthook/lefthook.yml +10 -5
- package/package.json +1 -1
- package/src/cli/index.js +3955 -3943
- package/src/commit/index.js +16 -4
- package/src/commitizen/index.js +16 -4
- package/src/index.js +3955 -3943
- package/src/release/changelog-renderer.js +4 -4
- package/src/release/index.js +18 -6
package/bin/version-warning.js
CHANGED
|
@@ -63041,8 +63041,8 @@ var correctPaths = (path5) => {
|
|
|
63041
63041
|
if (!path5) {
|
|
63042
63042
|
return "";
|
|
63043
63043
|
}
|
|
63044
|
-
if (path5
|
|
63045
|
-
|
|
63044
|
+
if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
|
|
63045
|
+
path5 = `C:${path5}`;
|
|
63046
63046
|
}
|
|
63047
63047
|
return path5.replaceAll("\\", "/");
|
|
63048
63048
|
};
|
|
@@ -63124,10 +63124,6 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
63124
63124
|
return result;
|
|
63125
63125
|
}
|
|
63126
63126
|
|
|
63127
|
-
// packages/config-tools/src/utilities/get-default-config.ts
|
|
63128
|
-
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
63129
|
-
import { join as join3 } from "node:path";
|
|
63130
|
-
|
|
63131
63127
|
// node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
|
|
63132
63128
|
var util;
|
|
63133
63129
|
(function(util2) {
|
|
@@ -67043,9 +67039,11 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
67043
67039
|
});
|
|
67044
67040
|
|
|
67045
67041
|
// packages/config/src/schema.ts
|
|
67046
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
67042
|
+
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0D1017").describe("The dark background color of the workspace");
|
|
67047
67043
|
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");
|
|
67048
67044
|
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");
|
|
67045
|
+
var Brand2ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7434DB").describe("The secondary brand specific color of the workspace");
|
|
67046
|
+
var Brand3ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#00C2CE").describe("The tertiary brand specific color of the workspace");
|
|
67049
67047
|
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");
|
|
67050
67048
|
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");
|
|
67051
67049
|
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
|
|
@@ -67057,6 +67055,8 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
67057
67055
|
foreground: LightColorSchema,
|
|
67058
67056
|
background: DarkColorSchema,
|
|
67059
67057
|
brand: BrandColorSchema,
|
|
67058
|
+
brand2: Brand2ColorSchema,
|
|
67059
|
+
brand3: Brand3ColorSchema,
|
|
67060
67060
|
accent: AccentColorSchema,
|
|
67061
67061
|
help: HelpColorSchema,
|
|
67062
67062
|
success: SuccessColorSchema,
|
|
@@ -67069,6 +67069,8 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
67069
67069
|
foreground: DarkColorSchema,
|
|
67070
67070
|
background: LightColorSchema,
|
|
67071
67071
|
brand: BrandColorSchema,
|
|
67072
|
+
brand2: Brand2ColorSchema,
|
|
67073
|
+
brand3: Brand3ColorSchema,
|
|
67072
67074
|
accent: AccentColorSchema,
|
|
67073
67075
|
help: HelpColorSchema,
|
|
67074
67076
|
success: SuccessColorSchema,
|
|
@@ -67085,6 +67087,8 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
67085
67087
|
dark: DarkColorSchema,
|
|
67086
67088
|
light: LightColorSchema,
|
|
67087
67089
|
brand: BrandColorSchema,
|
|
67090
|
+
brand2: Brand2ColorSchema,
|
|
67091
|
+
brand3: Brand3ColorSchema,
|
|
67088
67092
|
accent: AccentColorSchema,
|
|
67089
67093
|
help: HelpColorSchema,
|
|
67090
67094
|
success: SuccessColorSchema,
|
|
@@ -67187,11 +67191,15 @@ var COLOR_KEYS = [
|
|
|
67187
67191
|
];
|
|
67188
67192
|
|
|
67189
67193
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
67194
|
+
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
67195
|
+
import { join as join3 } from "node:path";
|
|
67190
67196
|
var DEFAULT_COLOR_CONFIG = {
|
|
67191
67197
|
light: {
|
|
67192
67198
|
background: "#f4f4f5",
|
|
67193
67199
|
foreground: "#1d232a",
|
|
67194
67200
|
brand: "#1fb2a6",
|
|
67201
|
+
brand2: "#7434DB",
|
|
67202
|
+
brand3: "#00C2CE",
|
|
67195
67203
|
help: "#8250df",
|
|
67196
67204
|
success: "#087f5b",
|
|
67197
67205
|
info: "#0550ae",
|
|
@@ -67199,9 +67207,11 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
67199
67207
|
error: "#a40e26"
|
|
67200
67208
|
},
|
|
67201
67209
|
dark: {
|
|
67202
|
-
background: "#
|
|
67210
|
+
background: "#0D1017",
|
|
67203
67211
|
foreground: "#fcfcf5",
|
|
67204
67212
|
brand: "#1fb2a6",
|
|
67213
|
+
brand2: "#7434DB",
|
|
67214
|
+
brand3: "#00C2CE",
|
|
67205
67215
|
help: "#8256D0",
|
|
67206
67216
|
success: "#087f5b",
|
|
67207
67217
|
info: "#316DCA",
|
|
@@ -67407,7 +67417,7 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
67407
67417
|
console.error(
|
|
67408
67418
|
`
|
|
67409
67419
|
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.error ?? "#f85149").whiteBright(
|
|
67410
|
-
" \u2718
|
|
67420
|
+
" \u2718 Error "
|
|
67411
67421
|
)} ${_chalk.hex(colors.error ?? "#f85149")(formatLogMessage(message))}
|
|
67412
67422
|
`
|
|
67413
67423
|
);
|
|
@@ -67417,7 +67427,7 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.er
|
|
|
67417
67427
|
return (message) => {
|
|
67418
67428
|
console.warn(
|
|
67419
67429
|
`
|
|
67420
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">
|
|
67430
|
+
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
67421
67431
|
" \u26A0 Warn "
|
|
67422
67432
|
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
67423
67433
|
`
|
|
@@ -67678,6 +67688,8 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
67678
67688
|
dark: process.env[`${prefix}DARK`],
|
|
67679
67689
|
light: process.env[`${prefix}LIGHT`],
|
|
67680
67690
|
brand: process.env[`${prefix}BRAND`],
|
|
67691
|
+
brand2: process.env[`${prefix}BRAND2`],
|
|
67692
|
+
brand3: process.env[`${prefix}BRAND3`],
|
|
67681
67693
|
accent: process.env[`${prefix}ACCENT`],
|
|
67682
67694
|
help: process.env[`${prefix}HELP`],
|
|
67683
67695
|
success: process.env[`${prefix}SUCCESS`],
|
|
@@ -67700,6 +67712,8 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
67700
67712
|
foreground: process.env[`${prefix}FOREGROUND`],
|
|
67701
67713
|
background: process.env[`${prefix}BACKGROUND`],
|
|
67702
67714
|
brand: process.env[`${prefix}BRAND`],
|
|
67715
|
+
brand2: process.env[`${prefix}BRAND2`],
|
|
67716
|
+
brand3: process.env[`${prefix}BRAND3`],
|
|
67703
67717
|
accent: process.env[`${prefix}ACCENT`],
|
|
67704
67718
|
help: process.env[`${prefix}HELP`],
|
|
67705
67719
|
success: process.env[`${prefix}SUCCESS`],
|
|
@@ -67896,6 +67910,12 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
67896
67910
|
if (config.brand) {
|
|
67897
67911
|
process.env[`${prefix}BRAND`] = config.brand;
|
|
67898
67912
|
}
|
|
67913
|
+
if (config.brand2) {
|
|
67914
|
+
process.env[`${prefix}BRAND2`] = config.brand2;
|
|
67915
|
+
}
|
|
67916
|
+
if (config.brand3) {
|
|
67917
|
+
process.env[`${prefix}BRAND3`] = config.brand3;
|
|
67918
|
+
}
|
|
67899
67919
|
if (config.accent) {
|
|
67900
67920
|
process.env[`${prefix}ACCENT`] = config.accent;
|
|
67901
67921
|
}
|
|
@@ -67934,6 +67954,12 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
67934
67954
|
if (config.brand) {
|
|
67935
67955
|
process.env[`${prefix}BRAND`] = config.brand;
|
|
67936
67956
|
}
|
|
67957
|
+
if (config.brand2) {
|
|
67958
|
+
process.env[`${prefix}BRAND2`] = config.brand2;
|
|
67959
|
+
}
|
|
67960
|
+
if (config.brand3) {
|
|
67961
|
+
process.env[`${prefix}BRAND3`] = config.brand3;
|
|
67962
|
+
}
|
|
67937
67963
|
if (config.accent) {
|
|
67938
67964
|
process.env[`${prefix}ACCENT`] = config.accent;
|
|
67939
67965
|
}
|
package/lefthook/lefthook.yml
CHANGED
|
@@ -46,15 +46,18 @@ pre-commit:
|
|
|
46
46
|
stage_fixed: true
|
|
47
47
|
lint-toml:
|
|
48
48
|
glob: "**/*.toml"
|
|
49
|
-
run:
|
|
49
|
+
run:
|
|
50
|
+
'pnpm exec taplo format --check
|
|
50
51
|
--config="./node_modules/@storm-software/linting-tools/taplo/.taplo.toml"'
|
|
51
52
|
lint-filename:
|
|
52
53
|
glob: "**/*.*"
|
|
53
|
-
run:
|
|
54
|
+
run:
|
|
55
|
+
'pnpm exec ls-lint
|
|
54
56
|
--config="@storm-software/linting-tools/ls-lint/ls-lint.yml"'
|
|
55
57
|
readme-gen:
|
|
56
58
|
glob: "**/{README.md,package.json,executors.json,generators.json}"
|
|
57
|
-
run:
|
|
59
|
+
run:
|
|
60
|
+
'pnpm exec storm-git readme-gen --templates="./tools/readme-templates"'
|
|
58
61
|
stage_fixed: true
|
|
59
62
|
format:
|
|
60
63
|
glob: "**/*.*"
|
|
@@ -62,7 +65,8 @@ pre-commit:
|
|
|
62
65
|
stage_fixed: true
|
|
63
66
|
format-toml:
|
|
64
67
|
glob: "**/*.toml"
|
|
65
|
-
run:
|
|
68
|
+
run:
|
|
69
|
+
'pnpm exec taplo format
|
|
66
70
|
--config="@storm-software/linting-tools/taplo/.taplo.toml" && git
|
|
67
71
|
update-index'
|
|
68
72
|
postbuild:
|
|
@@ -73,7 +77,8 @@ pre-commit:
|
|
|
73
77
|
commit-msg:
|
|
74
78
|
commands:
|
|
75
79
|
validate:
|
|
76
|
-
run:
|
|
80
|
+
run:
|
|
81
|
+
'pnpm exec commitlint
|
|
77
82
|
--config="./node_modules/@storm-software/git-tools/commitlint.config.cjs"
|
|
78
83
|
--edit {1}'
|
|
79
84
|
|