@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.js CHANGED
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
- import { postCheckoutHook } from './chunk-IAZL2KCV.js';
3
- import { postCommitHook } from './chunk-CVTLZKKX.js';
4
- import { postMergeHook } from './chunk-CDUCLZJV.js';
5
- import { preCommitHook } from './chunk-32WE3MHJ.js';
6
- import './chunk-NOZEXVLA.js';
7
- import { prePushHook } from './chunk-ABI4JM6L.js';
2
+ import { postCheckoutHook } from './chunk-O4NH73SU.js';
3
+ import { postCommitHook } from './chunk-PAUQYLGE.js';
4
+ import { postMergeHook } from './chunk-VXOTRXPC.js';
5
+ import { preCommitHook } from './chunk-4KUJG3RB.js';
6
+ import './chunk-27FK2BQD.js';
7
+ import { prePushHook } from './chunk-CRTMVCFC.js';
8
8
  import './chunk-HBLWPOJV.js';
9
- import { prepareHook } from './chunk-AZGQVIYO.js';
9
+ import { prepareHook } from './chunk-NBHO5BK4.js';
10
10
  import { run, runAsync } from './chunk-RPK5AKGK.js';
11
- import { defu, getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, brandIcon, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug, isVerbose, writeWarning, writeTrace, __require, STORM_DEFAULT_RELEASE_BANNER } from './chunk-7ES3CGZQ.js';
11
+ import { defu, getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, brandIcon, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug, isVerbose, writeWarning, writeTrace, formatLogMessage, __require, STORM_DEFAULT_RELEASE_BANNER } from './chunk-NZK4I3QQ.js';
12
12
  import TOML from '@ltd/j-toml';
13
13
  import { Command } from 'commander';
14
14
  import '@inquirer/checkbox';
@@ -3552,6 +3552,12 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
3552
3552
  let groups = {};
3553
3553
  if (releaseConfig?.groups && Object.keys(releaseConfig.groups).length > 0) {
3554
3554
  groups = releaseConfig.groups;
3555
+ if (nxJson.release?.groups && Object.keys(nxJson.release.groups).length > 0) {
3556
+ groups = defu(
3557
+ groups,
3558
+ nxJson.release.groups
3559
+ );
3560
+ }
3555
3561
  } else if (nxJson.release?.groups && Object.keys(nxJson.release.groups).length > 0) {
3556
3562
  groups = nxJson.release.groups;
3557
3563
  } else {
@@ -3777,12 +3783,22 @@ var StormReleaseGroupProcessor = class extends ReleaseGroupProcessor {
3777
3783
  return false;
3778
3784
  }
3779
3785
  let bumped = false;
3780
- const firstProject = releaseGroup.projects.reduce((acc, project) => {
3786
+ const firstProject = releaseGroup.projects.reduce((ret, project) => {
3781
3787
  const currentVersion = this.#getCurrentCachedVersionForProject(project);
3782
- if (currentVersion && semver.gt(currentVersion, acc)) {
3788
+ if (!ret) {
3789
+ return currentVersion;
3790
+ }
3791
+ const largestVersion = this.#getCurrentCachedVersionForProject(ret);
3792
+ if (!largestVersion) {
3783
3793
  return currentVersion;
3784
3794
  }
3785
- return acc;
3795
+ writeDebug(
3796
+ `Comparing versions for fixed group ${releaseGroup.name}: Current Greatest Version: ${largestVersion}, Current Project Version: ${currentVersion} (project: ${project})`
3797
+ );
3798
+ if (currentVersion && semver.gt(currentVersion, largestVersion)) {
3799
+ return currentVersion;
3800
+ }
3801
+ return ret;
3786
3802
  }, "");
3787
3803
  const {
3788
3804
  newVersionInput,
@@ -4234,16 +4250,23 @@ var StormReleaseClient = class _StormReleaseClient extends ReleaseClient {
4234
4250
  "Failed to load the project graph. Please run `nx reset`, then run the `storm-git commit` command again."
4235
4251
  );
4236
4252
  }
4237
- return new _StormReleaseClient(
4253
+ writeTrace(
4254
+ `Provided release configuration:
4255
+ ${formatLogMessage(releaseConfig)}`,
4256
+ workspaceConfig
4257
+ );
4258
+ const config5 = getReleaseConfig(
4238
4259
  projectGraph,
4239
- getReleaseConfig(
4240
- projectGraph,
4241
- releaseConfig,
4242
- workspaceConfig,
4243
- ignoreNxJsonConfig
4244
- ),
4260
+ releaseConfig,
4261
+ workspaceConfig,
4262
+ ignoreNxJsonConfig
4263
+ );
4264
+ writeDebug(
4265
+ `Resolved release configuration:
4266
+ ${formatLogMessage(config5)}`,
4245
4267
  workspaceConfig
4246
4268
  );
4269
+ return new _StormReleaseClient(projectGraph, config5, workspaceConfig);
4247
4270
  }
4248
4271
  /**
4249
4272
  * The normalized release configuration used by this release client.