-
Notifications
You must be signed in to change notification settings - Fork 8
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
Specify allowed transitive dependencies #17
Comments
this sounds like it defeats the purpose of the addon. having multiple copies of the addon in the build is a real issue and not something that should just be ignored because it's "only a dummy app". the |
I realize that in an ideal world, even your dummy app wouldn't have duplicated versions of addons. But unfortunately, sometimes other things take priority, and we simply don't have time to resolve that issue. But I'd still like to know when I duplicate an addon in the user-facing build. To frame this another way, imagine the following setup:
I have duplicated Now imagine that But now let's imagine another dev on my team adds
I now have 3 versions of I potentially could have even bumped the I think ultimately this is a balance between a pure, ideal solution (immediately fix all duplicated addons) and recognizing the unfortunate tradeoffs that teams sometimes face. I worry that saying "well you should never have this and |
First off, great addon!
A quick suggestion: it would be nice to be able to specify allowed versions for specific transitive dependencies.
My concrete use case:
I'm using
ember-cli-addon-docs
, which right now is bringing in two copies ofember-cli-clipboard
. I don't particularly mind if the addon docs load two copies of the clipboard addon - it's an internal use docs site, not worth the time right now to resolve that conflict.However ...
If someone else down the road happens to install
ember-cli-clipboard
directly, or another addon that uses it, I definitely do want to know about conflicts then, because that copy may end up duplicated in the production app.So really, what I want to be able to say is something like:
I could even imagine a little CSS-like microsyntax to specify different kinds of nesting (i.e.
addon-a > addon-b
would only apply toaddon-b
when it's a direct dep ofaddon-a
) but that might be overkill.Happy to take a stab at a PR when I have some spare cycles, but wanted to get feedback on the concept first.
The text was updated successfully, but these errors were encountered: