@storm-software/git-tools 2.131.22 → 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-7FLNOTUH.cjs → chunk-3LVCR6LS.cjs} +4 -4
  2. package/bin/{chunk-7FLNOTUH.cjs.map → chunk-3LVCR6LS.cjs.map} +1 -1
  3. package/bin/{chunk-NFY3U5Y5.js → chunk-3PI2VV32.js} +3 -3
  4. package/bin/{chunk-NFY3U5Y5.js.map → chunk-3PI2VV32.js.map} +1 -1
  5. package/bin/{chunk-RNHFC7RJ.js → chunk-3XAQUPZK.js} +11 -5
  6. package/bin/chunk-3XAQUPZK.js.map +1 -0
  7. package/bin/{chunk-KQFEBKJ6.cjs → chunk-4CS5RPMP.cjs} +5 -5
  8. package/bin/{chunk-KQFEBKJ6.cjs.map → chunk-4CS5RPMP.cjs.map} +1 -1
  9. package/bin/{chunk-K3M4EFXG.js → chunk-4GZZR7XL.js} +3 -3
  10. package/bin/{chunk-K3M4EFXG.js.map → chunk-4GZZR7XL.js.map} +1 -1
  11. package/bin/{chunk-S2KYF4B5.js → chunk-AX3PXQKJ.js} +3 -3
  12. package/bin/{chunk-S2KYF4B5.js.map → chunk-AX3PXQKJ.js.map} +1 -1
  13. package/bin/{chunk-2K6K4B6C.js → chunk-C6K3ZRT6.js} +3 -3
  14. package/bin/{chunk-2K6K4B6C.js.map → chunk-C6K3ZRT6.js.map} +1 -1
  15. package/bin/{chunk-WVG2JDAL.js → chunk-DOELUOOS.js} +3 -3
  16. package/bin/{chunk-WVG2JDAL.js.map → chunk-DOELUOOS.js.map} +1 -1
  17. package/bin/{chunk-JZL474YC.js → chunk-GPHBDU6A.js} +3 -3
  18. package/bin/{chunk-JZL474YC.js.map → chunk-GPHBDU6A.js.map} +1 -1
  19. package/bin/{chunk-PXSKDL54.cjs → chunk-M4UDDFX2.cjs} +4 -4
  20. package/bin/{chunk-PXSKDL54.cjs.map → chunk-M4UDDFX2.cjs.map} +1 -1
  21. package/bin/{chunk-TCH5N4G6.cjs → chunk-MQOEMLKV.cjs} +4 -4
  22. package/bin/{chunk-TCH5N4G6.cjs.map → chunk-MQOEMLKV.cjs.map} +1 -1
  23. package/bin/{chunk-GVYZ5VMU.cjs → chunk-NSP7UDOF.cjs} +4 -4
  24. package/bin/{chunk-GVYZ5VMU.cjs.map → chunk-NSP7UDOF.cjs.map} +1 -1
  25. package/bin/{chunk-2DHSN2C3.cjs → chunk-QITSXT5W.cjs} +6 -6
  26. package/bin/{chunk-2DHSN2C3.cjs.map → chunk-QITSXT5W.cjs.map} +1 -1
  27. package/bin/{chunk-OOFHIS6Q.cjs → chunk-QOOEK76B.cjs} +11 -5
  28. package/bin/chunk-QOOEK76B.cjs.map +1 -0
  29. package/bin/{chunk-CZGE4575.cjs → chunk-WZZIVUHI.cjs} +4 -4
  30. package/bin/{chunk-CZGE4575.cjs.map → chunk-WZZIVUHI.cjs.map} +1 -1
  31. package/bin/{chunk-NPCKWTZG.js → chunk-Y7OK7243.js} +3 -3
  32. package/bin/{chunk-NPCKWTZG.js.map → chunk-Y7OK7243.js.map} +1 -1
  33. package/bin/git.cjs +272 -172
  34. package/bin/git.cjs.map +1 -1
  35. package/bin/git.js +134 -34
  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-OWXRRH4A.cjs → chunk-3YY3EGSK.cjs} +2 -2
  54. package/dist/{chunk-Q22WRFSZ.cjs → chunk-4J6EYVX4.cjs} +19 -27
  55. package/dist/{chunk-HLX2O3W5.js → chunk-5AVCKBNV.js} +9 -17
  56. package/dist/{chunk-4SXK4XZ7.js → chunk-A3IJ22YJ.js} +1 -1
  57. package/dist/{chunk-PUNY63CE.cjs → chunk-AOPYQZJZ.cjs} +2 -2
  58. package/dist/{chunk-MWHYSQOS.cjs → chunk-C4226MIL.cjs} +3 -3
  59. package/dist/{chunk-3NDL3NYQ.cjs → chunk-F67AF77W.cjs} +9 -3
  60. package/dist/{chunk-JOWTWLTO.js → chunk-GN5PPUYJ.js} +1 -1
  61. package/dist/{chunk-PV25OROZ.js → chunk-ISJNCGTW.js} +9 -3
  62. package/dist/{chunk-TUICLGR7.js → chunk-JTMGWUUD.js} +1 -1
  63. package/dist/{chunk-VVDS3FJO.js → chunk-MTEWMWXP.js} +1 -1
  64. package/dist/{chunk-3ISKKN7V.cjs → chunk-MWFYZ6C5.cjs} +2 -2
  65. package/dist/{chunk-K6YQY3XT.cjs → chunk-QHOVDHJS.cjs} +2 -2
  66. package/dist/{chunk-GPIIJKQ7.js → chunk-RA7GZDUN.js} +1 -1
  67. package/dist/{chunk-GQZU3KQU.cjs → chunk-S57KI3QJ.cjs} +2 -2
  68. package/dist/{chunk-ICTL4AOJ.js → chunk-VXHEKX5N.js} +1 -1
  69. package/dist/{chunk-BBFGZEK2.cjs → chunk-XMOG277R.cjs} +4 -4
  70. package/dist/{chunk-22KHZEQ7.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-OOFHIS6Q.cjs.map +0 -1
  79. package/bin/chunk-RNHFC7RJ.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 chunkCZGE4575_cjs = require('./chunk-CZGE4575.cjs');
5
- var chunkGVYZ5VMU_cjs = require('./chunk-GVYZ5VMU.cjs');
6
- var chunkPXSKDL54_cjs = require('./chunk-PXSKDL54.cjs');
7
- var chunkTCH5N4G6_cjs = require('./chunk-TCH5N4G6.cjs');
8
- require('./chunk-KQFEBKJ6.cjs');
9
- var chunk2DHSN2C3_cjs = require('./chunk-2DHSN2C3.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 chunk7FLNOTUH_cjs = require('./chunk-7FLNOTUH.cjs');
11
+ var chunk3LVCR6LS_cjs = require('./chunk-3LVCR6LS.cjs');
12
12
  var chunkMTAYUS7E_cjs = require('./chunk-MTAYUS7E.cjs');
13
- var chunkOOFHIS6Q_cjs = require('./chunk-OOFHIS6Q.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 chunkOOFHIS6Q_cjs.getWorkspaceConfig();
435
+ const workspaceConfig = await chunkQOOEK76B_cjs.getWorkspaceConfig();
435
436
  if (variant === "minimal") {
436
- return chunkOOFHIS6Q_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 chunkOOFHIS6Q_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
- chunkOOFHIS6Q_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 = chunkOOFHIS6Q_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
- chunkOOFHIS6Q_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
- chunkOOFHIS6Q_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
- chunkOOFHIS6Q_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
- chunkOOFHIS6Q_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
- chunkOOFHIS6Q_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 = chunkOOFHIS6Q_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 chunkOOFHIS6Q_cjs.getWorkspaceConfig();
1354
+ const workspaceConfig = await chunkQOOEK76B_cjs.getWorkspaceConfig();
1354
1355
  const state = await createState(workspaceConfig);
1355
1356
  if (dryRun) {
1356
- chunkOOFHIS6Q_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 ${chunkOOFHIS6Q_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 = chunkOOFHIS6Q_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
- chunkOOFHIS6Q_cjs.writeDebug(
1380
+ chunkQOOEK76B_cjs.writeDebug(
1380
1381
  `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
1381
1382
  workspaceConfig
1382
1383
  );
1383
- chunkOOFHIS6Q_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 = chunkOOFHIS6Q_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 || chunkOOFHIS6Q_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
- chunkOOFHIS6Q_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 = chunkOOFHIS6Q_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
- chunkOOFHIS6Q_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 chunkOOFHIS6Q_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
- chunkOOFHIS6Q_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 chunkOOFHIS6Q_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: chunkOOFHIS6Q_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: chunkOOFHIS6Q_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 chunkOOFHIS6Q_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
- chunkOOFHIS6Q_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
- chunkOOFHIS6Q_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 = chunkOOFHIS6Q_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
- chunkOOFHIS6Q_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 = chunkOOFHIS6Q_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 = chunkOOFHIS6Q_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 = chunkOOFHIS6Q_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(chunkOOFHIS6Q_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 = chunkOOFHIS6Q_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 = chunkOOFHIS6Q_cjs.defu(
3694
+ groups = chunkQOOEK76B_cjs.defu(
3589
3695
  groups,
3590
3696
  nxJson$1.release.groups
3591
3697
  );
@@ -3605,21 +3711,10 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
3605
3711
  };
3606
3712
  }
3607
3713
  function formatConfigLog(config5) {
3608
- return chunkOOFHIS6Q_cjs.formatLogMessage(
3609
- {
3610
- ...omit(config5, ["groups"]),
3611
- groups: Object.fromEntries(
3612
- Object.entries(config5.groups ?? {}).map(([name, group]) => [
3613
- name,
3614
- {
3615
- ...omit(group, ["projects"]),
3616
- projects: group.projects.length ? group.projects : "No projects"
3617
- }
3618
- ])
3619
- )
3620
- },
3621
- { sort: true, skip: ["workspaceConfig"] }
3622
- );
3714
+ return chunkQOOEK76B_cjs.formatLogMessage(config5, {
3715
+ sort: true,
3716
+ skip: ["workspaceConfig", "conventionalCommits"]
3717
+ });
3623
3718
  }
3624
3719
  var validReleaseVersionPrefixes = ["auto", "", "~", "^", "="];
3625
3720
  var ReleaseGraph = class _ReleaseGraph {
@@ -4012,7 +4107,8 @@ var ReleaseGraph = class _ReleaseGraph {
4012
4107
  strictPreid: releaseGroupNode.group.releaseTag.strictPreid
4013
4108
  };
4014
4109
  if (releaseGroupNode.group.projectsRelationship === "fixed" && !releaseTagPattern.includes("{projectName}")) {
4015
- const groupReleaseTag = await git.getLatestGitTagForPattern(
4110
+ const groupReleaseTag = await getLatestGitTagForPattern(
4111
+ this.workspaceConfig,
4016
4112
  releaseTagPattern,
4017
4113
  additionalInterpolationData,
4018
4114
  this.resolveRepositoryTags.bind(this),
@@ -4021,20 +4117,21 @@ var ReleaseGraph = class _ReleaseGraph {
4021
4117
  const projectReleaseTagPattern = releaseTagPattern.includes(
4022
4118
  "{releaseGroupName}"
4023
4119
  ) ? releaseTagPattern.replace("{releaseGroupName}", "{projectName}") : `{projectName}@${releaseTagPattern}`;
4024
- const projectReleaseTag = await git.getLatestGitTagForPattern(
4120
+ const projectReleaseTag = await getLatestGitTagForPattern(
4121
+ this.workspaceConfig,
4025
4122
  projectReleaseTagPattern,
4026
4123
  additionalInterpolationData,
4027
4124
  this.resolveRepositoryTags.bind(this),
4028
4125
  options
4029
4126
  );
4030
- chunkOOFHIS6Q_cjs.writeDebug(
4127
+ chunkQOOEK76B_cjs.writeDebug(
4031
4128
  `Group release tag pattern: ${releaseTagPattern}
4032
4129
  Project release tag pattern: ${projectReleaseTagPattern}
4033
4130
  Group release tag: ${groupReleaseTag?.tag}
4034
4131
  Project release tag: ${projectReleaseTag?.tag}`,
4035
4132
  this.workspaceConfig
4036
4133
  );
4037
- if (projectReleaseTag?.extractedVersion && groupReleaseTag?.extractedVersion && gte__default.default(
4134
+ if (projectReleaseTag?.extractedVersion && groupReleaseTag?.extractedVersion && gte2__default.default(
4038
4135
  projectReleaseTag.extractedVersion,
4039
4136
  groupReleaseTag.extractedVersion
4040
4137
  )) {
@@ -4043,7 +4140,8 @@ Project release tag: ${projectReleaseTag?.tag}`,
4043
4140
  latestMatchingGitTag = groupReleaseTag;
4044
4141
  }
4045
4142
  } else {
4046
- latestMatchingGitTag = await git.getLatestGitTagForPattern(
4143
+ latestMatchingGitTag = await getLatestGitTagForPattern(
4144
+ this.workspaceConfig,
4047
4145
  releaseTagPattern,
4048
4146
  additionalInterpolationData,
4049
4147
  this.resolveRepositoryTags.bind(this),
@@ -4316,7 +4414,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
4316
4414
  constructor(tree, workspaceConfig, projectGraph, nxReleaseConfig, releaseGraph, versionOptions) {
4317
4415
  super(tree, projectGraph, nxReleaseConfig, releaseGraph, {
4318
4416
  dryRun: !!versionOptions.dryRun,
4319
- verbose: versionOptions.verbose || chunkOOFHIS6Q_cjs.isVerbose(workspaceConfig.logLevel),
4417
+ verbose: versionOptions.verbose || chunkQOOEK76B_cjs.isVerbose(workspaceConfig.logLevel),
4320
4418
  firstRelease: !!versionOptions.firstRelease,
4321
4419
  preid: versionOptions.preid ?? workspaceConfig.preid ?? "",
4322
4420
  userGivenSpecifier: versionOptions.specifier,
@@ -4414,7 +4512,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
4414
4512
  deletedFiles: deletedFilesForVersionActions
4415
4513
  } = await afterAllProjectsVersioned(this.#tree.root, {
4416
4514
  dryRun: this.versionOptions.dryRun,
4417
- verbose: this.versionOptions.verbose || chunkOOFHIS6Q_cjs.isVerbose(this.workspaceConfig.logLevel),
4515
+ verbose: this.versionOptions.verbose || chunkQOOEK76B_cjs.isVerbose(this.workspaceConfig.logLevel),
4418
4516
  rootVersionActionsOptions
4419
4517
  });
4420
4518
  for (const file of changedFilesForVersionActions) {
@@ -4447,7 +4545,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
4447
4545
  let handleDockerVersion;
4448
4546
  try {
4449
4547
  const dockerVersionUtilsPath = "@nx/docker/release/version-utils";
4450
- const { handleDockerVersion: _handleDockerVersion } = chunkOOFHIS6Q_cjs.__require(dockerVersionUtilsPath);
4548
+ const { handleDockerVersion: _handleDockerVersion } = chunkQOOEK76B_cjs.__require(dockerVersionUtilsPath);
4451
4549
  handleDockerVersion = _handleDockerVersion;
4452
4550
  } catch (e) {
4453
4551
  console.error(
@@ -4535,12 +4633,12 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
4535
4633
  for (const project of releaseGroup.projects) {
4536
4634
  const currentVersion = this.#getCurrentCachedVersionForProject(project);
4537
4635
  if (!currentVersion) {
4538
- chunkOOFHIS6Q_cjs.writeTrace(
4636
+ chunkQOOEK76B_cjs.writeTrace(
4539
4637
  `No current version found for project ${project} in release group ${releaseGroup.name}, skipping version comparison.`,
4540
4638
  this.workspaceConfig
4541
4639
  );
4542
4640
  } else {
4543
- chunkOOFHIS6Q_cjs.writeDebug(
4641
+ chunkQOOEK76B_cjs.writeDebug(
4544
4642
  `Comparing versions for fixed group ${releaseGroup.name}: Current Greatest Version: ${fixedGroup.currentVersion || "none"}, Current Project Version: ${currentVersion} (project: ${project})`,
4545
4643
  this.workspaceConfig
4546
4644
  );
@@ -4566,7 +4664,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
4566
4664
  reasonData: newVersionInputReasonData
4567
4665
  };
4568
4666
  }
4569
- chunkOOFHIS6Q_cjs.writeDebug(
4667
+ chunkQOOEK76B_cjs.writeDebug(
4570
4668
  `Fixed release group ${releaseGroup.name} updated: Current Version: ${fixedGroup.currentVersion || "none"}, New Version: ${fixedGroup.newVersion?.input || "none"} (first project: ${project})`,
4571
4669
  this.workspaceConfig
4572
4670
  );
@@ -5019,7 +5117,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
5019
5117
  var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient {
5020
5118
  static async create(releaseConfig = {}, ignoreNxJsonConfig = false, workspaceConfig) {
5021
5119
  if (!workspaceConfig) {
5022
- workspaceConfig = await chunkOOFHIS6Q_cjs.getWorkspaceConfig();
5120
+ workspaceConfig = await chunkQOOEK76B_cjs.getWorkspaceConfig();
5023
5121
  }
5024
5122
  const projectGraph = await devkit.createProjectGraphAsync({
5025
5123
  exitOnError: true,
@@ -5030,7 +5128,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
5030
5128
  "Failed to load the project graph. Please run `nx reset`, then run the `storm-git commit` command again."
5031
5129
  );
5032
5130
  }
5033
- chunkOOFHIS6Q_cjs.writeTrace(
5131
+ chunkQOOEK76B_cjs.writeTrace(
5034
5132
  `Provided release configuration:
5035
5133
  ${formatConfigLog(releaseConfig)}`,
5036
5134
  workspaceConfig
@@ -5041,7 +5139,7 @@ ${formatConfigLog(releaseConfig)}`,
5041
5139
  workspaceConfig,
5042
5140
  ignoreNxJsonConfig
5043
5141
  );
5044
- chunkOOFHIS6Q_cjs.writeDebug(
5142
+ chunkQOOEK76B_cjs.writeDebug(
5045
5143
  `Resolved release configuration:
5046
5144
  ${formatConfigLog(config5)}`,
5047
5145
  workspaceConfig
@@ -5078,11 +5176,11 @@ ${formatConfigLog(config5)}`,
5078
5176
  */
5079
5177
  constructor(projectGraph, releaseConfig, workspaceConfig) {
5080
5178
  super(releaseConfig, true);
5081
- chunkOOFHIS6Q_cjs.writeDebug(
5179
+ chunkQOOEK76B_cjs.writeDebug(
5082
5180
  "Executing release with the following configuration",
5083
5181
  workspaceConfig
5084
5182
  );
5085
- chunkOOFHIS6Q_cjs.writeDebug(releaseConfig, workspaceConfig);
5183
+ chunkQOOEK76B_cjs.writeDebug(releaseConfig, workspaceConfig);
5086
5184
  this.projectGraph = projectGraph;
5087
5185
  this.releaseConfig = releaseConfig;
5088
5186
  this.workspaceConfig = workspaceConfig;
@@ -5110,7 +5208,7 @@ ${formatConfigLog(config5)}`,
5110
5208
  groups: options.groups
5111
5209
  },
5112
5210
  firstRelease: !!options.firstRelease,
5113
- verbose: chunkOOFHIS6Q_cjs.isVerbose(this.workspaceConfig.logLevel)
5211
+ verbose: chunkQOOEK76B_cjs.isVerbose(this.workspaceConfig.logLevel)
5114
5212
  },
5115
5213
  this.workspaceConfig
5116
5214
  );
@@ -5174,7 +5272,8 @@ ${formatConfigLog(config5)}`,
5174
5272
  if (releaseGroup.projectsRelationship === "independent") {
5175
5273
  for (const project of projectNodes) {
5176
5274
  let changes = null;
5177
- let fromRef = options.from || (await git.getLatestGitTagForPattern(
5275
+ let fromRef = options.from || (await getLatestGitTagForPattern(
5276
+ this.workspaceConfig,
5178
5277
  releaseGroup.releaseTag.pattern,
5179
5278
  {
5180
5279
  projectName: project.name,
@@ -5239,7 +5338,7 @@ ${formatConfigLog(config5)}`,
5239
5338
  })),
5240
5339
  this.releaseConfig.conventionalCommits
5241
5340
  );
5242
- chunkOOFHIS6Q_cjs.writeDebug(
5341
+ chunkQOOEK76B_cjs.writeDebug(
5243
5342
  `Running changelog generation for the ${releaseGroup.name} release group`,
5244
5343
  this.workspaceConfig
5245
5344
  );
@@ -5269,7 +5368,8 @@ ${formatConfigLog(config5)}`,
5269
5368
  }
5270
5369
  } else {
5271
5370
  let changes = [];
5272
- let fromRef = options.from || (await git.getLatestGitTagForPattern(
5371
+ let fromRef = options.from || (await getLatestGitTagForPattern(
5372
+ this.workspaceConfig,
5273
5373
  releaseGroup.releaseTag.pattern,
5274
5374
  {
5275
5375
  releaseGroupName: releaseGroup.name
@@ -5313,7 +5413,7 @@ ${formatConfigLog(config5)}`,
5313
5413
  })),
5314
5414
  this.releaseConfig.conventionalCommits
5315
5415
  );
5316
- chunkOOFHIS6Q_cjs.writeDebug(
5416
+ chunkQOOEK76B_cjs.writeDebug(
5317
5417
  `Running changelog generation for the ${releaseGroup.name} release group`,
5318
5418
  this.workspaceConfig
5319
5419
  );
@@ -5342,7 +5442,7 @@ ${formatConfigLog(config5)}`,
5342
5442
  }
5343
5443
  }
5344
5444
  }
5345
- chunkOOFHIS6Q_cjs.writeDebug(
5445
+ chunkQOOEK76B_cjs.writeDebug(
5346
5446
  `Generated changelogs for ${Object.keys(allProjectChangelogs).length} projects:
5347
5447
  ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5348
5448
  `,
@@ -5371,7 +5471,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5371
5471
  );
5372
5472
  const changes = this.tree.listChanges();
5373
5473
  if (!changes.length) {
5374
- chunkOOFHIS6Q_cjs.writeWarning(
5474
+ chunkQOOEK76B_cjs.writeWarning(
5375
5475
  "No changes were detected for any changelog files, so no changelog entries will be generated.",
5376
5476
  this.workspaceConfig
5377
5477
  );
@@ -5393,7 +5493,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5393
5493
  gitCommitArgs: options.gitCommitArgs || this.releaseConfig.changelog?.git?.commitArgs
5394
5494
  });
5395
5495
  latestCommit = await git.getCommitHash("HEAD");
5396
- chunkOOFHIS6Q_cjs.writeDebug(
5496
+ chunkQOOEK76B_cjs.writeDebug(
5397
5497
  `Creating git tags: ${gitTagValues.join(", ")}`,
5398
5498
  this.workspaceConfig
5399
5499
  );
@@ -5406,7 +5506,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5406
5506
  verbose: options.verbose
5407
5507
  });
5408
5508
  }
5409
- chunkOOFHIS6Q_cjs.writeDebug(
5509
+ chunkQOOEK76B_cjs.writeDebug(
5410
5510
  `Pushing to git remote "${options.gitRemote ?? "origin"}"`,
5411
5511
  this.workspaceConfig
5412
5512
  );
@@ -5422,7 +5522,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5422
5522
  return;
5423
5523
  };
5424
5524
  releaseVersion = async (options) => {
5425
- const verbose = options.verbose || chunkOOFHIS6Q_cjs.isVerbose(this.workspaceConfig.logLevel);
5525
+ const verbose = options.verbose || chunkQOOEK76B_cjs.isVerbose(this.workspaceConfig.logLevel);
5426
5526
  this.projectGraph = await devkit.createProjectGraphAsync({
5427
5527
  exitOnError: true,
5428
5528
  resetDaemonClient: true
@@ -5449,7 +5549,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5449
5549
  this.workspaceConfig
5450
5550
  );
5451
5551
  if (releaseGraph.filterLog && process.env.NX_RELEASE_INTERNAL_SUPPRESS_FILTER_LOG !== "true") {
5452
- chunkOOFHIS6Q_cjs.writeDebug(formatNxLog(releaseGraph.filterLog), this.workspaceConfig);
5552
+ chunkQOOEK76B_cjs.writeDebug(formatNxLog(releaseGraph.filterLog), this.workspaceConfig);
5453
5553
  }
5454
5554
  if (!options.specifier) {
5455
5555
  const rawVersionPlans = await versionPlans.readRawVersionPlans();
@@ -5468,7 +5568,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5468
5568
  }
5469
5569
  } else {
5470
5570
  if (verbose && releaseGraph.releaseGroups.some((g) => !!g.versionPlans)) {
5471
- chunkOOFHIS6Q_cjs.writeDebug(
5571
+ chunkQOOEK76B_cjs.writeDebug(
5472
5572
  `Skipping version plan discovery as a specifier was provided`,
5473
5573
  this.workspaceConfig
5474
5574
  );
@@ -5478,7 +5578,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5478
5578
  options.deleteVersionPlans = false;
5479
5579
  }
5480
5580
  if (this.releaseConfig.version?.preVersionCommand) {
5481
- chunkOOFHIS6Q_cjs.writeDebug(
5581
+ chunkQOOEK76B_cjs.writeDebug(
5482
5582
  "Executing the following pre-version command: \n" + this.releaseConfig.version.preVersionCommand,
5483
5583
  this.workspaceConfig
5484
5584
  );
@@ -5514,7 +5614,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5514
5614
  continue;
5515
5615
  }
5516
5616
  if (releaseGroup.version?.groupPreVersionCommand) {
5517
- chunkOOFHIS6Q_cjs.writeDebug(
5617
+ chunkQOOEK76B_cjs.writeDebug(
5518
5618
  `Executing the ${releaseGroup.name} release group's pre-version command:
5519
5619
  ` + releaseGroup.version?.groupPreVersionCommand,
5520
5620
  this.workspaceConfig
@@ -5574,7 +5674,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5574
5674
  changed.forEach((f) => additionalChangedFiles.add(f));
5575
5675
  deleted.forEach((f) => additionalDeletedFiles.add(f));
5576
5676
  if (this.releaseConfig.docker && typeof this.releaseConfig.docker === "object" && this.releaseConfig.docker?.preVersionCommand) {
5577
- chunkOOFHIS6Q_cjs.writeDebug(
5677
+ chunkQOOEK76B_cjs.writeDebug(
5578
5678
  `Executing the docker pre-version command:
5579
5679
  ` + this.releaseConfig.docker.preVersionCommand,
5580
5680
  this.workspaceConfig
@@ -5611,7 +5711,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5611
5711
  continue;
5612
5712
  }
5613
5713
  if (releaseGroup.docker?.groupPreVersionCommand) {
5614
- chunkOOFHIS6Q_cjs.writeDebug(
5714
+ chunkQOOEK76B_cjs.writeDebug(
5615
5715
  `Executing the ${releaseGroup.name} release group's docker pre-version command:
5616
5716
  ` + releaseGroup.docker?.groupPreVersionCommand,
5617
5717
  this.workspaceConfig
@@ -5642,7 +5742,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5642
5742
  }
5643
5743
  }
5644
5744
  if (this.releaseConfig.docker || releaseGraph.releaseGroups.some((rg) => rg.docker)) {
5645
- chunkOOFHIS6Q_cjs.writeWarning(
5745
+ chunkQOOEK76B_cjs.writeWarning(
5646
5746
  formatNxLog({
5647
5747
  title: "Warning",
5648
5748
  bodyLines: [
@@ -5699,7 +5799,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5699
5799
  gitCommitArgs: options.gitCommitArgs || this.releaseConfig.version?.git?.commitArgs
5700
5800
  });
5701
5801
  } else if (options.stageChanges ?? this.releaseConfig.version?.git?.stageChanges) {
5702
- chunkOOFHIS6Q_cjs.writeDebug(`Staging changed files with git`);
5802
+ chunkQOOEK76B_cjs.writeDebug(`Staging changed files with git`);
5703
5803
  await git.gitAdd({
5704
5804
  changedFiles,
5705
5805
  deletedFiles,
@@ -5708,7 +5808,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5708
5808
  });
5709
5809
  }
5710
5810
  if (options.gitTag ?? this.releaseConfig.version?.git?.tag) {
5711
- chunkOOFHIS6Q_cjs.writeDebug(`Tagging commit with git`);
5811
+ chunkQOOEK76B_cjs.writeDebug(`Tagging commit with git`);
5712
5812
  for (const tag of gitTagValues) {
5713
5813
  await gitTag({
5714
5814
  tag,
@@ -5720,7 +5820,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5720
5820
  }
5721
5821
  }
5722
5822
  if (options.gitPush ?? this.releaseConfig.version?.git?.push) {
5723
- chunkOOFHIS6Q_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
5823
+ chunkQOOEK76B_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
5724
5824
  await git.gitPush({
5725
5825
  gitRemote: options.gitRemote,
5726
5826
  dryRun: options.dryRun,
@@ -5751,7 +5851,7 @@ var runRelease = async (config5, {
5751
5851
  throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
5752
5852
  }
5753
5853
  if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
5754
- chunkOOFHIS6Q_cjs.writeFatal(
5854
+ chunkQOOEK76B_cjs.writeFatal(
5755
5855
  "You must be a member of the Storm Software organization to run the release process.",
5756
5856
  config5
5757
5857
  );
@@ -5768,26 +5868,26 @@ var runRelease = async (config5, {
5768
5868
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
5769
5869
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
5770
5870
  process.env.NPM_CONFIG_PROVENANCE = "true";
5771
- chunkOOFHIS6Q_cjs.writeDebug("Creating Storm release client...", config5);
5871
+ chunkQOOEK76B_cjs.writeDebug("Creating Storm release client...", config5);
5772
5872
  const releaseClient = await StormReleaseClient.create(
5773
5873
  releaseConfig,
5774
5874
  ignoreNxJsonConfig,
5775
5875
  config5
5776
5876
  );
5777
- chunkOOFHIS6Q_cjs.writeDebug("Reading in the workspaces release configuration", config5);
5877
+ chunkQOOEK76B_cjs.writeDebug("Reading in the workspaces release configuration", config5);
5778
5878
  const to = head || process.env.NX_HEAD;
5779
5879
  const from = base || process.env.NX_BASE;
5780
- chunkOOFHIS6Q_cjs.writeDebug(
5880
+ chunkQOOEK76B_cjs.writeDebug(
5781
5881
  `Using the following Git SHAs to determine the release content:
5782
5882
  - From: ${from}
5783
5883
  - To: ${to}
5784
5884
  `,
5785
5885
  config5
5786
5886
  );
5787
- chunkOOFHIS6Q_cjs.writeDebug("Determining the current release versions...", config5);
5887
+ chunkQOOEK76B_cjs.writeDebug("Determining the current release versions...", config5);
5788
5888
  const { workspaceVersion, projectsVersionData, releaseGraph } = await releaseClient.releaseVersion({
5789
5889
  dryRun,
5790
- verbose: chunkOOFHIS6Q_cjs.isVerbose(config5.logLevel),
5890
+ verbose: true,
5791
5891
  preid: config5.preid,
5792
5892
  stageChanges: true,
5793
5893
  gitCommit: false
@@ -5796,14 +5896,14 @@ var runRelease = async (config5, {
5796
5896
  version: releaseConfig?.projectsRelationship === "fixed" ? workspaceVersion : void 0,
5797
5897
  versionData: projectsVersionData,
5798
5898
  dryRun,
5799
- verbose: chunkOOFHIS6Q_cjs.isVerbose(config5.logLevel),
5899
+ verbose: true,
5800
5900
  to,
5801
5901
  from,
5802
5902
  releaseGraph
5803
5903
  });
5804
- chunkOOFHIS6Q_cjs.writeDebug("Tagging commit with git", config5);
5904
+ chunkQOOEK76B_cjs.writeDebug("Tagging commit with git", config5);
5805
5905
  if (skipPublish) {
5806
- chunkOOFHIS6Q_cjs.writeWarning(
5906
+ chunkQOOEK76B_cjs.writeWarning(
5807
5907
  "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
5808
5908
  config5
5809
5909
  );
@@ -5812,7 +5912,7 @@ var runRelease = async (config5, {
5812
5912
  (key) => projectsVersionData[key]?.newVersion
5813
5913
  );
5814
5914
  if (changedProjects.length > 0) {
5815
- chunkOOFHIS6Q_cjs.writeInfo(
5915
+ chunkQOOEK76B_cjs.writeInfo(
5816
5916
  `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
5817
5917
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
5818
5918
  `,
@@ -5821,7 +5921,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
5821
5921
  await updatePackageManifests(projectsVersionData, config5);
5822
5922
  const result = await releaseClient.releasePublish({
5823
5923
  dryRun,
5824
- verbose: chunkOOFHIS6Q_cjs.isVerbose(config5.logLevel)
5924
+ verbose: true
5825
5925
  });
5826
5926
  const failedProjects = Object.keys(result).filter(
5827
5927
  (key) => result[key]?.code && result[key]?.code > 0
@@ -5836,10 +5936,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
5836
5936
  );
5837
5937
  }
5838
5938
  } else {
5839
- chunkOOFHIS6Q_cjs.writeWarning("Skipped publishing packages.", config5);
5939
+ chunkQOOEK76B_cjs.writeWarning("Skipped publishing packages.", config5);
5840
5940
  }
5841
5941
  }
5842
- chunkOOFHIS6Q_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
5942
+ chunkQOOEK76B_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
5843
5943
  };
5844
5944
  async function updatePackageManifests(projectsVersionData, config5) {
5845
5945
  let projectGraph;
@@ -5854,7 +5954,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
5854
5954
  Object.keys(projectsVersionData).map(async (node) => {
5855
5955
  const projectNode = projectGraph.nodes[node];
5856
5956
  if (!projectNode?.data.root) {
5857
- chunkOOFHIS6Q_cjs.writeWarning(
5957
+ chunkQOOEK76B_cjs.writeWarning(
5858
5958
  `Project node ${node} not found in the project graph. Skipping manifest update.`,
5859
5959
  config5
5860
5960
  );
@@ -5862,17 +5962,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
5862
5962
  }
5863
5963
  const versionData = projectsVersionData[node];
5864
5964
  if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
5865
- chunkOOFHIS6Q_cjs.writeTrace(
5965
+ chunkQOOEK76B_cjs.writeTrace(
5866
5966
  `Writing version ${versionData.newVersion} update to manifest file for ${node}
5867
5967
  `,
5868
5968
  config5
5869
5969
  );
5870
- const projectRoot = chunkOOFHIS6Q_cjs.joinPaths(
5970
+ const projectRoot = chunkQOOEK76B_cjs.joinPaths(
5871
5971
  config5.workspaceRoot,
5872
5972
  projectNode.data.root
5873
5973
  );
5874
- const packageJsonPath = chunkOOFHIS6Q_cjs.joinPaths(projectRoot, "package.json");
5875
- const cargoTomlPath = chunkOOFHIS6Q_cjs.joinPaths(projectRoot, "Cargo.toml");
5974
+ const packageJsonPath = chunkQOOEK76B_cjs.joinPaths(projectRoot, "package.json");
5975
+ const cargoTomlPath = chunkQOOEK76B_cjs.joinPaths(projectRoot, "Cargo.toml");
5876
5976
  if (fs$1.existsSync(packageJsonPath)) {
5877
5977
  const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
5878
5978
  const packageJson = JSON.parse(packageJsonContent);
@@ -5890,7 +5990,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
5890
5990
  })
5891
5991
  );
5892
5992
  } else {
5893
- chunkOOFHIS6Q_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
5993
+ chunkQOOEK76B_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
5894
5994
  }
5895
5995
  }
5896
5996
 
@@ -5898,8 +5998,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
5898
5998
  var _config = {};
5899
5999
  function createProgram(config5) {
5900
6000
  _config = config5;
5901
- chunkOOFHIS6Q_cjs.writeInfo(`${chunkOOFHIS6Q_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
5902
- const root = chunkOOFHIS6Q_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());
5903
6003
  process.env.STORM_WORKSPACE_ROOT ??= root;
5904
6004
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
5905
6005
  if (root) {
@@ -5946,12 +6046,12 @@ async function commitAction({
5946
6046
  dryRun = false
5947
6047
  }) {
5948
6048
  try {
5949
- chunkOOFHIS6Q_cjs.writeInfo(
5950
- `${chunkOOFHIS6Q_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...`,
5951
6051
  _config
5952
6052
  );
5953
6053
  await runCommit(config5, dryRun);
5954
- chunkOOFHIS6Q_cjs.writeSuccess(
6054
+ chunkQOOEK76B_cjs.writeSuccess(
5955
6055
  `\u2714 Storm Commit processing completed successfully!
5956
6056
 
5957
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}
@@ -5959,7 +6059,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
5959
6059
  _config
5960
6060
  );
5961
6061
  } catch (error) {
5962
- chunkOOFHIS6Q_cjs.writeFatal(
6062
+ chunkQOOEK76B_cjs.writeFatal(
5963
6063
  `A fatal error occurred while running commit action:
5964
6064
 
5965
6065
  ${error.message}${error.stack ? `
@@ -5974,17 +6074,17 @@ Please fix any errors and try committing again.`,
5974
6074
  }
5975
6075
  async function readmeAction(options) {
5976
6076
  try {
5977
- chunkOOFHIS6Q_cjs.writeInfo(
5978
- `${chunkOOFHIS6Q_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`,
5979
6079
  _config
5980
6080
  );
5981
6081
  await runReadme(options);
5982
- chunkOOFHIS6Q_cjs.writeSuccess(
6082
+ chunkQOOEK76B_cjs.writeSuccess(
5983
6083
  "\u2714 Formatting of the workspace's README.md files is complete\n",
5984
6084
  _config
5985
6085
  );
5986
6086
  } catch (error) {
5987
- chunkOOFHIS6Q_cjs.writeFatal(
6087
+ chunkQOOEK76B_cjs.writeFatal(
5988
6088
  `A fatal error occurred while running README format action:
5989
6089
 
5990
6090
  ${error.message}`
@@ -5999,8 +6099,8 @@ async function releaseAction({
5999
6099
  dryRun
6000
6100
  }) {
6001
6101
  try {
6002
- chunkOOFHIS6Q_cjs.writeInfo(
6003
- `${chunkOOFHIS6Q_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`,
6004
6104
  _config
6005
6105
  );
6006
6106
  await runRelease(_config, {
@@ -6009,9 +6109,9 @@ async function releaseAction({
6009
6109
  base,
6010
6110
  head
6011
6111
  });
6012
- chunkOOFHIS6Q_cjs.writeSuccess("\u2714 Release completed successfully!\n", _config);
6112
+ chunkQOOEK76B_cjs.writeSuccess("\u2714 Release completed successfully!\n", _config);
6013
6113
  } catch (error) {
6014
- chunkOOFHIS6Q_cjs.writeFatal(
6114
+ chunkQOOEK76B_cjs.writeFatal(
6015
6115
  `A fatal error occurred while running release action:
6016
6116
 
6017
6117
  ${error.message} ${error.stack ? `
@@ -6025,17 +6125,17 @@ Stacktrace: ${error.stack}` : ""}`,
6025
6125
  }
6026
6126
  async function commitLintAction(options) {
6027
6127
  try {
6028
- chunkOOFHIS6Q_cjs.writeInfo(
6029
- `${chunkOOFHIS6Q_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.`,
6030
6130
  _config
6031
6131
  );
6032
6132
  await runCommitLint(_config, options);
6033
- chunkOOFHIS6Q_cjs.writeSuccess(
6133
+ chunkQOOEK76B_cjs.writeSuccess(
6034
6134
  "\u2714 Linting the commit messages completed successfully!\n",
6035
6135
  _config
6036
6136
  );
6037
6137
  } catch (error) {
6038
- chunkOOFHIS6Q_cjs.writeFatal(
6138
+ chunkQOOEK76B_cjs.writeFatal(
6039
6139
  `A fatal error occurred while linting the commit messages:
6040
6140
 
6041
6141
  ${error.message}`,
@@ -6046,14 +6146,14 @@ ${error.message}`,
6046
6146
  }
6047
6147
  async function postCheckoutAction({ files }) {
6048
6148
  try {
6049
- chunkOOFHIS6Q_cjs.writeInfo(
6050
- `${chunkOOFHIS6Q_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...`,
6051
6151
  _config
6052
6152
  );
6053
- await chunkCZGE4575_cjs.postCheckoutHook(_config, files);
6054
- chunkOOFHIS6Q_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);
6055
6155
  } catch (error) {
6056
- chunkOOFHIS6Q_cjs.writeFatal(
6156
+ chunkQOOEK76B_cjs.writeFatal(
6057
6157
  `A fatal error occurred while running the post-checkout hook:
6058
6158
 
6059
6159
  ${error.message}`,
@@ -6064,14 +6164,14 @@ ${error.message}`,
6064
6164
  }
6065
6165
  async function postCommitAction({ files }) {
6066
6166
  try {
6067
- chunkOOFHIS6Q_cjs.writeInfo(
6068
- `${chunkOOFHIS6Q_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...`,
6069
6169
  _config
6070
6170
  );
6071
- await chunkGVYZ5VMU_cjs.postCommitHook(_config, files);
6072
- chunkOOFHIS6Q_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);
6073
6173
  } catch (error) {
6074
- chunkOOFHIS6Q_cjs.writeFatal(
6174
+ chunkQOOEK76B_cjs.writeFatal(
6075
6175
  `A fatal error occurred while running the post-commit hook:
6076
6176
 
6077
6177
  ${error.message}`,
@@ -6082,14 +6182,14 @@ ${error.message}`,
6082
6182
  }
6083
6183
  async function postMergeAction({ files }) {
6084
6184
  try {
6085
- chunkOOFHIS6Q_cjs.writeInfo(
6086
- `${chunkOOFHIS6Q_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...`,
6087
6187
  _config
6088
6188
  );
6089
- await chunkPXSKDL54_cjs.postMergeHook(_config, files);
6090
- chunkOOFHIS6Q_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);
6091
6191
  } catch (error) {
6092
- chunkOOFHIS6Q_cjs.writeFatal(
6192
+ chunkQOOEK76B_cjs.writeFatal(
6093
6193
  `A fatal error occurred while running the post-merge hook:
6094
6194
 
6095
6195
  ${error.message}`,
@@ -6100,14 +6200,14 @@ ${error.message}`,
6100
6200
  }
6101
6201
  async function preCommitAction({ files }) {
6102
6202
  try {
6103
- chunkOOFHIS6Q_cjs.writeInfo(
6104
- `${chunkOOFHIS6Q_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...`,
6105
6205
  _config
6106
6206
  );
6107
- await chunkTCH5N4G6_cjs.preCommitHook(_config, files);
6108
- chunkOOFHIS6Q_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);
6109
6209
  } catch (error) {
6110
- chunkOOFHIS6Q_cjs.writeFatal(
6210
+ chunkQOOEK76B_cjs.writeFatal(
6111
6211
  `A fatal error occurred while running the pre-commit hook:
6112
6212
 
6113
6213
  ${error.message}`,
@@ -6118,14 +6218,14 @@ ${error.message}`,
6118
6218
  }
6119
6219
  async function prePushAction({ files }) {
6120
6220
  try {
6121
- chunkOOFHIS6Q_cjs.writeInfo(
6122
- `${chunkOOFHIS6Q_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...`,
6123
6223
  _config
6124
6224
  );
6125
- await chunk2DHSN2C3_cjs.prePushHook(_config, files);
6126
- chunkOOFHIS6Q_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);
6127
6227
  } catch (error) {
6128
- chunkOOFHIS6Q_cjs.writeFatal(
6228
+ chunkQOOEK76B_cjs.writeFatal(
6129
6229
  `A fatal error occurred while running the pre-push hook:
6130
6230
 
6131
6231
  ${error.message}`,
@@ -6136,14 +6236,14 @@ ${error.message}`,
6136
6236
  }
6137
6237
  async function prepareAction() {
6138
6238
  try {
6139
- chunkOOFHIS6Q_cjs.writeInfo(
6140
- `${chunkOOFHIS6Q_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...`,
6141
6241
  _config
6142
6242
  );
6143
- await chunk7FLNOTUH_cjs.prepareHook(_config);
6144
- chunkOOFHIS6Q_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);
6145
6245
  } catch (error) {
6146
- chunkOOFHIS6Q_cjs.writeFatal(
6246
+ chunkQOOEK76B_cjs.writeFatal(
6147
6247
  `A fatal error occurred while running the prepare hook:
6148
6248
 
6149
6249
  ${error.message}`,
@@ -6155,18 +6255,18 @@ ${error.message}`,
6155
6255
 
6156
6256
  // bin/git.ts
6157
6257
  void (async () => {
6158
- const config5 = await chunkOOFHIS6Q_cjs.getConfig();
6258
+ const config5 = await chunkQOOEK76B_cjs.getConfig();
6159
6259
  try {
6160
- chunkOOFHIS6Q_cjs.handleProcess(config5);
6260
+ chunkQOOEK76B_cjs.handleProcess(config5);
6161
6261
  const program = createProgram(config5);
6162
6262
  await program.parseAsync(process.argv);
6163
- chunkOOFHIS6Q_cjs.writeSuccess(
6263
+ chunkQOOEK76B_cjs.writeSuccess(
6164
6264
  `\u2714 Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
6165
6265
  config5
6166
6266
  );
6167
- chunkOOFHIS6Q_cjs.exitWithSuccess(config5);
6267
+ chunkQOOEK76B_cjs.exitWithSuccess(config5);
6168
6268
  } catch (error) {
6169
- chunkOOFHIS6Q_cjs.exitWithError(config5);
6269
+ chunkQOOEK76B_cjs.exitWithError(config5);
6170
6270
  process.exit(1);
6171
6271
  }
6172
6272
  })();