New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix dependencies #246
Fix dependencies #246
Conversation
Hi thanks but prop-types is declared as a peer dependency by design - your app should install it, this avoids duplication in the final bundle. Types are also intentionally there and do not get built into the bundle, but they are installed for people you use typescript without themselves having to manually install it. For those not using it, it’s a tiny package which does not get used so not a big deal I think? |
Hi, Dominic. |
I don't really have an issue with moving proptypes to deps if you like, but would like to leave types there since people are depending on it being there (#200) and it wouldn't make sense for types to go missing in a patch or minor version change. Besides it is a small module which doesn't affect people who are not using it. So if you remove that change I will merge the PropType part. |
OK, I will fix it later. Thank you! |
@dominictobias I fixed it. |
By the way, the latest version of |
Agreed, I will remove in next major version which I'm planning to do fairly soon. I intend to change the cropping library to use pixels rather than percentages as it causes more trouble than it's worth Will update to v6 for now |
Updated in v7 so that it is not a depedency, also PropTypes is no longer a peer dep. Note that v7 has breaking changes though. |
Hi,
I fixed dependencies.
prop-types
should intodependecies
@types/react-image-crop
into thedependecies
because not needed in productionThank you.