You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make peerDependencies release type match dependant package or configurable #827
We have this mono repo https://github.com/cmpsr/composer when some packages have peerDependencies to other internal packages, for instance @cmpsr/blocks depends on @cmpsr/components and @cmpsr/nextjs-contentful-renderer depends on both @cmpsr/components and @cmpsr/blocks. We have configured the repo so that we update the packages with peerDependencies after each update of the dependency. The issue we have is that right now the changesets generates a major release for packages with peerDependencies -even when the changelog reflects a patch- and we do not want to do a major just because a dependencies has been patched. An example pull request in here where a minor release of @cmpsr/components produce a major release of both blocks and nextjs-contentful-renderer packages.
What have we tried
As a workaround we added this to our .changesets/config.json:
With this config when we update a package the packages with peerDependencies to it are producing a patch release but the changelog for the release is empty:
# @cmpsr/blocks## 2.0.1 <----- Missing changelog in here## 2.0.0
changed the title [-]Make peerDependencies release type configurable[/-][+]Make peerDependencies release type match dependant package or configurable[/+]on Jun 2, 2022
Could you propose this in the actual+expected format? It's hard for me to deduce all of the required information about your packages, your config etc from just the description. I'd like to ensure that we are exactly on the same page to discuss such changes.
+1 🙏🏼
We just migrated from Lerna to changeset and now we have noticed that our libraries are now in version 10+ when we have only done minor and patch releases in the peerDependencies 😢 . Would be good to have the option updatePeerDependentsAs 🙏🏼
Activity
[-]Make peerDependencies release type configurable[/-][+]Make peerDependencies release type match dependant package or configurable[/+]Andarist commentedon Aug 16, 2022
Could you propose this in the actual+expected format? It's hard for me to deduce all of the required information about your packages, your config etc from just the description. I'd like to ensure that we are exactly on the same page to discuss such changes.
giancarlosisasi commentedon Nov 15, 2022
+1 🙏🏼
We just migrated from Lerna to changeset and now we have noticed that our libraries are now in version 10+ when we have only done minor and patch releases in the peerDependencies 😢 . Would be good to have the option
updatePeerDependentsAs🙏🏼