Remove prop-types
from peer dependencies in our JS libraries
#145
Labels
bug
Report of or fix for something that isn't working as intended
In some of our JS repos, we treat
prop-types
as a peer dependency, when it really shouldn't be (as confirmed by the docs forprop-types
itself). Rather, it should be a regular dependency that ships as part of the library.There's been a couple occasions where
prop-types
as a peer dependency causes unnecessary peer dependency conflicts that could be avoided hadprop-types
been considered a regular dependency.The aforementioned docs on
prop-types
that provide guidance on how to depend on the package: https://github.com/facebook/prop-types#how-to-depend-on-this-packageAC
prop-types
as a peer dependency (e.g., https://github.com/openedx/frontend-platform/blob/master/package.json#L76)prop-types
docs to move it to a regular dependency instead in those identified repos.The text was updated successfully, but these errors were encountered: