Skip to content
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

Moving prop-types to dependencies #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

victormf2
Copy link

Although prop-types is meant to run only on development environments, it still is a package required in production code.

Having prop-types under devDependencies means that whoever wants to use react-lottie will get a module not found error for it. Also the recomendation from prop-types team is to add their package as dependencies not devDependencies. You can see this on "How to Depend on This Package?" section on their npm page https://www.npmjs.com/package/prop-types

Although prop-types is meant to run only on development environments, it still is a package required in production code.

Having prop-types under devDependencies means that whoever wants to use react-lottie will get a module not found error for it.
Also the recomendation from prop-types team is to add their package as dependencies not devDependencies. You can see this on "How to Depend on This Package?" section on their npm page https://www.npmjs.com/package/prop-types
@jackall3n
Copy link

I've created a fork and a new package for this project as it seems dead. I've added this change to it:

https://www.npmjs.com/package/lottie-jsx
https://github.com/jackall3n/react-lottie/blob/master/CHANGELOG.md#140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants