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

Can I use peer dependencies? #292

Closed
donaldpipowitch opened this issue Mar 4, 2013 · 3 comments
Closed

Can I use peer dependencies? #292

donaldpipowitch opened this issue Mar 4, 2013 · 3 comments

Comments

@donaldpipowitch
Copy link

npm recently released support for peer dependencies, can I use them with Bower, too?

E.g. if I have a specific platform as a website like a CMS I want to download specific components for this host environment with Bower. Think of it like grunt is a host environment for grunt-plugins.

@sindresorhus
Copy link
Contributor

I don't see any apparent benefit of this as Bower's dependency structure is flat.

If you specify jquery as a dep in your project and a jquery plugin as dep with a different jquery version as dep, you will already get a warning about it, just like npm peerDependencies, and the jquery version in your component.json will take precedence. Which means Bower's "dependencies" key is somewhat like a poor-mans peerDependencies.

@satazor
Copy link
Member

satazor commented Mar 17, 2013

I agree with @sindresorhus, going to close this out.

@satazor satazor closed this as completed Mar 17, 2013
@donaldpipowitch
Copy link
Author

Okay, thank you for your answers.

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

No branches or pull requests

3 participants