{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6012","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6012/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6012/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6012/events","html_url":"https://github.com/Microsoft/TypeScript/issues/6012","id":121210766,"number":6012,"title":"automatic module resolution for JPSM packages","user":{"login":"Matthias247","id":6330334,"avatar_url":"https://avatars.githubusercontent.com/u/6330334?v=3","gravatar_id":"","url":"https://api.github.com/users/Matthias247","html_url":"https://github.com/Matthias247","followers_url":"https://api.github.com/users/Matthias247/followers","following_url":"https://api.github.com/users/Matthias247/following{/other_user}","gists_url":"https://api.github.com/users/Matthias247/gists{/gist_id}","starred_url":"https://api.github.com/users/Matthias247/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matthias247/subscriptions","organizations_url":"https://api.github.com/users/Matthias247/orgs","repos_url":"https://api.github.com/users/Matthias247/repos","events_url":"https://api.github.com/users/Matthias247/events{/privacy}","received_events_url":"https://api.github.com/users/Matthias247/received_events","type":"User","site_admin":false},"labels":[{"id":114201833,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Needs%20Proposal","name":"Needs Proposal","color":"556b75","default":false},{"id":113971155,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Suggestion","name":"Suggestion","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":69,"created_at":"2015-12-09T10:53:25Z","updated_at":"2016-11-11T16:41:48Z","closed_at":null,"body":"I'm trying to use angular2 as a JSPM package.\nWhen I'm doing something like\n`import {bootstrap, Component, Input} from 'angular2/angular2';`\nin my code then typescript complains that it can't find the definitions and I don't get any code completions.\n\nThe workaround is to install angular2 also as a npm package and set moduleResolution to node. However this seems not optimal, because now I have two dependencies whose versions need to be aligned.\n\nI guess tsc could resolve the modules for jspm/systemjs similar to how it already can do it for node. E.g. look up package.json, config.js and use the pathes from there the locate to type definitions inside the jspm_packages folder.\n\nNot really sure if this is covered by #5039 and #5728. \n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/259998828","html_url":"https://github.com/Microsoft/TypeScript/issues/6012#issuecomment-259998828","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6012","id":259998828,"user":{"login":"unional","id":3254987,"avatar_url":"https://avatars.githubusercontent.com/u/3254987?v=3","gravatar_id":"","url":"https://api.github.com/users/unional","html_url":"https://github.com/unional","followers_url":"https://api.github.com/users/unional/followers","following_url":"https://api.github.com/users/unional/following{/other_user}","gists_url":"https://api.github.com/users/unional/gists{/gist_id}","starred_url":"https://api.github.com/users/unional/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unional/subscriptions","organizations_url":"https://api.github.com/users/unional/orgs","repos_url":"https://api.github.com/users/unional/repos","events_url":"https://api.github.com/users/unional/events{/privacy}","received_events_url":"https://api.github.com/users/unional/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T16:41:48Z","updated_at":"2016-11-11T16:41:48Z","body":"That's strange. I don't have any problem with it.\r\n\r\nCan you share your setting so I can take a look into it? You can open a PR on `typings` to keep track of it here. 🌷 \r\n\r\n"}}
{"actor":{"display_login":"unional"}}