Open mvrana-cen81948 opened 1 year ago
I did some research and found the issue. At try_bump.ts._getDependencyVersions() [line 291] is this lines of code which i understand that only function is to guess what tagPrefix is used for dependency:
const tagPrefix = formatTagPrefix({
versionTagPrefix,
projectName: dependencyName,
syncVersions,
});
simple fix for my use case is something like that:
const tagPrefix = syncVersions ? 'v' : versionTagPrefix?.replace(projectName, dependencyName) || `${projectName}-`;
But it only works when is used one opinionated pattern across entire workspace. More suitable solution will probably be list commits over projectRoot folder and just find last one, or load project.json and nx.json to get correct tagPrefix from options.
I set tagPrefixes for my libraries. My intention is to have tag like lib@0.0.0., lib-angular@0.0.0. So i set tagPrefix for every library like that: "tagPrefix": "lib@". When i do change into lib, it generates changelog ok:
But changelog of lib1-angular, which is dependent on lib1, says "lib1 updated to version 0.1.0", but actually it should say "lib1 updated to version 0.1.1".
if i leave tagPrefix option unset, it works as expected