-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Description
Given this package structure:
root
| -- packages
| -- foo
| -- bar
And bar is a peerDependency of foo.
When we publish a new version of foo and bar also update of the peerDependency in foo to the latest version.
We should only update the peer dependency on bar if the following conditions are met:
- When the
peerDependencyonbarwas an exact version. So"bar": "^0.14 || ^15.0.0"should not be updated, but"bar": "0.5.6"should be updated. Question: what about"bar": "^0.5.6"? - When the
foodependency is being published. i.e. we should not force a release offooifbaris updated and we're running in independent versioning mode. Question: or should we force it?
Edit: Is this feature already implemented? https://github.com/lerna/lerna/blob/master/src/commands/PublishCommand.js#L452
evocateur, smrq, xuchaoying, jan-molak, Maluen and 11 more
Metadata
Metadata
Assignees
Labels
No labels