nx release appears not to update peerDependencies of monorepo packages #23388
Replies: 5 comments
-
Faced the same issue. I have two libraries:
Child lib has peerDependency When I commit some breaking change to parent lib (and update child lib as well because it's affected), I get next results:
It's a bit strange behaviour, especially when you run |
Beta Was this translation helpful? Give feedback.
-
+1 to this issue. I see this also
I have to manually update the package.json of the peer dep |
Beta Was this translation helpful? Give feedback.
-
Same here, I notice that the versions are changed in Sample output:
|
Beta Was this translation helpful? Give feedback.
-
Same. If I changed |
Beta Was this translation helpful? Give feedback.
-
To avoid being brittle, peer dependencies are often ranges that require intentionality and manual intervention to update appropriately, and they are often a breaking change to the package. This is why Nx Release doesn't update them automatically at the moment. If you have specific exact versions, I would suggest using However, with enough support and carefully thought out use cases, this is something we could consider as an opt-in behavior for Nx Release. Please continue to share your use cases and justification for automatically-updated peer dependencies. This type of discussion and feedback is what will make a future implementation of the feature as well thought out and valuable as possible! |
Beta Was this translation helpful? Give feedback.
-
Current Behavior
when running nx release, it updates the version numbers of my dependencies, but not peerDependencies
Expected Behavior
should update peerDependencies
GitHub Repo
No response
Steps to Reproduce
Nx Report
Beta Was this translation helpful? Give feedback.
All reactions