-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Use dependencies instead of peerDependencies. #62
Use dependencies instead of peerDependencies. #62
Conversation
npm@3 remove `peerDependencies` support now.
06799b1
to
d172f77
Compare
…cies Use dependencies instead of peerDependencies.
Thanks |
Sorry, I don't agree with that change. After maintaining a bunch of compile-to-loaders (less-loader, sass-loader, markdown-loader), I came to the conclusion that it's the best for the maintainer and the developer to use I want to revert that commit. |
Agreed with @jhnns. |
I agree with moving
In this case, since the semver ranges are identical, a consumer of this package can still choose the exact version (as long as it also satisfies If a consumer really cares about controlling the versions of everything in the dependency tree, they should be |
It's not appropriate for less-loader to strongly depend on less, less and its version should be specified by app. revert +1 |
@evocateur you're right, with npm@3 it's probably not that issue anymore. But interestingly this approach doesn't match with your definition of a
If your app says |
@sokra thx @evocateur @fengmk2 I'm still open for discussion. If you experience actual problems with |
'peerDependencies' is work fine on npm2 when the developer forget to add 'less' to their package.json. But it's broken on npm3 with the same codes. I'm a private npm registry maintainer for my company. |
I do understand your pain, but I think it's temporary. With npm@3 you'll get an error when you're trying to install a dependency and you don't have the |
npm@3 remove
peerDependencies
support now.