@storm-software/git-tools 2.129.4 → 2.129.5

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.
Files changed (76) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-N7J3ORRT.js → chunk-52H32YOS.js} +3 -3
  3. package/bin/{chunk-N7J3ORRT.js.map → chunk-52H32YOS.js.map} +1 -1
  4. package/bin/{chunk-Z64XNZ43.cjs → chunk-6W6FBNEJ.cjs} +4 -4
  5. package/bin/{chunk-Z64XNZ43.cjs.map → chunk-6W6FBNEJ.cjs.map} +1 -1
  6. package/bin/{chunk-ZW2KYP2Z.cjs → chunk-A3GMURSK.cjs} +4 -4
  7. package/bin/{chunk-ZW2KYP2Z.cjs.map → chunk-A3GMURSK.cjs.map} +1 -1
  8. package/bin/{chunk-IA2Z3BAB.cjs → chunk-DZDXQHJV.cjs} +5 -5
  9. package/bin/{chunk-IA2Z3BAB.cjs.map → chunk-DZDXQHJV.cjs.map} +1 -1
  10. package/bin/{chunk-6FITE6HP.js → chunk-EOTZWMWQ.js} +3 -3
  11. package/bin/{chunk-6FITE6HP.js.map → chunk-EOTZWMWQ.js.map} +1 -1
  12. package/bin/{chunk-3IBASKZ6.cjs → chunk-H2JIDXRZ.cjs} +4 -4
  13. package/bin/{chunk-3IBASKZ6.cjs.map → chunk-H2JIDXRZ.cjs.map} +1 -1
  14. package/bin/{chunk-RZZ5UCVV.js → chunk-LVSMYJQM.js} +3 -3
  15. package/bin/{chunk-RZZ5UCVV.js.map → chunk-LVSMYJQM.js.map} +1 -1
  16. package/bin/{chunk-EI723ABQ.cjs → chunk-MVQI65TW.cjs} +6 -6
  17. package/bin/{chunk-EI723ABQ.cjs.map → chunk-MVQI65TW.cjs.map} +1 -1
  18. package/bin/{chunk-S7Z6YPPG.js → chunk-N2HECVLR.js} +3 -3
  19. package/bin/{chunk-S7Z6YPPG.js.map → chunk-N2HECVLR.js.map} +1 -1
  20. package/bin/{chunk-S3E6UR4Y.js → chunk-NOO7FRF4.js} +42 -2
  21. package/bin/chunk-NOO7FRF4.js.map +1 -0
  22. package/bin/{chunk-ROGUZ46T.js → chunk-PFSAEKCF.js} +3 -3
  23. package/bin/{chunk-ROGUZ46T.js.map → chunk-PFSAEKCF.js.map} +1 -1
  24. package/bin/{chunk-DFXXNV3C.cjs → chunk-QDTVI7WT.cjs} +42 -2
  25. package/bin/chunk-QDTVI7WT.cjs.map +1 -0
  26. package/bin/{chunk-XHWHVOBP.cjs → chunk-RMBT73YE.cjs} +4 -4
  27. package/bin/{chunk-XHWHVOBP.cjs.map → chunk-RMBT73YE.cjs.map} +1 -1
  28. package/bin/{chunk-C7APS633.cjs → chunk-S32TDLJX.cjs} +4 -4
  29. package/bin/{chunk-C7APS633.cjs.map → chunk-S32TDLJX.cjs.map} +1 -1
  30. package/bin/{chunk-LHPUN2YZ.js → chunk-TWP7LTYJ.js} +3 -3
  31. package/bin/{chunk-LHPUN2YZ.js.map → chunk-TWP7LTYJ.js.map} +1 -1
  32. package/bin/{chunk-JE32WMBP.js → chunk-WCDB3OLV.js} +3 -3
  33. package/bin/{chunk-JE32WMBP.js.map → chunk-WCDB3OLV.js.map} +1 -1
  34. package/bin/git.cjs +118 -118
  35. package/bin/git.js +8 -8
  36. package/bin/post-checkout.cjs +7 -7
  37. package/bin/post-checkout.js +2 -2
  38. package/bin/post-commit.cjs +7 -7
  39. package/bin/post-commit.js +2 -2
  40. package/bin/post-merge.cjs +7 -7
  41. package/bin/post-merge.js +2 -2
  42. package/bin/pre-commit.cjs +7 -7
  43. package/bin/pre-commit.js +2 -2
  44. package/bin/pre-install.cjs +7 -7
  45. package/bin/pre-install.js +2 -2
  46. package/bin/pre-push.cjs +7 -7
  47. package/bin/pre-push.js +2 -2
  48. package/bin/prepare.cjs +7 -7
  49. package/bin/prepare.js +2 -2
  50. package/bin/version-warning.cjs +5 -5
  51. package/bin/version-warning.js +1 -1
  52. package/dist/{chunk-BUQYMEBK.cjs → chunk-3OFWCM5Y.cjs} +2 -2
  53. package/dist/{chunk-RQ67RJVN.cjs → chunk-4FUTKXP2.cjs} +27 -10
  54. package/dist/{chunk-GTOCMU46.cjs → chunk-4PWPCASG.cjs} +4 -4
  55. package/dist/{chunk-ZKDVZXHI.js → chunk-5CRI6NO7.js} +1 -1
  56. package/dist/{chunk-DMVL4OYZ.cjs → chunk-6QAR5LMB.cjs} +2 -2
  57. package/dist/{chunk-UQMGLURT.js → chunk-AC5ULQLU.js} +1 -1
  58. package/dist/{chunk-HVTQXN3A.js → chunk-CD4EKGDM.js} +18 -1
  59. package/dist/{chunk-LSTKPCAN.cjs → chunk-D4WHHW75.cjs} +2 -2
  60. package/dist/{chunk-SIFTTG22.cjs → chunk-EV4B3GJD.cjs} +23 -1
  61. package/dist/{chunk-F2HQMRJH.cjs → chunk-GF4ZXZCS.cjs} +3 -3
  62. package/dist/{chunk-5DVCH44C.cjs → chunk-OYVBGDDT.cjs} +2 -2
  63. package/dist/{chunk-YUE6ZNKC.js → chunk-P5NAAC4N.js} +1 -1
  64. package/dist/{chunk-X7F62ZNF.js → chunk-TMHJ5TB2.js} +23 -1
  65. package/dist/{chunk-AU2RMJUK.js → chunk-U4ITJVBF.js} +1 -1
  66. package/dist/{chunk-RK75BACO.js → chunk-VFGEAZEU.js} +1 -1
  67. package/dist/{chunk-Z4CPTYLS.cjs → chunk-VQV7XNP4.cjs} +2 -2
  68. package/dist/{chunk-2NF67ZEY.js → chunk-WG652PIV.js} +1 -1
  69. package/dist/{chunk-C6MBULOZ.js → chunk-YLZ6V3A5.js} +1 -1
  70. package/dist/index.cjs +23 -23
  71. package/dist/index.js +9 -9
  72. package/dist/release/config.cjs +9 -9
  73. package/dist/release/config.js +2 -2
  74. package/package.json +5 -5
  75. package/bin/chunk-DFXXNV3C.cjs.map +0 -1
  76. package/bin/chunk-S3E6UR4Y.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { checkPackageVersion } from './chunk-HBLWPOJV.js';
2
2
  import { run } from './chunk-G3YPGVPS.js';
3
- import { writeInfo } from './chunk-S3E6UR4Y.js';
3
+ import { writeInfo } from './chunk-NOO7FRF4.js';
4
4
 
5
5
  // src/hooks/post-checkout.ts
6
6
  async function postCheckoutHook(config, files) {
@@ -18,5 +18,5 @@ Error: ${error?.message}`
18
18
  }
19
19
 
20
20
  export { postCheckoutHook };
21
- //# sourceMappingURL=chunk-ROGUZ46T.js.map
22
- //# sourceMappingURL=chunk-ROGUZ46T.js.map
21
+ //# sourceMappingURL=chunk-PFSAEKCF.js.map
22
+ //# sourceMappingURL=chunk-PFSAEKCF.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/post-checkout.ts"],"names":[],"mappings":";;;;;AAMA,eAAsB,gBAAA,CACpB,QACA,KAAA,EACA;AACA,EAAA,SAAA,CAAU,iCAAiC,MAAM,CAAA;AACjD,EAAA,mBAAA,CAAoB,KAAK,CAAA;AAEzB,EAAA,IAAI;AACF,IAAA,GAAA,CAAI,QAAQ,iBAAiB,CAAA;AAAA,EAC/B,SAAS,KAAA,EAAO;AACd,IAAA,MAAM,IAAI,KAAA;AAAA,MACR,CAAA;AAAA,OAAA,EACG,OAAiB,OACpB,CAAA;AAAA,KACF;AAAA,EACF;AAEA,EAAA,GAAA,CAAI,QAAQ,uBAAuB,CAAA;AACrC","file":"chunk-ROGUZ46T.js","sourcesContent":["#!/usr/bin/env node\n\nimport { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { run, writeInfo } from \"@storm-software/config-tools\";\nimport { checkPackageVersion } from \"../utilities/check-package-version\";\n\nexport async function postCheckoutHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running post-checkout hook...\", config);\n checkPackageVersion(files);\n\n try {\n run(config, \"git-lfs version\");\n } catch (error) {\n throw new Error(\n `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.\\nError: ${\n (error as Error)?.message\n }`\n );\n }\n\n run(config, \"git lfs post-checkout\");\n}\n"]}
1
+ {"version":3,"sources":["../../src/hooks/post-checkout.ts"],"names":[],"mappings":";;;;;AAMA,eAAsB,gBAAA,CACpB,QACA,KAAA,EACA;AACA,EAAA,SAAA,CAAU,iCAAiC,MAAM,CAAA;AACjD,EAAA,mBAAA,CAAoB,KAAK,CAAA;AAEzB,EAAA,IAAI;AACF,IAAA,GAAA,CAAI,QAAQ,iBAAiB,CAAA;AAAA,EAC/B,SAAS,KAAA,EAAO;AACd,IAAA,MAAM,IAAI,KAAA;AAAA,MACR,CAAA;AAAA,OAAA,EACG,OAAiB,OACpB,CAAA;AAAA,KACF;AAAA,EACF;AAEA,EAAA,GAAA,CAAI,QAAQ,uBAAuB,CAAA;AACrC","file":"chunk-PFSAEKCF.js","sourcesContent":["#!/usr/bin/env node\n\nimport { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { run, writeInfo } from \"@storm-software/config-tools\";\nimport { checkPackageVersion } from \"../utilities/check-package-version\";\n\nexport async function postCheckoutHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running post-checkout hook...\", config);\n checkPackageVersion(files);\n\n try {\n run(config, \"git-lfs version\");\n } catch (error) {\n throw new Error(\n `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.\\nError: ${\n (error as Error)?.message\n }`\n );\n }\n\n run(config, \"git lfs post-checkout\");\n}\n"]}
@@ -21,6 +21,7 @@ var LogLevel = {
21
21
  WARN: 30,
22
22
  SUCCESS: 35,
23
23
  INFO: 40,
24
+ PERFORMANCE: 50,
24
25
  DEBUG: 60,
25
26
  TRACE: 70,
26
27
  ALL: 100
@@ -32,6 +33,7 @@ var LogLevelLabel = {
32
33
  WARN: "warn",
33
34
  SUCCESS: "success",
34
35
  INFO: "info",
36
+ PERFORMANCE: "performance",
35
37
  DEBUG: "debug",
36
38
  TRACE: "trace",
37
39
  ALL: "all"
@@ -51,6 +53,7 @@ var DEFAULT_COLOR_CONFIG = {
51
53
  warning: "#e3b341",
52
54
  danger: "#D8314A",
53
55
  fatal: "#51070f",
56
+ performance: "#83ff83",
54
57
  link: "#3fa6ff",
55
58
  positive: "#22c55e",
56
59
  negative: "#dc2626",
@@ -68,6 +71,7 @@ var DEFAULT_COLOR_CONFIG = {
68
71
  warning: "#f3d371",
69
72
  danger: "#D8314A",
70
73
  fatal: "#a40e26",
74
+ performance: "#00ff00",
71
75
  link: "#3fa6ff",
72
76
  positive: "#22c55e",
73
77
  negative: "#dc2626",
@@ -147,6 +151,7 @@ var CONSOLE_ICONS = {
147
151
  [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
148
152
  [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
149
153
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
154
+ [LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
150
155
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
151
156
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
152
157
  [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
@@ -167,6 +172,8 @@ var getLogLevel = (label) => {
167
172
  return LogLevel.TRACE;
168
173
  case "debug":
169
174
  return LogLevel.DEBUG;
175
+ case "performance":
176
+ return LogLevel.PERFORMANCE;
170
177
  case "info":
171
178
  return LogLevel.INFO;
172
179
  case "warn":
@@ -191,6 +198,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
191
198
  if (logLevel >= LogLevel.DEBUG) {
192
199
  return LogLevelLabel.DEBUG;
193
200
  }
201
+ if (logLevel >= LogLevel.PERFORMANCE) {
202
+ return LogLevelLabel.PERFORMANCE;
203
+ }
194
204
  if (logLevel >= LogLevel.INFO) {
195
205
  return LogLevelLabel.INFO;
196
206
  }
@@ -282,6 +292,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
282
292
  )(
283
293
  `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
284
294
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
295
+ `
296
+ );
297
+ };
298
+ }
299
+ if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
300
+ return (message) => {
301
+ console.debug(
302
+ `
303
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
304
+ colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
305
+ )(
306
+ `[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
307
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
285
308
  `
286
309
  );
287
310
  };
@@ -1805,6 +1828,10 @@ var fatalColorSchema = optional(colorSchema);
1805
1828
  schemaRegistry.add(fatalColorSchema, {
1806
1829
  description: "The fatal color of the workspace"
1807
1830
  });
1831
+ var performanceColorSchema = _default(colorSchema, "#00ff00");
1832
+ schemaRegistry.add(performanceColorSchema, {
1833
+ description: "The performance color of the workspace"
1834
+ });
1808
1835
  var positiveColorSchema = _default(colorSchema, "#4ade80");
1809
1836
  schemaRegistry.add(positiveColorSchema, {
1810
1837
  description: "The positive number color of the workspace"
@@ -1831,6 +1858,7 @@ var darkColorsSchema = object({
1831
1858
  warning: warningColorSchema,
1832
1859
  danger: dangerColorSchema,
1833
1860
  fatal: fatalColorSchema,
1861
+ performance: performanceColorSchema,
1834
1862
  positive: positiveColorSchema,
1835
1863
  negative: negativeColorSchema,
1836
1864
  gradient: gradientStopsSchema
@@ -1849,6 +1877,7 @@ var lightColorsSchema = object({
1849
1877
  warning: warningColorSchema,
1850
1878
  danger: dangerColorSchema,
1851
1879
  fatal: fatalColorSchema,
1880
+ performance: performanceColorSchema,
1852
1881
  positive: positiveColorSchema,
1853
1882
  negative: negativeColorSchema,
1854
1883
  gradient: gradientStopsSchema
@@ -1871,6 +1900,7 @@ var singleColorsSchema = object({
1871
1900
  warning: warningColorSchema,
1872
1901
  danger: dangerColorSchema,
1873
1902
  fatal: fatalColorSchema,
1903
+ performance: performanceColorSchema,
1874
1904
  positive: positiveColorSchema,
1875
1905
  negative: negativeColorSchema,
1876
1906
  gradient: gradientStopsSchema
@@ -2238,6 +2268,7 @@ var logLevelSchema = _default(
2238
2268
  "warn",
2239
2269
  "success",
2240
2270
  "info",
2271
+ "performance",
2241
2272
  "debug",
2242
2273
  "trace",
2243
2274
  "all"
@@ -2586,6 +2617,7 @@ var COLOR_KEYS = [
2586
2617
  "warning",
2587
2618
  "danger",
2588
2619
  "fatal",
2620
+ "performance",
2589
2621
  "positive",
2590
2622
  "negative"
2591
2623
  ];
@@ -2903,6 +2935,7 @@ var getSingleThemeColorsEnv = (prefix) => {
2903
2935
  warning: process.env[`${prefix}WARNING`],
2904
2936
  danger: process.env[`${prefix}DANGER`],
2905
2937
  fatal: process.env[`${prefix}FATAL`],
2938
+ performance: process.env[`${prefix}PERFORMANCE`],
2906
2939
  positive: process.env[`${prefix}POSITIVE`],
2907
2940
  negative: process.env[`${prefix}NEGATIVE`],
2908
2941
  gradient
@@ -2942,6 +2975,7 @@ var getBaseThemeColorsEnv = (prefix) => {
2942
2975
  warning: process.env[`${prefix}WARNING`],
2943
2976
  danger: process.env[`${prefix}DANGER`],
2944
2977
  fatal: process.env[`${prefix}FATAL`],
2978
+ performance: process.env[`${prefix}PERFORMANCE`],
2945
2979
  positive: process.env[`${prefix}POSITIVE`],
2946
2980
  negative: process.env[`${prefix}NEGATIVE`],
2947
2981
  gradient
@@ -3252,6 +3286,9 @@ var setSingleThemeColorsEnv = (prefix, config2) => {
3252
3286
  if (config2.fatal) {
3253
3287
  process.env[`${prefix}FATAL`] = config2.fatal;
3254
3288
  }
3289
+ if (config2.performance) {
3290
+ process.env[`${prefix}PERFORMANCE`] = config2.performance;
3291
+ }
3255
3292
  if (config2.positive) {
3256
3293
  process.env[`${prefix}POSITIVE`] = config2.positive;
3257
3294
  }
@@ -3310,6 +3347,9 @@ var setBaseThemeColorsEnv = (prefix, config2) => {
3310
3347
  if (config2.fatal) {
3311
3348
  process.env[`${prefix}FATAL`] = config2.fatal;
3312
3349
  }
3350
+ if (config2.performance) {
3351
+ process.env[`${prefix}PERFORMANCE`] = config2.performance;
3352
+ }
3313
3353
  if (config2.positive) {
3314
3354
  process.env[`${prefix}POSITIVE`] = config2.positive;
3315
3355
  }
@@ -3426,5 +3466,5 @@ exports.writeInfo = writeInfo;
3426
3466
  exports.writeSuccess = writeSuccess;
3427
3467
  exports.writeTrace = writeTrace;
3428
3468
  exports.writeWarning = writeWarning;
3429
- //# sourceMappingURL=chunk-DFXXNV3C.cjs.map
3430
- //# sourceMappingURL=chunk-DFXXNV3C.cjs.map
3469
+ //# sourceMappingURL=chunk-QDTVI7WT.cjs.map
3470
+ //# sourceMappingURL=chunk-QDTVI7WT.cjs.map