@storm-software/git-tools 2.124.62 → 2.124.64
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/bin/{chunk-EGBAPP6Q.cjs → chunk-GU6JHGME.cjs} +56 -4
- package/bin/chunk-GU6JHGME.cjs.map +1 -0
- package/bin/{chunk-X6QPG2T4.js → chunk-SAG2FKFE.js} +56 -5
- package/bin/chunk-SAG2FKFE.js.map +1 -0
- package/bin/git.cjs +82 -79
- package/bin/git.cjs.map +1 -1
- package/bin/git.js +10 -7
- package/bin/git.js.map +1 -1
- package/bin/post-checkout.cjs +9 -9
- package/bin/post-checkout.js +1 -1
- package/bin/post-commit.cjs +9 -9
- package/bin/post-commit.js +1 -1
- package/bin/post-merge.cjs +9 -9
- package/bin/post-merge.js +1 -1
- package/bin/pre-commit.cjs +9 -9
- package/bin/pre-commit.js +1 -1
- package/bin/pre-install.cjs +9 -9
- package/bin/pre-install.js +1 -1
- package/bin/pre-push.cjs +13 -13
- package/bin/pre-push.js +1 -1
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +1 -1
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/dist/{chunk-NKCUBWZU.cjs → chunk-7W6KKQAE.cjs} +1 -1
- package/dist/{chunk-RVPCQYBR.js → chunk-LCKUTJW7.js} +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.js +1 -1
- package/dist/release/config.cjs +8 -8
- package/dist/release/config.js +1 -1
- package/package.json +5 -5
- package/bin/chunk-EGBAPP6Q.cjs.map +0 -1
- package/bin/chunk-X6QPG2T4.js.map +0 -1
|
@@ -37,15 +37,65 @@ var LogLevelLabel = {
|
|
|
37
37
|
|
|
38
38
|
// ../config-tools/src/utilities/colors.ts
|
|
39
39
|
var DEFAULT_COLOR_CONFIG = {
|
|
40
|
+
light: {
|
|
41
|
+
background: "#fafafa",
|
|
42
|
+
foreground: "#1d1e22",
|
|
43
|
+
brand: "#1fb2a6",
|
|
44
|
+
alternate: "#db2777",
|
|
45
|
+
help: "#5C4EE5",
|
|
46
|
+
success: "#087f5b",
|
|
47
|
+
info: "#0550ae",
|
|
48
|
+
debug: "#8afafc",
|
|
49
|
+
warning: "#e3b341",
|
|
50
|
+
danger: "#D8314A",
|
|
51
|
+
fatal: "#51070f",
|
|
52
|
+
link: "#3fa6ff",
|
|
53
|
+
positive: "#22c55e",
|
|
54
|
+
negative: "#dc2626",
|
|
55
|
+
gradient: ["#1fb2a6", "#db2777", "#5C4EE5"]
|
|
56
|
+
},
|
|
40
57
|
dark: {
|
|
58
|
+
background: "#1d1e22",
|
|
59
|
+
foreground: "#cbd5e1",
|
|
41
60
|
brand: "#2dd4bf",
|
|
61
|
+
alternate: "#db2777",
|
|
62
|
+
help: "#818cf8",
|
|
42
63
|
success: "#10b981",
|
|
43
64
|
info: "#58a6ff",
|
|
44
65
|
debug: "#8afafc",
|
|
45
66
|
warning: "#f3d371",
|
|
46
67
|
danger: "#D8314A",
|
|
47
|
-
fatal: "#a40e26"
|
|
68
|
+
fatal: "#a40e26",
|
|
69
|
+
link: "#3fa6ff",
|
|
70
|
+
positive: "#22c55e",
|
|
71
|
+
negative: "#dc2626",
|
|
72
|
+
gradient: ["#1fb2a6", "#db2777", "#818cf8"]
|
|
73
|
+
}
|
|
48
74
|
};
|
|
75
|
+
function getColors(config2) {
|
|
76
|
+
if (!config2?.colors || typeof config2.colors !== "object" || !config2.colors["dark"] && (!config2.colors["base"] || typeof config2.colors !== "object" || !config2.colors["base"]?.["dark"])) {
|
|
77
|
+
return DEFAULT_COLOR_CONFIG;
|
|
78
|
+
}
|
|
79
|
+
if (config2.colors["base"]) {
|
|
80
|
+
if (typeof config2.colors["base"]["dark"] === "object") {
|
|
81
|
+
return config2.colors["base"]["dark"];
|
|
82
|
+
} else if (config2.colors["base"]["dark"] === "string") {
|
|
83
|
+
return config2.colors["base"];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (typeof config2.colors["dark"] === "object") {
|
|
87
|
+
return config2.colors["dark"];
|
|
88
|
+
}
|
|
89
|
+
return config2.colors ?? DEFAULT_COLOR_CONFIG;
|
|
90
|
+
}
|
|
91
|
+
function getColor(key, config2) {
|
|
92
|
+
const colors = getColors(config2);
|
|
93
|
+
const result = (typeof colors["dark"] === "object" ? colors["dark"][key] : colors[key]) || DEFAULT_COLOR_CONFIG["dark"][key] || DEFAULT_COLOR_CONFIG[key];
|
|
94
|
+
if (result) {
|
|
95
|
+
return result;
|
|
96
|
+
}
|
|
97
|
+
return getColor("brand", config2);
|
|
98
|
+
}
|
|
49
99
|
var chalkDefault = {
|
|
50
100
|
hex: (_) => (message) => message,
|
|
51
101
|
bgHex: (_) => ({
|
|
@@ -92,7 +142,7 @@ function isUnicodeSupported() {
|
|
|
92
142
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
93
143
|
var CONSOLE_ICONS = {
|
|
94
144
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
95
|
-
[LogLevelLabel.FATAL]: useIcon("\
|
|
145
|
+
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
96
146
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
97
147
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
98
148
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
@@ -301,6 +351,7 @@ var _isFunction = (value) => {
|
|
|
301
351
|
return false;
|
|
302
352
|
}
|
|
303
353
|
};
|
|
354
|
+
var brandIcon = (config2 = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config2))("\u{1F5F2}");
|
|
304
355
|
|
|
305
356
|
// ../config-tools/src/utilities/process-handler.ts
|
|
306
357
|
var exitWithError = (config2) => {
|
|
@@ -3819,6 +3870,6 @@ function getWorkspaceConfig(skipLogs = true, options = {}) {
|
|
|
3819
3870
|
return getConfig(workspaceRoot, skipLogs);
|
|
3820
3871
|
}
|
|
3821
3872
|
|
|
3822
|
-
export { STORM_DEFAULT_RELEASE_BANNER, defu, exitWithError, exitWithSuccess, findWorkspaceRootSafe, getConfig, getWorkspaceConfig, handleProcess, isVerbose, joinPaths, writeDebug, writeError, writeFatal, writeInfo, writeSuccess, writeTrace, writeWarning };
|
|
3823
|
-
//# sourceMappingURL=chunk-
|
|
3824
|
-
//# sourceMappingURL=chunk-
|
|
3873
|
+
export { STORM_DEFAULT_RELEASE_BANNER, brandIcon, defu, exitWithError, exitWithSuccess, findWorkspaceRootSafe, getConfig, getWorkspaceConfig, handleProcess, isVerbose, joinPaths, writeDebug, writeError, writeFatal, writeInfo, writeSuccess, writeTrace, writeWarning };
|
|
3874
|
+
//# sourceMappingURL=chunk-SAG2FKFE.js.map
|
|
3875
|
+
//# sourceMappingURL=chunk-SAG2FKFE.js.map
|