{"action":"created","issue":{"url":"https://api.github.com/repos/developit/modify-babel-preset/issues/3","repository_url":"https://api.github.com/repos/developit/modify-babel-preset","labels_url":"https://api.github.com/repos/developit/modify-babel-preset/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/developit/modify-babel-preset/issues/3/comments","events_url":"https://api.github.com/repos/developit/modify-babel-preset/issues/3/events","html_url":"https://github.com/developit/modify-babel-preset/pull/3","id":136351227,"number":3,"title":"Fixed some unreachable code, also fixing a bug.","user":{"login":"callumacrae","id":472830,"avatar_url":"https://avatars.githubusercontent.com/u/472830?v=3","gravatar_id":"","url":"https://api.github.com/users/callumacrae","html_url":"https://github.com/callumacrae","followers_url":"https://api.github.com/users/callumacrae/followers","following_url":"https://api.github.com/users/callumacrae/following{/other_user}","gists_url":"https://api.github.com/users/callumacrae/gists{/gist_id}","starred_url":"https://api.github.com/users/callumacrae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callumacrae/subscriptions","organizations_url":"https://api.github.com/users/callumacrae/orgs","repos_url":"https://api.github.com/users/callumacrae/repos","events_url":"https://api.github.com/users/callumacrae/events{/privacy}","received_events_url":"https://api.github.com/users/callumacrae/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2016-02-25T10:55:01Z","updated_at":"2016-03-31T11:15:40Z","closed_at":"2016-03-06T16:55:10Z","pull_request":{"url":"https://api.github.com/repos/developit/modify-babel-preset/pulls/3","html_url":"https://github.com/developit/modify-babel-preset/pull/3","diff_url":"https://github.com/developit/modify-babel-preset/pull/3.diff","patch_url":"https://github.com/developit/modify-babel-preset/pull/3.patch"},"body":"When modify-babel-preset was a dependency of another module defining a\npreset,\n\nGiven the following dependency structure:\n\n- main\n  - babel-preset-my-preset\n    - modify-babel-preset\n\t- babel-preset-es2015\n\nIf I wanted my preset to extend the es2015 preset, it would have to be\ninstalled as a dependency of \"main\", because the code designed to handle\nthis was unreachable due to reuse of a variable name. I expected that I\nwould only need to install the one preset, instead of installed the\npreset to be extended as well.\n\nThis renames the variable so that the unreachable code is reachable."},"comment":{"url":"https://api.github.com/repos/developit/modify-babel-preset/issues/comments/203883636","html_url":"https://github.com/developit/modify-babel-preset/pull/3#issuecomment-203883636","issue_url":"https://api.github.com/repos/developit/modify-babel-preset/issues/3","id":203883636,"user":{"login":"developit","id":105127,"avatar_url":"https://avatars.githubusercontent.com/u/105127?v=3","gravatar_id":"","url":"https://api.github.com/users/developit","html_url":"https://github.com/developit","followers_url":"https://api.github.com/users/developit/followers","following_url":"https://api.github.com/users/developit/following{/other_user}","gists_url":"https://api.github.com/users/developit/gists{/gist_id}","starred_url":"https://api.github.com/users/developit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developit/subscriptions","organizations_url":"https://api.github.com/users/developit/orgs","repos_url":"https://api.github.com/users/developit/repos","events_url":"https://api.github.com/users/developit/events{/privacy}","received_events_url":"https://api.github.com/users/developit/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T11:15:40Z","updated_at":"2016-03-31T11:15:40Z","body":"Makes sense. Perhaps a solution might be to invoke modify-babel-preset against the CWD instead of dirname(preset) in this case? I believe there is a way to, will check. "}}