{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/16792","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/16792/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/16792/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/16792/events","html_url":"https://github.com/Microsoft/TypeScript/issues/16792","id":239082285,"number":16792,"title":"Provide a means for mapping back to .ts files in published packages","user":{"login":"svenefftinge","id":372735,"avatar_url":"https://avatars3.githubusercontent.com/u/372735?v=3","gravatar_id":"","url":"https://api.github.com/users/svenefftinge","html_url":"https://github.com/svenefftinge","followers_url":"https://api.github.com/users/svenefftinge/followers","following_url":"https://api.github.com/users/svenefftinge/following{/other_user}","gists_url":"https://api.github.com/users/svenefftinge/gists{/gist_id}","starred_url":"https://api.github.com/users/svenefftinge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svenefftinge/subscriptions","organizations_url":"https://api.github.com/users/svenefftinge/orgs","repos_url":"https://api.github.com/users/svenefftinge/repos","events_url":"https://api.github.com/users/svenefftinge/events{/privacy}","received_events_url":"https://api.github.com/users/svenefftinge/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":6,"created_at":"2017-06-28T07:58:13Z","updated_at":"2017-06-29T12:21:26Z","closed_at":null,"body":"We have a mono repo with many small npm packages in it.\r\nAll of them share the same configuration in which we keep the `*.ts` files in a `src` folder and let tsc emit the `*.js` and `*.d.ts` to a `lib` folder.\r\n\r\nFor relative paths within a package tsc nicely resolves against the local source (*.ts) but for references across packages it resolves against the type definitions, because we use imports like:\r\n```ts\r\nimport foo from \"otherpackage/lib/module\"\r\n```\r\nThis makes navigation in code (find references, etc.) useless. Could the `paths` property in the compiler options, allow something like the following, so that tsc would resolve against the actual source?\r\n\r\n```json\r\n   \"paths\" : {\r\n      \"*/lib/*\" : [\"*/src/*\",\"*/lib/*\"]\r\n   }\r\n```\r\nOr is there another (better) way to deal with this?\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/311950023","html_url":"https://github.com/Microsoft/TypeScript/issues/16792#issuecomment-311950023","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/16792","id":311950023,"user":{"login":"svenefftinge","id":372735,"avatar_url":"https://avatars3.githubusercontent.com/u/372735?v=3","gravatar_id":"","url":"https://api.github.com/users/svenefftinge","html_url":"https://github.com/svenefftinge","followers_url":"https://api.github.com/users/svenefftinge/followers","following_url":"https://api.github.com/users/svenefftinge/following{/other_user}","gists_url":"https://api.github.com/users/svenefftinge/gists{/gist_id}","starred_url":"https://api.github.com/users/svenefftinge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svenefftinge/subscriptions","organizations_url":"https://api.github.com/users/svenefftinge/orgs","repos_url":"https://api.github.com/users/svenefftinge/repos","events_url":"https://api.github.com/users/svenefftinge/events{/privacy}","received_events_url":"https://api.github.com/users/svenefftinge/received_events","type":"User","site_admin":false},"created_at":"2017-06-29T12:21:26Z","updated_at":"2017-06-29T12:21:26Z","body":"I would want tsc to link against the *.ts instead of the ts.d. So that language services work better across node packages.\r\n\r\nRegarding the memory consumption, it would be nice if tsc doesn't check bodies if the signatures are complete (have return type) and the file is not part of the `include`.\r\n"}}
{"actor":{"display_login":"svenefftinge"}}