Uh oh!
There was an error while loading. Please reload this page.
Make loopback-datasource-juggler a peer dep - #85
Conversation
ritch
commented
Dec 6, 2013
lgtm |
Make loopback-datasource-juggler a peer dep
slnode
commented
Dec 6, 2013
Test FAILed. To trigger a build add comment - ".test\W+please" |
bajtos
commented
Dec 12, 2013
@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". |
rmg
commented
Dec 12, 2013
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. |
raymondfeng
commented
Dec 12, 2013
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 |
rmg
commented
Dec 12, 2013
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 |
raymondfeng
commented
Dec 12, 2013
Yes, exactly. |
innerdaze
commented
Feb 14, 2014
I don't know if this is new information for you, but running Adding Are we convinced the peerDependencies are a stable npm feature? |
raymondfeng
commented
Feb 14, 2014
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 notifications@github.com wrote:
|
rmg
commented
Feb 14, 2014
Interesting. I just did If I do the same thing, but do I cleared the cache with |
ritch
commented
Feb 14, 2014
@lsdriscoll - what version of npm / node are you using? Hint: npm -v
node -v |
innerdaze
commented
Feb 17, 2014
@ritch - Apologies for the late reply, left my phone at work all weekend -_- |
/to @ritch