@storm-software/git-tools 2.131.11 → 2.131.14

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 (62) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-NOZEXVLA.js → chunk-27FK2BQD.js} +3 -3
  3. package/bin/{chunk-NOZEXVLA.js.map → chunk-27FK2BQD.js.map} +1 -1
  4. package/bin/{chunk-W5P2IM2W.cjs → chunk-4FUNPJYN.cjs} +6 -6
  5. package/bin/{chunk-W5P2IM2W.cjs.map → chunk-4FUNPJYN.cjs.map} +1 -1
  6. package/bin/{chunk-32WE3MHJ.js → chunk-4KUJG3RB.js} +3 -3
  7. package/bin/{chunk-32WE3MHJ.js.map → chunk-4KUJG3RB.js.map} +1 -1
  8. package/bin/{chunk-POFLIQQB.cjs → chunk-5DZ44YLS.cjs} +5 -5
  9. package/bin/{chunk-POFLIQQB.cjs.map → chunk-5DZ44YLS.cjs.map} +1 -1
  10. package/bin/{chunk-ABI4JM6L.js → chunk-CRTMVCFC.js} +3 -3
  11. package/bin/{chunk-ABI4JM6L.js.map → chunk-CRTMVCFC.js.map} +1 -1
  12. package/bin/{chunk-AQ5YHZ3Z.cjs → chunk-FAQW5YFS.cjs} +4 -4
  13. package/bin/{chunk-AQ5YHZ3Z.cjs.map → chunk-FAQW5YFS.cjs.map} +1 -1
  14. package/bin/{chunk-AZGQVIYO.js → chunk-NBHO5BK4.js} +3 -3
  15. package/bin/{chunk-AZGQVIYO.js.map → chunk-NBHO5BK4.js.map} +1 -1
  16. package/bin/{chunk-DPKFBB3S.cjs → chunk-NJCMHJBD.cjs} +4 -4
  17. package/bin/{chunk-DPKFBB3S.cjs.map → chunk-NJCMHJBD.cjs.map} +1 -1
  18. package/bin/{chunk-7ES3CGZQ.js → chunk-NZK4I3QQ.js} +3 -3
  19. package/bin/chunk-NZK4I3QQ.js.map +1 -0
  20. package/bin/{chunk-IAZL2KCV.js → chunk-O4NH73SU.js} +3 -3
  21. package/bin/{chunk-IAZL2KCV.js.map → chunk-O4NH73SU.js.map} +1 -1
  22. package/bin/{chunk-CVTLZKKX.js → chunk-PAUQYLGE.js} +3 -3
  23. package/bin/{chunk-CVTLZKKX.js.map → chunk-PAUQYLGE.js.map} +1 -1
  24. package/bin/{chunk-RZNFHUM6.cjs → chunk-RYRABFEU.cjs} +4 -4
  25. package/bin/{chunk-RZNFHUM6.cjs.map → chunk-RYRABFEU.cjs.map} +1 -1
  26. package/bin/{chunk-OGGY5I23.cjs → chunk-TBOHZQTA.cjs} +4 -4
  27. package/bin/{chunk-OGGY5I23.cjs.map → chunk-TBOHZQTA.cjs.map} +1 -1
  28. package/bin/{chunk-CDUCLZJV.js → chunk-VXOTRXPC.js} +3 -3
  29. package/bin/{chunk-CDUCLZJV.js.map → chunk-VXOTRXPC.js.map} +1 -1
  30. package/bin/{chunk-4EOHM2UV.cjs → chunk-WTWICYHN.cjs} +4 -4
  31. package/bin/{chunk-4EOHM2UV.cjs.map → chunk-WTWICYHN.cjs.map} +1 -1
  32. package/bin/{chunk-4ILBJTRR.cjs → chunk-YXQQUYO7.cjs} +3 -2
  33. package/bin/chunk-YXQQUYO7.cjs.map +1 -0
  34. package/bin/git.cjs +174 -151
  35. package/bin/git.cjs.map +1 -1
  36. package/bin/git.js +41 -18
  37. package/bin/git.js.map +1 -1
  38. package/bin/post-checkout.cjs +7 -7
  39. package/bin/post-checkout.js +2 -2
  40. package/bin/post-commit.cjs +7 -7
  41. package/bin/post-commit.js +2 -2
  42. package/bin/post-merge.cjs +7 -7
  43. package/bin/post-merge.js +2 -2
  44. package/bin/pre-commit.cjs +7 -7
  45. package/bin/pre-commit.js +2 -2
  46. package/bin/pre-install.cjs +7 -7
  47. package/bin/pre-install.js +2 -2
  48. package/bin/pre-push.cjs +7 -7
  49. package/bin/pre-push.js +2 -2
  50. package/bin/prepare.cjs +7 -7
  51. package/bin/prepare.js +2 -2
  52. package/bin/version-warning.cjs +5 -5
  53. package/bin/version-warning.js +1 -1
  54. package/dist/{chunk-B35TFDAA.cjs → chunk-AGQBRIPK.cjs} +6 -0
  55. package/dist/{chunk-FPSN3POD.js → chunk-UOI2HBBA.js} +6 -0
  56. package/dist/index.cjs +17 -17
  57. package/dist/index.js +1 -1
  58. package/dist/release/config.cjs +17 -17
  59. package/dist/release/config.js +1 -1
  60. package/package.json +7 -7
  61. package/bin/chunk-4ILBJTRR.cjs.map +0 -1
  62. package/bin/chunk-7ES3CGZQ.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 chunkDPKFBB3S_cjs = require('./chunk-DPKFBB3S.cjs');
5
- var chunkOGGY5I23_cjs = require('./chunk-OGGY5I23.cjs');
6
- var chunkRZNFHUM6_cjs = require('./chunk-RZNFHUM6.cjs');
7
- var chunkAQ5YHZ3Z_cjs = require('./chunk-AQ5YHZ3Z.cjs');
8
- require('./chunk-POFLIQQB.cjs');
9
- var chunkW5P2IM2W_cjs = require('./chunk-W5P2IM2W.cjs');
4
+ var chunkNJCMHJBD_cjs = require('./chunk-NJCMHJBD.cjs');
5
+ var chunkTBOHZQTA_cjs = require('./chunk-TBOHZQTA.cjs');
6
+ var chunkRYRABFEU_cjs = require('./chunk-RYRABFEU.cjs');
7
+ var chunkFAQW5YFS_cjs = require('./chunk-FAQW5YFS.cjs');
8
+ require('./chunk-5DZ44YLS.cjs');
9
+ var chunk4FUNPJYN_cjs = require('./chunk-4FUNPJYN.cjs');
10
10
  require('./chunk-YHZNDNCW.cjs');
11
- var chunk4EOHM2UV_cjs = require('./chunk-4EOHM2UV.cjs');
11
+ var chunkWTWICYHN_cjs = require('./chunk-WTWICYHN.cjs');
12
12
  var chunkMTAYUS7E_cjs = require('./chunk-MTAYUS7E.cjs');
13
- var chunk4ILBJTRR_cjs = require('./chunk-4ILBJTRR.cjs');
13
+ var chunkYXQQUYO7_cjs = require('./chunk-YXQQUYO7.cjs');
14
14
  var TOML = require('@ltd/j-toml');
15
15
  var commander = require('commander');
16
16
  require('@inquirer/checkbox');
@@ -422,9 +422,9 @@ function getRuleFromScopeEnum(scopeEnum) {
422
422
 
423
423
  // ../conventional-changelog/src/index.ts
424
424
  async function createPreset(variant = "monorepo") {
425
- const workspaceConfig = await chunk4ILBJTRR_cjs.getWorkspaceConfig();
425
+ const workspaceConfig = await chunkYXQQUYO7_cjs.getWorkspaceConfig();
426
426
  if (variant === "minimal") {
427
- return chunk4ILBJTRR_cjs.defu(
427
+ return chunkYXQQUYO7_cjs.defu(
428
428
  await createBasePreset__default.default({ ...COMMIT_CONFIGS.minimal.changelogs.props }),
429
429
  {
430
430
  ...COMMIT_CONFIGS.minimal,
@@ -438,7 +438,7 @@ async function createPreset(variant = "monorepo") {
438
438
  );
439
439
  }
440
440
  const nxScopes = await getNxScopes({ config: workspaceConfig });
441
- return chunk4ILBJTRR_cjs.defu(
441
+ return chunkYXQQUYO7_cjs.defu(
442
442
  await createBasePreset__default.default({
443
443
  ...COMMIT_CONFIGS.monorepo.changelogs.props,
444
444
  scope: nxScopes
@@ -1002,7 +1002,7 @@ async function lint(message, config5) {
1002
1002
  // src/commitlint/run.ts
1003
1003
  var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
1004
1004
  async function runCommitLint(workspaceConfig, options) {
1005
- chunk4ILBJTRR_cjs.writeInfo(
1005
+ chunkYXQQUYO7_cjs.writeInfo(
1006
1006
  "\u{1F4DD} Validating git commit message aligns with the Storm Software specification",
1007
1007
  workspaceConfig
1008
1008
  );
@@ -1010,7 +1010,7 @@ async function runCommitLint(workspaceConfig, options) {
1010
1010
  if (options.message && options.message !== COMMIT_EDITMSG_PATH) {
1011
1011
  commitMessage = options.message;
1012
1012
  } else {
1013
- const commitFile = chunk4ILBJTRR_cjs.joinPaths(
1013
+ const commitFile = chunkYXQQUYO7_cjs.joinPaths(
1014
1014
  workspaceConfig.workspaceRoot,
1015
1015
  options.file || options.message || COMMIT_EDITMSG_PATH
1016
1016
  );
@@ -1027,17 +1027,17 @@ async function runCommitLint(workspaceConfig, options) {
1027
1027
  if (upstreamRemote) {
1028
1028
  const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
1029
1029
  if (!upstreamRemoteIdentifier) {
1030
- chunk4ILBJTRR_cjs.writeWarning(
1030
+ chunkYXQQUYO7_cjs.writeWarning(
1031
1031
  `No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison.`,
1032
1032
  workspaceConfig
1033
1033
  );
1034
1034
  return;
1035
1035
  }
1036
- chunk4ILBJTRR_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
1036
+ chunkYXQQUYO7_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
1037
1037
  const currentBranch = childProcess__default.default.execSync("git branch --show-current").toString().trim();
1038
1038
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
1039
1039
  } else {
1040
- chunk4ILBJTRR_cjs.writeWarning(
1040
+ chunkYXQQUYO7_cjs.writeWarning(
1041
1041
  `No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison against upstream main.`,
1042
1042
  workspaceConfig
1043
1043
  );
@@ -1045,7 +1045,7 @@ async function runCommitLint(workspaceConfig, options) {
1045
1045
  }
1046
1046
  commitMessage = childProcess__default.default.execSync(gitLogCmd).toString().trim();
1047
1047
  if (!commitMessage) {
1048
- chunk4ILBJTRR_cjs.writeWarning(
1048
+ chunkYXQQUYO7_cjs.writeWarning(
1049
1049
  "No commits found. Skipping commit message validation.",
1050
1050
  workspaceConfig
1051
1051
  );
@@ -1055,7 +1055,7 @@ async function runCommitLint(workspaceConfig, options) {
1055
1055
  const preset = await createPreset(workspaceConfig.variant);
1056
1056
  const report = await lint(commitMessage, preset);
1057
1057
  if (!preset.commitlint.regex.test(commitMessage) || report.errors.length || report.warnings.length) {
1058
- chunk4ILBJTRR_cjs.writeSuccess(
1058
+ chunkYXQQUYO7_cjs.writeSuccess(
1059
1059
  `Commit was processing completed successfully!`,
1060
1060
  workspaceConfig
1061
1061
  );
@@ -1267,7 +1267,7 @@ async function createState(workspaceConfig, configPath) {
1267
1267
  const project = projectConfigurations.projects[scope];
1268
1268
  if (project) {
1269
1269
  let description = `${project.name} - ${project.root}`;
1270
- const packageJsonPath = chunk4ILBJTRR_cjs.joinPaths(project.root, "package.json");
1270
+ const packageJsonPath = chunkYXQQUYO7_cjs.joinPaths(project.root, "package.json");
1271
1271
  if (fs$1.existsSync(packageJsonPath)) {
1272
1272
  const packageJsonFile = await fs.readFile(packageJsonPath, "utf8");
1273
1273
  const packageJson = JSON.parse(packageJsonFile);
@@ -1341,20 +1341,20 @@ ${closedIssueEmoji}${config5.settings.closedIssueMessage}${issues}`;
1341
1341
 
1342
1342
  // src/commit/run.ts
1343
1343
  async function runCommit(commitizenFile, dryRun = false) {
1344
- const workspaceConfig = await chunk4ILBJTRR_cjs.getWorkspaceConfig();
1344
+ const workspaceConfig = await chunkYXQQUYO7_cjs.getWorkspaceConfig();
1345
1345
  const state = await createState(workspaceConfig);
1346
1346
  if (dryRun) {
1347
- chunk4ILBJTRR_cjs.writeInfo("Running in dry mode.", workspaceConfig);
1347
+ chunkYXQQUYO7_cjs.writeInfo("Running in dry mode.", workspaceConfig);
1348
1348
  }
1349
1349
  console.log(chalkTemplate__default.default`
1350
1350
  {bold.#999999 ----------------------------------------}
1351
1351
 
1352
- {bold.#FFFFFF ${chunk4ILBJTRR_cjs.brandIcon(workspaceConfig)} Storm Software Git-Tools - Commit}
1352
+ {bold.#FFFFFF ${chunkYXQQUYO7_cjs.brandIcon(workspaceConfig)} Storm Software Git-Tools - Commit}
1353
1353
  {#CCCCCC Please provide the requested details below...}
1354
1354
  `);
1355
1355
  state.answers = await askQuestions(state);
1356
1356
  const message = formatCommitMessage(state, workspaceConfig);
1357
- const commitMsgFile = chunk4ILBJTRR_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
1357
+ const commitMsgFile = chunkYXQQUYO7_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
1358
1358
  console.log(chalkTemplate__default.default`
1359
1359
  {bold.#999999 ----------------------------------------}
1360
1360
 
@@ -1367,11 +1367,11 @@ async function runCommit(commitizenFile, dryRun = false) {
1367
1367
  commandItems.push(...["--file", commitMsgFile]);
1368
1368
  const command = shellescape__default.default(commandItems);
1369
1369
  if (dryRun) {
1370
- chunk4ILBJTRR_cjs.writeDebug(
1370
+ chunkYXQQUYO7_cjs.writeDebug(
1371
1371
  `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
1372
1372
  workspaceConfig
1373
1373
  );
1374
- chunk4ILBJTRR_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
1374
+ chunkYXQQUYO7_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
1375
1375
  } else {
1376
1376
  await fs__default.default.writeFile(commitMsgFile, message);
1377
1377
  chunkMTAYUS7E_cjs.run(workspaceConfig, command);
@@ -2030,7 +2030,7 @@ var runReadme = async ({
2030
2030
  exitOnError: true
2031
2031
  });
2032
2032
  const projectConfigs = projectGraph_js.readProjectsConfigurationFromProjectGraph(projectGraph);
2033
- const workspaceRoot = chunk4ILBJTRR_cjs.findWorkspaceRootSafe(process.cwd());
2033
+ const workspaceRoot = chunkYXQQUYO7_cjs.findWorkspaceRootSafe(process.cwd());
2034
2034
  if (!workspaceRoot) {
2035
2035
  throw new Error(
2036
2036
  "Unable to find the workspace root. Please ensure you are running this command from within a workspace."
@@ -2447,7 +2447,7 @@ async function generateChangelogContent(releaseVersion, filepath, newContent, cu
2447
2447
  const header = await prettier.format(
2448
2448
  `![${(typeof workspaceConfig?.release.banner === "string" ? workspaceConfig.organization ? titleCase(
2449
2449
  typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization.name
2450
- ) : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunk4ILBJTRR_cjs.STORM_DEFAULT_RELEASE_BANNER})
2450
+ ) : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkYXQQUYO7_cjs.STORM_DEFAULT_RELEASE_BANNER})
2451
2451
 
2452
2452
  # Changelog ${project || workspaceConfig?.name ? "for" : ""}${workspaceConfig?.name ? ` ${titleCase(workspaceConfig.name)}` : ""}${project ? `${workspaceConfig?.name ? " -" : ""} ${titleCase(project)}` : ""}
2453
2453
 
@@ -2623,12 +2623,12 @@ async function generateChangelogForProjects({
2623
2623
  projectChangelogs
2624
2624
  )) {
2625
2625
  if (!projectGraph.nodes[projectName]?.data.root) {
2626
- chunk4ILBJTRR_cjs.writeWarning(
2626
+ chunkYXQQUYO7_cjs.writeWarning(
2627
2627
  `A changelog was generated for ${projectName}, but it could not be found in the project graph. Skipping writing changelog file.`,
2628
2628
  workspaceConfig
2629
2629
  );
2630
2630
  } else if (projectChangelog.contents) {
2631
- const filePath = chunk4ILBJTRR_cjs.joinPaths(
2631
+ const filePath = chunkYXQQUYO7_cjs.joinPaths(
2632
2632
  projectGraph.nodes[projectName].data.root,
2633
2633
  "CHANGELOG.md"
2634
2634
  );
@@ -2636,7 +2636,7 @@ async function generateChangelogForProjects({
2636
2636
  if (fs$1.existsSync(filePath)) {
2637
2637
  currentContent = await fs.readFile(filePath, "utf8");
2638
2638
  }
2639
- chunk4ILBJTRR_cjs.writeDebug(
2639
+ chunkYXQQUYO7_cjs.writeDebug(
2640
2640
  `\u270D\uFE0F Writing changelog for project ${projectName} to ${filePath}`,
2641
2641
  workspaceConfig
2642
2642
  );
@@ -2859,7 +2859,7 @@ var StormGithubRemoteReleaseClient = class extends github.GithubRemoteReleaseCli
2859
2859
  }
2860
2860
  async createOrUpdateRelease(releaseVersion, changelogContents, latestCommit, { dryRun }) {
2861
2861
  if (!this.workspaceConfig) {
2862
- this.workspaceConfig = await chunk4ILBJTRR_cjs.getWorkspaceConfig();
2862
+ this.workspaceConfig = await chunkYXQQUYO7_cjs.getWorkspaceConfig();
2863
2863
  }
2864
2864
  const name = releaseVersion.gitTag.includes("@") ? releaseVersion.gitTag.replace(new RegExp(`^@${this.workspaceConfig.name}/`), "").replace(/@.*$/, "") : releaseVersion.gitTag;
2865
2865
  return super.createOrUpdateRelease(
@@ -3052,7 +3052,7 @@ async function format3(path, data) {
3052
3052
  if (resolvedConfig) {
3053
3053
  code = await prettier.format(
3054
3054
  data,
3055
- chunk4ILBJTRR_cjs.defu(
3055
+ chunkYXQQUYO7_cjs.defu(
3056
3056
  {
3057
3057
  absolutePath: path,
3058
3058
  ...resolvedConfig
@@ -3108,7 +3108,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
3108
3108
  }
3109
3109
  async render() {
3110
3110
  if (!this.workspaceConfig) {
3111
- this.workspaceConfig = await chunk4ILBJTRR_cjs.getWorkspaceConfig();
3111
+ this.workspaceConfig = await chunkYXQQUYO7_cjs.getWorkspaceConfig();
3112
3112
  }
3113
3113
  return super.render();
3114
3114
  }
@@ -3420,14 +3420,14 @@ var DEFAULT_RUST_RELEASE_GROUP_CONFIG = {
3420
3420
  var DEFAULT_RELEASE_CONFIG = {
3421
3421
  conventionalCommits: DEFAULT_CONVENTIONAL_COMMITS_CONFIG2,
3422
3422
  groups: {
3423
- packages: chunk4ILBJTRR_cjs.defu(
3423
+ packages: chunkYXQQUYO7_cjs.defu(
3424
3424
  {
3425
3425
  projects: ["packages/*"]
3426
3426
  },
3427
3427
  DEFAULT_JS_RELEASE_GROUP_CONFIG,
3428
3428
  DEFAULT_RELEASE_GROUP_CONFIG
3429
3429
  ),
3430
- crates: chunk4ILBJTRR_cjs.defu(
3430
+ crates: chunkYXQQUYO7_cjs.defu(
3431
3431
  {
3432
3432
  projects: ["crates/*"]
3433
3433
  },
@@ -3450,7 +3450,7 @@ var DEFAULT_RELEASE_CONFIG = {
3450
3450
  }
3451
3451
  };
3452
3452
  function mergeReleaseGroupConfig(config5, defaultConfig, workspaceConfig) {
3453
- return chunk4ILBJTRR_cjs.defu(
3453
+ return chunkYXQQUYO7_cjs.defu(
3454
3454
  {
3455
3455
  ...omit(defaultConfig, ["changelog", "version"]),
3456
3456
  ...config5
@@ -3500,13 +3500,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
3500
3500
  ProjectTagConstants.Language.TAG_ID,
3501
3501
  ProjectTagConstants.Language.TYPESCRIPT
3502
3502
  ) || projectGraph.nodes[project]?.data.metadata?.root && fs$1.existsSync(
3503
- chunk4ILBJTRR_cjs.joinPaths(
3503
+ chunkYXQQUYO7_cjs.joinPaths(
3504
3504
  projectGraph.nodes[project]?.data.metadata?.root,
3505
3505
  "package.json"
3506
3506
  )
3507
3507
  ))
3508
3508
  )) {
3509
- languageDefaultConfig = chunk4ILBJTRR_cjs.defu(
3509
+ languageDefaultConfig = chunkYXQQUYO7_cjs.defu(
3510
3510
  DEFAULT_JS_RELEASE_GROUP_CONFIG,
3511
3511
  DEFAULT_RELEASE_GROUP_CONFIG
3512
3512
  );
@@ -3516,20 +3516,20 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
3516
3516
  ProjectTagConstants.Language.TAG_ID,
3517
3517
  ProjectTagConstants.Language.RUST
3518
3518
  ) || projectGraph.nodes[project]?.data.metadata?.root && fs$1.existsSync(
3519
- chunk4ILBJTRR_cjs.joinPaths(
3519
+ chunkYXQQUYO7_cjs.joinPaths(
3520
3520
  projectGraph.nodes[project]?.data.metadata?.root,
3521
3521
  "Cargo.toml"
3522
3522
  )
3523
3523
  ))
3524
3524
  )) {
3525
- languageDefaultConfig = chunk4ILBJTRR_cjs.defu(
3525
+ languageDefaultConfig = chunkYXQQUYO7_cjs.defu(
3526
3526
  DEFAULT_RUST_RELEASE_GROUP_CONFIG,
3527
3527
  DEFAULT_RELEASE_GROUP_CONFIG
3528
3528
  );
3529
3529
  }
3530
3530
  const config5 = mergeReleaseGroupConfig(
3531
3531
  group,
3532
- chunk4ILBJTRR_cjs.defu(
3532
+ chunkYXQQUYO7_cjs.defu(
3533
3533
  languageDefaultConfig,
3534
3534
  group.projectsRelationship === "fixed" ? DEFAULT_FIXED_RELEASE_GROUP_CONFIG : DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
3535
3535
  DEFAULT_RELEASE_GROUP_CONFIG
@@ -3539,13 +3539,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
3539
3539
  config5.projects = matchingProjects;
3540
3540
  if (workspaceConfig?.workspaceRoot) {
3541
3541
  if (config5.changelog?.renderer && typeof config5.changelog?.renderer === "string" && config5.changelog?.renderer?.toString().startsWith("./")) {
3542
- config5.changelog.renderer = chunk4ILBJTRR_cjs.joinPaths(
3542
+ config5.changelog.renderer = chunkYXQQUYO7_cjs.joinPaths(
3543
3543
  workspaceConfig.workspaceRoot,
3544
3544
  config5.changelog.renderer
3545
3545
  );
3546
3546
  }
3547
3547
  if (config5.version?.versionActions && config5.version.versionActions.startsWith("./")) {
3548
- config5.version.versionActions = chunk4ILBJTRR_cjs.joinPaths(
3548
+ config5.version.versionActions = chunkYXQQUYO7_cjs.joinPaths(
3549
3549
  workspaceConfig.workspaceRoot,
3550
3550
  config5.version?.versionActions
3551
3551
  );
@@ -3557,10 +3557,10 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
3557
3557
  }
3558
3558
  function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNxJsonConfig = false) {
3559
3559
  let nxJson$1 = {};
3560
- if (!ignoreNxJsonConfig && fs$1.existsSync(chunk4ILBJTRR_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
3560
+ if (!ignoreNxJsonConfig && fs$1.existsSync(chunkYXQQUYO7_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
3561
3561
  nxJson$1 = nxJson.readNxJson();
3562
3562
  }
3563
- const baseConfig = chunk4ILBJTRR_cjs.defu(
3563
+ const baseConfig = chunkYXQQUYO7_cjs.defu(
3564
3564
  {
3565
3565
  changelog: {
3566
3566
  renderOptions: {
@@ -3576,6 +3576,12 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
3576
3576
  let groups = {};
3577
3577
  if (releaseConfig?.groups && Object.keys(releaseConfig.groups).length > 0) {
3578
3578
  groups = releaseConfig.groups;
3579
+ if (nxJson$1.release?.groups && Object.keys(nxJson$1.release.groups).length > 0) {
3580
+ groups = chunkYXQQUYO7_cjs.defu(
3581
+ groups,
3582
+ nxJson$1.release.groups
3583
+ );
3584
+ }
3579
3585
  } else if (nxJson$1.release?.groups && Object.keys(nxJson$1.release.groups).length > 0) {
3580
3586
  groups = nxJson$1.release.groups;
3581
3587
  } else {
@@ -3594,7 +3600,7 @@ var StormReleaseGroupProcessor = class extends releaseGroupProcessor.ReleaseGrou
3594
3600
  constructor(tree, workspaceConfig, projectGraph, nxReleaseConfig, releaseGraph, versionOptions) {
3595
3601
  super(tree, projectGraph, nxReleaseConfig, releaseGraph, {
3596
3602
  dryRun: !!versionOptions.dryRun,
3597
- verbose: versionOptions.verbose || chunk4ILBJTRR_cjs.isVerbose(workspaceConfig.logLevel),
3603
+ verbose: versionOptions.verbose || chunkYXQQUYO7_cjs.isVerbose(workspaceConfig.logLevel),
3598
3604
  firstRelease: !!versionOptions.firstRelease,
3599
3605
  preid: versionOptions.preid ?? workspaceConfig.preid ?? "",
3600
3606
  userGivenSpecifier: versionOptions.specifier,
@@ -3682,7 +3688,7 @@ var StormReleaseGroupProcessor = class extends releaseGroupProcessor.ReleaseGrou
3682
3688
  deletedFiles: deletedFilesForVersionActions
3683
3689
  } = await afterAllProjectsVersioned(this.#tree.root, {
3684
3690
  dryRun: this.versionOptions.dryRun,
3685
- verbose: this.versionOptions.verbose || chunk4ILBJTRR_cjs.isVerbose(this.workspaceConfig.logLevel),
3691
+ verbose: this.versionOptions.verbose || chunkYXQQUYO7_cjs.isVerbose(this.workspaceConfig.logLevel),
3686
3692
  rootVersionActionsOptions
3687
3693
  });
3688
3694
  for (const file of changedFilesForVersionActions) {
@@ -3715,7 +3721,7 @@ var StormReleaseGroupProcessor = class extends releaseGroupProcessor.ReleaseGrou
3715
3721
  let handleDockerVersion;
3716
3722
  try {
3717
3723
  const dockerVersionUtilsPath = "@nx/docker/release/version-utils";
3718
- const { handleDockerVersion: _handleDockerVersion } = chunk4ILBJTRR_cjs.__require(dockerVersionUtilsPath);
3724
+ const { handleDockerVersion: _handleDockerVersion } = chunkYXQQUYO7_cjs.__require(dockerVersionUtilsPath);
3719
3725
  handleDockerVersion = _handleDockerVersion;
3720
3726
  } catch (e) {
3721
3727
  console.error(
@@ -3801,12 +3807,22 @@ var StormReleaseGroupProcessor = class extends releaseGroupProcessor.ReleaseGrou
3801
3807
  return false;
3802
3808
  }
3803
3809
  let bumped = false;
3804
- const firstProject = releaseGroup.projects.reduce((acc, project) => {
3810
+ const firstProject = releaseGroup.projects.reduce((ret, project) => {
3805
3811
  const currentVersion = this.#getCurrentCachedVersionForProject(project);
3806
- if (currentVersion && semver__default.default.gt(currentVersion, acc)) {
3812
+ if (!ret) {
3813
+ return currentVersion;
3814
+ }
3815
+ const largestVersion = this.#getCurrentCachedVersionForProject(ret);
3816
+ if (!largestVersion) {
3807
3817
  return currentVersion;
3808
3818
  }
3809
- return acc;
3819
+ chunkYXQQUYO7_cjs.writeDebug(
3820
+ `Comparing versions for fixed group ${releaseGroup.name}: Current Greatest Version: ${largestVersion}, Current Project Version: ${currentVersion} (project: ${project})`
3821
+ );
3822
+ if (currentVersion && semver__default.default.gt(currentVersion, largestVersion)) {
3823
+ return currentVersion;
3824
+ }
3825
+ return ret;
3810
3826
  }, "");
3811
3827
  const {
3812
3828
  newVersionInput,
@@ -4247,7 +4263,7 @@ var StormReleaseGroupProcessor = class extends releaseGroupProcessor.ReleaseGrou
4247
4263
  var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient {
4248
4264
  static async create(releaseConfig = {}, ignoreNxJsonConfig = false, workspaceConfig) {
4249
4265
  if (!workspaceConfig) {
4250
- workspaceConfig = await chunk4ILBJTRR_cjs.getWorkspaceConfig();
4266
+ workspaceConfig = await chunkYXQQUYO7_cjs.getWorkspaceConfig();
4251
4267
  }
4252
4268
  const projectGraph = await devkit.createProjectGraphAsync({
4253
4269
  exitOnError: true,
@@ -4258,16 +4274,23 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
4258
4274
  "Failed to load the project graph. Please run `nx reset`, then run the `storm-git commit` command again."
4259
4275
  );
4260
4276
  }
4261
- return new _StormReleaseClient(
4277
+ chunkYXQQUYO7_cjs.writeTrace(
4278
+ `Provided release configuration:
4279
+ ${chunkYXQQUYO7_cjs.formatLogMessage(releaseConfig)}`,
4280
+ workspaceConfig
4281
+ );
4282
+ const config5 = getReleaseConfig(
4262
4283
  projectGraph,
4263
- getReleaseConfig(
4264
- projectGraph,
4265
- releaseConfig,
4266
- workspaceConfig,
4267
- ignoreNxJsonConfig
4268
- ),
4284
+ releaseConfig,
4285
+ workspaceConfig,
4286
+ ignoreNxJsonConfig
4287
+ );
4288
+ chunkYXQQUYO7_cjs.writeDebug(
4289
+ `Resolved release configuration:
4290
+ ${chunkYXQQUYO7_cjs.formatLogMessage(config5)}`,
4269
4291
  workspaceConfig
4270
4292
  );
4293
+ return new _StormReleaseClient(projectGraph, config5, workspaceConfig);
4271
4294
  }
4272
4295
  /**
4273
4296
  * The normalized release configuration used by this release client.
@@ -4299,11 +4322,11 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
4299
4322
  */
4300
4323
  constructor(projectGraph, releaseConfig, workspaceConfig) {
4301
4324
  super(releaseConfig, true);
4302
- chunk4ILBJTRR_cjs.writeDebug(
4325
+ chunkYXQQUYO7_cjs.writeDebug(
4303
4326
  "Executing release with the following configuration",
4304
4327
  workspaceConfig
4305
4328
  );
4306
- chunk4ILBJTRR_cjs.writeDebug(releaseConfig, workspaceConfig);
4329
+ chunkYXQQUYO7_cjs.writeDebug(releaseConfig, workspaceConfig);
4307
4330
  this.projectGraph = projectGraph;
4308
4331
  this.releaseConfig = releaseConfig;
4309
4332
  this.workspaceConfig = workspaceConfig;
@@ -4330,7 +4353,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
4330
4353
  groups: options.groups
4331
4354
  },
4332
4355
  firstRelease: !!options.firstRelease,
4333
- verbose: chunk4ILBJTRR_cjs.isVerbose(this.workspaceConfig.logLevel)
4356
+ verbose: chunkYXQQUYO7_cjs.isVerbose(this.workspaceConfig.logLevel)
4334
4357
  });
4335
4358
  const projectToAdditionalDependencyBumps = /* @__PURE__ */ new Map();
4336
4359
  for (const releaseGroup of releaseGraph$1.releaseGroups) {
@@ -4457,7 +4480,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
4457
4480
  })),
4458
4481
  this.releaseConfig.conventionalCommits
4459
4482
  );
4460
- chunk4ILBJTRR_cjs.writeDebug(
4483
+ chunkYXQQUYO7_cjs.writeDebug(
4461
4484
  `Running changelog generation for the ${releaseGroup.name} release group`,
4462
4485
  this.workspaceConfig
4463
4486
  );
@@ -4531,7 +4554,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
4531
4554
  })),
4532
4555
  this.releaseConfig.conventionalCommits
4533
4556
  );
4534
- chunk4ILBJTRR_cjs.writeDebug(
4557
+ chunkYXQQUYO7_cjs.writeDebug(
4535
4558
  `Running changelog generation for the ${releaseGroup.name} release group`,
4536
4559
  this.workspaceConfig
4537
4560
  );
@@ -4560,7 +4583,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
4560
4583
  }
4561
4584
  }
4562
4585
  }
4563
- chunk4ILBJTRR_cjs.writeDebug(
4586
+ chunkYXQQUYO7_cjs.writeDebug(
4564
4587
  `Generated changelogs for ${Object.keys(allProjectChangelogs).length} projects:
4565
4588
  ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4566
4589
  `,
@@ -4589,7 +4612,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4589
4612
  );
4590
4613
  const changes = this.tree.listChanges();
4591
4614
  if (!changes.length) {
4592
- chunk4ILBJTRR_cjs.writeWarning(
4615
+ chunkYXQQUYO7_cjs.writeWarning(
4593
4616
  "No changes were detected for any changelog files, so no changelog entries will be generated.",
4594
4617
  this.workspaceConfig
4595
4618
  );
@@ -4611,7 +4634,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4611
4634
  gitCommitArgs: options.gitCommitArgs || this.releaseConfig.changelog?.git?.commitArgs
4612
4635
  });
4613
4636
  latestCommit = await git.getCommitHash("HEAD");
4614
- chunk4ILBJTRR_cjs.writeDebug(
4637
+ chunkYXQQUYO7_cjs.writeDebug(
4615
4638
  `Creating git tags: ${gitTagValues.join(", ")}`,
4616
4639
  this.workspaceConfig
4617
4640
  );
@@ -4624,7 +4647,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4624
4647
  verbose: options.verbose
4625
4648
  });
4626
4649
  }
4627
- chunk4ILBJTRR_cjs.writeDebug(
4650
+ chunkYXQQUYO7_cjs.writeDebug(
4628
4651
  `Pushing to git remote "${options.gitRemote ?? "origin"}"`,
4629
4652
  this.workspaceConfig
4630
4653
  );
@@ -4640,7 +4663,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4640
4663
  return;
4641
4664
  };
4642
4665
  releaseVersion = async (options) => {
4643
- const verbose = options.verbose || chunk4ILBJTRR_cjs.isVerbose(this.workspaceConfig.logLevel);
4666
+ const verbose = options.verbose || chunkYXQQUYO7_cjs.isVerbose(this.workspaceConfig.logLevel);
4644
4667
  this.projectGraph = await devkit.createProjectGraphAsync({
4645
4668
  exitOnError: true,
4646
4669
  resetDaemonClient: true
@@ -4664,7 +4687,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4664
4687
  versionActionsOptionsOverrides: options.versionActionsOptionsOverrides
4665
4688
  });
4666
4689
  if (releaseGraph$1.filterLog && process.env.NX_RELEASE_INTERNAL_SUPPRESS_FILTER_LOG !== "true") {
4667
- chunk4ILBJTRR_cjs.writeDebug(formatNxLog(releaseGraph$1.filterLog), this.workspaceConfig);
4690
+ chunkYXQQUYO7_cjs.writeDebug(formatNxLog(releaseGraph$1.filterLog), this.workspaceConfig);
4668
4691
  }
4669
4692
  if (!options.specifier) {
4670
4693
  const rawVersionPlans = await versionPlans.readRawVersionPlans();
@@ -4683,7 +4706,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4683
4706
  }
4684
4707
  } else {
4685
4708
  if (verbose && releaseGraph$1.releaseGroups.some((g) => !!g.versionPlans)) {
4686
- chunk4ILBJTRR_cjs.writeDebug(
4709
+ chunkYXQQUYO7_cjs.writeDebug(
4687
4710
  `Skipping version plan discovery as a specifier was provided`,
4688
4711
  this.workspaceConfig
4689
4712
  );
@@ -4693,7 +4716,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4693
4716
  options.deleteVersionPlans = false;
4694
4717
  }
4695
4718
  if (this.releaseConfig.version?.preVersionCommand) {
4696
- chunk4ILBJTRR_cjs.writeDebug(
4719
+ chunkYXQQUYO7_cjs.writeDebug(
4697
4720
  "Executing the following pre-version command: \n" + this.releaseConfig.version.preVersionCommand,
4698
4721
  this.workspaceConfig
4699
4722
  );
@@ -4729,7 +4752,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4729
4752
  continue;
4730
4753
  }
4731
4754
  if (releaseGroup.version?.groupPreVersionCommand) {
4732
- chunk4ILBJTRR_cjs.writeDebug(
4755
+ chunkYXQQUYO7_cjs.writeDebug(
4733
4756
  `Executing the ${releaseGroup.name} release group's pre-version command:
4734
4757
  ` + releaseGroup.version?.groupPreVersionCommand,
4735
4758
  this.workspaceConfig
@@ -4789,7 +4812,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4789
4812
  changed.forEach((f) => additionalChangedFiles.add(f));
4790
4813
  deleted.forEach((f) => additionalDeletedFiles.add(f));
4791
4814
  if (this.releaseConfig.docker && typeof this.releaseConfig.docker === "object" && this.releaseConfig.docker?.preVersionCommand) {
4792
- chunk4ILBJTRR_cjs.writeDebug(
4815
+ chunkYXQQUYO7_cjs.writeDebug(
4793
4816
  `Executing the docker pre-version command:
4794
4817
  ` + this.releaseConfig.docker.preVersionCommand,
4795
4818
  this.workspaceConfig
@@ -4826,7 +4849,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4826
4849
  continue;
4827
4850
  }
4828
4851
  if (releaseGroup.docker?.groupPreVersionCommand) {
4829
- chunk4ILBJTRR_cjs.writeDebug(
4852
+ chunkYXQQUYO7_cjs.writeDebug(
4830
4853
  `Executing the ${releaseGroup.name} release group's docker pre-version command:
4831
4854
  ` + releaseGroup.docker?.groupPreVersionCommand,
4832
4855
  this.workspaceConfig
@@ -4857,7 +4880,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4857
4880
  }
4858
4881
  }
4859
4882
  if (this.releaseConfig.docker || releaseGraph$1.releaseGroups.some((rg) => rg.docker)) {
4860
- chunk4ILBJTRR_cjs.writeWarning(
4883
+ chunkYXQQUYO7_cjs.writeWarning(
4861
4884
  formatNxLog({
4862
4885
  title: "Warning",
4863
4886
  bodyLines: [
@@ -4914,7 +4937,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4914
4937
  gitCommitArgs: options.gitCommitArgs || this.releaseConfig.version?.git?.commitArgs
4915
4938
  });
4916
4939
  } else if (options.stageChanges ?? this.releaseConfig.version?.git?.stageChanges) {
4917
- chunk4ILBJTRR_cjs.writeDebug(`Staging changed files with git`);
4940
+ chunkYXQQUYO7_cjs.writeDebug(`Staging changed files with git`);
4918
4941
  await git.gitAdd({
4919
4942
  changedFiles,
4920
4943
  deletedFiles,
@@ -4923,7 +4946,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4923
4946
  });
4924
4947
  }
4925
4948
  if (options.gitTag ?? this.releaseConfig.version?.git?.tag) {
4926
- chunk4ILBJTRR_cjs.writeDebug(`Tagging commit with git`);
4949
+ chunkYXQQUYO7_cjs.writeDebug(`Tagging commit with git`);
4927
4950
  for (const tag of gitTagValues) {
4928
4951
  await gitTag({
4929
4952
  tag,
@@ -4935,7 +4958,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4935
4958
  }
4936
4959
  }
4937
4960
  if (options.gitPush ?? this.releaseConfig.version?.git?.push) {
4938
- chunk4ILBJTRR_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
4961
+ chunkYXQQUYO7_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
4939
4962
  await git.gitPush({
4940
4963
  gitRemote: options.gitRemote,
4941
4964
  dryRun: options.dryRun,
@@ -4966,7 +4989,7 @@ var runRelease = async (config5, {
4966
4989
  throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
4967
4990
  }
4968
4991
  if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
4969
- chunk4ILBJTRR_cjs.writeFatal(
4992
+ chunkYXQQUYO7_cjs.writeFatal(
4970
4993
  "You must be a member of the Storm Software organization to run the release process.",
4971
4994
  config5
4972
4995
  );
@@ -4983,26 +5006,26 @@ var runRelease = async (config5, {
4983
5006
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
4984
5007
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
4985
5008
  process.env.NPM_CONFIG_PROVENANCE = "true";
4986
- chunk4ILBJTRR_cjs.writeDebug("Creating Storm release client...", config5);
5009
+ chunkYXQQUYO7_cjs.writeDebug("Creating Storm release client...", config5);
4987
5010
  const releaseClient = await StormReleaseClient.create(
4988
5011
  releaseConfig,
4989
5012
  ignoreNxJsonConfig,
4990
5013
  config5
4991
5014
  );
4992
- chunk4ILBJTRR_cjs.writeDebug("Reading in the workspaces release configuration", config5);
5015
+ chunkYXQQUYO7_cjs.writeDebug("Reading in the workspaces release configuration", config5);
4993
5016
  const to = head || process.env.NX_HEAD;
4994
5017
  const from = base || process.env.NX_BASE;
4995
- chunk4ILBJTRR_cjs.writeDebug(
5018
+ chunkYXQQUYO7_cjs.writeDebug(
4996
5019
  `Using the following Git SHAs to determine the release content:
4997
5020
  - From: ${from}
4998
5021
  - To: ${to}
4999
5022
  `,
5000
5023
  config5
5001
5024
  );
5002
- chunk4ILBJTRR_cjs.writeDebug("Determining the current release versions...", config5);
5025
+ chunkYXQQUYO7_cjs.writeDebug("Determining the current release versions...", config5);
5003
5026
  const { workspaceVersion, projectsVersionData, releaseGraph } = await releaseClient.releaseVersion({
5004
5027
  dryRun,
5005
- verbose: chunk4ILBJTRR_cjs.isVerbose(config5.logLevel),
5028
+ verbose: chunkYXQQUYO7_cjs.isVerbose(config5.logLevel),
5006
5029
  preid: config5.preid,
5007
5030
  stageChanges: true,
5008
5031
  gitCommit: false
@@ -5011,14 +5034,14 @@ var runRelease = async (config5, {
5011
5034
  version: releaseConfig?.projectsRelationship === "fixed" ? workspaceVersion : void 0,
5012
5035
  versionData: projectsVersionData,
5013
5036
  dryRun,
5014
- verbose: chunk4ILBJTRR_cjs.isVerbose(config5.logLevel),
5037
+ verbose: chunkYXQQUYO7_cjs.isVerbose(config5.logLevel),
5015
5038
  to,
5016
5039
  from,
5017
5040
  releaseGraph
5018
5041
  });
5019
- chunk4ILBJTRR_cjs.writeDebug("Tagging commit with git", config5);
5042
+ chunkYXQQUYO7_cjs.writeDebug("Tagging commit with git", config5);
5020
5043
  if (skipPublish) {
5021
- chunk4ILBJTRR_cjs.writeWarning(
5044
+ chunkYXQQUYO7_cjs.writeWarning(
5022
5045
  "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
5023
5046
  config5
5024
5047
  );
@@ -5027,7 +5050,7 @@ var runRelease = async (config5, {
5027
5050
  (key) => projectsVersionData[key]?.newVersion
5028
5051
  );
5029
5052
  if (changedProjects.length > 0) {
5030
- chunk4ILBJTRR_cjs.writeInfo(
5053
+ chunkYXQQUYO7_cjs.writeInfo(
5031
5054
  `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
5032
5055
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
5033
5056
  `,
@@ -5036,7 +5059,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
5036
5059
  await updatePackageManifests(projectsVersionData, config5);
5037
5060
  const result = await releaseClient.releasePublish({
5038
5061
  dryRun,
5039
- verbose: chunk4ILBJTRR_cjs.isVerbose(config5.logLevel)
5062
+ verbose: chunkYXQQUYO7_cjs.isVerbose(config5.logLevel)
5040
5063
  });
5041
5064
  const failedProjects = Object.keys(result).filter(
5042
5065
  (key) => result[key]?.code && result[key]?.code > 0
@@ -5051,10 +5074,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
5051
5074
  );
5052
5075
  }
5053
5076
  } else {
5054
- chunk4ILBJTRR_cjs.writeWarning("Skipped publishing packages.", config5);
5077
+ chunkYXQQUYO7_cjs.writeWarning("Skipped publishing packages.", config5);
5055
5078
  }
5056
5079
  }
5057
- chunk4ILBJTRR_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
5080
+ chunkYXQQUYO7_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
5058
5081
  };
5059
5082
  async function updatePackageManifests(projectsVersionData, config5) {
5060
5083
  let projectGraph;
@@ -5069,7 +5092,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
5069
5092
  Object.keys(projectsVersionData).map(async (node) => {
5070
5093
  const projectNode = projectGraph.nodes[node];
5071
5094
  if (!projectNode?.data.root) {
5072
- chunk4ILBJTRR_cjs.writeWarning(
5095
+ chunkYXQQUYO7_cjs.writeWarning(
5073
5096
  `Project node ${node} not found in the project graph. Skipping manifest update.`,
5074
5097
  config5
5075
5098
  );
@@ -5077,17 +5100,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
5077
5100
  }
5078
5101
  const versionData = projectsVersionData[node];
5079
5102
  if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
5080
- chunk4ILBJTRR_cjs.writeTrace(
5103
+ chunkYXQQUYO7_cjs.writeTrace(
5081
5104
  `Writing version ${versionData.newVersion} update to manifest file for ${node}
5082
5105
  `,
5083
5106
  config5
5084
5107
  );
5085
- const projectRoot = chunk4ILBJTRR_cjs.joinPaths(
5108
+ const projectRoot = chunkYXQQUYO7_cjs.joinPaths(
5086
5109
  config5.workspaceRoot,
5087
5110
  projectNode.data.root
5088
5111
  );
5089
- const packageJsonPath = chunk4ILBJTRR_cjs.joinPaths(projectRoot, "package.json");
5090
- const cargoTomlPath = chunk4ILBJTRR_cjs.joinPaths(projectRoot, "Cargo.toml");
5112
+ const packageJsonPath = chunkYXQQUYO7_cjs.joinPaths(projectRoot, "package.json");
5113
+ const cargoTomlPath = chunkYXQQUYO7_cjs.joinPaths(projectRoot, "Cargo.toml");
5091
5114
  if (fs$1.existsSync(packageJsonPath)) {
5092
5115
  const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
5093
5116
  const packageJson = JSON.parse(packageJsonContent);
@@ -5105,7 +5128,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
5105
5128
  })
5106
5129
  );
5107
5130
  } else {
5108
- chunk4ILBJTRR_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
5131
+ chunkYXQQUYO7_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
5109
5132
  }
5110
5133
  }
5111
5134
 
@@ -5113,8 +5136,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
5113
5136
  var _config = {};
5114
5137
  function createProgram(config5) {
5115
5138
  _config = config5;
5116
- chunk4ILBJTRR_cjs.writeInfo(`${chunk4ILBJTRR_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
5117
- const root = chunk4ILBJTRR_cjs.findWorkspaceRootSafe(process.cwd());
5139
+ chunkYXQQUYO7_cjs.writeInfo(`${chunkYXQQUYO7_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
5140
+ const root = chunkYXQQUYO7_cjs.findWorkspaceRootSafe(process.cwd());
5118
5141
  process.env.STORM_WORKSPACE_ROOT ??= root;
5119
5142
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
5120
5143
  if (root) {
@@ -5161,12 +5184,12 @@ async function commitAction({
5161
5184
  dryRun = false
5162
5185
  }) {
5163
5186
  try {
5164
- chunk4ILBJTRR_cjs.writeInfo(
5165
- `${chunk4ILBJTRR_cjs.brandIcon(typeof config5 === "string" ? {} : config5)} Preparing to commit your changes. Please provide the requested details below...`,
5187
+ chunkYXQQUYO7_cjs.writeInfo(
5188
+ `${chunkYXQQUYO7_cjs.brandIcon(typeof config5 === "string" ? {} : config5)} Preparing to commit your changes. Please provide the requested details below...`,
5166
5189
  _config
5167
5190
  );
5168
5191
  await runCommit(config5, dryRun);
5169
- chunk4ILBJTRR_cjs.writeSuccess(
5192
+ chunkYXQQUYO7_cjs.writeSuccess(
5170
5193
  `\u2714 Storm Commit processing completed successfully!
5171
5194
 
5172
5195
  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}
@@ -5174,7 +5197,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
5174
5197
  _config
5175
5198
  );
5176
5199
  } catch (error) {
5177
- chunk4ILBJTRR_cjs.writeFatal(
5200
+ chunkYXQQUYO7_cjs.writeFatal(
5178
5201
  `A fatal error occurred while running commit action:
5179
5202
 
5180
5203
  ${error.message}${error.stack ? `
@@ -5189,17 +5212,17 @@ Please fix any errors and try committing again.`,
5189
5212
  }
5190
5213
  async function readmeAction(options) {
5191
5214
  try {
5192
- chunk4ILBJTRR_cjs.writeInfo(
5193
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
5215
+ chunkYXQQUYO7_cjs.writeInfo(
5216
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
5194
5217
  _config
5195
5218
  );
5196
5219
  await runReadme(options);
5197
- chunk4ILBJTRR_cjs.writeSuccess(
5220
+ chunkYXQQUYO7_cjs.writeSuccess(
5198
5221
  "\u2714 Formatting of the workspace's README.md files is complete\n",
5199
5222
  _config
5200
5223
  );
5201
5224
  } catch (error) {
5202
- chunk4ILBJTRR_cjs.writeFatal(
5225
+ chunkYXQQUYO7_cjs.writeFatal(
5203
5226
  `A fatal error occurred while running README format action:
5204
5227
 
5205
5228
  ${error.message}`
@@ -5214,8 +5237,8 @@ async function releaseAction({
5214
5237
  dryRun
5215
5238
  }) {
5216
5239
  try {
5217
- chunk4ILBJTRR_cjs.writeInfo(
5218
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
5240
+ chunkYXQQUYO7_cjs.writeInfo(
5241
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
5219
5242
  _config
5220
5243
  );
5221
5244
  await runRelease(_config, {
@@ -5224,9 +5247,9 @@ async function releaseAction({
5224
5247
  base,
5225
5248
  head
5226
5249
  });
5227
- chunk4ILBJTRR_cjs.writeSuccess("\u2714 Release completed successfully!\n", _config);
5250
+ chunkYXQQUYO7_cjs.writeSuccess("\u2714 Release completed successfully!\n", _config);
5228
5251
  } catch (error) {
5229
- chunk4ILBJTRR_cjs.writeFatal(
5252
+ chunkYXQQUYO7_cjs.writeFatal(
5230
5253
  `A fatal error occurred while running release action:
5231
5254
 
5232
5255
  ${error.message} ${error.stack ? `
@@ -5240,17 +5263,17 @@ Stacktrace: ${error.stack}` : ""}`,
5240
5263
  }
5241
5264
  async function commitLintAction(options) {
5242
5265
  try {
5243
- chunk4ILBJTRR_cjs.writeInfo(
5244
- `${chunk4ILBJTRR_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.`,
5266
+ chunkYXQQUYO7_cjs.writeInfo(
5267
+ `${chunkYXQQUYO7_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.`,
5245
5268
  _config
5246
5269
  );
5247
5270
  await runCommitLint(_config, options);
5248
- chunk4ILBJTRR_cjs.writeSuccess(
5271
+ chunkYXQQUYO7_cjs.writeSuccess(
5249
5272
  "\u2714 Linting the commit messages completed successfully!\n",
5250
5273
  _config
5251
5274
  );
5252
5275
  } catch (error) {
5253
- chunk4ILBJTRR_cjs.writeFatal(
5276
+ chunkYXQQUYO7_cjs.writeFatal(
5254
5277
  `A fatal error occurred while linting the commit messages:
5255
5278
 
5256
5279
  ${error.message}`,
@@ -5261,14 +5284,14 @@ ${error.message}`,
5261
5284
  }
5262
5285
  async function postCheckoutAction({ files }) {
5263
5286
  try {
5264
- chunk4ILBJTRR_cjs.writeInfo(
5265
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Running the Storm post-checkout git hook for ${files.length} files in the workspace...`,
5287
+ chunkYXQQUYO7_cjs.writeInfo(
5288
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Running the Storm post-checkout git hook for ${files.length} files in the workspace...`,
5266
5289
  _config
5267
5290
  );
5268
- await chunkDPKFBB3S_cjs.postCheckoutHook(_config, files);
5269
- chunk4ILBJTRR_cjs.writeSuccess("\u2714 Post-checkout hook completed successfully!\n", _config);
5291
+ await chunkNJCMHJBD_cjs.postCheckoutHook(_config, files);
5292
+ chunkYXQQUYO7_cjs.writeSuccess("\u2714 Post-checkout hook completed successfully!\n", _config);
5270
5293
  } catch (error) {
5271
- chunk4ILBJTRR_cjs.writeFatal(
5294
+ chunkYXQQUYO7_cjs.writeFatal(
5272
5295
  `A fatal error occurred while running the post-checkout hook:
5273
5296
 
5274
5297
  ${error.message}`,
@@ -5279,14 +5302,14 @@ ${error.message}`,
5279
5302
  }
5280
5303
  async function postCommitAction({ files }) {
5281
5304
  try {
5282
- chunk4ILBJTRR_cjs.writeInfo(
5283
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Running the Storm post-commit git hook for ${files.length} files in the workspace...`,
5305
+ chunkYXQQUYO7_cjs.writeInfo(
5306
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Running the Storm post-commit git hook for ${files.length} files in the workspace...`,
5284
5307
  _config
5285
5308
  );
5286
- await chunkOGGY5I23_cjs.postCommitHook(_config, files);
5287
- chunk4ILBJTRR_cjs.writeSuccess("\u2714 Post-commit hook completed successfully!\n", _config);
5309
+ await chunkTBOHZQTA_cjs.postCommitHook(_config, files);
5310
+ chunkYXQQUYO7_cjs.writeSuccess("\u2714 Post-commit hook completed successfully!\n", _config);
5288
5311
  } catch (error) {
5289
- chunk4ILBJTRR_cjs.writeFatal(
5312
+ chunkYXQQUYO7_cjs.writeFatal(
5290
5313
  `A fatal error occurred while running the post-commit hook:
5291
5314
 
5292
5315
  ${error.message}`,
@@ -5297,14 +5320,14 @@ ${error.message}`,
5297
5320
  }
5298
5321
  async function postMergeAction({ files }) {
5299
5322
  try {
5300
- chunk4ILBJTRR_cjs.writeInfo(
5301
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Running the Storm post-merge git hook for ${files.length} files in the workspace...`,
5323
+ chunkYXQQUYO7_cjs.writeInfo(
5324
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Running the Storm post-merge git hook for ${files.length} files in the workspace...`,
5302
5325
  _config
5303
5326
  );
5304
- await chunkRZNFHUM6_cjs.postMergeHook(_config, files);
5305
- chunk4ILBJTRR_cjs.writeSuccess("\u2714 Post-merge hook completed successfully!\n", _config);
5327
+ await chunkRYRABFEU_cjs.postMergeHook(_config, files);
5328
+ chunkYXQQUYO7_cjs.writeSuccess("\u2714 Post-merge hook completed successfully!\n", _config);
5306
5329
  } catch (error) {
5307
- chunk4ILBJTRR_cjs.writeFatal(
5330
+ chunkYXQQUYO7_cjs.writeFatal(
5308
5331
  `A fatal error occurred while running the post-merge hook:
5309
5332
 
5310
5333
  ${error.message}`,
@@ -5315,14 +5338,14 @@ ${error.message}`,
5315
5338
  }
5316
5339
  async function preCommitAction({ files }) {
5317
5340
  try {
5318
- chunk4ILBJTRR_cjs.writeInfo(
5319
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Running the Storm pre-commit git hook for ${files.length} files in the workspace...`,
5341
+ chunkYXQQUYO7_cjs.writeInfo(
5342
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Running the Storm pre-commit git hook for ${files.length} files in the workspace...`,
5320
5343
  _config
5321
5344
  );
5322
- await chunkAQ5YHZ3Z_cjs.preCommitHook(_config, files);
5323
- chunk4ILBJTRR_cjs.writeSuccess("\u2714 Pre-commit hook completed successfully!\n", _config);
5345
+ await chunkFAQW5YFS_cjs.preCommitHook(_config, files);
5346
+ chunkYXQQUYO7_cjs.writeSuccess("\u2714 Pre-commit hook completed successfully!\n", _config);
5324
5347
  } catch (error) {
5325
- chunk4ILBJTRR_cjs.writeFatal(
5348
+ chunkYXQQUYO7_cjs.writeFatal(
5326
5349
  `A fatal error occurred while running the pre-commit hook:
5327
5350
 
5328
5351
  ${error.message}`,
@@ -5333,14 +5356,14 @@ ${error.message}`,
5333
5356
  }
5334
5357
  async function prePushAction({ files }) {
5335
5358
  try {
5336
- chunk4ILBJTRR_cjs.writeInfo(
5337
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Running the Storm pre-push git hook for ${files.length} files in the workspace...`,
5359
+ chunkYXQQUYO7_cjs.writeInfo(
5360
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Running the Storm pre-push git hook for ${files.length} files in the workspace...`,
5338
5361
  _config
5339
5362
  );
5340
- await chunkW5P2IM2W_cjs.prePushHook(_config, files);
5341
- chunk4ILBJTRR_cjs.writeSuccess("\u2714 Pre-push hook completed successfully!\n", _config);
5363
+ await chunk4FUNPJYN_cjs.prePushHook(_config, files);
5364
+ chunkYXQQUYO7_cjs.writeSuccess("\u2714 Pre-push hook completed successfully!\n", _config);
5342
5365
  } catch (error) {
5343
- chunk4ILBJTRR_cjs.writeFatal(
5366
+ chunkYXQQUYO7_cjs.writeFatal(
5344
5367
  `A fatal error occurred while running the pre-push hook:
5345
5368
 
5346
5369
  ${error.message}`,
@@ -5351,14 +5374,14 @@ ${error.message}`,
5351
5374
  }
5352
5375
  async function prepareAction() {
5353
5376
  try {
5354
- chunk4ILBJTRR_cjs.writeInfo(
5355
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Running the Storm prepare git hook for the workspace...`,
5377
+ chunkYXQQUYO7_cjs.writeInfo(
5378
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Running the Storm prepare git hook for the workspace...`,
5356
5379
  _config
5357
5380
  );
5358
- await chunk4EOHM2UV_cjs.prepareHook(_config);
5359
- chunk4ILBJTRR_cjs.writeSuccess("\u2714 Prepare hook completed successfully!\n", _config);
5381
+ await chunkWTWICYHN_cjs.prepareHook(_config);
5382
+ chunkYXQQUYO7_cjs.writeSuccess("\u2714 Prepare hook completed successfully!\n", _config);
5360
5383
  } catch (error) {
5361
- chunk4ILBJTRR_cjs.writeFatal(
5384
+ chunkYXQQUYO7_cjs.writeFatal(
5362
5385
  `A fatal error occurred while running the prepare hook:
5363
5386
 
5364
5387
  ${error.message}`,
@@ -5370,18 +5393,18 @@ ${error.message}`,
5370
5393
 
5371
5394
  // bin/git.ts
5372
5395
  void (async () => {
5373
- const config5 = await chunk4ILBJTRR_cjs.getConfig();
5396
+ const config5 = await chunkYXQQUYO7_cjs.getConfig();
5374
5397
  try {
5375
- chunk4ILBJTRR_cjs.handleProcess(config5);
5398
+ chunkYXQQUYO7_cjs.handleProcess(config5);
5376
5399
  const program = createProgram(config5);
5377
5400
  await program.parseAsync(process.argv);
5378
- chunk4ILBJTRR_cjs.writeSuccess(
5401
+ chunkYXQQUYO7_cjs.writeSuccess(
5379
5402
  `\u2714 Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
5380
5403
  config5
5381
5404
  );
5382
- chunk4ILBJTRR_cjs.exitWithSuccess(config5);
5405
+ chunkYXQQUYO7_cjs.exitWithSuccess(config5);
5383
5406
  } catch (error) {
5384
- chunk4ILBJTRR_cjs.exitWithError(config5);
5407
+ chunkYXQQUYO7_cjs.exitWithError(config5);
5385
5408
  process.exit(1);
5386
5409
  }
5387
5410
  })();