@storm-software/git-tools 2.131.23 → 2.131.24

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 (79) hide show
  1. package/bin/{chunk-77NN2DPB.cjs → chunk-3LVCR6LS.cjs} +4 -4
  2. package/bin/{chunk-77NN2DPB.cjs.map → chunk-3LVCR6LS.cjs.map} +1 -1
  3. package/bin/{chunk-S2N3WA4O.js → chunk-3PI2VV32.js} +3 -3
  4. package/bin/{chunk-S2N3WA4O.js.map → chunk-3PI2VV32.js.map} +1 -1
  5. package/bin/{chunk-KDRZY2YU.js → chunk-3XAQUPZK.js} +10 -8
  6. package/bin/chunk-3XAQUPZK.js.map +1 -0
  7. package/bin/{chunk-ZRZDX2ZA.cjs → chunk-4CS5RPMP.cjs} +5 -5
  8. package/bin/{chunk-ZRZDX2ZA.cjs.map → chunk-4CS5RPMP.cjs.map} +1 -1
  9. package/bin/{chunk-2JR3HPAL.js → chunk-4GZZR7XL.js} +3 -3
  10. package/bin/{chunk-2JR3HPAL.js.map → chunk-4GZZR7XL.js.map} +1 -1
  11. package/bin/{chunk-KBH5ZZ4V.js → chunk-AX3PXQKJ.js} +3 -3
  12. package/bin/{chunk-KBH5ZZ4V.js.map → chunk-AX3PXQKJ.js.map} +1 -1
  13. package/bin/{chunk-5OEE2E65.js → chunk-C6K3ZRT6.js} +3 -3
  14. package/bin/{chunk-5OEE2E65.js.map → chunk-C6K3ZRT6.js.map} +1 -1
  15. package/bin/{chunk-YDVAE433.js → chunk-DOELUOOS.js} +3 -3
  16. package/bin/{chunk-YDVAE433.js.map → chunk-DOELUOOS.js.map} +1 -1
  17. package/bin/{chunk-J76RVP3G.js → chunk-GPHBDU6A.js} +3 -3
  18. package/bin/{chunk-J76RVP3G.js.map → chunk-GPHBDU6A.js.map} +1 -1
  19. package/bin/{chunk-FNM5AXPR.cjs → chunk-M4UDDFX2.cjs} +4 -4
  20. package/bin/{chunk-FNM5AXPR.cjs.map → chunk-M4UDDFX2.cjs.map} +1 -1
  21. package/bin/{chunk-Z5SKX5XN.cjs → chunk-MQOEMLKV.cjs} +4 -4
  22. package/bin/{chunk-Z5SKX5XN.cjs.map → chunk-MQOEMLKV.cjs.map} +1 -1
  23. package/bin/{chunk-KHPLFH3X.cjs → chunk-NSP7UDOF.cjs} +4 -4
  24. package/bin/{chunk-KHPLFH3X.cjs.map → chunk-NSP7UDOF.cjs.map} +1 -1
  25. package/bin/{chunk-7I4XZL7P.cjs → chunk-QITSXT5W.cjs} +6 -6
  26. package/bin/{chunk-7I4XZL7P.cjs.map → chunk-QITSXT5W.cjs.map} +1 -1
  27. package/bin/{chunk-AU2HBQCB.cjs → chunk-QOOEK76B.cjs} +10 -8
  28. package/bin/chunk-QOOEK76B.cjs.map +1 -0
  29. package/bin/{chunk-NKCKZ3E3.cjs → chunk-WZZIVUHI.cjs} +4 -4
  30. package/bin/{chunk-NKCKZ3E3.cjs.map → chunk-WZZIVUHI.cjs.map} +1 -1
  31. package/bin/{chunk-CBJFXXVE.js → chunk-Y7OK7243.js} +3 -3
  32. package/bin/{chunk-CBJFXXVE.js.map → chunk-Y7OK7243.js.map} +1 -1
  33. package/bin/git.cjs +266 -155
  34. package/bin/git.cjs.map +1 -1
  35. package/bin/git.js +127 -16
  36. package/bin/git.js.map +1 -1
  37. package/bin/post-checkout.cjs +7 -7
  38. package/bin/post-checkout.js +2 -2
  39. package/bin/post-commit.cjs +7 -7
  40. package/bin/post-commit.js +2 -2
  41. package/bin/post-merge.cjs +7 -7
  42. package/bin/post-merge.js +2 -2
  43. package/bin/pre-commit.cjs +7 -7
  44. package/bin/pre-commit.js +2 -2
  45. package/bin/pre-install.cjs +7 -7
  46. package/bin/pre-install.js +2 -2
  47. package/bin/pre-push.cjs +7 -7
  48. package/bin/pre-push.js +2 -2
  49. package/bin/prepare.cjs +7 -7
  50. package/bin/prepare.js +2 -2
  51. package/bin/version-warning.cjs +5 -5
  52. package/bin/version-warning.js +1 -1
  53. package/dist/{chunk-YOBEA3QU.cjs → chunk-3YY3EGSK.cjs} +2 -2
  54. package/dist/{chunk-CUC73XZD.cjs → chunk-4J6EYVX4.cjs} +16 -13
  55. package/dist/{chunk-BNXSIXM2.js → chunk-5AVCKBNV.js} +5 -2
  56. package/dist/{chunk-C53K5W6J.js → chunk-A3IJ22YJ.js} +1 -1
  57. package/dist/{chunk-D2TE2WQZ.cjs → chunk-AOPYQZJZ.cjs} +2 -2
  58. package/dist/{chunk-6HBRIYPP.cjs → chunk-C4226MIL.cjs} +3 -3
  59. package/dist/{chunk-46DT23BR.cjs → chunk-F67AF77W.cjs} +8 -6
  60. package/dist/{chunk-HRYBIFJL.js → chunk-GN5PPUYJ.js} +1 -1
  61. package/dist/{chunk-BPDSCBOI.js → chunk-ISJNCGTW.js} +8 -6
  62. package/dist/{chunk-UVEWNW75.js → chunk-JTMGWUUD.js} +1 -1
  63. package/dist/{chunk-WVCBWTDU.js → chunk-MTEWMWXP.js} +1 -1
  64. package/dist/{chunk-2KO5IEIY.cjs → chunk-MWFYZ6C5.cjs} +2 -2
  65. package/dist/{chunk-IDG5O4UL.cjs → chunk-QHOVDHJS.cjs} +2 -2
  66. package/dist/{chunk-NABJ2MII.js → chunk-RA7GZDUN.js} +1 -1
  67. package/dist/{chunk-KVTWY6IN.cjs → chunk-S57KI3QJ.cjs} +2 -2
  68. package/dist/{chunk-FBGULNA7.js → chunk-VXHEKX5N.js} +1 -1
  69. package/dist/{chunk-GNPQRGZ2.cjs → chunk-XMOG277R.cjs} +4 -4
  70. package/dist/{chunk-4KMJAFZI.js → chunk-YEPJCR66.js} +1 -1
  71. package/dist/index.cjs +33 -33
  72. package/dist/index.js +9 -9
  73. package/dist/release/config.cjs +19 -19
  74. package/dist/release/config.d.cts +2 -0
  75. package/dist/release/config.d.ts +2 -0
  76. package/dist/release/config.js +2 -2
  77. package/package.json +7 -7
  78. package/bin/chunk-AU2HBQCB.cjs.map +0 -1
  79. package/bin/chunk-KDRZY2YU.js.map +0 -1
package/bin/git.cjs CHANGED
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- var chunkNKCKZ3E3_cjs = require('./chunk-NKCKZ3E3.cjs');
5
- var chunkKHPLFH3X_cjs = require('./chunk-KHPLFH3X.cjs');
6
- var chunkFNM5AXPR_cjs = require('./chunk-FNM5AXPR.cjs');
7
- var chunkZ5SKX5XN_cjs = require('./chunk-Z5SKX5XN.cjs');
8
- require('./chunk-ZRZDX2ZA.cjs');
9
- var chunk7I4XZL7P_cjs = require('./chunk-7I4XZL7P.cjs');
4
+ var chunkWZZIVUHI_cjs = require('./chunk-WZZIVUHI.cjs');
5
+ var chunkNSP7UDOF_cjs = require('./chunk-NSP7UDOF.cjs');
6
+ var chunkM4UDDFX2_cjs = require('./chunk-M4UDDFX2.cjs');
7
+ var chunkMQOEMLKV_cjs = require('./chunk-MQOEMLKV.cjs');
8
+ require('./chunk-4CS5RPMP.cjs');
9
+ var chunkQITSXT5W_cjs = require('./chunk-QITSXT5W.cjs');
10
10
  require('./chunk-YHZNDNCW.cjs');
11
- var chunk77NN2DPB_cjs = require('./chunk-77NN2DPB.cjs');
11
+ var chunk3LVCR6LS_cjs = require('./chunk-3LVCR6LS.cjs');
12
12
  var chunkMTAYUS7E_cjs = require('./chunk-MTAYUS7E.cjs');
13
- var chunkAU2HBQCB_cjs = require('./chunk-AU2HBQCB.cjs');
13
+ var chunkQOOEK76B_cjs = require('./chunk-QOOEK76B.cjs');
14
14
  var TOML = require('@ltd/j-toml');
15
15
  var commander = require('commander');
16
16
  require('@inquirer/checkbox');
@@ -53,6 +53,7 @@ var shared = require('nx/src/command-line/release/utils/shared');
53
53
  var utils = require('nx/src/tasks-runner/utils');
54
54
  var execCommand_js = require('nx/src/command-line/release/utils/exec-command.js');
55
55
  var git = require('nx/src/command-line/release/utils/git');
56
+ var utils_js = require('nx/src/tasks-runner/utils.js');
56
57
  var semver = require('semver');
57
58
  var release = require('nx/release');
58
59
  var versionPlans = require('nx/src/command-line/release/config/version-plans');
@@ -73,7 +74,7 @@ var topologicalSort = require('nx/src/command-line/release/version/topological-s
73
74
  var versionActions = require('nx/src/command-line/release/version/version-actions');
74
75
  var affectedProjectGraph = require('nx/src/project-graph/affected/affected-project-graph');
75
76
  var fileUtils = require('nx/src/project-graph/file-utils');
76
- var gte = require('semver/functions/gte');
77
+ var gte2 = require('semver/functions/gte');
77
78
  var config_js = require('nx/src/command-line/release/config/config.js');
78
79
  var deriveSpecifierFromConventionalCommits = require('nx/src/command-line/release/version/derive-specifier-from-conventional-commits');
79
80
  var deriverSpecifierFromVersionPlans = require('nx/src/command-line/release/version/deriver-specifier-from-version-plans');
@@ -103,7 +104,7 @@ var chalk__default = /*#__PURE__*/_interopDefault(chalk);
103
104
  var semver__default = /*#__PURE__*/_interopDefault(semver);
104
105
  var importsPlugin__default = /*#__PURE__*/_interopDefault(importsPlugin);
105
106
  var DefaultChangelogRenderer__default = /*#__PURE__*/_interopDefault(DefaultChangelogRenderer);
106
- var gte__default = /*#__PURE__*/_interopDefault(gte);
107
+ var gte2__default = /*#__PURE__*/_interopDefault(gte2);
107
108
 
108
109
  function parseCargoToml(cargoString) {
109
110
  if (!cargoString) {
@@ -431,9 +432,9 @@ function getRuleFromScopeEnum(scopeEnum) {
431
432
 
432
433
  // ../conventional-changelog/src/index.ts
433
434
  async function createPreset(variant = "monorepo") {
434
- const workspaceConfig = await chunkAU2HBQCB_cjs.getWorkspaceConfig();
435
+ const workspaceConfig = await chunkQOOEK76B_cjs.getWorkspaceConfig();
435
436
  if (variant === "minimal") {
436
- return chunkAU2HBQCB_cjs.defu(
437
+ return chunkQOOEK76B_cjs.defu(
437
438
  await createBasePreset__default.default({ ...COMMIT_CONFIGS.minimal.changelogs.props }),
438
439
  {
439
440
  ...COMMIT_CONFIGS.minimal,
@@ -447,7 +448,7 @@ async function createPreset(variant = "monorepo") {
447
448
  );
448
449
  }
449
450
  const nxScopes = await getNxScopes({ config: workspaceConfig });
450
- return chunkAU2HBQCB_cjs.defu(
451
+ return chunkQOOEK76B_cjs.defu(
451
452
  await createBasePreset__default.default({
452
453
  ...COMMIT_CONFIGS.monorepo.changelogs.props,
453
454
  scope: nxScopes
@@ -1011,7 +1012,7 @@ async function lint(message, config5) {
1011
1012
  // src/commitlint/run.ts
1012
1013
  var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
1013
1014
  async function runCommitLint(workspaceConfig, options) {
1014
- chunkAU2HBQCB_cjs.writeInfo(
1015
+ chunkQOOEK76B_cjs.writeInfo(
1015
1016
  "\u{1F4DD} Validating git commit message aligns with the Storm Software specification",
1016
1017
  workspaceConfig
1017
1018
  );
@@ -1019,7 +1020,7 @@ async function runCommitLint(workspaceConfig, options) {
1019
1020
  if (options.message && options.message !== COMMIT_EDITMSG_PATH) {
1020
1021
  commitMessage = options.message;
1021
1022
  } else {
1022
- const commitFile = chunkAU2HBQCB_cjs.joinPaths(
1023
+ const commitFile = chunkQOOEK76B_cjs.joinPaths(
1023
1024
  workspaceConfig.workspaceRoot,
1024
1025
  options.file || options.message || COMMIT_EDITMSG_PATH
1025
1026
  );
@@ -1036,17 +1037,17 @@ async function runCommitLint(workspaceConfig, options) {
1036
1037
  if (upstreamRemote) {
1037
1038
  const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
1038
1039
  if (!upstreamRemoteIdentifier) {
1039
- chunkAU2HBQCB_cjs.writeWarning(
1040
+ chunkQOOEK76B_cjs.writeWarning(
1040
1041
  `No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison.`,
1041
1042
  workspaceConfig
1042
1043
  );
1043
1044
  return;
1044
1045
  }
1045
- chunkAU2HBQCB_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
1046
+ chunkQOOEK76B_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
1046
1047
  const currentBranch = childProcess__default.default.execSync("git branch --show-current").toString().trim();
1047
1048
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
1048
1049
  } else {
1049
- chunkAU2HBQCB_cjs.writeWarning(
1050
+ chunkQOOEK76B_cjs.writeWarning(
1050
1051
  `No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison against upstream main.`,
1051
1052
  workspaceConfig
1052
1053
  );
@@ -1054,7 +1055,7 @@ async function runCommitLint(workspaceConfig, options) {
1054
1055
  }
1055
1056
  commitMessage = childProcess__default.default.execSync(gitLogCmd).toString().trim();
1056
1057
  if (!commitMessage) {
1057
- chunkAU2HBQCB_cjs.writeWarning(
1058
+ chunkQOOEK76B_cjs.writeWarning(
1058
1059
  "No commits found. Skipping commit message validation.",
1059
1060
  workspaceConfig
1060
1061
  );
@@ -1064,7 +1065,7 @@ async function runCommitLint(workspaceConfig, options) {
1064
1065
  const preset = await createPreset(workspaceConfig.variant);
1065
1066
  const report = await lint(commitMessage, preset);
1066
1067
  if (!preset.commitlint.regex.test(commitMessage) || report.errors.length || report.warnings.length) {
1067
- chunkAU2HBQCB_cjs.writeSuccess(
1068
+ chunkQOOEK76B_cjs.writeSuccess(
1068
1069
  `Commit was processing completed successfully!`,
1069
1070
  workspaceConfig
1070
1071
  );
@@ -1276,7 +1277,7 @@ async function createState(workspaceConfig, configPath) {
1276
1277
  const project = projectConfigurations.projects[scope];
1277
1278
  if (project) {
1278
1279
  let description = `${project.name} - ${project.root}`;
1279
- const packageJsonPath = chunkAU2HBQCB_cjs.joinPaths(project.root, "package.json");
1280
+ const packageJsonPath = chunkQOOEK76B_cjs.joinPaths(project.root, "package.json");
1280
1281
  if (fs$1.existsSync(packageJsonPath)) {
1281
1282
  const packageJsonFile = await fs.readFile(packageJsonPath, "utf8");
1282
1283
  const packageJson = JSON.parse(packageJsonFile);
@@ -1350,20 +1351,20 @@ ${closedIssueEmoji}${config5.settings.closedIssueMessage}${issues}`;
1350
1351
 
1351
1352
  // src/commit/run.ts
1352
1353
  async function runCommit(commitizenFile, dryRun = false) {
1353
- const workspaceConfig = await chunkAU2HBQCB_cjs.getWorkspaceConfig();
1354
+ const workspaceConfig = await chunkQOOEK76B_cjs.getWorkspaceConfig();
1354
1355
  const state = await createState(workspaceConfig);
1355
1356
  if (dryRun) {
1356
- chunkAU2HBQCB_cjs.writeInfo("Running in dry mode.", workspaceConfig);
1357
+ chunkQOOEK76B_cjs.writeInfo("Running in dry mode.", workspaceConfig);
1357
1358
  }
1358
1359
  console.log(chalkTemplate__default.default`
1359
1360
  {bold.#999999 ----------------------------------------}
1360
1361
 
1361
- {bold.#FFFFFF ${chunkAU2HBQCB_cjs.brandIcon(workspaceConfig)} Storm Software Git-Tools - Commit}
1362
+ {bold.#FFFFFF ${chunkQOOEK76B_cjs.brandIcon(workspaceConfig)} Storm Software Git-Tools - Commit}
1362
1363
  {#CCCCCC Please provide the requested details below...}
1363
1364
  `);
1364
1365
  state.answers = await askQuestions(state);
1365
1366
  const message = formatCommitMessage(state, workspaceConfig);
1366
- const commitMsgFile = chunkAU2HBQCB_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
1367
+ const commitMsgFile = chunkQOOEK76B_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
1367
1368
  console.log(chalkTemplate__default.default`
1368
1369
  {bold.#999999 ----------------------------------------}
1369
1370
 
@@ -1376,11 +1377,11 @@ async function runCommit(commitizenFile, dryRun = false) {
1376
1377
  commandItems.push(...["--file", commitMsgFile]);
1377
1378
  const command = shellescape__default.default(commandItems);
1378
1379
  if (dryRun) {
1379
- chunkAU2HBQCB_cjs.writeDebug(
1380
+ chunkQOOEK76B_cjs.writeDebug(
1380
1381
  `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
1381
1382
  workspaceConfig
1382
1383
  );
1383
- chunkAU2HBQCB_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
1384
+ chunkQOOEK76B_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
1384
1385
  } else {
1385
1386
  await fs__default.default.writeFile(commitMsgFile, message);
1386
1387
  chunkMTAYUS7E_cjs.run(workspaceConfig, command);
@@ -2039,7 +2040,7 @@ var runReadme = async ({
2039
2040
  exitOnError: true
2040
2041
  });
2041
2042
  const projectConfigs = projectGraph_js.readProjectsConfigurationFromProjectGraph(projectGraph);
2042
- const workspaceRoot = chunkAU2HBQCB_cjs.findWorkspaceRootSafe(process.cwd());
2043
+ const workspaceRoot = chunkQOOEK76B_cjs.findWorkspaceRootSafe(process.cwd());
2043
2044
  if (!workspaceRoot) {
2044
2045
  throw new Error(
2045
2046
  "Unable to find the workspace root. Please ensure you are running this command from within a workspace."
@@ -2456,7 +2457,7 @@ async function generateChangelogContent(releaseVersion, filepath, newContent, cu
2456
2457
  const header = await prettier.format(
2457
2458
  `![${(typeof workspaceConfig?.release.banner === "string" ? workspaceConfig.organization ? titleCase(
2458
2459
  typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization.name
2459
- ) : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkAU2HBQCB_cjs.STORM_DEFAULT_RELEASE_BANNER})
2460
+ ) : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkQOOEK76B_cjs.STORM_DEFAULT_RELEASE_BANNER})
2460
2461
 
2461
2462
  # Changelog ${project || workspaceConfig?.name ? "for" : ""}${workspaceConfig?.name ? ` ${titleCase(workspaceConfig.name)}` : ""}${project ? `${workspaceConfig?.name ? " -" : ""} ${titleCase(project)}` : ""}
2462
2463
 
@@ -2632,12 +2633,12 @@ async function generateChangelogForProjects({
2632
2633
  projectChangelogs
2633
2634
  )) {
2634
2635
  if (!projectGraph.nodes[projectName]?.data.root) {
2635
- chunkAU2HBQCB_cjs.writeWarning(
2636
+ chunkQOOEK76B_cjs.writeWarning(
2636
2637
  `A changelog was generated for ${projectName}, but it could not be found in the project graph. Skipping writing changelog file.`,
2637
2638
  workspaceConfig
2638
2639
  );
2639
2640
  } else if (projectChangelog.contents) {
2640
- const filePath = chunkAU2HBQCB_cjs.joinPaths(
2641
+ const filePath = chunkQOOEK76B_cjs.joinPaths(
2641
2642
  projectGraph.nodes[projectName].data.root,
2642
2643
  "CHANGELOG.md"
2643
2644
  );
@@ -2645,7 +2646,7 @@ async function generateChangelogForProjects({
2645
2646
  if (fs$1.existsSync(filePath)) {
2646
2647
  currentContent = await fs.readFile(filePath, "utf8");
2647
2648
  }
2648
- chunkAU2HBQCB_cjs.writeDebug(
2649
+ chunkQOOEK76B_cjs.writeDebug(
2649
2650
  `\u270D\uFE0F Writing changelog for project ${projectName} to ${filePath}`,
2650
2651
  workspaceConfig
2651
2652
  );
@@ -2825,6 +2826,109 @@ async function commitChanges({
2825
2826
  verbose: isVerbose2
2826
2827
  });
2827
2828
  }
2829
+ var SEMVER_REGEX = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/g;
2830
+ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, additionalInterpolationData = {}, resolveTags, options) {
2831
+ const { requireSemver, strictPreid, preid, checkAllBranchesWhen } = options;
2832
+ try {
2833
+ const tags = await resolveTags(checkAllBranchesWhen);
2834
+ if (!tags.length) {
2835
+ return null;
2836
+ }
2837
+ const interpolatedTagPattern = utils_js.interpolate(releaseTagPattern, {
2838
+ version: "%v%",
2839
+ projectName: "%p%",
2840
+ releaseGroupName: "%rg%",
2841
+ ...additionalInterpolationData
2842
+ });
2843
+ const tagRegexp = `^${interpolatedTagPattern.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&").replace("%v%", "(.+)").replace("%p%", "(.+)").replace("%rg%", "(.+)")}`;
2844
+ const matchingTags = tags.filter((tag) => {
2845
+ if (requireSemver) {
2846
+ return !!tag.match(tagRegexp) && tag.match(tagRegexp).some((r) => r.match(SEMVER_REGEX));
2847
+ } else {
2848
+ return !!tag.match(tagRegexp);
2849
+ }
2850
+ });
2851
+ if (!matchingTags.length) {
2852
+ return null;
2853
+ }
2854
+ chunkQOOEK76B_cjs.writeDebug(
2855
+ `Found ${matchingTags.length} matching tags out of ${tags.length} total tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
2856
+ workspaceConfig
2857
+ );
2858
+ if (!strictPreid) {
2859
+ chunkQOOEK76B_cjs.writeDebug(
2860
+ `Not using strict preid, will use the first matching tag ${matchingTags[0]} for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
2861
+ workspaceConfig
2862
+ );
2863
+ return git.extractTagAndVersion(matchingTags[0], tagRegexp, options);
2864
+ }
2865
+ const stableReleaseTags = matchingTags.filter((tag) => {
2866
+ const matches = tag.match(tagRegexp);
2867
+ if (!matches) return false;
2868
+ const [, version] = matches;
2869
+ return version && !shared.isPrerelease(version);
2870
+ });
2871
+ chunkQOOEK76B_cjs.writeDebug(
2872
+ `Found ${stableReleaseTags.length} stable tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
2873
+ workspaceConfig
2874
+ );
2875
+ if (preid && preid.length > 0) {
2876
+ const preidReleaseTags = matchingTags.filter((tag) => {
2877
+ const match = tag.match(tagRegexp);
2878
+ if (!match) return false;
2879
+ const version = match.find((part) => part.match(SEMVER_REGEX));
2880
+ return version && version.includes(`-${preid}.`);
2881
+ });
2882
+ chunkQOOEK76B_cjs.writeDebug(
2883
+ `Found ${preidReleaseTags.length} preid tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
2884
+ workspaceConfig
2885
+ );
2886
+ if (preidReleaseTags.length > 0 && stableReleaseTags.length > 0) {
2887
+ const preidResult = git.extractTagAndVersion(
2888
+ preidReleaseTags[0],
2889
+ tagRegexp,
2890
+ options
2891
+ );
2892
+ const stableResult = git.extractTagAndVersion(
2893
+ stableReleaseTags[0],
2894
+ tagRegexp,
2895
+ options
2896
+ );
2897
+ chunkQOOEK76B_cjs.writeDebug(
2898
+ `Extracted preid version: ${preidResult.extractedVersion} and stable version: ${stableResult.extractedVersion} for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
2899
+ workspaceConfig
2900
+ );
2901
+ const preidBaseVersion = semver.coerce(preidResult.extractedVersion)?.version;
2902
+ const stableVersion = stableResult.extractedVersion;
2903
+ if (preidBaseVersion && stableVersion && semver.gte(stableVersion, preidBaseVersion)) {
2904
+ chunkQOOEK76B_cjs.writeDebug(
2905
+ `Using latest stable tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern}) because its version (${stableVersion}) is greater than or equal to the base version of the latest preid tag (${preidBaseVersion})`,
2906
+ workspaceConfig
2907
+ );
2908
+ return stableResult;
2909
+ }
2910
+ return preidResult;
2911
+ }
2912
+ if (preidReleaseTags.length > 0) {
2913
+ chunkQOOEK76B_cjs.writeDebug(
2914
+ `Using latest preid tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
2915
+ workspaceConfig
2916
+ );
2917
+ return git.extractTagAndVersion(preidReleaseTags[0], tagRegexp, options);
2918
+ }
2919
+ }
2920
+ if (stableReleaseTags.length > 0) {
2921
+ chunkQOOEK76B_cjs.writeDebug(
2922
+ `Using latest stable tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
2923
+ workspaceConfig
2924
+ );
2925
+ return git.extractTagAndVersion(stableReleaseTags[0], tagRegexp, options);
2926
+ }
2927
+ return null;
2928
+ } catch {
2929
+ return null;
2930
+ }
2931
+ }
2828
2932
 
2829
2933
  // src/utilities/omit.ts
2830
2934
  function omit(obj, keys) {
@@ -2868,7 +2972,7 @@ var StormGithubRemoteReleaseClient = class extends github.GithubRemoteReleaseCli
2868
2972
  }
2869
2973
  async createOrUpdateRelease(releaseVersion, changelogContents, latestCommit, { dryRun }) {
2870
2974
  if (!this.workspaceConfig) {
2871
- this.workspaceConfig = await chunkAU2HBQCB_cjs.getWorkspaceConfig();
2975
+ this.workspaceConfig = await chunkQOOEK76B_cjs.getWorkspaceConfig();
2872
2976
  }
2873
2977
  const name = releaseVersion.gitTag.includes("@") ? releaseVersion.gitTag.replace(new RegExp(`^@${this.workspaceConfig.name}/`), "").replace(/@.*$/, "") : releaseVersion.gitTag;
2874
2978
  return super.createOrUpdateRelease(
@@ -3061,7 +3165,7 @@ async function format3(path, data) {
3061
3165
  if (resolvedConfig) {
3062
3166
  code = await prettier.format(
3063
3167
  data,
3064
- chunkAU2HBQCB_cjs.defu(
3168
+ chunkQOOEK76B_cjs.defu(
3065
3169
  {
3066
3170
  absolutePath: path,
3067
3171
  ...resolvedConfig
@@ -3117,7 +3221,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
3117
3221
  }
3118
3222
  async render() {
3119
3223
  if (!this.workspaceConfig) {
3120
- this.workspaceConfig = await chunkAU2HBQCB_cjs.getWorkspaceConfig();
3224
+ this.workspaceConfig = await chunkQOOEK76B_cjs.getWorkspaceConfig();
3121
3225
  }
3122
3226
  return super.render();
3123
3227
  }
@@ -3382,7 +3486,9 @@ var DEFAULT_RELEASE_GROUP_CONFIG = {
3382
3486
  ...DEFAULT_VERSION_RELEASE_CONFIG
3383
3487
  },
3384
3488
  releaseTag: {
3385
- preferDockerVersion: false
3489
+ checkAllBranchesWhen: true,
3490
+ preferDockerVersion: false,
3491
+ strictPreid: true
3386
3492
  },
3387
3493
  versionPlans: false
3388
3494
  };
@@ -3427,7 +3533,7 @@ var DEFAULT_RUST_RELEASE_GROUP_CONFIG = {
3427
3533
  var DEFAULT_RELEASE_CONFIG = {
3428
3534
  conventionalCommits: DEFAULT_CONVENTIONAL_COMMITS_CONFIG2,
3429
3535
  groups: {
3430
- packages: chunkAU2HBQCB_cjs.defu(
3536
+ packages: chunkQOOEK76B_cjs.defu(
3431
3537
  {
3432
3538
  projects: ["packages/*"]
3433
3539
  },
@@ -3435,7 +3541,7 @@ var DEFAULT_RELEASE_CONFIG = {
3435
3541
  DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
3436
3542
  DEFAULT_RELEASE_GROUP_CONFIG
3437
3543
  ),
3438
- crates: chunkAU2HBQCB_cjs.defu(
3544
+ crates: chunkQOOEK76B_cjs.defu(
3439
3545
  {
3440
3546
  projects: ["crates/*"]
3441
3547
  },
@@ -3459,7 +3565,7 @@ var DEFAULT_RELEASE_CONFIG = {
3459
3565
  }
3460
3566
  };
3461
3567
  function mergeReleaseGroupConfig(config5, defaultConfig, workspaceConfig) {
3462
- return chunkAU2HBQCB_cjs.defu(
3568
+ return chunkQOOEK76B_cjs.defu(
3463
3569
  {
3464
3570
  ...omit(defaultConfig, ["changelog", "version"]),
3465
3571
  ...config5
@@ -3490,7 +3596,7 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
3490
3596
  projectGraph.nodes
3491
3597
  );
3492
3598
  if (!matchingProjects.length) {
3493
- chunkAU2HBQCB_cjs.writeWarning(
3599
+ chunkQOOEK76B_cjs.writeWarning(
3494
3600
  `Release group "${name}" does not have any matching projects.`
3495
3601
  );
3496
3602
  return void 0;
@@ -3510,13 +3616,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
3510
3616
  ProjectTagConstants.Language.TAG_ID,
3511
3617
  ProjectTagConstants.Language.TYPESCRIPT
3512
3618
  ) || projectGraph.nodes[project]?.data.metadata?.root && fs$1.existsSync(
3513
- chunkAU2HBQCB_cjs.joinPaths(
3619
+ chunkQOOEK76B_cjs.joinPaths(
3514
3620
  projectGraph.nodes[project]?.data.metadata?.root,
3515
3621
  "package.json"
3516
3622
  )
3517
3623
  ))
3518
3624
  )) {
3519
- defaultConfig = chunkAU2HBQCB_cjs.defu(
3625
+ defaultConfig = chunkQOOEK76B_cjs.defu(
3520
3626
  group.projectsRelationship === "fixed" ? DEFAULT_FIXED_RELEASE_GROUP_CONFIG : DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
3521
3627
  DEFAULT_JS_RELEASE_GROUP_CONFIG,
3522
3628
  DEFAULT_RELEASE_GROUP_CONFIG
@@ -3527,13 +3633,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
3527
3633
  ProjectTagConstants.Language.TAG_ID,
3528
3634
  ProjectTagConstants.Language.RUST
3529
3635
  ) || projectGraph.nodes[project]?.data.metadata?.root && fs$1.existsSync(
3530
- chunkAU2HBQCB_cjs.joinPaths(
3636
+ chunkQOOEK76B_cjs.joinPaths(
3531
3637
  projectGraph.nodes[project]?.data.metadata?.root,
3532
3638
  "Cargo.toml"
3533
3639
  )
3534
3640
  ))
3535
3641
  )) {
3536
- defaultConfig = chunkAU2HBQCB_cjs.defu(
3642
+ defaultConfig = chunkQOOEK76B_cjs.defu(
3537
3643
  group.projectsRelationship === "fixed" ? DEFAULT_FIXED_RELEASE_GROUP_CONFIG : DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
3538
3644
  DEFAULT_RUST_RELEASE_GROUP_CONFIG,
3539
3645
  DEFAULT_RELEASE_GROUP_CONFIG
@@ -3547,13 +3653,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
3547
3653
  config5.projects = matchingProjects;
3548
3654
  if (workspaceConfig?.workspaceRoot) {
3549
3655
  if (config5.changelog?.renderer && typeof config5.changelog?.renderer === "string" && config5.changelog?.renderer?.toString().startsWith("./")) {
3550
- config5.changelog.renderer = chunkAU2HBQCB_cjs.joinPaths(
3656
+ config5.changelog.renderer = chunkQOOEK76B_cjs.joinPaths(
3551
3657
  workspaceConfig.workspaceRoot,
3552
3658
  config5.changelog.renderer
3553
3659
  );
3554
3660
  }
3555
3661
  if (config5.version?.versionActions && config5.version.versionActions.startsWith("./")) {
3556
- config5.version.versionActions = chunkAU2HBQCB_cjs.joinPaths(
3662
+ config5.version.versionActions = chunkQOOEK76B_cjs.joinPaths(
3557
3663
  workspaceConfig.workspaceRoot,
3558
3664
  config5.version?.versionActions
3559
3665
  );
@@ -3565,10 +3671,10 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
3565
3671
  }
3566
3672
  function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNxJsonConfig = false) {
3567
3673
  let nxJson$1 = {};
3568
- if (!ignoreNxJsonConfig && fs$1.existsSync(chunkAU2HBQCB_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
3674
+ if (!ignoreNxJsonConfig && fs$1.existsSync(chunkQOOEK76B_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
3569
3675
  nxJson$1 = nxJson.readNxJson();
3570
3676
  }
3571
- const baseConfig = chunkAU2HBQCB_cjs.defu(
3677
+ const baseConfig = chunkQOOEK76B_cjs.defu(
3572
3678
  {
3573
3679
  changelog: {
3574
3680
  renderOptions: {
@@ -3585,7 +3691,7 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
3585
3691
  if (releaseConfig?.groups && Object.keys(releaseConfig.groups).length > 0) {
3586
3692
  groups = releaseConfig.groups;
3587
3693
  if (nxJson$1.release?.groups && Object.keys(nxJson$1.release.groups).length > 0) {
3588
- groups = chunkAU2HBQCB_cjs.defu(
3694
+ groups = chunkQOOEK76B_cjs.defu(
3589
3695
  groups,
3590
3696
  nxJson$1.release.groups
3591
3697
  );
@@ -3605,7 +3711,7 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
3605
3711
  };
3606
3712
  }
3607
3713
  function formatConfigLog(config5) {
3608
- return chunkAU2HBQCB_cjs.formatLogMessage(config5, {
3714
+ return chunkQOOEK76B_cjs.formatLogMessage(config5, {
3609
3715
  sort: true,
3610
3716
  skip: ["workspaceConfig", "conventionalCommits"]
3611
3717
  });
@@ -4001,7 +4107,8 @@ var ReleaseGraph = class _ReleaseGraph {
4001
4107
  strictPreid: releaseGroupNode.group.releaseTag.strictPreid
4002
4108
  };
4003
4109
  if (releaseGroupNode.group.projectsRelationship === "fixed" && !releaseTagPattern.includes("{projectName}")) {
4004
- const groupReleaseTag = await git.getLatestGitTagForPattern(
4110
+ const groupReleaseTag = await getLatestGitTagForPattern(
4111
+ this.workspaceConfig,
4005
4112
  releaseTagPattern,
4006
4113
  additionalInterpolationData,
4007
4114
  this.resolveRepositoryTags.bind(this),
@@ -4010,20 +4117,21 @@ var ReleaseGraph = class _ReleaseGraph {
4010
4117
  const projectReleaseTagPattern = releaseTagPattern.includes(
4011
4118
  "{releaseGroupName}"
4012
4119
  ) ? releaseTagPattern.replace("{releaseGroupName}", "{projectName}") : `{projectName}@${releaseTagPattern}`;
4013
- const projectReleaseTag = await git.getLatestGitTagForPattern(
4120
+ const projectReleaseTag = await getLatestGitTagForPattern(
4121
+ this.workspaceConfig,
4014
4122
  projectReleaseTagPattern,
4015
4123
  additionalInterpolationData,
4016
4124
  this.resolveRepositoryTags.bind(this),
4017
4125
  options
4018
4126
  );
4019
- chunkAU2HBQCB_cjs.writeDebug(
4127
+ chunkQOOEK76B_cjs.writeDebug(
4020
4128
  `Group release tag pattern: ${releaseTagPattern}
4021
4129
  Project release tag pattern: ${projectReleaseTagPattern}
4022
4130
  Group release tag: ${groupReleaseTag?.tag}
4023
4131
  Project release tag: ${projectReleaseTag?.tag}`,
4024
4132
  this.workspaceConfig
4025
4133
  );
4026
- if (projectReleaseTag?.extractedVersion && groupReleaseTag?.extractedVersion && gte__default.default(
4134
+ if (projectReleaseTag?.extractedVersion && groupReleaseTag?.extractedVersion && gte2__default.default(
4027
4135
  projectReleaseTag.extractedVersion,
4028
4136
  groupReleaseTag.extractedVersion
4029
4137
  )) {
@@ -4032,7 +4140,8 @@ Project release tag: ${projectReleaseTag?.tag}`,
4032
4140
  latestMatchingGitTag = groupReleaseTag;
4033
4141
  }
4034
4142
  } else {
4035
- latestMatchingGitTag = await git.getLatestGitTagForPattern(
4143
+ latestMatchingGitTag = await getLatestGitTagForPattern(
4144
+ this.workspaceConfig,
4036
4145
  releaseTagPattern,
4037
4146
  additionalInterpolationData,
4038
4147
  this.resolveRepositoryTags.bind(this),
@@ -4305,7 +4414,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
4305
4414
  constructor(tree, workspaceConfig, projectGraph, nxReleaseConfig, releaseGraph, versionOptions) {
4306
4415
  super(tree, projectGraph, nxReleaseConfig, releaseGraph, {
4307
4416
  dryRun: !!versionOptions.dryRun,
4308
- verbose: versionOptions.verbose || chunkAU2HBQCB_cjs.isVerbose(workspaceConfig.logLevel),
4417
+ verbose: versionOptions.verbose || chunkQOOEK76B_cjs.isVerbose(workspaceConfig.logLevel),
4309
4418
  firstRelease: !!versionOptions.firstRelease,
4310
4419
  preid: versionOptions.preid ?? workspaceConfig.preid ?? "",
4311
4420
  userGivenSpecifier: versionOptions.specifier,
@@ -4403,7 +4512,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
4403
4512
  deletedFiles: deletedFilesForVersionActions
4404
4513
  } = await afterAllProjectsVersioned(this.#tree.root, {
4405
4514
  dryRun: this.versionOptions.dryRun,
4406
- verbose: this.versionOptions.verbose || chunkAU2HBQCB_cjs.isVerbose(this.workspaceConfig.logLevel),
4515
+ verbose: this.versionOptions.verbose || chunkQOOEK76B_cjs.isVerbose(this.workspaceConfig.logLevel),
4407
4516
  rootVersionActionsOptions
4408
4517
  });
4409
4518
  for (const file of changedFilesForVersionActions) {
@@ -4436,7 +4545,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
4436
4545
  let handleDockerVersion;
4437
4546
  try {
4438
4547
  const dockerVersionUtilsPath = "@nx/docker/release/version-utils";
4439
- const { handleDockerVersion: _handleDockerVersion } = chunkAU2HBQCB_cjs.__require(dockerVersionUtilsPath);
4548
+ const { handleDockerVersion: _handleDockerVersion } = chunkQOOEK76B_cjs.__require(dockerVersionUtilsPath);
4440
4549
  handleDockerVersion = _handleDockerVersion;
4441
4550
  } catch (e) {
4442
4551
  console.error(
@@ -4524,12 +4633,12 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
4524
4633
  for (const project of releaseGroup.projects) {
4525
4634
  const currentVersion = this.#getCurrentCachedVersionForProject(project);
4526
4635
  if (!currentVersion) {
4527
- chunkAU2HBQCB_cjs.writeTrace(
4636
+ chunkQOOEK76B_cjs.writeTrace(
4528
4637
  `No current version found for project ${project} in release group ${releaseGroup.name}, skipping version comparison.`,
4529
4638
  this.workspaceConfig
4530
4639
  );
4531
4640
  } else {
4532
- chunkAU2HBQCB_cjs.writeDebug(
4641
+ chunkQOOEK76B_cjs.writeDebug(
4533
4642
  `Comparing versions for fixed group ${releaseGroup.name}: Current Greatest Version: ${fixedGroup.currentVersion || "none"}, Current Project Version: ${currentVersion} (project: ${project})`,
4534
4643
  this.workspaceConfig
4535
4644
  );
@@ -4555,7 +4664,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
4555
4664
  reasonData: newVersionInputReasonData
4556
4665
  };
4557
4666
  }
4558
- chunkAU2HBQCB_cjs.writeDebug(
4667
+ chunkQOOEK76B_cjs.writeDebug(
4559
4668
  `Fixed release group ${releaseGroup.name} updated: Current Version: ${fixedGroup.currentVersion || "none"}, New Version: ${fixedGroup.newVersion?.input || "none"} (first project: ${project})`,
4560
4669
  this.workspaceConfig
4561
4670
  );
@@ -5008,7 +5117,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
5008
5117
  var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient {
5009
5118
  static async create(releaseConfig = {}, ignoreNxJsonConfig = false, workspaceConfig) {
5010
5119
  if (!workspaceConfig) {
5011
- workspaceConfig = await chunkAU2HBQCB_cjs.getWorkspaceConfig();
5120
+ workspaceConfig = await chunkQOOEK76B_cjs.getWorkspaceConfig();
5012
5121
  }
5013
5122
  const projectGraph = await devkit.createProjectGraphAsync({
5014
5123
  exitOnError: true,
@@ -5019,7 +5128,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
5019
5128
  "Failed to load the project graph. Please run `nx reset`, then run the `storm-git commit` command again."
5020
5129
  );
5021
5130
  }
5022
- chunkAU2HBQCB_cjs.writeTrace(
5131
+ chunkQOOEK76B_cjs.writeTrace(
5023
5132
  `Provided release configuration:
5024
5133
  ${formatConfigLog(releaseConfig)}`,
5025
5134
  workspaceConfig
@@ -5030,7 +5139,7 @@ ${formatConfigLog(releaseConfig)}`,
5030
5139
  workspaceConfig,
5031
5140
  ignoreNxJsonConfig
5032
5141
  );
5033
- chunkAU2HBQCB_cjs.writeDebug(
5142
+ chunkQOOEK76B_cjs.writeDebug(
5034
5143
  `Resolved release configuration:
5035
5144
  ${formatConfigLog(config5)}`,
5036
5145
  workspaceConfig
@@ -5067,11 +5176,11 @@ ${formatConfigLog(config5)}`,
5067
5176
  */
5068
5177
  constructor(projectGraph, releaseConfig, workspaceConfig) {
5069
5178
  super(releaseConfig, true);
5070
- chunkAU2HBQCB_cjs.writeDebug(
5179
+ chunkQOOEK76B_cjs.writeDebug(
5071
5180
  "Executing release with the following configuration",
5072
5181
  workspaceConfig
5073
5182
  );
5074
- chunkAU2HBQCB_cjs.writeDebug(releaseConfig, workspaceConfig);
5183
+ chunkQOOEK76B_cjs.writeDebug(releaseConfig, workspaceConfig);
5075
5184
  this.projectGraph = projectGraph;
5076
5185
  this.releaseConfig = releaseConfig;
5077
5186
  this.workspaceConfig = workspaceConfig;
@@ -5099,7 +5208,7 @@ ${formatConfigLog(config5)}`,
5099
5208
  groups: options.groups
5100
5209
  },
5101
5210
  firstRelease: !!options.firstRelease,
5102
- verbose: chunkAU2HBQCB_cjs.isVerbose(this.workspaceConfig.logLevel)
5211
+ verbose: chunkQOOEK76B_cjs.isVerbose(this.workspaceConfig.logLevel)
5103
5212
  },
5104
5213
  this.workspaceConfig
5105
5214
  );
@@ -5163,7 +5272,8 @@ ${formatConfigLog(config5)}`,
5163
5272
  if (releaseGroup.projectsRelationship === "independent") {
5164
5273
  for (const project of projectNodes) {
5165
5274
  let changes = null;
5166
- let fromRef = options.from || (await git.getLatestGitTagForPattern(
5275
+ let fromRef = options.from || (await getLatestGitTagForPattern(
5276
+ this.workspaceConfig,
5167
5277
  releaseGroup.releaseTag.pattern,
5168
5278
  {
5169
5279
  projectName: project.name,
@@ -5228,7 +5338,7 @@ ${formatConfigLog(config5)}`,
5228
5338
  })),
5229
5339
  this.releaseConfig.conventionalCommits
5230
5340
  );
5231
- chunkAU2HBQCB_cjs.writeDebug(
5341
+ chunkQOOEK76B_cjs.writeDebug(
5232
5342
  `Running changelog generation for the ${releaseGroup.name} release group`,
5233
5343
  this.workspaceConfig
5234
5344
  );
@@ -5258,7 +5368,8 @@ ${formatConfigLog(config5)}`,
5258
5368
  }
5259
5369
  } else {
5260
5370
  let changes = [];
5261
- let fromRef = options.from || (await git.getLatestGitTagForPattern(
5371
+ let fromRef = options.from || (await getLatestGitTagForPattern(
5372
+ this.workspaceConfig,
5262
5373
  releaseGroup.releaseTag.pattern,
5263
5374
  {
5264
5375
  releaseGroupName: releaseGroup.name
@@ -5302,7 +5413,7 @@ ${formatConfigLog(config5)}`,
5302
5413
  })),
5303
5414
  this.releaseConfig.conventionalCommits
5304
5415
  );
5305
- chunkAU2HBQCB_cjs.writeDebug(
5416
+ chunkQOOEK76B_cjs.writeDebug(
5306
5417
  `Running changelog generation for the ${releaseGroup.name} release group`,
5307
5418
  this.workspaceConfig
5308
5419
  );
@@ -5331,7 +5442,7 @@ ${formatConfigLog(config5)}`,
5331
5442
  }
5332
5443
  }
5333
5444
  }
5334
- chunkAU2HBQCB_cjs.writeDebug(
5445
+ chunkQOOEK76B_cjs.writeDebug(
5335
5446
  `Generated changelogs for ${Object.keys(allProjectChangelogs).length} projects:
5336
5447
  ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5337
5448
  `,
@@ -5360,7 +5471,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5360
5471
  );
5361
5472
  const changes = this.tree.listChanges();
5362
5473
  if (!changes.length) {
5363
- chunkAU2HBQCB_cjs.writeWarning(
5474
+ chunkQOOEK76B_cjs.writeWarning(
5364
5475
  "No changes were detected for any changelog files, so no changelog entries will be generated.",
5365
5476
  this.workspaceConfig
5366
5477
  );
@@ -5382,7 +5493,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5382
5493
  gitCommitArgs: options.gitCommitArgs || this.releaseConfig.changelog?.git?.commitArgs
5383
5494
  });
5384
5495
  latestCommit = await git.getCommitHash("HEAD");
5385
- chunkAU2HBQCB_cjs.writeDebug(
5496
+ chunkQOOEK76B_cjs.writeDebug(
5386
5497
  `Creating git tags: ${gitTagValues.join(", ")}`,
5387
5498
  this.workspaceConfig
5388
5499
  );
@@ -5395,7 +5506,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5395
5506
  verbose: options.verbose
5396
5507
  });
5397
5508
  }
5398
- chunkAU2HBQCB_cjs.writeDebug(
5509
+ chunkQOOEK76B_cjs.writeDebug(
5399
5510
  `Pushing to git remote "${options.gitRemote ?? "origin"}"`,
5400
5511
  this.workspaceConfig
5401
5512
  );
@@ -5411,7 +5522,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5411
5522
  return;
5412
5523
  };
5413
5524
  releaseVersion = async (options) => {
5414
- const verbose = options.verbose || chunkAU2HBQCB_cjs.isVerbose(this.workspaceConfig.logLevel);
5525
+ const verbose = options.verbose || chunkQOOEK76B_cjs.isVerbose(this.workspaceConfig.logLevel);
5415
5526
  this.projectGraph = await devkit.createProjectGraphAsync({
5416
5527
  exitOnError: true,
5417
5528
  resetDaemonClient: true
@@ -5438,7 +5549,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5438
5549
  this.workspaceConfig
5439
5550
  );
5440
5551
  if (releaseGraph.filterLog && process.env.NX_RELEASE_INTERNAL_SUPPRESS_FILTER_LOG !== "true") {
5441
- chunkAU2HBQCB_cjs.writeDebug(formatNxLog(releaseGraph.filterLog), this.workspaceConfig);
5552
+ chunkQOOEK76B_cjs.writeDebug(formatNxLog(releaseGraph.filterLog), this.workspaceConfig);
5442
5553
  }
5443
5554
  if (!options.specifier) {
5444
5555
  const rawVersionPlans = await versionPlans.readRawVersionPlans();
@@ -5457,7 +5568,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5457
5568
  }
5458
5569
  } else {
5459
5570
  if (verbose && releaseGraph.releaseGroups.some((g) => !!g.versionPlans)) {
5460
- chunkAU2HBQCB_cjs.writeDebug(
5571
+ chunkQOOEK76B_cjs.writeDebug(
5461
5572
  `Skipping version plan discovery as a specifier was provided`,
5462
5573
  this.workspaceConfig
5463
5574
  );
@@ -5467,7 +5578,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5467
5578
  options.deleteVersionPlans = false;
5468
5579
  }
5469
5580
  if (this.releaseConfig.version?.preVersionCommand) {
5470
- chunkAU2HBQCB_cjs.writeDebug(
5581
+ chunkQOOEK76B_cjs.writeDebug(
5471
5582
  "Executing the following pre-version command: \n" + this.releaseConfig.version.preVersionCommand,
5472
5583
  this.workspaceConfig
5473
5584
  );
@@ -5503,7 +5614,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5503
5614
  continue;
5504
5615
  }
5505
5616
  if (releaseGroup.version?.groupPreVersionCommand) {
5506
- chunkAU2HBQCB_cjs.writeDebug(
5617
+ chunkQOOEK76B_cjs.writeDebug(
5507
5618
  `Executing the ${releaseGroup.name} release group's pre-version command:
5508
5619
  ` + releaseGroup.version?.groupPreVersionCommand,
5509
5620
  this.workspaceConfig
@@ -5563,7 +5674,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5563
5674
  changed.forEach((f) => additionalChangedFiles.add(f));
5564
5675
  deleted.forEach((f) => additionalDeletedFiles.add(f));
5565
5676
  if (this.releaseConfig.docker && typeof this.releaseConfig.docker === "object" && this.releaseConfig.docker?.preVersionCommand) {
5566
- chunkAU2HBQCB_cjs.writeDebug(
5677
+ chunkQOOEK76B_cjs.writeDebug(
5567
5678
  `Executing the docker pre-version command:
5568
5679
  ` + this.releaseConfig.docker.preVersionCommand,
5569
5680
  this.workspaceConfig
@@ -5600,7 +5711,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5600
5711
  continue;
5601
5712
  }
5602
5713
  if (releaseGroup.docker?.groupPreVersionCommand) {
5603
- chunkAU2HBQCB_cjs.writeDebug(
5714
+ chunkQOOEK76B_cjs.writeDebug(
5604
5715
  `Executing the ${releaseGroup.name} release group's docker pre-version command:
5605
5716
  ` + releaseGroup.docker?.groupPreVersionCommand,
5606
5717
  this.workspaceConfig
@@ -5631,7 +5742,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5631
5742
  }
5632
5743
  }
5633
5744
  if (this.releaseConfig.docker || releaseGraph.releaseGroups.some((rg) => rg.docker)) {
5634
- chunkAU2HBQCB_cjs.writeWarning(
5745
+ chunkQOOEK76B_cjs.writeWarning(
5635
5746
  formatNxLog({
5636
5747
  title: "Warning",
5637
5748
  bodyLines: [
@@ -5688,7 +5799,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5688
5799
  gitCommitArgs: options.gitCommitArgs || this.releaseConfig.version?.git?.commitArgs
5689
5800
  });
5690
5801
  } else if (options.stageChanges ?? this.releaseConfig.version?.git?.stageChanges) {
5691
- chunkAU2HBQCB_cjs.writeDebug(`Staging changed files with git`);
5802
+ chunkQOOEK76B_cjs.writeDebug(`Staging changed files with git`);
5692
5803
  await git.gitAdd({
5693
5804
  changedFiles,
5694
5805
  deletedFiles,
@@ -5697,7 +5808,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5697
5808
  });
5698
5809
  }
5699
5810
  if (options.gitTag ?? this.releaseConfig.version?.git?.tag) {
5700
- chunkAU2HBQCB_cjs.writeDebug(`Tagging commit with git`);
5811
+ chunkQOOEK76B_cjs.writeDebug(`Tagging commit with git`);
5701
5812
  for (const tag of gitTagValues) {
5702
5813
  await gitTag({
5703
5814
  tag,
@@ -5709,7 +5820,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5709
5820
  }
5710
5821
  }
5711
5822
  if (options.gitPush ?? this.releaseConfig.version?.git?.push) {
5712
- chunkAU2HBQCB_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
5823
+ chunkQOOEK76B_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
5713
5824
  await git.gitPush({
5714
5825
  gitRemote: options.gitRemote,
5715
5826
  dryRun: options.dryRun,
@@ -5740,7 +5851,7 @@ var runRelease = async (config5, {
5740
5851
  throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
5741
5852
  }
5742
5853
  if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
5743
- chunkAU2HBQCB_cjs.writeFatal(
5854
+ chunkQOOEK76B_cjs.writeFatal(
5744
5855
  "You must be a member of the Storm Software organization to run the release process.",
5745
5856
  config5
5746
5857
  );
@@ -5757,23 +5868,23 @@ var runRelease = async (config5, {
5757
5868
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
5758
5869
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
5759
5870
  process.env.NPM_CONFIG_PROVENANCE = "true";
5760
- chunkAU2HBQCB_cjs.writeDebug("Creating Storm release client...", config5);
5871
+ chunkQOOEK76B_cjs.writeDebug("Creating Storm release client...", config5);
5761
5872
  const releaseClient = await StormReleaseClient.create(
5762
5873
  releaseConfig,
5763
5874
  ignoreNxJsonConfig,
5764
5875
  config5
5765
5876
  );
5766
- chunkAU2HBQCB_cjs.writeDebug("Reading in the workspaces release configuration", config5);
5877
+ chunkQOOEK76B_cjs.writeDebug("Reading in the workspaces release configuration", config5);
5767
5878
  const to = head || process.env.NX_HEAD;
5768
5879
  const from = base || process.env.NX_BASE;
5769
- chunkAU2HBQCB_cjs.writeDebug(
5880
+ chunkQOOEK76B_cjs.writeDebug(
5770
5881
  `Using the following Git SHAs to determine the release content:
5771
5882
  - From: ${from}
5772
5883
  - To: ${to}
5773
5884
  `,
5774
5885
  config5
5775
5886
  );
5776
- chunkAU2HBQCB_cjs.writeDebug("Determining the current release versions...", config5);
5887
+ chunkQOOEK76B_cjs.writeDebug("Determining the current release versions...", config5);
5777
5888
  const { workspaceVersion, projectsVersionData, releaseGraph } = await releaseClient.releaseVersion({
5778
5889
  dryRun,
5779
5890
  verbose: true,
@@ -5790,9 +5901,9 @@ var runRelease = async (config5, {
5790
5901
  from,
5791
5902
  releaseGraph
5792
5903
  });
5793
- chunkAU2HBQCB_cjs.writeDebug("Tagging commit with git", config5);
5904
+ chunkQOOEK76B_cjs.writeDebug("Tagging commit with git", config5);
5794
5905
  if (skipPublish) {
5795
- chunkAU2HBQCB_cjs.writeWarning(
5906
+ chunkQOOEK76B_cjs.writeWarning(
5796
5907
  "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
5797
5908
  config5
5798
5909
  );
@@ -5801,7 +5912,7 @@ var runRelease = async (config5, {
5801
5912
  (key) => projectsVersionData[key]?.newVersion
5802
5913
  );
5803
5914
  if (changedProjects.length > 0) {
5804
- chunkAU2HBQCB_cjs.writeInfo(
5915
+ chunkQOOEK76B_cjs.writeInfo(
5805
5916
  `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
5806
5917
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
5807
5918
  `,
@@ -5825,10 +5936,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
5825
5936
  );
5826
5937
  }
5827
5938
  } else {
5828
- chunkAU2HBQCB_cjs.writeWarning("Skipped publishing packages.", config5);
5939
+ chunkQOOEK76B_cjs.writeWarning("Skipped publishing packages.", config5);
5829
5940
  }
5830
5941
  }
5831
- chunkAU2HBQCB_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
5942
+ chunkQOOEK76B_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
5832
5943
  };
5833
5944
  async function updatePackageManifests(projectsVersionData, config5) {
5834
5945
  let projectGraph;
@@ -5843,7 +5954,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
5843
5954
  Object.keys(projectsVersionData).map(async (node) => {
5844
5955
  const projectNode = projectGraph.nodes[node];
5845
5956
  if (!projectNode?.data.root) {
5846
- chunkAU2HBQCB_cjs.writeWarning(
5957
+ chunkQOOEK76B_cjs.writeWarning(
5847
5958
  `Project node ${node} not found in the project graph. Skipping manifest update.`,
5848
5959
  config5
5849
5960
  );
@@ -5851,17 +5962,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
5851
5962
  }
5852
5963
  const versionData = projectsVersionData[node];
5853
5964
  if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
5854
- chunkAU2HBQCB_cjs.writeTrace(
5965
+ chunkQOOEK76B_cjs.writeTrace(
5855
5966
  `Writing version ${versionData.newVersion} update to manifest file for ${node}
5856
5967
  `,
5857
5968
  config5
5858
5969
  );
5859
- const projectRoot = chunkAU2HBQCB_cjs.joinPaths(
5970
+ const projectRoot = chunkQOOEK76B_cjs.joinPaths(
5860
5971
  config5.workspaceRoot,
5861
5972
  projectNode.data.root
5862
5973
  );
5863
- const packageJsonPath = chunkAU2HBQCB_cjs.joinPaths(projectRoot, "package.json");
5864
- const cargoTomlPath = chunkAU2HBQCB_cjs.joinPaths(projectRoot, "Cargo.toml");
5974
+ const packageJsonPath = chunkQOOEK76B_cjs.joinPaths(projectRoot, "package.json");
5975
+ const cargoTomlPath = chunkQOOEK76B_cjs.joinPaths(projectRoot, "Cargo.toml");
5865
5976
  if (fs$1.existsSync(packageJsonPath)) {
5866
5977
  const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
5867
5978
  const packageJson = JSON.parse(packageJsonContent);
@@ -5879,7 +5990,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
5879
5990
  })
5880
5991
  );
5881
5992
  } else {
5882
- chunkAU2HBQCB_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
5993
+ chunkQOOEK76B_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
5883
5994
  }
5884
5995
  }
5885
5996
 
@@ -5887,8 +5998,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
5887
5998
  var _config = {};
5888
5999
  function createProgram(config5) {
5889
6000
  _config = config5;
5890
- chunkAU2HBQCB_cjs.writeInfo(`${chunkAU2HBQCB_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
5891
- const root = chunkAU2HBQCB_cjs.findWorkspaceRootSafe(process.cwd());
6001
+ chunkQOOEK76B_cjs.writeInfo(`${chunkQOOEK76B_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
6002
+ const root = chunkQOOEK76B_cjs.findWorkspaceRootSafe(process.cwd());
5892
6003
  process.env.STORM_WORKSPACE_ROOT ??= root;
5893
6004
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
5894
6005
  if (root) {
@@ -5935,12 +6046,12 @@ async function commitAction({
5935
6046
  dryRun = false
5936
6047
  }) {
5937
6048
  try {
5938
- chunkAU2HBQCB_cjs.writeInfo(
5939
- `${chunkAU2HBQCB_cjs.brandIcon(typeof config5 === "string" ? {} : config5)} Preparing to commit your changes. Please provide the requested details below...`,
6049
+ chunkQOOEK76B_cjs.writeInfo(
6050
+ `${chunkQOOEK76B_cjs.brandIcon(typeof config5 === "string" ? {} : config5)} Preparing to commit your changes. Please provide the requested details below...`,
5940
6051
  _config
5941
6052
  );
5942
6053
  await runCommit(config5, dryRun);
5943
- chunkAU2HBQCB_cjs.writeSuccess(
6054
+ chunkQOOEK76B_cjs.writeSuccess(
5944
6055
  `\u2714 Storm Commit processing completed successfully!
5945
6056
 
5946
6057
  Note: Please run "pnpm push" to upload these changes to the remote ${_config.name ? _config.name : _config.namespace ? _config.namespace : _config.organization ? _config.organization : "Storm-Software"} Git repository at ${_config.repository}
@@ -5948,7 +6059,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
5948
6059
  _config
5949
6060
  );
5950
6061
  } catch (error) {
5951
- chunkAU2HBQCB_cjs.writeFatal(
6062
+ chunkQOOEK76B_cjs.writeFatal(
5952
6063
  `A fatal error occurred while running commit action:
5953
6064
 
5954
6065
  ${error.message}${error.stack ? `
@@ -5963,17 +6074,17 @@ Please fix any errors and try committing again.`,
5963
6074
  }
5964
6075
  async function readmeAction(options) {
5965
6076
  try {
5966
- chunkAU2HBQCB_cjs.writeInfo(
5967
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
6077
+ chunkQOOEK76B_cjs.writeInfo(
6078
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
5968
6079
  _config
5969
6080
  );
5970
6081
  await runReadme(options);
5971
- chunkAU2HBQCB_cjs.writeSuccess(
6082
+ chunkQOOEK76B_cjs.writeSuccess(
5972
6083
  "\u2714 Formatting of the workspace's README.md files is complete\n",
5973
6084
  _config
5974
6085
  );
5975
6086
  } catch (error) {
5976
- chunkAU2HBQCB_cjs.writeFatal(
6087
+ chunkQOOEK76B_cjs.writeFatal(
5977
6088
  `A fatal error occurred while running README format action:
5978
6089
 
5979
6090
  ${error.message}`
@@ -5988,8 +6099,8 @@ async function releaseAction({
5988
6099
  dryRun
5989
6100
  }) {
5990
6101
  try {
5991
- chunkAU2HBQCB_cjs.writeInfo(
5992
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
6102
+ chunkQOOEK76B_cjs.writeInfo(
6103
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
5993
6104
  _config
5994
6105
  );
5995
6106
  await runRelease(_config, {
@@ -5998,9 +6109,9 @@ async function releaseAction({
5998
6109
  base,
5999
6110
  head
6000
6111
  });
6001
- chunkAU2HBQCB_cjs.writeSuccess("\u2714 Release completed successfully!\n", _config);
6112
+ chunkQOOEK76B_cjs.writeSuccess("\u2714 Release completed successfully!\n", _config);
6002
6113
  } catch (error) {
6003
- chunkAU2HBQCB_cjs.writeFatal(
6114
+ chunkQOOEK76B_cjs.writeFatal(
6004
6115
  `A fatal error occurred while running release action:
6005
6116
 
6006
6117
  ${error.message} ${error.stack ? `
@@ -6014,17 +6125,17 @@ Stacktrace: ${error.stack}` : ""}`,
6014
6125
  }
6015
6126
  async function commitLintAction(options) {
6016
6127
  try {
6017
- chunkAU2HBQCB_cjs.writeInfo(
6018
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Linting the ${_config.repository ? _config.repository : _config.namespace ? _config.namespace : _config.name ? _config.name : typeof _config.organization === "string" ? _config.organization : _config.organization?.name ? _config.organization?.name : "Storm-Software"} repository's commit messages.`,
6128
+ chunkQOOEK76B_cjs.writeInfo(
6129
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Linting the ${_config.repository ? _config.repository : _config.namespace ? _config.namespace : _config.name ? _config.name : typeof _config.organization === "string" ? _config.organization : _config.organization?.name ? _config.organization?.name : "Storm-Software"} repository's commit messages.`,
6019
6130
  _config
6020
6131
  );
6021
6132
  await runCommitLint(_config, options);
6022
- chunkAU2HBQCB_cjs.writeSuccess(
6133
+ chunkQOOEK76B_cjs.writeSuccess(
6023
6134
  "\u2714 Linting the commit messages completed successfully!\n",
6024
6135
  _config
6025
6136
  );
6026
6137
  } catch (error) {
6027
- chunkAU2HBQCB_cjs.writeFatal(
6138
+ chunkQOOEK76B_cjs.writeFatal(
6028
6139
  `A fatal error occurred while linting the commit messages:
6029
6140
 
6030
6141
  ${error.message}`,
@@ -6035,14 +6146,14 @@ ${error.message}`,
6035
6146
  }
6036
6147
  async function postCheckoutAction({ files }) {
6037
6148
  try {
6038
- chunkAU2HBQCB_cjs.writeInfo(
6039
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm post-checkout git hook for ${files.length} files in the workspace...`,
6149
+ chunkQOOEK76B_cjs.writeInfo(
6150
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Running the Storm post-checkout git hook for ${files.length} files in the workspace...`,
6040
6151
  _config
6041
6152
  );
6042
- await chunkNKCKZ3E3_cjs.postCheckoutHook(_config, files);
6043
- chunkAU2HBQCB_cjs.writeSuccess("\u2714 Post-checkout hook completed successfully!\n", _config);
6153
+ await chunkWZZIVUHI_cjs.postCheckoutHook(_config, files);
6154
+ chunkQOOEK76B_cjs.writeSuccess("\u2714 Post-checkout hook completed successfully!\n", _config);
6044
6155
  } catch (error) {
6045
- chunkAU2HBQCB_cjs.writeFatal(
6156
+ chunkQOOEK76B_cjs.writeFatal(
6046
6157
  `A fatal error occurred while running the post-checkout hook:
6047
6158
 
6048
6159
  ${error.message}`,
@@ -6053,14 +6164,14 @@ ${error.message}`,
6053
6164
  }
6054
6165
  async function postCommitAction({ files }) {
6055
6166
  try {
6056
- chunkAU2HBQCB_cjs.writeInfo(
6057
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm post-commit git hook for ${files.length} files in the workspace...`,
6167
+ chunkQOOEK76B_cjs.writeInfo(
6168
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Running the Storm post-commit git hook for ${files.length} files in the workspace...`,
6058
6169
  _config
6059
6170
  );
6060
- await chunkKHPLFH3X_cjs.postCommitHook(_config, files);
6061
- chunkAU2HBQCB_cjs.writeSuccess("\u2714 Post-commit hook completed successfully!\n", _config);
6171
+ await chunkNSP7UDOF_cjs.postCommitHook(_config, files);
6172
+ chunkQOOEK76B_cjs.writeSuccess("\u2714 Post-commit hook completed successfully!\n", _config);
6062
6173
  } catch (error) {
6063
- chunkAU2HBQCB_cjs.writeFatal(
6174
+ chunkQOOEK76B_cjs.writeFatal(
6064
6175
  `A fatal error occurred while running the post-commit hook:
6065
6176
 
6066
6177
  ${error.message}`,
@@ -6071,14 +6182,14 @@ ${error.message}`,
6071
6182
  }
6072
6183
  async function postMergeAction({ files }) {
6073
6184
  try {
6074
- chunkAU2HBQCB_cjs.writeInfo(
6075
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm post-merge git hook for ${files.length} files in the workspace...`,
6185
+ chunkQOOEK76B_cjs.writeInfo(
6186
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Running the Storm post-merge git hook for ${files.length} files in the workspace...`,
6076
6187
  _config
6077
6188
  );
6078
- await chunkFNM5AXPR_cjs.postMergeHook(_config, files);
6079
- chunkAU2HBQCB_cjs.writeSuccess("\u2714 Post-merge hook completed successfully!\n", _config);
6189
+ await chunkM4UDDFX2_cjs.postMergeHook(_config, files);
6190
+ chunkQOOEK76B_cjs.writeSuccess("\u2714 Post-merge hook completed successfully!\n", _config);
6080
6191
  } catch (error) {
6081
- chunkAU2HBQCB_cjs.writeFatal(
6192
+ chunkQOOEK76B_cjs.writeFatal(
6082
6193
  `A fatal error occurred while running the post-merge hook:
6083
6194
 
6084
6195
  ${error.message}`,
@@ -6089,14 +6200,14 @@ ${error.message}`,
6089
6200
  }
6090
6201
  async function preCommitAction({ files }) {
6091
6202
  try {
6092
- chunkAU2HBQCB_cjs.writeInfo(
6093
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm pre-commit git hook for ${files.length} files in the workspace...`,
6203
+ chunkQOOEK76B_cjs.writeInfo(
6204
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Running the Storm pre-commit git hook for ${files.length} files in the workspace...`,
6094
6205
  _config
6095
6206
  );
6096
- await chunkZ5SKX5XN_cjs.preCommitHook(_config, files);
6097
- chunkAU2HBQCB_cjs.writeSuccess("\u2714 Pre-commit hook completed successfully!\n", _config);
6207
+ await chunkMQOEMLKV_cjs.preCommitHook(_config, files);
6208
+ chunkQOOEK76B_cjs.writeSuccess("\u2714 Pre-commit hook completed successfully!\n", _config);
6098
6209
  } catch (error) {
6099
- chunkAU2HBQCB_cjs.writeFatal(
6210
+ chunkQOOEK76B_cjs.writeFatal(
6100
6211
  `A fatal error occurred while running the pre-commit hook:
6101
6212
 
6102
6213
  ${error.message}`,
@@ -6107,14 +6218,14 @@ ${error.message}`,
6107
6218
  }
6108
6219
  async function prePushAction({ files }) {
6109
6220
  try {
6110
- chunkAU2HBQCB_cjs.writeInfo(
6111
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm pre-push git hook for ${files.length} files in the workspace...`,
6221
+ chunkQOOEK76B_cjs.writeInfo(
6222
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Running the Storm pre-push git hook for ${files.length} files in the workspace...`,
6112
6223
  _config
6113
6224
  );
6114
- await chunk7I4XZL7P_cjs.prePushHook(_config, files);
6115
- chunkAU2HBQCB_cjs.writeSuccess("\u2714 Pre-push hook completed successfully!\n", _config);
6225
+ await chunkQITSXT5W_cjs.prePushHook(_config, files);
6226
+ chunkQOOEK76B_cjs.writeSuccess("\u2714 Pre-push hook completed successfully!\n", _config);
6116
6227
  } catch (error) {
6117
- chunkAU2HBQCB_cjs.writeFatal(
6228
+ chunkQOOEK76B_cjs.writeFatal(
6118
6229
  `A fatal error occurred while running the pre-push hook:
6119
6230
 
6120
6231
  ${error.message}`,
@@ -6125,14 +6236,14 @@ ${error.message}`,
6125
6236
  }
6126
6237
  async function prepareAction() {
6127
6238
  try {
6128
- chunkAU2HBQCB_cjs.writeInfo(
6129
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm prepare git hook for the workspace...`,
6239
+ chunkQOOEK76B_cjs.writeInfo(
6240
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Running the Storm prepare git hook for the workspace...`,
6130
6241
  _config
6131
6242
  );
6132
- await chunk77NN2DPB_cjs.prepareHook(_config);
6133
- chunkAU2HBQCB_cjs.writeSuccess("\u2714 Prepare hook completed successfully!\n", _config);
6243
+ await chunk3LVCR6LS_cjs.prepareHook(_config);
6244
+ chunkQOOEK76B_cjs.writeSuccess("\u2714 Prepare hook completed successfully!\n", _config);
6134
6245
  } catch (error) {
6135
- chunkAU2HBQCB_cjs.writeFatal(
6246
+ chunkQOOEK76B_cjs.writeFatal(
6136
6247
  `A fatal error occurred while running the prepare hook:
6137
6248
 
6138
6249
  ${error.message}`,
@@ -6144,18 +6255,18 @@ ${error.message}`,
6144
6255
 
6145
6256
  // bin/git.ts
6146
6257
  void (async () => {
6147
- const config5 = await chunkAU2HBQCB_cjs.getConfig();
6258
+ const config5 = await chunkQOOEK76B_cjs.getConfig();
6148
6259
  try {
6149
- chunkAU2HBQCB_cjs.handleProcess(config5);
6260
+ chunkQOOEK76B_cjs.handleProcess(config5);
6150
6261
  const program = createProgram(config5);
6151
6262
  await program.parseAsync(process.argv);
6152
- chunkAU2HBQCB_cjs.writeSuccess(
6263
+ chunkQOOEK76B_cjs.writeSuccess(
6153
6264
  `\u2714 Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
6154
6265
  config5
6155
6266
  );
6156
- chunkAU2HBQCB_cjs.exitWithSuccess(config5);
6267
+ chunkQOOEK76B_cjs.exitWithSuccess(config5);
6157
6268
  } catch (error) {
6158
- chunkAU2HBQCB_cjs.exitWithError(config5);
6269
+ chunkQOOEK76B_cjs.exitWithError(config5);
6159
6270
  process.exit(1);
6160
6271
  }
6161
6272
  })();