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

React should be a 'peerDependency'? #13

Closed
petemill opened this issue Nov 29, 2017 · 3 comments
Closed

React should be a 'peerDependency'? #13

petemill opened this issue Nov 29, 2017 · 3 comments

Comments

@petemill
Copy link
Member

@petemill petemill commented Nov 29, 2017

I know that React is labelled a 'devDependency' but shouldn't it be labelled a 'peerDependency' in package.json? Therefore it will use whatever version of react is in the consumer project, we can define a minimum version, and the consumer project will output a warning on 'npm install' if any peerDependency defined by this project isn't met.

@petemill
Copy link
Member Author

@petemill petemill commented Nov 29, 2017

Actually I see React is defined as a main dependency in the actual brave-ui. That should definitely be a peerDependency. Should help reduce package size?

@cezaraugusto
Copy link
Member

@cezaraugusto cezaraugusto commented Dec 6, 2017

thanks Pete, not sure but better doing that. Could you make a PR for that? I can include it in 0.3.0 which is next.

Not priority but I think Storybook could benefit from that as well, there's a lot of plugins for it.

@cezaraugusto
Copy link
Member

@cezaraugusto cezaraugusto commented Apr 20, 2018

ya we're requiring it as a peer dep now see https://github.com/brave/brave-ui/blob/master/package/package.json#L33. Closing

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.