{"action":"created","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5573","repository_url":"https://api.github.com/repos/ember-cli/ember-cli","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5573/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5573/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5573/events","html_url":"https://github.com/ember-cli/ember-cli/issues/5573","id":138498893,"number":5573,"title":"Nested addon dependencies","user":{"login":"fiftoine","id":1417691,"avatar_url":"https://avatars.githubusercontent.com/u/1417691?v=3","gravatar_id":"","url":"https://api.github.com/users/fiftoine","html_url":"https://github.com/fiftoine","followers_url":"https://api.github.com/users/fiftoine/followers","following_url":"https://api.github.com/users/fiftoine/following{/other_user}","gists_url":"https://api.github.com/users/fiftoine/gists{/gist_id}","starred_url":"https://api.github.com/users/fiftoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fiftoine/subscriptions","organizations_url":"https://api.github.com/users/fiftoine/orgs","repos_url":"https://api.github.com/users/fiftoine/repos","events_url":"https://api.github.com/users/fiftoine/events{/privacy}","received_events_url":"https://api.github.com/users/fiftoine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-04T15:12:34Z","updated_at":"2016-03-04T15:29:46Z","closed_at":null,"body":"I'm writing two addons and addon A is dependant on addon B.\r\nIn a project C which should only be dependant on addon A, how can I ensure addon B stuff (addon, app) is available in Project C?\r\n\r\nIs it possible to make these nested dependencies work with npm link?"},"comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments/192323855","html_url":"https://github.com/ember-cli/ember-cli/issues/5573#issuecomment-192323855","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5573","id":192323855,"user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T15:29:46Z","updated_at":"2016-03-04T15:29:46Z","body":"  This seems like a question better asked on stack overflow (as our contributing.md) outlines\n\n\nNested addons are abit quirky (we can and will still improve them) but largely they aim to be reasonable good citizens in the world of npm. Which allows duplicates of deps of deps. This presents some tricky potentially collisions, which results in us walking down quirky path. Over time we will continue to improve this\n\nMost of the time, I suspect people don't want nested rather they want peer dependencies. Which is something we should encourage and start improving.\n\nNested addons today only support augmenting the addon that depends on them. Not the host. At least not by default. This means the addon folder is available but the app isn't. It also means the registry additions only affect itself and in the addon it depends on not the app.\n\n"}}