@storm-software/git-tools 2.131.12 → 2.131.15

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 (61) hide show
  1. package/bin/{chunk-NOZEXVLA.js → chunk-27FK2BQD.js} +3 -3
  2. package/bin/{chunk-NOZEXVLA.js.map → chunk-27FK2BQD.js.map} +1 -1
  3. package/bin/{chunk-W5P2IM2W.cjs → chunk-4FUNPJYN.cjs} +6 -6
  4. package/bin/{chunk-W5P2IM2W.cjs.map → chunk-4FUNPJYN.cjs.map} +1 -1
  5. package/bin/{chunk-32WE3MHJ.js → chunk-4KUJG3RB.js} +3 -3
  6. package/bin/{chunk-32WE3MHJ.js.map → chunk-4KUJG3RB.js.map} +1 -1
  7. package/bin/{chunk-POFLIQQB.cjs → chunk-5DZ44YLS.cjs} +5 -5
  8. package/bin/{chunk-POFLIQQB.cjs.map → chunk-5DZ44YLS.cjs.map} +1 -1
  9. package/bin/{chunk-ABI4JM6L.js → chunk-CRTMVCFC.js} +3 -3
  10. package/bin/{chunk-ABI4JM6L.js.map → chunk-CRTMVCFC.js.map} +1 -1
  11. package/bin/{chunk-AQ5YHZ3Z.cjs → chunk-FAQW5YFS.cjs} +4 -4
  12. package/bin/{chunk-AQ5YHZ3Z.cjs.map → chunk-FAQW5YFS.cjs.map} +1 -1
  13. package/bin/{chunk-AZGQVIYO.js → chunk-NBHO5BK4.js} +3 -3
  14. package/bin/{chunk-AZGQVIYO.js.map → chunk-NBHO5BK4.js.map} +1 -1
  15. package/bin/{chunk-DPKFBB3S.cjs → chunk-NJCMHJBD.cjs} +4 -4
  16. package/bin/{chunk-DPKFBB3S.cjs.map → chunk-NJCMHJBD.cjs.map} +1 -1
  17. package/bin/{chunk-7ES3CGZQ.js → chunk-NZK4I3QQ.js} +3 -3
  18. package/bin/chunk-NZK4I3QQ.js.map +1 -0
  19. package/bin/{chunk-IAZL2KCV.js → chunk-O4NH73SU.js} +3 -3
  20. package/bin/{chunk-IAZL2KCV.js.map → chunk-O4NH73SU.js.map} +1 -1
  21. package/bin/{chunk-CVTLZKKX.js → chunk-PAUQYLGE.js} +3 -3
  22. package/bin/{chunk-CVTLZKKX.js.map → chunk-PAUQYLGE.js.map} +1 -1
  23. package/bin/{chunk-RZNFHUM6.cjs → chunk-RYRABFEU.cjs} +4 -4
  24. package/bin/{chunk-RZNFHUM6.cjs.map → chunk-RYRABFEU.cjs.map} +1 -1
  25. package/bin/{chunk-OGGY5I23.cjs → chunk-TBOHZQTA.cjs} +4 -4
  26. package/bin/{chunk-OGGY5I23.cjs.map → chunk-TBOHZQTA.cjs.map} +1 -1
  27. package/bin/{chunk-CDUCLZJV.js → chunk-VXOTRXPC.js} +3 -3
  28. package/bin/{chunk-CDUCLZJV.js.map → chunk-VXOTRXPC.js.map} +1 -1
  29. package/bin/{chunk-4EOHM2UV.cjs → chunk-WTWICYHN.cjs} +4 -4
  30. package/bin/{chunk-4EOHM2UV.cjs.map → chunk-WTWICYHN.cjs.map} +1 -1
  31. package/bin/{chunk-4ILBJTRR.cjs → chunk-YXQQUYO7.cjs} +3 -2
  32. package/bin/chunk-YXQQUYO7.cjs.map +1 -0
  33. package/bin/git.cjs +191 -152
  34. package/bin/git.cjs.map +1 -1
  35. package/bin/git.js +58 -19
  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-B35TFDAA.cjs → chunk-AGQBRIPK.cjs} +6 -0
  54. package/dist/{chunk-FPSN3POD.js → chunk-UOI2HBBA.js} +6 -0
  55. package/dist/index.cjs +17 -17
  56. package/dist/index.js +1 -1
  57. package/dist/release/config.cjs +17 -17
  58. package/dist/release/config.js +1 -1
  59. package/package.json +7 -7
  60. package/bin/chunk-4ILBJTRR.cjs.map +0 -1
  61. 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,38 @@ 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)) {
3807
- return currentVersion;
3812
+ if (!currentVersion) {
3813
+ chunkYXQQUYO7_cjs.writeTrace(
3814
+ `No current version found for project ${project} in release group ${releaseGroup.name}, skipping version comparison.`,
3815
+ this.workspaceConfig
3816
+ );
3817
+ return "";
3808
3818
  }
3809
- return acc;
3819
+ if (!ret) {
3820
+ chunkYXQQUYO7_cjs.writeTrace(
3821
+ `Defaulting to first version ${currentVersion} (project: ${project})`,
3822
+ this.workspaceConfig
3823
+ );
3824
+ return project;
3825
+ }
3826
+ const largestVersion = this.#getCurrentCachedVersionForProject(ret);
3827
+ if (!largestVersion) {
3828
+ chunkYXQQUYO7_cjs.writeTrace(
3829
+ `No current version found for project ${ret} in release group ${releaseGroup.name}, skipping version comparison.`,
3830
+ this.workspaceConfig
3831
+ );
3832
+ return project;
3833
+ }
3834
+ chunkYXQQUYO7_cjs.writeDebug(
3835
+ `Comparing versions for fixed group ${releaseGroup.name}: Current Greatest Version: ${largestVersion}, Current Project Version: ${currentVersion} (project: ${project})`,
3836
+ this.workspaceConfig
3837
+ );
3838
+ if (currentVersion && semver__default.default.gt(currentVersion, largestVersion)) {
3839
+ return project;
3840
+ }
3841
+ return ret;
3810
3842
  }, "");
3811
3843
  const {
3812
3844
  newVersionInput,
@@ -4247,7 +4279,7 @@ var StormReleaseGroupProcessor = class extends releaseGroupProcessor.ReleaseGrou
4247
4279
  var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient {
4248
4280
  static async create(releaseConfig = {}, ignoreNxJsonConfig = false, workspaceConfig) {
4249
4281
  if (!workspaceConfig) {
4250
- workspaceConfig = await chunk4ILBJTRR_cjs.getWorkspaceConfig();
4282
+ workspaceConfig = await chunkYXQQUYO7_cjs.getWorkspaceConfig();
4251
4283
  }
4252
4284
  const projectGraph = await devkit.createProjectGraphAsync({
4253
4285
  exitOnError: true,
@@ -4258,16 +4290,23 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
4258
4290
  "Failed to load the project graph. Please run `nx reset`, then run the `storm-git commit` command again."
4259
4291
  );
4260
4292
  }
4261
- return new _StormReleaseClient(
4293
+ chunkYXQQUYO7_cjs.writeTrace(
4294
+ `Provided release configuration:
4295
+ ${chunkYXQQUYO7_cjs.formatLogMessage(releaseConfig)}`,
4296
+ workspaceConfig
4297
+ );
4298
+ const config5 = getReleaseConfig(
4262
4299
  projectGraph,
4263
- getReleaseConfig(
4264
- projectGraph,
4265
- releaseConfig,
4266
- workspaceConfig,
4267
- ignoreNxJsonConfig
4268
- ),
4300
+ releaseConfig,
4301
+ workspaceConfig,
4302
+ ignoreNxJsonConfig
4303
+ );
4304
+ chunkYXQQUYO7_cjs.writeDebug(
4305
+ `Resolved release configuration:
4306
+ ${chunkYXQQUYO7_cjs.formatLogMessage(config5)}`,
4269
4307
  workspaceConfig
4270
4308
  );
4309
+ return new _StormReleaseClient(projectGraph, config5, workspaceConfig);
4271
4310
  }
4272
4311
  /**
4273
4312
  * The normalized release configuration used by this release client.
@@ -4299,11 +4338,11 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
4299
4338
  */
4300
4339
  constructor(projectGraph, releaseConfig, workspaceConfig) {
4301
4340
  super(releaseConfig, true);
4302
- chunk4ILBJTRR_cjs.writeDebug(
4341
+ chunkYXQQUYO7_cjs.writeDebug(
4303
4342
  "Executing release with the following configuration",
4304
4343
  workspaceConfig
4305
4344
  );
4306
- chunk4ILBJTRR_cjs.writeDebug(releaseConfig, workspaceConfig);
4345
+ chunkYXQQUYO7_cjs.writeDebug(releaseConfig, workspaceConfig);
4307
4346
  this.projectGraph = projectGraph;
4308
4347
  this.releaseConfig = releaseConfig;
4309
4348
  this.workspaceConfig = workspaceConfig;
@@ -4330,7 +4369,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
4330
4369
  groups: options.groups
4331
4370
  },
4332
4371
  firstRelease: !!options.firstRelease,
4333
- verbose: chunk4ILBJTRR_cjs.isVerbose(this.workspaceConfig.logLevel)
4372
+ verbose: chunkYXQQUYO7_cjs.isVerbose(this.workspaceConfig.logLevel)
4334
4373
  });
4335
4374
  const projectToAdditionalDependencyBumps = /* @__PURE__ */ new Map();
4336
4375
  for (const releaseGroup of releaseGraph$1.releaseGroups) {
@@ -4457,7 +4496,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
4457
4496
  })),
4458
4497
  this.releaseConfig.conventionalCommits
4459
4498
  );
4460
- chunk4ILBJTRR_cjs.writeDebug(
4499
+ chunkYXQQUYO7_cjs.writeDebug(
4461
4500
  `Running changelog generation for the ${releaseGroup.name} release group`,
4462
4501
  this.workspaceConfig
4463
4502
  );
@@ -4531,7 +4570,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
4531
4570
  })),
4532
4571
  this.releaseConfig.conventionalCommits
4533
4572
  );
4534
- chunk4ILBJTRR_cjs.writeDebug(
4573
+ chunkYXQQUYO7_cjs.writeDebug(
4535
4574
  `Running changelog generation for the ${releaseGroup.name} release group`,
4536
4575
  this.workspaceConfig
4537
4576
  );
@@ -4560,7 +4599,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
4560
4599
  }
4561
4600
  }
4562
4601
  }
4563
- chunk4ILBJTRR_cjs.writeDebug(
4602
+ chunkYXQQUYO7_cjs.writeDebug(
4564
4603
  `Generated changelogs for ${Object.keys(allProjectChangelogs).length} projects:
4565
4604
  ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4566
4605
  `,
@@ -4589,7 +4628,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4589
4628
  );
4590
4629
  const changes = this.tree.listChanges();
4591
4630
  if (!changes.length) {
4592
- chunk4ILBJTRR_cjs.writeWarning(
4631
+ chunkYXQQUYO7_cjs.writeWarning(
4593
4632
  "No changes were detected for any changelog files, so no changelog entries will be generated.",
4594
4633
  this.workspaceConfig
4595
4634
  );
@@ -4611,7 +4650,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4611
4650
  gitCommitArgs: options.gitCommitArgs || this.releaseConfig.changelog?.git?.commitArgs
4612
4651
  });
4613
4652
  latestCommit = await git.getCommitHash("HEAD");
4614
- chunk4ILBJTRR_cjs.writeDebug(
4653
+ chunkYXQQUYO7_cjs.writeDebug(
4615
4654
  `Creating git tags: ${gitTagValues.join(", ")}`,
4616
4655
  this.workspaceConfig
4617
4656
  );
@@ -4624,7 +4663,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4624
4663
  verbose: options.verbose
4625
4664
  });
4626
4665
  }
4627
- chunk4ILBJTRR_cjs.writeDebug(
4666
+ chunkYXQQUYO7_cjs.writeDebug(
4628
4667
  `Pushing to git remote "${options.gitRemote ?? "origin"}"`,
4629
4668
  this.workspaceConfig
4630
4669
  );
@@ -4640,7 +4679,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4640
4679
  return;
4641
4680
  };
4642
4681
  releaseVersion = async (options) => {
4643
- const verbose = options.verbose || chunk4ILBJTRR_cjs.isVerbose(this.workspaceConfig.logLevel);
4682
+ const verbose = options.verbose || chunkYXQQUYO7_cjs.isVerbose(this.workspaceConfig.logLevel);
4644
4683
  this.projectGraph = await devkit.createProjectGraphAsync({
4645
4684
  exitOnError: true,
4646
4685
  resetDaemonClient: true
@@ -4664,7 +4703,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4664
4703
  versionActionsOptionsOverrides: options.versionActionsOptionsOverrides
4665
4704
  });
4666
4705
  if (releaseGraph$1.filterLog && process.env.NX_RELEASE_INTERNAL_SUPPRESS_FILTER_LOG !== "true") {
4667
- chunk4ILBJTRR_cjs.writeDebug(formatNxLog(releaseGraph$1.filterLog), this.workspaceConfig);
4706
+ chunkYXQQUYO7_cjs.writeDebug(formatNxLog(releaseGraph$1.filterLog), this.workspaceConfig);
4668
4707
  }
4669
4708
  if (!options.specifier) {
4670
4709
  const rawVersionPlans = await versionPlans.readRawVersionPlans();
@@ -4683,7 +4722,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4683
4722
  }
4684
4723
  } else {
4685
4724
  if (verbose && releaseGraph$1.releaseGroups.some((g) => !!g.versionPlans)) {
4686
- chunk4ILBJTRR_cjs.writeDebug(
4725
+ chunkYXQQUYO7_cjs.writeDebug(
4687
4726
  `Skipping version plan discovery as a specifier was provided`,
4688
4727
  this.workspaceConfig
4689
4728
  );
@@ -4693,7 +4732,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4693
4732
  options.deleteVersionPlans = false;
4694
4733
  }
4695
4734
  if (this.releaseConfig.version?.preVersionCommand) {
4696
- chunk4ILBJTRR_cjs.writeDebug(
4735
+ chunkYXQQUYO7_cjs.writeDebug(
4697
4736
  "Executing the following pre-version command: \n" + this.releaseConfig.version.preVersionCommand,
4698
4737
  this.workspaceConfig
4699
4738
  );
@@ -4729,7 +4768,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4729
4768
  continue;
4730
4769
  }
4731
4770
  if (releaseGroup.version?.groupPreVersionCommand) {
4732
- chunk4ILBJTRR_cjs.writeDebug(
4771
+ chunkYXQQUYO7_cjs.writeDebug(
4733
4772
  `Executing the ${releaseGroup.name} release group's pre-version command:
4734
4773
  ` + releaseGroup.version?.groupPreVersionCommand,
4735
4774
  this.workspaceConfig
@@ -4789,7 +4828,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4789
4828
  changed.forEach((f) => additionalChangedFiles.add(f));
4790
4829
  deleted.forEach((f) => additionalDeletedFiles.add(f));
4791
4830
  if (this.releaseConfig.docker && typeof this.releaseConfig.docker === "object" && this.releaseConfig.docker?.preVersionCommand) {
4792
- chunk4ILBJTRR_cjs.writeDebug(
4831
+ chunkYXQQUYO7_cjs.writeDebug(
4793
4832
  `Executing the docker pre-version command:
4794
4833
  ` + this.releaseConfig.docker.preVersionCommand,
4795
4834
  this.workspaceConfig
@@ -4826,7 +4865,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4826
4865
  continue;
4827
4866
  }
4828
4867
  if (releaseGroup.docker?.groupPreVersionCommand) {
4829
- chunk4ILBJTRR_cjs.writeDebug(
4868
+ chunkYXQQUYO7_cjs.writeDebug(
4830
4869
  `Executing the ${releaseGroup.name} release group's docker pre-version command:
4831
4870
  ` + releaseGroup.docker?.groupPreVersionCommand,
4832
4871
  this.workspaceConfig
@@ -4857,7 +4896,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4857
4896
  }
4858
4897
  }
4859
4898
  if (this.releaseConfig.docker || releaseGraph$1.releaseGroups.some((rg) => rg.docker)) {
4860
- chunk4ILBJTRR_cjs.writeWarning(
4899
+ chunkYXQQUYO7_cjs.writeWarning(
4861
4900
  formatNxLog({
4862
4901
  title: "Warning",
4863
4902
  bodyLines: [
@@ -4914,7 +4953,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4914
4953
  gitCommitArgs: options.gitCommitArgs || this.releaseConfig.version?.git?.commitArgs
4915
4954
  });
4916
4955
  } else if (options.stageChanges ?? this.releaseConfig.version?.git?.stageChanges) {
4917
- chunk4ILBJTRR_cjs.writeDebug(`Staging changed files with git`);
4956
+ chunkYXQQUYO7_cjs.writeDebug(`Staging changed files with git`);
4918
4957
  await git.gitAdd({
4919
4958
  changedFiles,
4920
4959
  deletedFiles,
@@ -4923,7 +4962,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4923
4962
  });
4924
4963
  }
4925
4964
  if (options.gitTag ?? this.releaseConfig.version?.git?.tag) {
4926
- chunk4ILBJTRR_cjs.writeDebug(`Tagging commit with git`);
4965
+ chunkYXQQUYO7_cjs.writeDebug(`Tagging commit with git`);
4927
4966
  for (const tag of gitTagValues) {
4928
4967
  await gitTag({
4929
4968
  tag,
@@ -4935,7 +4974,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
4935
4974
  }
4936
4975
  }
4937
4976
  if (options.gitPush ?? this.releaseConfig.version?.git?.push) {
4938
- chunk4ILBJTRR_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
4977
+ chunkYXQQUYO7_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
4939
4978
  await git.gitPush({
4940
4979
  gitRemote: options.gitRemote,
4941
4980
  dryRun: options.dryRun,
@@ -4966,7 +5005,7 @@ var runRelease = async (config5, {
4966
5005
  throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
4967
5006
  }
4968
5007
  if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
4969
- chunk4ILBJTRR_cjs.writeFatal(
5008
+ chunkYXQQUYO7_cjs.writeFatal(
4970
5009
  "You must be a member of the Storm Software organization to run the release process.",
4971
5010
  config5
4972
5011
  );
@@ -4983,26 +5022,26 @@ var runRelease = async (config5, {
4983
5022
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
4984
5023
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
4985
5024
  process.env.NPM_CONFIG_PROVENANCE = "true";
4986
- chunk4ILBJTRR_cjs.writeDebug("Creating Storm release client...", config5);
5025
+ chunkYXQQUYO7_cjs.writeDebug("Creating Storm release client...", config5);
4987
5026
  const releaseClient = await StormReleaseClient.create(
4988
5027
  releaseConfig,
4989
5028
  ignoreNxJsonConfig,
4990
5029
  config5
4991
5030
  );
4992
- chunk4ILBJTRR_cjs.writeDebug("Reading in the workspaces release configuration", config5);
5031
+ chunkYXQQUYO7_cjs.writeDebug("Reading in the workspaces release configuration", config5);
4993
5032
  const to = head || process.env.NX_HEAD;
4994
5033
  const from = base || process.env.NX_BASE;
4995
- chunk4ILBJTRR_cjs.writeDebug(
5034
+ chunkYXQQUYO7_cjs.writeDebug(
4996
5035
  `Using the following Git SHAs to determine the release content:
4997
5036
  - From: ${from}
4998
5037
  - To: ${to}
4999
5038
  `,
5000
5039
  config5
5001
5040
  );
5002
- chunk4ILBJTRR_cjs.writeDebug("Determining the current release versions...", config5);
5041
+ chunkYXQQUYO7_cjs.writeDebug("Determining the current release versions...", config5);
5003
5042
  const { workspaceVersion, projectsVersionData, releaseGraph } = await releaseClient.releaseVersion({
5004
5043
  dryRun,
5005
- verbose: chunk4ILBJTRR_cjs.isVerbose(config5.logLevel),
5044
+ verbose: chunkYXQQUYO7_cjs.isVerbose(config5.logLevel),
5006
5045
  preid: config5.preid,
5007
5046
  stageChanges: true,
5008
5047
  gitCommit: false
@@ -5011,14 +5050,14 @@ var runRelease = async (config5, {
5011
5050
  version: releaseConfig?.projectsRelationship === "fixed" ? workspaceVersion : void 0,
5012
5051
  versionData: projectsVersionData,
5013
5052
  dryRun,
5014
- verbose: chunk4ILBJTRR_cjs.isVerbose(config5.logLevel),
5053
+ verbose: chunkYXQQUYO7_cjs.isVerbose(config5.logLevel),
5015
5054
  to,
5016
5055
  from,
5017
5056
  releaseGraph
5018
5057
  });
5019
- chunk4ILBJTRR_cjs.writeDebug("Tagging commit with git", config5);
5058
+ chunkYXQQUYO7_cjs.writeDebug("Tagging commit with git", config5);
5020
5059
  if (skipPublish) {
5021
- chunk4ILBJTRR_cjs.writeWarning(
5060
+ chunkYXQQUYO7_cjs.writeWarning(
5022
5061
  "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
5023
5062
  config5
5024
5063
  );
@@ -5027,7 +5066,7 @@ var runRelease = async (config5, {
5027
5066
  (key) => projectsVersionData[key]?.newVersion
5028
5067
  );
5029
5068
  if (changedProjects.length > 0) {
5030
- chunk4ILBJTRR_cjs.writeInfo(
5069
+ chunkYXQQUYO7_cjs.writeInfo(
5031
5070
  `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
5032
5071
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
5033
5072
  `,
@@ -5036,7 +5075,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
5036
5075
  await updatePackageManifests(projectsVersionData, config5);
5037
5076
  const result = await releaseClient.releasePublish({
5038
5077
  dryRun,
5039
- verbose: chunk4ILBJTRR_cjs.isVerbose(config5.logLevel)
5078
+ verbose: chunkYXQQUYO7_cjs.isVerbose(config5.logLevel)
5040
5079
  });
5041
5080
  const failedProjects = Object.keys(result).filter(
5042
5081
  (key) => result[key]?.code && result[key]?.code > 0
@@ -5051,10 +5090,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
5051
5090
  );
5052
5091
  }
5053
5092
  } else {
5054
- chunk4ILBJTRR_cjs.writeWarning("Skipped publishing packages.", config5);
5093
+ chunkYXQQUYO7_cjs.writeWarning("Skipped publishing packages.", config5);
5055
5094
  }
5056
5095
  }
5057
- chunk4ILBJTRR_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
5096
+ chunkYXQQUYO7_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
5058
5097
  };
5059
5098
  async function updatePackageManifests(projectsVersionData, config5) {
5060
5099
  let projectGraph;
@@ -5069,7 +5108,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
5069
5108
  Object.keys(projectsVersionData).map(async (node) => {
5070
5109
  const projectNode = projectGraph.nodes[node];
5071
5110
  if (!projectNode?.data.root) {
5072
- chunk4ILBJTRR_cjs.writeWarning(
5111
+ chunkYXQQUYO7_cjs.writeWarning(
5073
5112
  `Project node ${node} not found in the project graph. Skipping manifest update.`,
5074
5113
  config5
5075
5114
  );
@@ -5077,17 +5116,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
5077
5116
  }
5078
5117
  const versionData = projectsVersionData[node];
5079
5118
  if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
5080
- chunk4ILBJTRR_cjs.writeTrace(
5119
+ chunkYXQQUYO7_cjs.writeTrace(
5081
5120
  `Writing version ${versionData.newVersion} update to manifest file for ${node}
5082
5121
  `,
5083
5122
  config5
5084
5123
  );
5085
- const projectRoot = chunk4ILBJTRR_cjs.joinPaths(
5124
+ const projectRoot = chunkYXQQUYO7_cjs.joinPaths(
5086
5125
  config5.workspaceRoot,
5087
5126
  projectNode.data.root
5088
5127
  );
5089
- const packageJsonPath = chunk4ILBJTRR_cjs.joinPaths(projectRoot, "package.json");
5090
- const cargoTomlPath = chunk4ILBJTRR_cjs.joinPaths(projectRoot, "Cargo.toml");
5128
+ const packageJsonPath = chunkYXQQUYO7_cjs.joinPaths(projectRoot, "package.json");
5129
+ const cargoTomlPath = chunkYXQQUYO7_cjs.joinPaths(projectRoot, "Cargo.toml");
5091
5130
  if (fs$1.existsSync(packageJsonPath)) {
5092
5131
  const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
5093
5132
  const packageJson = JSON.parse(packageJsonContent);
@@ -5105,7 +5144,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
5105
5144
  })
5106
5145
  );
5107
5146
  } else {
5108
- chunk4ILBJTRR_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
5147
+ chunkYXQQUYO7_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
5109
5148
  }
5110
5149
  }
5111
5150
 
@@ -5113,8 +5152,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
5113
5152
  var _config = {};
5114
5153
  function createProgram(config5) {
5115
5154
  _config = config5;
5116
- chunk4ILBJTRR_cjs.writeInfo(`${chunk4ILBJTRR_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
5117
- const root = chunk4ILBJTRR_cjs.findWorkspaceRootSafe(process.cwd());
5155
+ chunkYXQQUYO7_cjs.writeInfo(`${chunkYXQQUYO7_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
5156
+ const root = chunkYXQQUYO7_cjs.findWorkspaceRootSafe(process.cwd());
5118
5157
  process.env.STORM_WORKSPACE_ROOT ??= root;
5119
5158
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
5120
5159
  if (root) {
@@ -5161,12 +5200,12 @@ async function commitAction({
5161
5200
  dryRun = false
5162
5201
  }) {
5163
5202
  try {
5164
- chunk4ILBJTRR_cjs.writeInfo(
5165
- `${chunk4ILBJTRR_cjs.brandIcon(typeof config5 === "string" ? {} : config5)} Preparing to commit your changes. Please provide the requested details below...`,
5203
+ chunkYXQQUYO7_cjs.writeInfo(
5204
+ `${chunkYXQQUYO7_cjs.brandIcon(typeof config5 === "string" ? {} : config5)} Preparing to commit your changes. Please provide the requested details below...`,
5166
5205
  _config
5167
5206
  );
5168
5207
  await runCommit(config5, dryRun);
5169
- chunk4ILBJTRR_cjs.writeSuccess(
5208
+ chunkYXQQUYO7_cjs.writeSuccess(
5170
5209
  `\u2714 Storm Commit processing completed successfully!
5171
5210
 
5172
5211
  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 +5213,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
5174
5213
  _config
5175
5214
  );
5176
5215
  } catch (error) {
5177
- chunk4ILBJTRR_cjs.writeFatal(
5216
+ chunkYXQQUYO7_cjs.writeFatal(
5178
5217
  `A fatal error occurred while running commit action:
5179
5218
 
5180
5219
  ${error.message}${error.stack ? `
@@ -5189,17 +5228,17 @@ Please fix any errors and try committing again.`,
5189
5228
  }
5190
5229
  async function readmeAction(options) {
5191
5230
  try {
5192
- chunk4ILBJTRR_cjs.writeInfo(
5193
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
5231
+ chunkYXQQUYO7_cjs.writeInfo(
5232
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
5194
5233
  _config
5195
5234
  );
5196
5235
  await runReadme(options);
5197
- chunk4ILBJTRR_cjs.writeSuccess(
5236
+ chunkYXQQUYO7_cjs.writeSuccess(
5198
5237
  "\u2714 Formatting of the workspace's README.md files is complete\n",
5199
5238
  _config
5200
5239
  );
5201
5240
  } catch (error) {
5202
- chunk4ILBJTRR_cjs.writeFatal(
5241
+ chunkYXQQUYO7_cjs.writeFatal(
5203
5242
  `A fatal error occurred while running README format action:
5204
5243
 
5205
5244
  ${error.message}`
@@ -5214,8 +5253,8 @@ async function releaseAction({
5214
5253
  dryRun
5215
5254
  }) {
5216
5255
  try {
5217
- chunk4ILBJTRR_cjs.writeInfo(
5218
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
5256
+ chunkYXQQUYO7_cjs.writeInfo(
5257
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
5219
5258
  _config
5220
5259
  );
5221
5260
  await runRelease(_config, {
@@ -5224,9 +5263,9 @@ async function releaseAction({
5224
5263
  base,
5225
5264
  head
5226
5265
  });
5227
- chunk4ILBJTRR_cjs.writeSuccess("\u2714 Release completed successfully!\n", _config);
5266
+ chunkYXQQUYO7_cjs.writeSuccess("\u2714 Release completed successfully!\n", _config);
5228
5267
  } catch (error) {
5229
- chunk4ILBJTRR_cjs.writeFatal(
5268
+ chunkYXQQUYO7_cjs.writeFatal(
5230
5269
  `A fatal error occurred while running release action:
5231
5270
 
5232
5271
  ${error.message} ${error.stack ? `
@@ -5240,17 +5279,17 @@ Stacktrace: ${error.stack}` : ""}`,
5240
5279
  }
5241
5280
  async function commitLintAction(options) {
5242
5281
  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.`,
5282
+ chunkYXQQUYO7_cjs.writeInfo(
5283
+ `${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
5284
  _config
5246
5285
  );
5247
5286
  await runCommitLint(_config, options);
5248
- chunk4ILBJTRR_cjs.writeSuccess(
5287
+ chunkYXQQUYO7_cjs.writeSuccess(
5249
5288
  "\u2714 Linting the commit messages completed successfully!\n",
5250
5289
  _config
5251
5290
  );
5252
5291
  } catch (error) {
5253
- chunk4ILBJTRR_cjs.writeFatal(
5292
+ chunkYXQQUYO7_cjs.writeFatal(
5254
5293
  `A fatal error occurred while linting the commit messages:
5255
5294
 
5256
5295
  ${error.message}`,
@@ -5261,14 +5300,14 @@ ${error.message}`,
5261
5300
  }
5262
5301
  async function postCheckoutAction({ files }) {
5263
5302
  try {
5264
- chunk4ILBJTRR_cjs.writeInfo(
5265
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Running the Storm post-checkout git hook for ${files.length} files in the workspace...`,
5303
+ chunkYXQQUYO7_cjs.writeInfo(
5304
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Running the Storm post-checkout git hook for ${files.length} files in the workspace...`,
5266
5305
  _config
5267
5306
  );
5268
- await chunkDPKFBB3S_cjs.postCheckoutHook(_config, files);
5269
- chunk4ILBJTRR_cjs.writeSuccess("\u2714 Post-checkout hook completed successfully!\n", _config);
5307
+ await chunkNJCMHJBD_cjs.postCheckoutHook(_config, files);
5308
+ chunkYXQQUYO7_cjs.writeSuccess("\u2714 Post-checkout hook completed successfully!\n", _config);
5270
5309
  } catch (error) {
5271
- chunk4ILBJTRR_cjs.writeFatal(
5310
+ chunkYXQQUYO7_cjs.writeFatal(
5272
5311
  `A fatal error occurred while running the post-checkout hook:
5273
5312
 
5274
5313
  ${error.message}`,
@@ -5279,14 +5318,14 @@ ${error.message}`,
5279
5318
  }
5280
5319
  async function postCommitAction({ files }) {
5281
5320
  try {
5282
- chunk4ILBJTRR_cjs.writeInfo(
5283
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Running the Storm post-commit git hook for ${files.length} files in the workspace...`,
5321
+ chunkYXQQUYO7_cjs.writeInfo(
5322
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Running the Storm post-commit git hook for ${files.length} files in the workspace...`,
5284
5323
  _config
5285
5324
  );
5286
- await chunkOGGY5I23_cjs.postCommitHook(_config, files);
5287
- chunk4ILBJTRR_cjs.writeSuccess("\u2714 Post-commit hook completed successfully!\n", _config);
5325
+ await chunkTBOHZQTA_cjs.postCommitHook(_config, files);
5326
+ chunkYXQQUYO7_cjs.writeSuccess("\u2714 Post-commit hook completed successfully!\n", _config);
5288
5327
  } catch (error) {
5289
- chunk4ILBJTRR_cjs.writeFatal(
5328
+ chunkYXQQUYO7_cjs.writeFatal(
5290
5329
  `A fatal error occurred while running the post-commit hook:
5291
5330
 
5292
5331
  ${error.message}`,
@@ -5297,14 +5336,14 @@ ${error.message}`,
5297
5336
  }
5298
5337
  async function postMergeAction({ files }) {
5299
5338
  try {
5300
- chunk4ILBJTRR_cjs.writeInfo(
5301
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Running the Storm post-merge git hook for ${files.length} files in the workspace...`,
5339
+ chunkYXQQUYO7_cjs.writeInfo(
5340
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Running the Storm post-merge git hook for ${files.length} files in the workspace...`,
5302
5341
  _config
5303
5342
  );
5304
- await chunkRZNFHUM6_cjs.postMergeHook(_config, files);
5305
- chunk4ILBJTRR_cjs.writeSuccess("\u2714 Post-merge hook completed successfully!\n", _config);
5343
+ await chunkRYRABFEU_cjs.postMergeHook(_config, files);
5344
+ chunkYXQQUYO7_cjs.writeSuccess("\u2714 Post-merge hook completed successfully!\n", _config);
5306
5345
  } catch (error) {
5307
- chunk4ILBJTRR_cjs.writeFatal(
5346
+ chunkYXQQUYO7_cjs.writeFatal(
5308
5347
  `A fatal error occurred while running the post-merge hook:
5309
5348
 
5310
5349
  ${error.message}`,
@@ -5315,14 +5354,14 @@ ${error.message}`,
5315
5354
  }
5316
5355
  async function preCommitAction({ files }) {
5317
5356
  try {
5318
- chunk4ILBJTRR_cjs.writeInfo(
5319
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Running the Storm pre-commit git hook for ${files.length} files in the workspace...`,
5357
+ chunkYXQQUYO7_cjs.writeInfo(
5358
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Running the Storm pre-commit git hook for ${files.length} files in the workspace...`,
5320
5359
  _config
5321
5360
  );
5322
- await chunkAQ5YHZ3Z_cjs.preCommitHook(_config, files);
5323
- chunk4ILBJTRR_cjs.writeSuccess("\u2714 Pre-commit hook completed successfully!\n", _config);
5361
+ await chunkFAQW5YFS_cjs.preCommitHook(_config, files);
5362
+ chunkYXQQUYO7_cjs.writeSuccess("\u2714 Pre-commit hook completed successfully!\n", _config);
5324
5363
  } catch (error) {
5325
- chunk4ILBJTRR_cjs.writeFatal(
5364
+ chunkYXQQUYO7_cjs.writeFatal(
5326
5365
  `A fatal error occurred while running the pre-commit hook:
5327
5366
 
5328
5367
  ${error.message}`,
@@ -5333,14 +5372,14 @@ ${error.message}`,
5333
5372
  }
5334
5373
  async function prePushAction({ files }) {
5335
5374
  try {
5336
- chunk4ILBJTRR_cjs.writeInfo(
5337
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Running the Storm pre-push git hook for ${files.length} files in the workspace...`,
5375
+ chunkYXQQUYO7_cjs.writeInfo(
5376
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Running the Storm pre-push git hook for ${files.length} files in the workspace...`,
5338
5377
  _config
5339
5378
  );
5340
- await chunkW5P2IM2W_cjs.prePushHook(_config, files);
5341
- chunk4ILBJTRR_cjs.writeSuccess("\u2714 Pre-push hook completed successfully!\n", _config);
5379
+ await chunk4FUNPJYN_cjs.prePushHook(_config, files);
5380
+ chunkYXQQUYO7_cjs.writeSuccess("\u2714 Pre-push hook completed successfully!\n", _config);
5342
5381
  } catch (error) {
5343
- chunk4ILBJTRR_cjs.writeFatal(
5382
+ chunkYXQQUYO7_cjs.writeFatal(
5344
5383
  `A fatal error occurred while running the pre-push hook:
5345
5384
 
5346
5385
  ${error.message}`,
@@ -5351,14 +5390,14 @@ ${error.message}`,
5351
5390
  }
5352
5391
  async function prepareAction() {
5353
5392
  try {
5354
- chunk4ILBJTRR_cjs.writeInfo(
5355
- `${chunk4ILBJTRR_cjs.brandIcon(_config)} Running the Storm prepare git hook for the workspace...`,
5393
+ chunkYXQQUYO7_cjs.writeInfo(
5394
+ `${chunkYXQQUYO7_cjs.brandIcon(_config)} Running the Storm prepare git hook for the workspace...`,
5356
5395
  _config
5357
5396
  );
5358
- await chunk4EOHM2UV_cjs.prepareHook(_config);
5359
- chunk4ILBJTRR_cjs.writeSuccess("\u2714 Prepare hook completed successfully!\n", _config);
5397
+ await chunkWTWICYHN_cjs.prepareHook(_config);
5398
+ chunkYXQQUYO7_cjs.writeSuccess("\u2714 Prepare hook completed successfully!\n", _config);
5360
5399
  } catch (error) {
5361
- chunk4ILBJTRR_cjs.writeFatal(
5400
+ chunkYXQQUYO7_cjs.writeFatal(
5362
5401
  `A fatal error occurred while running the prepare hook:
5363
5402
 
5364
5403
  ${error.message}`,
@@ -5370,18 +5409,18 @@ ${error.message}`,
5370
5409
 
5371
5410
  // bin/git.ts
5372
5411
  void (async () => {
5373
- const config5 = await chunk4ILBJTRR_cjs.getConfig();
5412
+ const config5 = await chunkYXQQUYO7_cjs.getConfig();
5374
5413
  try {
5375
- chunk4ILBJTRR_cjs.handleProcess(config5);
5414
+ chunkYXQQUYO7_cjs.handleProcess(config5);
5376
5415
  const program = createProgram(config5);
5377
5416
  await program.parseAsync(process.argv);
5378
- chunk4ILBJTRR_cjs.writeSuccess(
5417
+ chunkYXQQUYO7_cjs.writeSuccess(
5379
5418
  `\u2714 Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
5380
5419
  config5
5381
5420
  );
5382
- chunk4ILBJTRR_cjs.exitWithSuccess(config5);
5421
+ chunkYXQQUYO7_cjs.exitWithSuccess(config5);
5383
5422
  } catch (error) {
5384
- chunk4ILBJTRR_cjs.exitWithError(config5);
5423
+ chunkYXQQUYO7_cjs.exitWithError(config5);
5385
5424
  process.exit(1);
5386
5425
  }
5387
5426
  })();