@storm-software/git-tools 2.131.23 → 2.131.25

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 +270 -155
  34. package/bin/git.cjs.map +1 -1
  35. package/bin/git.js +131 -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,13 +4140,18 @@ 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),
4039
4148
  options
4040
4149
  );
4041
4150
  }
4151
+ chunkQOOEK76B_cjs.writeDebug(
4152
+ `Resolved latest matching git tag ${latestMatchingGitTag?.tag} (version: ${latestMatchingGitTag?.extractedVersion}) for project "${projectName}"`,
4153
+ this.workspaceConfig
4154
+ );
4042
4155
  this.cachedLatestMatchingGitTag.set(
4043
4156
  projectName,
4044
4157
  latestMatchingGitTag
@@ -4305,7 +4418,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
4305
4418
  constructor(tree, workspaceConfig, projectGraph, nxReleaseConfig, releaseGraph, versionOptions) {
4306
4419
  super(tree, projectGraph, nxReleaseConfig, releaseGraph, {
4307
4420
  dryRun: !!versionOptions.dryRun,
4308
- verbose: versionOptions.verbose || chunkAU2HBQCB_cjs.isVerbose(workspaceConfig.logLevel),
4421
+ verbose: versionOptions.verbose || chunkQOOEK76B_cjs.isVerbose(workspaceConfig.logLevel),
4309
4422
  firstRelease: !!versionOptions.firstRelease,
4310
4423
  preid: versionOptions.preid ?? workspaceConfig.preid ?? "",
4311
4424
  userGivenSpecifier: versionOptions.specifier,
@@ -4403,7 +4516,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
4403
4516
  deletedFiles: deletedFilesForVersionActions
4404
4517
  } = await afterAllProjectsVersioned(this.#tree.root, {
4405
4518
  dryRun: this.versionOptions.dryRun,
4406
- verbose: this.versionOptions.verbose || chunkAU2HBQCB_cjs.isVerbose(this.workspaceConfig.logLevel),
4519
+ verbose: this.versionOptions.verbose || chunkQOOEK76B_cjs.isVerbose(this.workspaceConfig.logLevel),
4407
4520
  rootVersionActionsOptions
4408
4521
  });
4409
4522
  for (const file of changedFilesForVersionActions) {
@@ -4436,7 +4549,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
4436
4549
  let handleDockerVersion;
4437
4550
  try {
4438
4551
  const dockerVersionUtilsPath = "@nx/docker/release/version-utils";
4439
- const { handleDockerVersion: _handleDockerVersion } = chunkAU2HBQCB_cjs.__require(dockerVersionUtilsPath);
4552
+ const { handleDockerVersion: _handleDockerVersion } = chunkQOOEK76B_cjs.__require(dockerVersionUtilsPath);
4440
4553
  handleDockerVersion = _handleDockerVersion;
4441
4554
  } catch (e) {
4442
4555
  console.error(
@@ -4524,12 +4637,12 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
4524
4637
  for (const project of releaseGroup.projects) {
4525
4638
  const currentVersion = this.#getCurrentCachedVersionForProject(project);
4526
4639
  if (!currentVersion) {
4527
- chunkAU2HBQCB_cjs.writeTrace(
4640
+ chunkQOOEK76B_cjs.writeTrace(
4528
4641
  `No current version found for project ${project} in release group ${releaseGroup.name}, skipping version comparison.`,
4529
4642
  this.workspaceConfig
4530
4643
  );
4531
4644
  } else {
4532
- chunkAU2HBQCB_cjs.writeDebug(
4645
+ chunkQOOEK76B_cjs.writeDebug(
4533
4646
  `Comparing versions for fixed group ${releaseGroup.name}: Current Greatest Version: ${fixedGroup.currentVersion || "none"}, Current Project Version: ${currentVersion} (project: ${project})`,
4534
4647
  this.workspaceConfig
4535
4648
  );
@@ -4555,7 +4668,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
4555
4668
  reasonData: newVersionInputReasonData
4556
4669
  };
4557
4670
  }
4558
- chunkAU2HBQCB_cjs.writeDebug(
4671
+ chunkQOOEK76B_cjs.writeDebug(
4559
4672
  `Fixed release group ${releaseGroup.name} updated: Current Version: ${fixedGroup.currentVersion || "none"}, New Version: ${fixedGroup.newVersion?.input || "none"} (first project: ${project})`,
4560
4673
  this.workspaceConfig
4561
4674
  );
@@ -5008,7 +5121,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
5008
5121
  var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient {
5009
5122
  static async create(releaseConfig = {}, ignoreNxJsonConfig = false, workspaceConfig) {
5010
5123
  if (!workspaceConfig) {
5011
- workspaceConfig = await chunkAU2HBQCB_cjs.getWorkspaceConfig();
5124
+ workspaceConfig = await chunkQOOEK76B_cjs.getWorkspaceConfig();
5012
5125
  }
5013
5126
  const projectGraph = await devkit.createProjectGraphAsync({
5014
5127
  exitOnError: true,
@@ -5019,7 +5132,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
5019
5132
  "Failed to load the project graph. Please run `nx reset`, then run the `storm-git commit` command again."
5020
5133
  );
5021
5134
  }
5022
- chunkAU2HBQCB_cjs.writeTrace(
5135
+ chunkQOOEK76B_cjs.writeTrace(
5023
5136
  `Provided release configuration:
5024
5137
  ${formatConfigLog(releaseConfig)}`,
5025
5138
  workspaceConfig
@@ -5030,7 +5143,7 @@ ${formatConfigLog(releaseConfig)}`,
5030
5143
  workspaceConfig,
5031
5144
  ignoreNxJsonConfig
5032
5145
  );
5033
- chunkAU2HBQCB_cjs.writeDebug(
5146
+ chunkQOOEK76B_cjs.writeDebug(
5034
5147
  `Resolved release configuration:
5035
5148
  ${formatConfigLog(config5)}`,
5036
5149
  workspaceConfig
@@ -5067,11 +5180,11 @@ ${formatConfigLog(config5)}`,
5067
5180
  */
5068
5181
  constructor(projectGraph, releaseConfig, workspaceConfig) {
5069
5182
  super(releaseConfig, true);
5070
- chunkAU2HBQCB_cjs.writeDebug(
5183
+ chunkQOOEK76B_cjs.writeDebug(
5071
5184
  "Executing release with the following configuration",
5072
5185
  workspaceConfig
5073
5186
  );
5074
- chunkAU2HBQCB_cjs.writeDebug(releaseConfig, workspaceConfig);
5187
+ chunkQOOEK76B_cjs.writeDebug(releaseConfig, workspaceConfig);
5075
5188
  this.projectGraph = projectGraph;
5076
5189
  this.releaseConfig = releaseConfig;
5077
5190
  this.workspaceConfig = workspaceConfig;
@@ -5099,7 +5212,7 @@ ${formatConfigLog(config5)}`,
5099
5212
  groups: options.groups
5100
5213
  },
5101
5214
  firstRelease: !!options.firstRelease,
5102
- verbose: chunkAU2HBQCB_cjs.isVerbose(this.workspaceConfig.logLevel)
5215
+ verbose: chunkQOOEK76B_cjs.isVerbose(this.workspaceConfig.logLevel)
5103
5216
  },
5104
5217
  this.workspaceConfig
5105
5218
  );
@@ -5163,7 +5276,8 @@ ${formatConfigLog(config5)}`,
5163
5276
  if (releaseGroup.projectsRelationship === "independent") {
5164
5277
  for (const project of projectNodes) {
5165
5278
  let changes = null;
5166
- let fromRef = options.from || (await git.getLatestGitTagForPattern(
5279
+ let fromRef = options.from || (await getLatestGitTagForPattern(
5280
+ this.workspaceConfig,
5167
5281
  releaseGroup.releaseTag.pattern,
5168
5282
  {
5169
5283
  projectName: project.name,
@@ -5228,7 +5342,7 @@ ${formatConfigLog(config5)}`,
5228
5342
  })),
5229
5343
  this.releaseConfig.conventionalCommits
5230
5344
  );
5231
- chunkAU2HBQCB_cjs.writeDebug(
5345
+ chunkQOOEK76B_cjs.writeDebug(
5232
5346
  `Running changelog generation for the ${releaseGroup.name} release group`,
5233
5347
  this.workspaceConfig
5234
5348
  );
@@ -5258,7 +5372,8 @@ ${formatConfigLog(config5)}`,
5258
5372
  }
5259
5373
  } else {
5260
5374
  let changes = [];
5261
- let fromRef = options.from || (await git.getLatestGitTagForPattern(
5375
+ let fromRef = options.from || (await getLatestGitTagForPattern(
5376
+ this.workspaceConfig,
5262
5377
  releaseGroup.releaseTag.pattern,
5263
5378
  {
5264
5379
  releaseGroupName: releaseGroup.name
@@ -5302,7 +5417,7 @@ ${formatConfigLog(config5)}`,
5302
5417
  })),
5303
5418
  this.releaseConfig.conventionalCommits
5304
5419
  );
5305
- chunkAU2HBQCB_cjs.writeDebug(
5420
+ chunkQOOEK76B_cjs.writeDebug(
5306
5421
  `Running changelog generation for the ${releaseGroup.name} release group`,
5307
5422
  this.workspaceConfig
5308
5423
  );
@@ -5331,7 +5446,7 @@ ${formatConfigLog(config5)}`,
5331
5446
  }
5332
5447
  }
5333
5448
  }
5334
- chunkAU2HBQCB_cjs.writeDebug(
5449
+ chunkQOOEK76B_cjs.writeDebug(
5335
5450
  `Generated changelogs for ${Object.keys(allProjectChangelogs).length} projects:
5336
5451
  ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5337
5452
  `,
@@ -5360,7 +5475,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5360
5475
  );
5361
5476
  const changes = this.tree.listChanges();
5362
5477
  if (!changes.length) {
5363
- chunkAU2HBQCB_cjs.writeWarning(
5478
+ chunkQOOEK76B_cjs.writeWarning(
5364
5479
  "No changes were detected for any changelog files, so no changelog entries will be generated.",
5365
5480
  this.workspaceConfig
5366
5481
  );
@@ -5382,7 +5497,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5382
5497
  gitCommitArgs: options.gitCommitArgs || this.releaseConfig.changelog?.git?.commitArgs
5383
5498
  });
5384
5499
  latestCommit = await git.getCommitHash("HEAD");
5385
- chunkAU2HBQCB_cjs.writeDebug(
5500
+ chunkQOOEK76B_cjs.writeDebug(
5386
5501
  `Creating git tags: ${gitTagValues.join(", ")}`,
5387
5502
  this.workspaceConfig
5388
5503
  );
@@ -5395,7 +5510,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5395
5510
  verbose: options.verbose
5396
5511
  });
5397
5512
  }
5398
- chunkAU2HBQCB_cjs.writeDebug(
5513
+ chunkQOOEK76B_cjs.writeDebug(
5399
5514
  `Pushing to git remote "${options.gitRemote ?? "origin"}"`,
5400
5515
  this.workspaceConfig
5401
5516
  );
@@ -5411,7 +5526,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5411
5526
  return;
5412
5527
  };
5413
5528
  releaseVersion = async (options) => {
5414
- const verbose = options.verbose || chunkAU2HBQCB_cjs.isVerbose(this.workspaceConfig.logLevel);
5529
+ const verbose = options.verbose || chunkQOOEK76B_cjs.isVerbose(this.workspaceConfig.logLevel);
5415
5530
  this.projectGraph = await devkit.createProjectGraphAsync({
5416
5531
  exitOnError: true,
5417
5532
  resetDaemonClient: true
@@ -5438,7 +5553,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5438
5553
  this.workspaceConfig
5439
5554
  );
5440
5555
  if (releaseGraph.filterLog && process.env.NX_RELEASE_INTERNAL_SUPPRESS_FILTER_LOG !== "true") {
5441
- chunkAU2HBQCB_cjs.writeDebug(formatNxLog(releaseGraph.filterLog), this.workspaceConfig);
5556
+ chunkQOOEK76B_cjs.writeDebug(formatNxLog(releaseGraph.filterLog), this.workspaceConfig);
5442
5557
  }
5443
5558
  if (!options.specifier) {
5444
5559
  const rawVersionPlans = await versionPlans.readRawVersionPlans();
@@ -5457,7 +5572,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5457
5572
  }
5458
5573
  } else {
5459
5574
  if (verbose && releaseGraph.releaseGroups.some((g) => !!g.versionPlans)) {
5460
- chunkAU2HBQCB_cjs.writeDebug(
5575
+ chunkQOOEK76B_cjs.writeDebug(
5461
5576
  `Skipping version plan discovery as a specifier was provided`,
5462
5577
  this.workspaceConfig
5463
5578
  );
@@ -5467,7 +5582,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5467
5582
  options.deleteVersionPlans = false;
5468
5583
  }
5469
5584
  if (this.releaseConfig.version?.preVersionCommand) {
5470
- chunkAU2HBQCB_cjs.writeDebug(
5585
+ chunkQOOEK76B_cjs.writeDebug(
5471
5586
  "Executing the following pre-version command: \n" + this.releaseConfig.version.preVersionCommand,
5472
5587
  this.workspaceConfig
5473
5588
  );
@@ -5503,7 +5618,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5503
5618
  continue;
5504
5619
  }
5505
5620
  if (releaseGroup.version?.groupPreVersionCommand) {
5506
- chunkAU2HBQCB_cjs.writeDebug(
5621
+ chunkQOOEK76B_cjs.writeDebug(
5507
5622
  `Executing the ${releaseGroup.name} release group's pre-version command:
5508
5623
  ` + releaseGroup.version?.groupPreVersionCommand,
5509
5624
  this.workspaceConfig
@@ -5563,7 +5678,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5563
5678
  changed.forEach((f) => additionalChangedFiles.add(f));
5564
5679
  deleted.forEach((f) => additionalDeletedFiles.add(f));
5565
5680
  if (this.releaseConfig.docker && typeof this.releaseConfig.docker === "object" && this.releaseConfig.docker?.preVersionCommand) {
5566
- chunkAU2HBQCB_cjs.writeDebug(
5681
+ chunkQOOEK76B_cjs.writeDebug(
5567
5682
  `Executing the docker pre-version command:
5568
5683
  ` + this.releaseConfig.docker.preVersionCommand,
5569
5684
  this.workspaceConfig
@@ -5600,7 +5715,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5600
5715
  continue;
5601
5716
  }
5602
5717
  if (releaseGroup.docker?.groupPreVersionCommand) {
5603
- chunkAU2HBQCB_cjs.writeDebug(
5718
+ chunkQOOEK76B_cjs.writeDebug(
5604
5719
  `Executing the ${releaseGroup.name} release group's docker pre-version command:
5605
5720
  ` + releaseGroup.docker?.groupPreVersionCommand,
5606
5721
  this.workspaceConfig
@@ -5631,7 +5746,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5631
5746
  }
5632
5747
  }
5633
5748
  if (this.releaseConfig.docker || releaseGraph.releaseGroups.some((rg) => rg.docker)) {
5634
- chunkAU2HBQCB_cjs.writeWarning(
5749
+ chunkQOOEK76B_cjs.writeWarning(
5635
5750
  formatNxLog({
5636
5751
  title: "Warning",
5637
5752
  bodyLines: [
@@ -5688,7 +5803,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5688
5803
  gitCommitArgs: options.gitCommitArgs || this.releaseConfig.version?.git?.commitArgs
5689
5804
  });
5690
5805
  } else if (options.stageChanges ?? this.releaseConfig.version?.git?.stageChanges) {
5691
- chunkAU2HBQCB_cjs.writeDebug(`Staging changed files with git`);
5806
+ chunkQOOEK76B_cjs.writeDebug(`Staging changed files with git`);
5692
5807
  await git.gitAdd({
5693
5808
  changedFiles,
5694
5809
  deletedFiles,
@@ -5697,7 +5812,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5697
5812
  });
5698
5813
  }
5699
5814
  if (options.gitTag ?? this.releaseConfig.version?.git?.tag) {
5700
- chunkAU2HBQCB_cjs.writeDebug(`Tagging commit with git`);
5815
+ chunkQOOEK76B_cjs.writeDebug(`Tagging commit with git`);
5701
5816
  for (const tag of gitTagValues) {
5702
5817
  await gitTag({
5703
5818
  tag,
@@ -5709,7 +5824,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5709
5824
  }
5710
5825
  }
5711
5826
  if (options.gitPush ?? this.releaseConfig.version?.git?.push) {
5712
- chunkAU2HBQCB_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
5827
+ chunkQOOEK76B_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
5713
5828
  await git.gitPush({
5714
5829
  gitRemote: options.gitRemote,
5715
5830
  dryRun: options.dryRun,
@@ -5740,7 +5855,7 @@ var runRelease = async (config5, {
5740
5855
  throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
5741
5856
  }
5742
5857
  if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
5743
- chunkAU2HBQCB_cjs.writeFatal(
5858
+ chunkQOOEK76B_cjs.writeFatal(
5744
5859
  "You must be a member of the Storm Software organization to run the release process.",
5745
5860
  config5
5746
5861
  );
@@ -5757,23 +5872,23 @@ var runRelease = async (config5, {
5757
5872
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
5758
5873
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
5759
5874
  process.env.NPM_CONFIG_PROVENANCE = "true";
5760
- chunkAU2HBQCB_cjs.writeDebug("Creating Storm release client...", config5);
5875
+ chunkQOOEK76B_cjs.writeDebug("Creating Storm release client...", config5);
5761
5876
  const releaseClient = await StormReleaseClient.create(
5762
5877
  releaseConfig,
5763
5878
  ignoreNxJsonConfig,
5764
5879
  config5
5765
5880
  );
5766
- chunkAU2HBQCB_cjs.writeDebug("Reading in the workspaces release configuration", config5);
5881
+ chunkQOOEK76B_cjs.writeDebug("Reading in the workspaces release configuration", config5);
5767
5882
  const to = head || process.env.NX_HEAD;
5768
5883
  const from = base || process.env.NX_BASE;
5769
- chunkAU2HBQCB_cjs.writeDebug(
5884
+ chunkQOOEK76B_cjs.writeDebug(
5770
5885
  `Using the following Git SHAs to determine the release content:
5771
5886
  - From: ${from}
5772
5887
  - To: ${to}
5773
5888
  `,
5774
5889
  config5
5775
5890
  );
5776
- chunkAU2HBQCB_cjs.writeDebug("Determining the current release versions...", config5);
5891
+ chunkQOOEK76B_cjs.writeDebug("Determining the current release versions...", config5);
5777
5892
  const { workspaceVersion, projectsVersionData, releaseGraph } = await releaseClient.releaseVersion({
5778
5893
  dryRun,
5779
5894
  verbose: true,
@@ -5790,9 +5905,9 @@ var runRelease = async (config5, {
5790
5905
  from,
5791
5906
  releaseGraph
5792
5907
  });
5793
- chunkAU2HBQCB_cjs.writeDebug("Tagging commit with git", config5);
5908
+ chunkQOOEK76B_cjs.writeDebug("Tagging commit with git", config5);
5794
5909
  if (skipPublish) {
5795
- chunkAU2HBQCB_cjs.writeWarning(
5910
+ chunkQOOEK76B_cjs.writeWarning(
5796
5911
  "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
5797
5912
  config5
5798
5913
  );
@@ -5801,7 +5916,7 @@ var runRelease = async (config5, {
5801
5916
  (key) => projectsVersionData[key]?.newVersion
5802
5917
  );
5803
5918
  if (changedProjects.length > 0) {
5804
- chunkAU2HBQCB_cjs.writeInfo(
5919
+ chunkQOOEK76B_cjs.writeInfo(
5805
5920
  `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
5806
5921
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
5807
5922
  `,
@@ -5825,10 +5940,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
5825
5940
  );
5826
5941
  }
5827
5942
  } else {
5828
- chunkAU2HBQCB_cjs.writeWarning("Skipped publishing packages.", config5);
5943
+ chunkQOOEK76B_cjs.writeWarning("Skipped publishing packages.", config5);
5829
5944
  }
5830
5945
  }
5831
- chunkAU2HBQCB_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
5946
+ chunkQOOEK76B_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
5832
5947
  };
5833
5948
  async function updatePackageManifests(projectsVersionData, config5) {
5834
5949
  let projectGraph;
@@ -5843,7 +5958,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
5843
5958
  Object.keys(projectsVersionData).map(async (node) => {
5844
5959
  const projectNode = projectGraph.nodes[node];
5845
5960
  if (!projectNode?.data.root) {
5846
- chunkAU2HBQCB_cjs.writeWarning(
5961
+ chunkQOOEK76B_cjs.writeWarning(
5847
5962
  `Project node ${node} not found in the project graph. Skipping manifest update.`,
5848
5963
  config5
5849
5964
  );
@@ -5851,17 +5966,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
5851
5966
  }
5852
5967
  const versionData = projectsVersionData[node];
5853
5968
  if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
5854
- chunkAU2HBQCB_cjs.writeTrace(
5969
+ chunkQOOEK76B_cjs.writeTrace(
5855
5970
  `Writing version ${versionData.newVersion} update to manifest file for ${node}
5856
5971
  `,
5857
5972
  config5
5858
5973
  );
5859
- const projectRoot = chunkAU2HBQCB_cjs.joinPaths(
5974
+ const projectRoot = chunkQOOEK76B_cjs.joinPaths(
5860
5975
  config5.workspaceRoot,
5861
5976
  projectNode.data.root
5862
5977
  );
5863
- const packageJsonPath = chunkAU2HBQCB_cjs.joinPaths(projectRoot, "package.json");
5864
- const cargoTomlPath = chunkAU2HBQCB_cjs.joinPaths(projectRoot, "Cargo.toml");
5978
+ const packageJsonPath = chunkQOOEK76B_cjs.joinPaths(projectRoot, "package.json");
5979
+ const cargoTomlPath = chunkQOOEK76B_cjs.joinPaths(projectRoot, "Cargo.toml");
5865
5980
  if (fs$1.existsSync(packageJsonPath)) {
5866
5981
  const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
5867
5982
  const packageJson = JSON.parse(packageJsonContent);
@@ -5879,7 +5994,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
5879
5994
  })
5880
5995
  );
5881
5996
  } else {
5882
- chunkAU2HBQCB_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
5997
+ chunkQOOEK76B_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
5883
5998
  }
5884
5999
  }
5885
6000
 
@@ -5887,8 +6002,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
5887
6002
  var _config = {};
5888
6003
  function createProgram(config5) {
5889
6004
  _config = config5;
5890
- chunkAU2HBQCB_cjs.writeInfo(`${chunkAU2HBQCB_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
5891
- const root = chunkAU2HBQCB_cjs.findWorkspaceRootSafe(process.cwd());
6005
+ chunkQOOEK76B_cjs.writeInfo(`${chunkQOOEK76B_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
6006
+ const root = chunkQOOEK76B_cjs.findWorkspaceRootSafe(process.cwd());
5892
6007
  process.env.STORM_WORKSPACE_ROOT ??= root;
5893
6008
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
5894
6009
  if (root) {
@@ -5935,12 +6050,12 @@ async function commitAction({
5935
6050
  dryRun = false
5936
6051
  }) {
5937
6052
  try {
5938
- chunkAU2HBQCB_cjs.writeInfo(
5939
- `${chunkAU2HBQCB_cjs.brandIcon(typeof config5 === "string" ? {} : config5)} Preparing to commit your changes. Please provide the requested details below...`,
6053
+ chunkQOOEK76B_cjs.writeInfo(
6054
+ `${chunkQOOEK76B_cjs.brandIcon(typeof config5 === "string" ? {} : config5)} Preparing to commit your changes. Please provide the requested details below...`,
5940
6055
  _config
5941
6056
  );
5942
6057
  await runCommit(config5, dryRun);
5943
- chunkAU2HBQCB_cjs.writeSuccess(
6058
+ chunkQOOEK76B_cjs.writeSuccess(
5944
6059
  `\u2714 Storm Commit processing completed successfully!
5945
6060
 
5946
6061
  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 +6063,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
5948
6063
  _config
5949
6064
  );
5950
6065
  } catch (error) {
5951
- chunkAU2HBQCB_cjs.writeFatal(
6066
+ chunkQOOEK76B_cjs.writeFatal(
5952
6067
  `A fatal error occurred while running commit action:
5953
6068
 
5954
6069
  ${error.message}${error.stack ? `
@@ -5963,17 +6078,17 @@ Please fix any errors and try committing again.`,
5963
6078
  }
5964
6079
  async function readmeAction(options) {
5965
6080
  try {
5966
- chunkAU2HBQCB_cjs.writeInfo(
5967
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
6081
+ chunkQOOEK76B_cjs.writeInfo(
6082
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
5968
6083
  _config
5969
6084
  );
5970
6085
  await runReadme(options);
5971
- chunkAU2HBQCB_cjs.writeSuccess(
6086
+ chunkQOOEK76B_cjs.writeSuccess(
5972
6087
  "\u2714 Formatting of the workspace's README.md files is complete\n",
5973
6088
  _config
5974
6089
  );
5975
6090
  } catch (error) {
5976
- chunkAU2HBQCB_cjs.writeFatal(
6091
+ chunkQOOEK76B_cjs.writeFatal(
5977
6092
  `A fatal error occurred while running README format action:
5978
6093
 
5979
6094
  ${error.message}`
@@ -5988,8 +6103,8 @@ async function releaseAction({
5988
6103
  dryRun
5989
6104
  }) {
5990
6105
  try {
5991
- chunkAU2HBQCB_cjs.writeInfo(
5992
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
6106
+ chunkQOOEK76B_cjs.writeInfo(
6107
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
5993
6108
  _config
5994
6109
  );
5995
6110
  await runRelease(_config, {
@@ -5998,9 +6113,9 @@ async function releaseAction({
5998
6113
  base,
5999
6114
  head
6000
6115
  });
6001
- chunkAU2HBQCB_cjs.writeSuccess("\u2714 Release completed successfully!\n", _config);
6116
+ chunkQOOEK76B_cjs.writeSuccess("\u2714 Release completed successfully!\n", _config);
6002
6117
  } catch (error) {
6003
- chunkAU2HBQCB_cjs.writeFatal(
6118
+ chunkQOOEK76B_cjs.writeFatal(
6004
6119
  `A fatal error occurred while running release action:
6005
6120
 
6006
6121
  ${error.message} ${error.stack ? `
@@ -6014,17 +6129,17 @@ Stacktrace: ${error.stack}` : ""}`,
6014
6129
  }
6015
6130
  async function commitLintAction(options) {
6016
6131
  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.`,
6132
+ chunkQOOEK76B_cjs.writeInfo(
6133
+ `${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
6134
  _config
6020
6135
  );
6021
6136
  await runCommitLint(_config, options);
6022
- chunkAU2HBQCB_cjs.writeSuccess(
6137
+ chunkQOOEK76B_cjs.writeSuccess(
6023
6138
  "\u2714 Linting the commit messages completed successfully!\n",
6024
6139
  _config
6025
6140
  );
6026
6141
  } catch (error) {
6027
- chunkAU2HBQCB_cjs.writeFatal(
6142
+ chunkQOOEK76B_cjs.writeFatal(
6028
6143
  `A fatal error occurred while linting the commit messages:
6029
6144
 
6030
6145
  ${error.message}`,
@@ -6035,14 +6150,14 @@ ${error.message}`,
6035
6150
  }
6036
6151
  async function postCheckoutAction({ files }) {
6037
6152
  try {
6038
- chunkAU2HBQCB_cjs.writeInfo(
6039
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm post-checkout git hook for ${files.length} files in the workspace...`,
6153
+ chunkQOOEK76B_cjs.writeInfo(
6154
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Running the Storm post-checkout git hook for ${files.length} files in the workspace...`,
6040
6155
  _config
6041
6156
  );
6042
- await chunkNKCKZ3E3_cjs.postCheckoutHook(_config, files);
6043
- chunkAU2HBQCB_cjs.writeSuccess("\u2714 Post-checkout hook completed successfully!\n", _config);
6157
+ await chunkWZZIVUHI_cjs.postCheckoutHook(_config, files);
6158
+ chunkQOOEK76B_cjs.writeSuccess("\u2714 Post-checkout hook completed successfully!\n", _config);
6044
6159
  } catch (error) {
6045
- chunkAU2HBQCB_cjs.writeFatal(
6160
+ chunkQOOEK76B_cjs.writeFatal(
6046
6161
  `A fatal error occurred while running the post-checkout hook:
6047
6162
 
6048
6163
  ${error.message}`,
@@ -6053,14 +6168,14 @@ ${error.message}`,
6053
6168
  }
6054
6169
  async function postCommitAction({ files }) {
6055
6170
  try {
6056
- chunkAU2HBQCB_cjs.writeInfo(
6057
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm post-commit git hook for ${files.length} files in the workspace...`,
6171
+ chunkQOOEK76B_cjs.writeInfo(
6172
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Running the Storm post-commit git hook for ${files.length} files in the workspace...`,
6058
6173
  _config
6059
6174
  );
6060
- await chunkKHPLFH3X_cjs.postCommitHook(_config, files);
6061
- chunkAU2HBQCB_cjs.writeSuccess("\u2714 Post-commit hook completed successfully!\n", _config);
6175
+ await chunkNSP7UDOF_cjs.postCommitHook(_config, files);
6176
+ chunkQOOEK76B_cjs.writeSuccess("\u2714 Post-commit hook completed successfully!\n", _config);
6062
6177
  } catch (error) {
6063
- chunkAU2HBQCB_cjs.writeFatal(
6178
+ chunkQOOEK76B_cjs.writeFatal(
6064
6179
  `A fatal error occurred while running the post-commit hook:
6065
6180
 
6066
6181
  ${error.message}`,
@@ -6071,14 +6186,14 @@ ${error.message}`,
6071
6186
  }
6072
6187
  async function postMergeAction({ files }) {
6073
6188
  try {
6074
- chunkAU2HBQCB_cjs.writeInfo(
6075
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm post-merge git hook for ${files.length} files in the workspace...`,
6189
+ chunkQOOEK76B_cjs.writeInfo(
6190
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Running the Storm post-merge git hook for ${files.length} files in the workspace...`,
6076
6191
  _config
6077
6192
  );
6078
- await chunkFNM5AXPR_cjs.postMergeHook(_config, files);
6079
- chunkAU2HBQCB_cjs.writeSuccess("\u2714 Post-merge hook completed successfully!\n", _config);
6193
+ await chunkM4UDDFX2_cjs.postMergeHook(_config, files);
6194
+ chunkQOOEK76B_cjs.writeSuccess("\u2714 Post-merge hook completed successfully!\n", _config);
6080
6195
  } catch (error) {
6081
- chunkAU2HBQCB_cjs.writeFatal(
6196
+ chunkQOOEK76B_cjs.writeFatal(
6082
6197
  `A fatal error occurred while running the post-merge hook:
6083
6198
 
6084
6199
  ${error.message}`,
@@ -6089,14 +6204,14 @@ ${error.message}`,
6089
6204
  }
6090
6205
  async function preCommitAction({ files }) {
6091
6206
  try {
6092
- chunkAU2HBQCB_cjs.writeInfo(
6093
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm pre-commit git hook for ${files.length} files in the workspace...`,
6207
+ chunkQOOEK76B_cjs.writeInfo(
6208
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Running the Storm pre-commit git hook for ${files.length} files in the workspace...`,
6094
6209
  _config
6095
6210
  );
6096
- await chunkZ5SKX5XN_cjs.preCommitHook(_config, files);
6097
- chunkAU2HBQCB_cjs.writeSuccess("\u2714 Pre-commit hook completed successfully!\n", _config);
6211
+ await chunkMQOEMLKV_cjs.preCommitHook(_config, files);
6212
+ chunkQOOEK76B_cjs.writeSuccess("\u2714 Pre-commit hook completed successfully!\n", _config);
6098
6213
  } catch (error) {
6099
- chunkAU2HBQCB_cjs.writeFatal(
6214
+ chunkQOOEK76B_cjs.writeFatal(
6100
6215
  `A fatal error occurred while running the pre-commit hook:
6101
6216
 
6102
6217
  ${error.message}`,
@@ -6107,14 +6222,14 @@ ${error.message}`,
6107
6222
  }
6108
6223
  async function prePushAction({ files }) {
6109
6224
  try {
6110
- chunkAU2HBQCB_cjs.writeInfo(
6111
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm pre-push git hook for ${files.length} files in the workspace...`,
6225
+ chunkQOOEK76B_cjs.writeInfo(
6226
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Running the Storm pre-push git hook for ${files.length} files in the workspace...`,
6112
6227
  _config
6113
6228
  );
6114
- await chunk7I4XZL7P_cjs.prePushHook(_config, files);
6115
- chunkAU2HBQCB_cjs.writeSuccess("\u2714 Pre-push hook completed successfully!\n", _config);
6229
+ await chunkQITSXT5W_cjs.prePushHook(_config, files);
6230
+ chunkQOOEK76B_cjs.writeSuccess("\u2714 Pre-push hook completed successfully!\n", _config);
6116
6231
  } catch (error) {
6117
- chunkAU2HBQCB_cjs.writeFatal(
6232
+ chunkQOOEK76B_cjs.writeFatal(
6118
6233
  `A fatal error occurred while running the pre-push hook:
6119
6234
 
6120
6235
  ${error.message}`,
@@ -6125,14 +6240,14 @@ ${error.message}`,
6125
6240
  }
6126
6241
  async function prepareAction() {
6127
6242
  try {
6128
- chunkAU2HBQCB_cjs.writeInfo(
6129
- `${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm prepare git hook for the workspace...`,
6243
+ chunkQOOEK76B_cjs.writeInfo(
6244
+ `${chunkQOOEK76B_cjs.brandIcon(_config)} Running the Storm prepare git hook for the workspace...`,
6130
6245
  _config
6131
6246
  );
6132
- await chunk77NN2DPB_cjs.prepareHook(_config);
6133
- chunkAU2HBQCB_cjs.writeSuccess("\u2714 Prepare hook completed successfully!\n", _config);
6247
+ await chunk3LVCR6LS_cjs.prepareHook(_config);
6248
+ chunkQOOEK76B_cjs.writeSuccess("\u2714 Prepare hook completed successfully!\n", _config);
6134
6249
  } catch (error) {
6135
- chunkAU2HBQCB_cjs.writeFatal(
6250
+ chunkQOOEK76B_cjs.writeFatal(
6136
6251
  `A fatal error occurred while running the prepare hook:
6137
6252
 
6138
6253
  ${error.message}`,
@@ -6144,18 +6259,18 @@ ${error.message}`,
6144
6259
 
6145
6260
  // bin/git.ts
6146
6261
  void (async () => {
6147
- const config5 = await chunkAU2HBQCB_cjs.getConfig();
6262
+ const config5 = await chunkQOOEK76B_cjs.getConfig();
6148
6263
  try {
6149
- chunkAU2HBQCB_cjs.handleProcess(config5);
6264
+ chunkQOOEK76B_cjs.handleProcess(config5);
6150
6265
  const program = createProgram(config5);
6151
6266
  await program.parseAsync(process.argv);
6152
- chunkAU2HBQCB_cjs.writeSuccess(
6267
+ chunkQOOEK76B_cjs.writeSuccess(
6153
6268
  `\u2714 Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
6154
6269
  config5
6155
6270
  );
6156
- chunkAU2HBQCB_cjs.exitWithSuccess(config5);
6271
+ chunkQOOEK76B_cjs.exitWithSuccess(config5);
6157
6272
  } catch (error) {
6158
- chunkAU2HBQCB_cjs.exitWithError(config5);
6273
+ chunkQOOEK76B_cjs.exitWithError(config5);
6159
6274
  process.exit(1);
6160
6275
  }
6161
6276
  })();