Replies: 1 comment
-
First, it would be great to clarify from the npm team the semantics of peer dependencies in their docs: Second, if the way I understand their docs is right, I think
and the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's assume we want our package/project to have react as a peer dependency.
However, one of the dependencies of our project has react as a prod dependency (and it doesn't match the version that we want). This is the
package.json
of button:Should pnpm print a warning in this case?
Should we forcefully convert any prod dependency to a peer dependency if the parent package has the given dependency in peers?
Should we support some new field in
peerDependenciesMeta
? Likeforce
for instance?Beta Was this translation helpful? Give feedback.
All reactions