@storm-software/git-tools 2.131.20 → 2.131.22

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/git.cjs CHANGED
@@ -3623,9 +3623,10 @@ function formatConfigLog(config5) {
3623
3623
  }
3624
3624
  var validReleaseVersionPrefixes = ["auto", "", "~", "^", "="];
3625
3625
  var ReleaseGraph = class _ReleaseGraph {
3626
- constructor(releaseGroups, filters) {
3626
+ constructor(releaseGroups, filters, workspaceConfig) {
3627
3627
  this.releaseGroups = releaseGroups;
3628
3628
  this.filters = filters;
3629
+ this.workspaceConfig = workspaceConfig;
3629
3630
  }
3630
3631
  projectToReleaseGroup = /* @__PURE__ */ new Map();
3631
3632
  projectToDependents = /* @__PURE__ */ new Map();
@@ -4017,15 +4018,22 @@ var ReleaseGraph = class _ReleaseGraph {
4017
4018
  this.resolveRepositoryTags.bind(this),
4018
4019
  options
4019
4020
  );
4021
+ const projectReleaseTagPattern = releaseTagPattern.includes(
4022
+ "{releaseGroupName}"
4023
+ ) ? releaseTagPattern.replace("{releaseGroupName}", "{projectName}") : `{projectName}@${releaseTagPattern}`;
4020
4024
  const projectReleaseTag = await git.getLatestGitTagForPattern(
4021
- releaseTagPattern.includes("{releaseGroupName}") ? releaseTagPattern.replace(
4022
- /\{releaseGroupName\}/g,
4023
- "{projectName}"
4024
- ) : `{projectName}@${releaseTagPattern}`,
4025
+ projectReleaseTagPattern,
4025
4026
  additionalInterpolationData,
4026
4027
  this.resolveRepositoryTags.bind(this),
4027
4028
  options
4028
4029
  );
4030
+ chunkOOFHIS6Q_cjs.writeDebug(
4031
+ `Group release tag pattern: ${releaseTagPattern}
4032
+ Project release tag pattern: ${projectReleaseTagPattern}
4033
+ Group release tag: ${groupReleaseTag?.tag}
4034
+ Project release tag: ${projectReleaseTag?.tag}`,
4035
+ this.workspaceConfig
4036
+ );
4029
4037
  if (projectReleaseTag?.extractedVersion && groupReleaseTag?.extractedVersion && gte__default.default(
4030
4038
  projectReleaseTag.extractedVersion,
4031
4039
  groupReleaseTag.extractedVersion
@@ -4286,7 +4294,7 @@ Valid values are: ${validReleaseVersionPrefixes.map((s) => `"${s}"`).join(", ")}
4286
4294
  await Promise.all(validationPromises);
4287
4295
  }
4288
4296
  };
4289
- async function createReleaseGraph(options) {
4297
+ async function createReleaseGraph(options, workspaceConfig) {
4290
4298
  const releaseGroups = Object.entries(
4291
4299
  options.nxReleaseConfig.groups ?? {}
4292
4300
  ).map(([name, group]) => {
@@ -4296,7 +4304,11 @@ async function createReleaseGraph(options) {
4296
4304
  resolvedVersionPlans: group.versionPlans ? [] : false
4297
4305
  };
4298
4306
  });
4299
- const graph = new ReleaseGraph(releaseGroups, options.filters);
4307
+ const graph = new ReleaseGraph(
4308
+ releaseGroups,
4309
+ options.filters,
4310
+ workspaceConfig
4311
+ );
4300
4312
  await graph.init(options);
4301
4313
  return graph;
4302
4314
  }
@@ -5088,17 +5100,20 @@ ${formatConfigLog(config5)}`,
5088
5100
  v.newVersion ? extractPreid(v.newVersion) : void 0
5089
5101
  ])
5090
5102
  );
5091
- const releaseGraph = await createReleaseGraph({
5092
- tree: this.tree,
5093
- projectGraph: this.projectGraph,
5094
- nxReleaseConfig: this.releaseConfig,
5095
- filters: {
5096
- projects: options.projects,
5097
- groups: options.groups
5103
+ const releaseGraph = await createReleaseGraph(
5104
+ {
5105
+ tree: this.tree,
5106
+ projectGraph: this.projectGraph,
5107
+ nxReleaseConfig: this.releaseConfig,
5108
+ filters: {
5109
+ projects: options.projects,
5110
+ groups: options.groups
5111
+ },
5112
+ firstRelease: !!options.firstRelease,
5113
+ verbose: chunkOOFHIS6Q_cjs.isVerbose(this.workspaceConfig.logLevel)
5098
5114
  },
5099
- firstRelease: !!options.firstRelease,
5100
- verbose: chunkOOFHIS6Q_cjs.isVerbose(this.workspaceConfig.logLevel)
5101
- });
5115
+ this.workspaceConfig
5116
+ );
5102
5117
  const projectToAdditionalDependencyBumps = /* @__PURE__ */ new Map();
5103
5118
  for (const releaseGroup of releaseGraph.releaseGroups) {
5104
5119
  if (releaseGroup.projectsRelationship !== "independent") {
@@ -5417,19 +5432,22 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5417
5432
  "Failed to load the project graph. Please run `nx reset`, then run the `storm-git commit` command again."
5418
5433
  );
5419
5434
  }
5420
- const releaseGraph = await createReleaseGraph({
5421
- tree: this.tree,
5422
- projectGraph: this.projectGraph,
5423
- nxReleaseConfig: this.releaseConfig,
5424
- filters: {
5425
- projects: options.projects,
5426
- groups: options.groups
5435
+ const releaseGraph = await createReleaseGraph(
5436
+ {
5437
+ tree: this.tree,
5438
+ projectGraph: this.projectGraph,
5439
+ nxReleaseConfig: this.releaseConfig,
5440
+ filters: {
5441
+ projects: options.projects,
5442
+ groups: options.groups
5443
+ },
5444
+ firstRelease: !!options.firstRelease,
5445
+ verbose,
5446
+ preid: options.preid ?? this.workspaceConfig.preid,
5447
+ versionActionsOptionsOverrides: options.versionActionsOptionsOverrides
5427
5448
  },
5428
- firstRelease: !!options.firstRelease,
5429
- verbose,
5430
- preid: options.preid ?? this.workspaceConfig.preid,
5431
- versionActionsOptionsOverrides: options.versionActionsOptionsOverrides
5432
- });
5449
+ this.workspaceConfig
5450
+ );
5433
5451
  if (releaseGraph.filterLog && process.env.NX_RELEASE_INTERNAL_SUPPRESS_FILTER_LOG !== "true") {
5434
5452
  chunkOOFHIS6Q_cjs.writeDebug(formatNxLog(releaseGraph.filterLog), this.workspaceConfig);
5435
5453
  }