-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Make loopback-datasource-juggler a peer dep #85
Conversation
lgtm |
Make loopback-datasource-juggler a peer dep
Test FAILed. To trigger a build add comment - ".test\W+please" |
@raymondfeng @ritch do you remember why was this change made? Quoting from strongloop/loopback-workspace#28:
In other words, we are sort of saying "you can depend on loopback only if you depend directly on loopback-datasource-juggler too". |
Installation does seem to be part of the deal according to the peerDependecies announcement blog post, but there doesn't seem to be any docs for it. Another thing to consider is that loopback does This also breaks npm-link, if I recall correctly. |
Here is the user experience leads to the peerDependencies:
Before peerDependency is adopted, we end up with the following tree: myapp --> loopback --> loopback-datasource-juggler With peerDependency, now we have: myapp --> loopback |
Ah, and it was added as a devDependency to get around the fact that In that case it makes sense to use the same technique in |
Yes, exactly. |
I don't know if this is new information for you, but running Adding Are we convinced the peerDependencies are a stable npm feature? |
Thank you for bringing it to our attention.
If you just run ‘npm install loopback’ in a directory that doesn’t have package.json with loopback as a dependency, it will fail. Raymond On Feb 14, 2014, at 1:48 AM, lsdriscoll [email protected] wrote:
|
Interesting. I just did If I do the same thing, but do I cleared the cache with |
@lsdriscoll - what version of npm / node are you using? Hint: npm -v
node -v |
@ritch - Apologies for the late reply, left my phone at work all weekend -_- |
/to @ritch