{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/18865","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/18865/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/18865/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/18865/events","html_url":"https://github.com/Microsoft/TypeScript/issues/18865","id":261819081,"number":18865,"title":"Resolve tsconfig.json `extends` path using node_modules resolution logic","user":{"login":"rtm","id":24391,"avatar_url":"https://avatars3.githubusercontent.com/u/24391?v=4","gravatar_id":"","url":"https://api.github.com/users/rtm","html_url":"https://github.com/rtm","followers_url":"https://api.github.com/users/rtm/followers","following_url":"https://api.github.com/users/rtm/following{/other_user}","gists_url":"https://api.github.com/users/rtm/gists{/gist_id}","starred_url":"https://api.github.com/users/rtm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtm/subscriptions","organizations_url":"https://api.github.com/users/rtm/orgs","repos_url":"https://api.github.com/users/rtm/repos","events_url":"https://api.github.com/users/rtm/events{/privacy}","received_events_url":"https://api.github.com/users/rtm/received_events","type":"User","site_admin":false},"labels":[{"id":117630560,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/In%20Discussion","name":"In Discussion","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":14,"created_at":"2017-09-30T05:14:49Z","updated_at":"2017-10-26T17:10:16Z","closed_at":null,"author_association":"NONE","body":"I am trying to manage my tsconfigs by keeping them in a repo/subrepo, and was hoping this would work:\r\n\r\n    {\r\n      \"extends\": \"my-config-repo/tsconfig.standard\",\r\n       \"compilerOptions\": { }\r\n     }\r\n\r\nBut I get\r\n\r\n> tsconfig.json(2,14): error TS18001: A path in an 'extends' option must be relative or rooted, but 'my-config-repo/tsconfig.standard' is not.\r\n\r\nIs there some reason why the path given to `extends`, if neither relative nor absolute, could not be searched for using the `node_modules` lookup rules?\r\n\r\n(I would also like multiple extends, but I suppose there was some reason for not doing that, and that would be another ticket anyway.)"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/339734634","html_url":"https://github.com/Microsoft/TypeScript/issues/18865#issuecomment-339734634","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/18865","id":339734634,"user":{"login":"rtm","id":24391,"avatar_url":"https://avatars3.githubusercontent.com/u/24391?v=4","gravatar_id":"","url":"https://api.github.com/users/rtm","html_url":"https://github.com/rtm","followers_url":"https://api.github.com/users/rtm/followers","following_url":"https://api.github.com/users/rtm/following{/other_user}","gists_url":"https://api.github.com/users/rtm/gists{/gist_id}","starred_url":"https://api.github.com/users/rtm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtm/subscriptions","organizations_url":"https://api.github.com/users/rtm/orgs","repos_url":"https://api.github.com/users/rtm/repos","events_url":"https://api.github.com/users/rtm/events{/privacy}","received_events_url":"https://api.github.com/users/rtm/received_events","type":"User","site_admin":false},"created_at":"2017-10-26T17:10:16Z","updated_at":"2017-10-26T17:10:16Z","author_association":"NONE","body":"But the npm module resolution algorithm **does** resolve to global packages\nanyway, you can't stop it.\n\nOn Thu, Oct 26, 2017 at 10:37 PM, Lucas Ciruzzi <notifications@github.com>\nwrote:\n\n> I don't agree with the use of global packages, I would be happy with\n> tsconfig resolving extends like tslint does it, by using the npm module\n> resolution (that's what I proposed first\n> <https://github.com/Microsoft/TypeScript/issues/18865#issuecomment-339489923>\n> ).\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/Microsoft/TypeScript/issues/18865#issuecomment-339733459>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AABfR6e_cFNgz1N9b986dq_D6vNb-eoRks5swLw2gaJpZM4Ppcg1>\n> .\n>\n"}}
{"actor":{"display_login":"rtm"}}