@storm-software/git-tools 2.123.16 → 2.123.18

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 (82) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-SWXHQXUT.cjs → chunk-AU5PZKTN.cjs} +2 -0
  3. package/bin/chunk-AU5PZKTN.cjs.map +1 -0
  4. package/bin/{chunk-G3JMIIRF.cjs → chunk-EHPPIARR.cjs} +12 -17
  5. package/bin/chunk-EHPPIARR.cjs.map +1 -0
  6. package/bin/{chunk-L64XVBGM.cjs → chunk-FH5OSXAJ.cjs} +2 -0
  7. package/bin/chunk-FH5OSXAJ.cjs.map +1 -0
  8. package/bin/{chunk-S5PS23TL.js → chunk-G3YPGVPS.js} +2 -0
  9. package/bin/chunk-G3YPGVPS.js.map +1 -0
  10. package/bin/{chunk-AMSZ7DVW.js → chunk-Q3DQKTOI.js} +2 -0
  11. package/bin/chunk-Q3DQKTOI.js.map +1 -0
  12. package/bin/{chunk-K3LWFM6S.js → chunk-VBJB46HW.js} +13 -17
  13. package/bin/chunk-VBJB46HW.js.map +1 -0
  14. package/bin/git.cjs +642 -1563
  15. package/bin/git.cjs.map +1 -0
  16. package/bin/git.js +589 -1510
  17. package/bin/git.js.map +1 -0
  18. package/bin/post-checkout.cjs +16 -14
  19. package/bin/post-checkout.cjs.map +1 -0
  20. package/bin/post-checkout.js +5 -3
  21. package/bin/post-checkout.js.map +1 -0
  22. package/bin/post-commit.cjs +16 -14
  23. package/bin/post-commit.cjs.map +1 -0
  24. package/bin/post-commit.js +5 -3
  25. package/bin/post-commit.js.map +1 -0
  26. package/bin/post-merge.cjs +16 -14
  27. package/bin/post-merge.cjs.map +1 -0
  28. package/bin/post-merge.js +5 -3
  29. package/bin/post-merge.js.map +1 -0
  30. package/bin/pre-commit.cjs +14 -12
  31. package/bin/pre-commit.cjs.map +1 -0
  32. package/bin/pre-commit.js +4 -2
  33. package/bin/pre-commit.js.map +1 -0
  34. package/bin/pre-install.cjs +13 -11
  35. package/bin/pre-install.cjs.map +1 -0
  36. package/bin/pre-install.js +4 -2
  37. package/bin/pre-install.js.map +1 -0
  38. package/bin/pre-push.cjs +21 -19
  39. package/bin/pre-push.cjs.map +1 -0
  40. package/bin/pre-push.js +5 -3
  41. package/bin/pre-push.js.map +1 -0
  42. package/bin/prepare.cjs +11 -9
  43. package/bin/prepare.cjs.map +1 -0
  44. package/bin/prepare.js +4 -2
  45. package/bin/prepare.js.map +1 -0
  46. package/bin/version-warning.cjs +9 -7
  47. package/bin/version-warning.cjs.map +1 -0
  48. package/bin/version-warning.js +4 -2
  49. package/bin/version-warning.js.map +1 -0
  50. package/dist/chunk-3GGWHKRP.js +3 -6
  51. package/dist/chunk-4VPJA7YJ.cjs +9 -9
  52. package/dist/chunk-5XU2KBM6.js +1 -3
  53. package/dist/chunk-F7OO6L26.cjs +11 -16
  54. package/dist/chunk-JCEVFJCA.js +4 -14
  55. package/dist/chunk-KZRVQ5RZ.js +3 -11
  56. package/dist/chunk-NY53WLGC.cjs +16 -23
  57. package/dist/chunk-NZHEQPL3.cjs +82 -0
  58. package/dist/chunk-PKEX4GUO.js +75 -0
  59. package/dist/chunk-YBAE6I5L.cjs +3 -3
  60. package/dist/commit/minimal.cjs +11 -3
  61. package/dist/commit/minimal.js +3 -10
  62. package/dist/commit/monorepo.cjs +11 -3
  63. package/dist/commit/monorepo.js +4 -11
  64. package/dist/commitlint/minimal.cjs +4 -5
  65. package/dist/commitlint/minimal.js +3 -6
  66. package/dist/commitlint/monorepo.cjs +4 -5
  67. package/dist/commitlint/monorepo.js +3 -6
  68. package/dist/index.cjs +36 -14
  69. package/dist/index.d.cts +2 -2
  70. package/dist/index.d.ts +2 -2
  71. package/dist/index.js +5 -20
  72. package/dist/release/config.cjs +26 -6
  73. package/dist/release/config.d.cts +21 -242
  74. package/dist/release/config.d.ts +21 -242
  75. package/dist/release/config.js +5 -14
  76. package/dist/types.cjs +7 -3
  77. package/dist/types.d.cts +90 -94
  78. package/dist/types.d.ts +90 -94
  79. package/dist/types.js +1 -6
  80. package/package.json +12 -12
  81. package/dist/chunk-GOKUSEH3.cjs +0 -77
  82. package/dist/chunk-YCEUZFMU.js +0 -77
@@ -22,3 +22,5 @@ var run = (config, command, cwd = config.workspaceRoot ?? process.cwd(), stdio =
22
22
  };
23
23
 
24
24
  exports.run = run;
25
+ //# sourceMappingURL=chunk-FH5OSXAJ.cjs.map
26
+ //# sourceMappingURL=chunk-FH5OSXAJ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../config-tools/src/utilities/run.ts"],"names":["execSync"],"mappings":";;;;;AAGO,IAAM,eAAe,IAAA,GAAO,GAAA;AAmB5B,IAAM,GAAA,GAAM,CACjB,MAAA,EACA,OAAA,EACA,MAAc,MAAA,CAAO,aAAA,IAAiB,OAAA,CAAQ,GAAA,EAAI,EAClD,KAAA,GAAsB,SAAA,EACtB,GAAA,GAAyB,QAAQ,GAAA,KAC9B;AACH,EAAA,OAAOA,uBAAS,OAAA,EAAS;AAAA,IACvB,GAAA;AAAA,IACA,GAAA,EAAK;AAAA,MACH,GAAG,OAAA,CAAQ,GAAA;AAAA,MACX,GAAG,GAAA;AAAA,MACH,QAAA,EAAU,MAAA;AAAA,MACV,WAAA,EAAa;AAAA,KACf;AAAA,IACA,WAAA,EAAa,IAAA;AAAA,IACb,KAAA;AAAA,IACA,SAAA,EAAW,YAAA;AAAA,IACX,UAAA,EAAY,SAAA;AAAA,IACZ,QAAA,EAAU;AAAA,GACX,CAAA;AACH","file":"chunk-FH5OSXAJ.cjs","sourcesContent":["import type { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { exec, execSync } from \"node:child_process\";\n\nexport const LARGE_BUFFER = 1024 * 1000000;\nexport type IOType = \"overlapped\" | \"pipe\" | \"ignore\" | \"inherit\";\nexport type StdioOptions =\n | IOType\n | Array<IOType | \"ipc\" | number | null | undefined>;\n\n/**\n * Run a command line process\n *\n * @remarks\n * A wrapper around `execSync` to run our command line processes\n *\n * @param config - The Storm configuration object\n * @param command - The command to run\n * @param cwd - The current working directory\n * @param stdio - The standard input/output options\n * @param env - The environment variables\n * @returns The result of the command\n */\nexport const run = (\n config: Partial<StormWorkspaceConfig>,\n command: string,\n cwd: string = config.workspaceRoot ?? process.cwd(),\n stdio: StdioOptions = \"inherit\",\n env: NodeJS.ProcessEnv = process.env\n) => {\n return execSync(command, {\n cwd,\n env: {\n ...process.env,\n ...env,\n CLICOLOR: \"true\",\n FORCE_COLOR: \"true\"\n },\n windowsHide: true,\n stdio,\n maxBuffer: LARGE_BUFFER,\n killSignal: \"SIGTERM\",\n encoding: \"utf8\"\n });\n};\n\n/**\n * Run an asynchronous command line process\n *\n * @remarks\n * A wrapper around `exec` to run our command line processes\n *\n * @param config - The Storm configuration object\n * @param command - The command to run\n * @param cwd - The current working directory\n * @param env - The environment variables\n * @returns A promise with the result of the command\n */\nexport const runAsync = (\n config: Partial<StormWorkspaceConfig>,\n command: string,\n cwd: string = config.workspaceRoot ?? process.cwd(),\n env: NodeJS.ProcessEnv = process.env\n) => {\n return exec(command, {\n cwd,\n env: {\n ...process.env,\n ...env,\n CLICOLOR: \"true\",\n FORCE_COLOR: \"true\"\n },\n windowsHide: true,\n maxBuffer: LARGE_BUFFER,\n killSignal: \"SIGTERM\",\n encoding: \"utf8\"\n });\n};\n"]}
@@ -20,3 +20,5 @@ var run = (config, command, cwd = config.workspaceRoot ?? process.cwd(), stdio =
20
20
  };
21
21
 
22
22
  export { run };
23
+ //# sourceMappingURL=chunk-G3YPGVPS.js.map
24
+ //# sourceMappingURL=chunk-G3YPGVPS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../config-tools/src/utilities/run.ts"],"names":[],"mappings":";;;AAGO,IAAM,eAAe,IAAA,GAAO,GAAA;AAmB5B,IAAM,GAAA,GAAM,CACjB,MAAA,EACA,OAAA,EACA,MAAc,MAAA,CAAO,aAAA,IAAiB,OAAA,CAAQ,GAAA,EAAI,EAClD,KAAA,GAAsB,SAAA,EACtB,GAAA,GAAyB,QAAQ,GAAA,KAC9B;AACH,EAAA,OAAO,SAAS,OAAA,EAAS;AAAA,IACvB,GAAA;AAAA,IACA,GAAA,EAAK;AAAA,MACH,GAAG,OAAA,CAAQ,GAAA;AAAA,MACX,GAAG,GAAA;AAAA,MACH,QAAA,EAAU,MAAA;AAAA,MACV,WAAA,EAAa;AAAA,KACf;AAAA,IACA,WAAA,EAAa,IAAA;AAAA,IACb,KAAA;AAAA,IACA,SAAA,EAAW,YAAA;AAAA,IACX,UAAA,EAAY,SAAA;AAAA,IACZ,QAAA,EAAU;AAAA,GACX,CAAA;AACH","file":"chunk-G3YPGVPS.js","sourcesContent":["import type { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { exec, execSync } from \"node:child_process\";\n\nexport const LARGE_BUFFER = 1024 * 1000000;\nexport type IOType = \"overlapped\" | \"pipe\" | \"ignore\" | \"inherit\";\nexport type StdioOptions =\n | IOType\n | Array<IOType | \"ipc\" | number | null | undefined>;\n\n/**\n * Run a command line process\n *\n * @remarks\n * A wrapper around `execSync` to run our command line processes\n *\n * @param config - The Storm configuration object\n * @param command - The command to run\n * @param cwd - The current working directory\n * @param stdio - The standard input/output options\n * @param env - The environment variables\n * @returns The result of the command\n */\nexport const run = (\n config: Partial<StormWorkspaceConfig>,\n command: string,\n cwd: string = config.workspaceRoot ?? process.cwd(),\n stdio: StdioOptions = \"inherit\",\n env: NodeJS.ProcessEnv = process.env\n) => {\n return execSync(command, {\n cwd,\n env: {\n ...process.env,\n ...env,\n CLICOLOR: \"true\",\n FORCE_COLOR: \"true\"\n },\n windowsHide: true,\n stdio,\n maxBuffer: LARGE_BUFFER,\n killSignal: \"SIGTERM\",\n encoding: \"utf8\"\n });\n};\n\n/**\n * Run an asynchronous command line process\n *\n * @remarks\n * A wrapper around `exec` to run our command line processes\n *\n * @param config - The Storm configuration object\n * @param command - The command to run\n * @param cwd - The current working directory\n * @param env - The environment variables\n * @returns A promise with the result of the command\n */\nexport const runAsync = (\n config: Partial<StormWorkspaceConfig>,\n command: string,\n cwd: string = config.workspaceRoot ?? process.cwd(),\n env: NodeJS.ProcessEnv = process.env\n) => {\n return exec(command, {\n cwd,\n env: {\n ...process.env,\n ...env,\n CLICOLOR: \"true\",\n FORCE_COLOR: \"true\"\n },\n windowsHide: true,\n maxBuffer: LARGE_BUFFER,\n killSignal: \"SIGTERM\",\n encoding: \"utf8\"\n });\n};\n"]}
@@ -15,3 +15,5 @@ var checkPackageVersion = (fields) => {
15
15
  };
16
16
 
17
17
  export { checkPackageVersion, isPackageVersionChanged };
18
+ //# sourceMappingURL=chunk-Q3DQKTOI.js.map
19
+ //# sourceMappingURL=chunk-Q3DQKTOI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utilities/check-package-version.ts"],"names":[],"mappings":";AAAO,IAAM,uBAAA,GAA0B,YACrC,MAAA,EAAQ,IAAA;AAAA,EACN,CAAA,GAAA,KACE,IAAI,QAAA,CAAS,mBAAmB,KAChC,GAAA,CAAI,QAAA,CAAS,WAAW,CAAA,IACxB,GAAA,CAAI,QAAA,CAAS,gBAAgB,CAAA,IAC7B,GAAA,CAAI,QAAA,CAAS,gBAAgB,CAAA,IAC7B,GAAA,CAAI,SAAS,eAAe,CAAA,IAC5B,GAAA,CAAI,QAAA,CAAS,WAAW;AAC5B;AAEK,IAAM,sBAAsB,CAAA,MAAA,KAAU;AAC3C,EAAA,IAAI,uBAAA,CAAwB,MAAM,CAAA,EAAG;AACnC,IAAA,OAAA,CAAQ,IAAA;AAAA,MACN;AAAA,QACE,qHAAA;AAAA,QACA,qHAAA;AAAA,QACA;AAAA,OACF,CAAE,KAAK,IAAI;AAAA,KACb;AAAA,EACF;AACF","file":"chunk-Q3DQKTOI.js","sourcesContent":["export const isPackageVersionChanged = fields =>\n fields?.some(\n arg =>\n arg.includes(\"package-lock.json\") ||\n arg.includes(\"yarn.lock\") ||\n arg.includes(\"pnpm-lock.json\") ||\n arg.includes(\"pnpm-lock.yaml\") ||\n arg.includes(\"pnpm-lock.yml\") ||\n arg.includes(\"bun.lockb\")\n );\n\nexport const checkPackageVersion = fields => {\n if (isPackageVersionChanged(fields)) {\n console.warn(\n [\n \"⚠️ ----------------------------------------------------------------------------------------- ⚠️\",\n \"⚠️ The pnpm-lock file changed! Please run `pnpm i` to ensure your packages are up to date. ⚠️\",\n \"⚠️ ----------------------------------------------------------------------------------------- ⚠️\"\n ].join(\"\\n\")\n );\n }\n};\n"]}
@@ -5,12 +5,6 @@ import { join } from 'node:path';
5
5
  import { readFile } from 'node:fs/promises';
6
6
 
7
7
  var __defProp = Object.defineProperty;
8
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
- }) : x)(function(x) {
11
- if (typeof require !== "undefined") return require.apply(this, arguments);
12
- throw Error('Dynamic require of "' + x + '" is not supported');
13
- });
14
8
  var __export = (target, all) => {
15
9
  for (var name in all)
16
10
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -371,7 +365,7 @@ function config(newConfig) {
371
365
  return globalConfig;
372
366
  }
373
367
 
374
- // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/util.js
368
+ // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/util.js
375
369
  var util_exports = {};
376
370
  __export(util_exports, {
377
371
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -1003,7 +997,7 @@ var Class = class {
1003
997
  }
1004
998
  };
1005
999
 
1006
- // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/errors.js
1000
+ // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.js
1007
1001
  var initializer = (inst, def) => {
1008
1002
  inst.name = "$ZodError";
1009
1003
  Object.defineProperty(inst, "_zod", {
@@ -1023,7 +1017,7 @@ var initializer = (inst, def) => {
1023
1017
  var $ZodError = $constructor("$ZodError", initializer);
1024
1018
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
1025
1019
 
1026
- // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/parse.js
1020
+ // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/parse.js
1027
1021
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
1028
1022
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
1029
1023
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -1075,7 +1069,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
1075
1069
  };
1076
1070
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
1077
1071
 
1078
- // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/regexes.js
1072
+ // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/regexes.js
1079
1073
  var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
1080
1074
  var string = (params) => {
1081
1075
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
@@ -1083,7 +1077,7 @@ var string = (params) => {
1083
1077
  };
1084
1078
  var boolean = /^(?:true|false)$/i;
1085
1079
 
1086
- // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/checks.js
1080
+ // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.js
1087
1081
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1088
1082
  var _a;
1089
1083
  inst._zod ?? (inst._zod = {});
@@ -1175,14 +1169,14 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
1175
1169
  };
1176
1170
  });
1177
1171
 
1178
- // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/versions.js
1172
+ // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/versions.js
1179
1173
  var version = {
1180
1174
  major: 4,
1181
1175
  minor: 1,
1182
- patch: 11
1176
+ patch: 12
1183
1177
  };
1184
1178
 
1185
- // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/schemas.js
1179
+ // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.js
1186
1180
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1187
1181
  var _a;
1188
1182
  inst ?? (inst = {});
@@ -1873,7 +1867,7 @@ function registry() {
1873
1867
  return new $ZodRegistry();
1874
1868
  }
1875
1869
 
1876
- // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/api.js
1870
+ // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/api.js
1877
1871
  function _string(Class2, params) {
1878
1872
  return new Class2({
1879
1873
  type: "string",
@@ -1928,7 +1922,7 @@ function _toLowerCase() {
1928
1922
  return _overwrite((input) => input.toLowerCase());
1929
1923
  }
1930
1924
 
1931
- // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/mini/schemas.js
1925
+ // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/mini/schemas.js
1932
1926
  var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1933
1927
  if (!inst._zod)
1934
1928
  throw new Error("Uninitialized schema in ZodMiniType.");
@@ -3758,4 +3752,6 @@ function getWorkspaceConfig(skipLogs = true, options = {}) {
3758
3752
  return getConfig(workspaceRoot, skipLogs);
3759
3753
  }
3760
3754
 
3761
- export { STORM_DEFAULT_RELEASE_BANNER, __require, defu, exitWithError, exitWithSuccess, findWorkspaceRootSafe, getConfig, getWorkspaceConfig, handleProcess, isVerbose, joinPaths, writeDebug, writeError, writeFatal, writeInfo, writeSuccess, writeTrace, writeWarning };
3755
+ export { STORM_DEFAULT_RELEASE_BANNER, defu, exitWithError, exitWithSuccess, findWorkspaceRootSafe, getConfig, getWorkspaceConfig, handleProcess, isVerbose, joinPaths, writeDebug, writeError, writeFatal, writeInfo, writeSuccess, writeTrace, writeWarning };
3756
+ //# sourceMappingURL=chunk-VBJB46HW.js.map
3757
+ //# sourceMappingURL=chunk-VBJB46HW.js.map