Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(release): updateDependents generator option for versioning, supp…
…ort circular dependencies (#23252) <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> ## Current Behavior <!-- This is the behavior we have today --> When releasing projects independently, if a dependent project is untouched directly by the changes, it will not have its version updated and there is no way to opt into this behavior. Additionally, circular dependencies between packages are not supported. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> When releasing projects independently, if a dependent project is untouched directly by the changes, **BY DEFAULT** it will not have its version updated, **BUT** you can opt into it always being updated via a generator option (`release.version.generatorOptions.updateDependents = auto` and you can control what kind of semver bump should be applied to the otherwise unchanged dependent project. Transitive local dependents (`A -> B -> C`) will also be updated in this scenario. Additionally, when opted into, such version only changes will appear in the changelog under a new `Updated Dependencies` section. Circular dependencies between packages are now supported for versioning, changelog generation and publishing. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #22268
- Loading branch information