@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.
- package/bin/{chunk-NOZEXVLA.js → chunk-27FK2BQD.js} +3 -3
- package/bin/{chunk-NOZEXVLA.js.map → chunk-27FK2BQD.js.map} +1 -1
- package/bin/{chunk-W5P2IM2W.cjs → chunk-4FUNPJYN.cjs} +6 -6
- package/bin/{chunk-W5P2IM2W.cjs.map → chunk-4FUNPJYN.cjs.map} +1 -1
- package/bin/{chunk-32WE3MHJ.js → chunk-4KUJG3RB.js} +3 -3
- package/bin/{chunk-32WE3MHJ.js.map → chunk-4KUJG3RB.js.map} +1 -1
- package/bin/{chunk-POFLIQQB.cjs → chunk-5DZ44YLS.cjs} +5 -5
- package/bin/{chunk-POFLIQQB.cjs.map → chunk-5DZ44YLS.cjs.map} +1 -1
- package/bin/{chunk-ABI4JM6L.js → chunk-CRTMVCFC.js} +3 -3
- package/bin/{chunk-ABI4JM6L.js.map → chunk-CRTMVCFC.js.map} +1 -1
- package/bin/{chunk-AQ5YHZ3Z.cjs → chunk-FAQW5YFS.cjs} +4 -4
- package/bin/{chunk-AQ5YHZ3Z.cjs.map → chunk-FAQW5YFS.cjs.map} +1 -1
- package/bin/{chunk-AZGQVIYO.js → chunk-NBHO5BK4.js} +3 -3
- package/bin/{chunk-AZGQVIYO.js.map → chunk-NBHO5BK4.js.map} +1 -1
- package/bin/{chunk-DPKFBB3S.cjs → chunk-NJCMHJBD.cjs} +4 -4
- package/bin/{chunk-DPKFBB3S.cjs.map → chunk-NJCMHJBD.cjs.map} +1 -1
- package/bin/{chunk-7ES3CGZQ.js → chunk-NZK4I3QQ.js} +3 -3
- package/bin/chunk-NZK4I3QQ.js.map +1 -0
- package/bin/{chunk-IAZL2KCV.js → chunk-O4NH73SU.js} +3 -3
- package/bin/{chunk-IAZL2KCV.js.map → chunk-O4NH73SU.js.map} +1 -1
- package/bin/{chunk-CVTLZKKX.js → chunk-PAUQYLGE.js} +3 -3
- package/bin/{chunk-CVTLZKKX.js.map → chunk-PAUQYLGE.js.map} +1 -1
- package/bin/{chunk-RZNFHUM6.cjs → chunk-RYRABFEU.cjs} +4 -4
- package/bin/{chunk-RZNFHUM6.cjs.map → chunk-RYRABFEU.cjs.map} +1 -1
- package/bin/{chunk-OGGY5I23.cjs → chunk-TBOHZQTA.cjs} +4 -4
- package/bin/{chunk-OGGY5I23.cjs.map → chunk-TBOHZQTA.cjs.map} +1 -1
- package/bin/{chunk-CDUCLZJV.js → chunk-VXOTRXPC.js} +3 -3
- package/bin/{chunk-CDUCLZJV.js.map → chunk-VXOTRXPC.js.map} +1 -1
- package/bin/{chunk-4EOHM2UV.cjs → chunk-WTWICYHN.cjs} +4 -4
- package/bin/{chunk-4EOHM2UV.cjs.map → chunk-WTWICYHN.cjs.map} +1 -1
- package/bin/{chunk-4ILBJTRR.cjs → chunk-YXQQUYO7.cjs} +3 -2
- package/bin/chunk-YXQQUYO7.cjs.map +1 -0
- package/bin/git.cjs +191 -152
- package/bin/git.cjs.map +1 -1
- package/bin/git.js +58 -19
- package/bin/git.js.map +1 -1
- package/bin/post-checkout.cjs +7 -7
- package/bin/post-checkout.js +2 -2
- package/bin/post-commit.cjs +7 -7
- package/bin/post-commit.js +2 -2
- package/bin/post-merge.cjs +7 -7
- package/bin/post-merge.js +2 -2
- package/bin/pre-commit.cjs +7 -7
- package/bin/pre-commit.js +2 -2
- package/bin/pre-install.cjs +7 -7
- package/bin/pre-install.js +2 -2
- package/bin/pre-push.cjs +7 -7
- package/bin/pre-push.js +2 -2
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +2 -2
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/dist/{chunk-B35TFDAA.cjs → chunk-AGQBRIPK.cjs} +6 -0
- package/dist/{chunk-FPSN3POD.js → chunk-UOI2HBBA.js} +6 -0
- package/dist/index.cjs +17 -17
- package/dist/index.js +1 -1
- package/dist/release/config.cjs +17 -17
- package/dist/release/config.js +1 -1
- package/package.json +7 -7
- package/bin/chunk-4ILBJTRR.cjs.map +0 -1
- 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-
|
|
3
|
-
import { postCommitHook } from './chunk-
|
|
4
|
-
import { postMergeHook } from './chunk-
|
|
5
|
-
import { preCommitHook } from './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import { prePushHook } from './chunk-
|
|
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-
|
|
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-
|
|
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,38 @@ var StormReleaseGroupProcessor = class extends ReleaseGroupProcessor {
|
|
|
3777
3783
|
return false;
|
|
3778
3784
|
}
|
|
3779
3785
|
let bumped = false;
|
|
3780
|
-
const firstProject = releaseGroup.projects.reduce((
|
|
3786
|
+
const firstProject = releaseGroup.projects.reduce((ret, project) => {
|
|
3781
3787
|
const currentVersion = this.#getCurrentCachedVersionForProject(project);
|
|
3782
|
-
if (currentVersion
|
|
3783
|
-
|
|
3788
|
+
if (!currentVersion) {
|
|
3789
|
+
writeTrace(
|
|
3790
|
+
`No current version found for project ${project} in release group ${releaseGroup.name}, skipping version comparison.`,
|
|
3791
|
+
this.workspaceConfig
|
|
3792
|
+
);
|
|
3793
|
+
return "";
|
|
3794
|
+
}
|
|
3795
|
+
if (!ret) {
|
|
3796
|
+
writeTrace(
|
|
3797
|
+
`Defaulting to first version ${currentVersion} (project: ${project})`,
|
|
3798
|
+
this.workspaceConfig
|
|
3799
|
+
);
|
|
3800
|
+
return project;
|
|
3801
|
+
}
|
|
3802
|
+
const largestVersion = this.#getCurrentCachedVersionForProject(ret);
|
|
3803
|
+
if (!largestVersion) {
|
|
3804
|
+
writeTrace(
|
|
3805
|
+
`No current version found for project ${ret} in release group ${releaseGroup.name}, skipping version comparison.`,
|
|
3806
|
+
this.workspaceConfig
|
|
3807
|
+
);
|
|
3808
|
+
return project;
|
|
3784
3809
|
}
|
|
3785
|
-
|
|
3810
|
+
writeDebug(
|
|
3811
|
+
`Comparing versions for fixed group ${releaseGroup.name}: Current Greatest Version: ${largestVersion}, Current Project Version: ${currentVersion} (project: ${project})`,
|
|
3812
|
+
this.workspaceConfig
|
|
3813
|
+
);
|
|
3814
|
+
if (currentVersion && semver.gt(currentVersion, largestVersion)) {
|
|
3815
|
+
return project;
|
|
3816
|
+
}
|
|
3817
|
+
return ret;
|
|
3786
3818
|
}, "");
|
|
3787
3819
|
const {
|
|
3788
3820
|
newVersionInput,
|
|
@@ -4234,16 +4266,23 @@ var StormReleaseClient = class _StormReleaseClient extends ReleaseClient {
|
|
|
4234
4266
|
"Failed to load the project graph. Please run `nx reset`, then run the `storm-git commit` command again."
|
|
4235
4267
|
);
|
|
4236
4268
|
}
|
|
4237
|
-
|
|
4269
|
+
writeTrace(
|
|
4270
|
+
`Provided release configuration:
|
|
4271
|
+
${formatLogMessage(releaseConfig)}`,
|
|
4272
|
+
workspaceConfig
|
|
4273
|
+
);
|
|
4274
|
+
const config5 = getReleaseConfig(
|
|
4238
4275
|
projectGraph,
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4276
|
+
releaseConfig,
|
|
4277
|
+
workspaceConfig,
|
|
4278
|
+
ignoreNxJsonConfig
|
|
4279
|
+
);
|
|
4280
|
+
writeDebug(
|
|
4281
|
+
`Resolved release configuration:
|
|
4282
|
+
${formatLogMessage(config5)}`,
|
|
4245
4283
|
workspaceConfig
|
|
4246
4284
|
);
|
|
4285
|
+
return new _StormReleaseClient(projectGraph, config5, workspaceConfig);
|
|
4247
4286
|
}
|
|
4248
4287
|
/**
|
|
4249
4288
|
* The normalized release configuration used by this release client.
|