@storm-software/git-tools 2.131.20 → 2.131.21
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 +19 -7
- package/bin/git.cjs.map +1 -1
- package/bin/git.js +19 -7
- package/bin/git.js.map +1 -1
- package/package.json +6 -6
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
|
-
|
|
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(
|
|
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
|
}
|