-
Notifications
You must be signed in to change notification settings - Fork 39
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
Idea: fail build if peerDep is missing? #96
Comments
in theory that sounds like a good idea, though in general I'm a little worried about it due to the other issues that peer dependencies have. one example is ESLint plugins and |
I see. Would it be possible to inspect the "final graph" (if there is such a thing) to check for the presence of |
yes, but you might actually end up with several different versions if a subsubsubsubsubdependency misbehaves and has |
We can only warn instead of failing build. |
@quaertym true, but |
One benefit is that |
Also, see ember-cli/rfcs#112 for some background context here. I still need to dust off that RFC and re-submit it to emberjs/rfcs though... |
👋 Hey there! I wanted to open an issue to discuss adding
peerDependencies
support toember-cli-dependency-checker
.I've gone around a few times with folks like @ef4 and @Turbo87 about the best way for addons to specify their dependencies. It seems
peerDependencies
is semantically often what we want, but it's currently not really used or enforced by existing tooling.If
ember-cli-dependency-checker
failed builds if a peer dependency were missing, it would encourage addon authors to start using them more, and might make everyone's lives a little easier.What do you think? Has there been priori discussion around this? I'm just learning about these issues, but often get recommended to consider using
peerDependencies
even though it's not currently enforced anywhere. If this addon supported it, I think myself and others would be more incentivized to use it.The text was updated successfully, but these errors were encountered: