{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/16604","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/16604/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/16604/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/16604/events","html_url":"https://github.com/Microsoft/TypeScript/issues/16604","id":236686298,"number":16604,"title":"tsc --watch only seems to use the tsconfig.json file in the root of the project","user":{"login":"ORESoftware","id":11139560,"avatar_url":"https://avatars1.githubusercontent.com/u/11139560?v=4","gravatar_id":"","url":"https://api.github.com/users/ORESoftware","html_url":"https://github.com/ORESoftware","followers_url":"https://api.github.com/users/ORESoftware/followers","following_url":"https://api.github.com/users/ORESoftware/following{/other_user}","gists_url":"https://api.github.com/users/ORESoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/ORESoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ORESoftware/subscriptions","organizations_url":"https://api.github.com/users/ORESoftware/orgs","repos_url":"https://api.github.com/users/ORESoftware/repos","events_url":"https://api.github.com/users/ORESoftware/events{/privacy}","received_events_url":"https://api.github.com/users/ORESoftware/received_events","type":"User","site_admin":false},"labels":[{"id":117630923,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Out%20of%20Scope","name":"Out of Scope","color":"556677","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-17T21:54:42Z","updated_at":"2017-09-11T16:13:34Z","closed_at":null,"author_association":"NONE","body":"<!-- BUGS: Please use this template. -->\r\nI asked this question on SO:\r\nhttps://stackoverflow.com/questions/44608091/transpile-all-typescript-files-to-a-relative-adjacent-directory\r\n\r\nAfter some investigation, it seems like there is a bug or some features are needed with tsc -w because it does not do the expected behavior.\r\n\r\n**Code**\r\nSee SO question, thanks.\r\n\r\n**Expected behavior:**\r\n\r\nI would expect `tsc -w` to use all the tsconfig.json files in a project. If there are tsconfig.json files in subdirectories, those tsconfig.json files should apply to all .ts files in those subdirectories.\r\n\r\n**Actual behavior:**\r\n\r\nInstead, it appears that tsc -w only uses the tsconfig.json file at the root of the project. That's how it looks to me after some experimenting.\r\n\r\nI know this feature might be a pain in the ass to implement, but it would be a huge boon, because then I only need to run one tsc -w command. Actually, thinking about it, it shouldn't be that hard to implement it if you do it the *easy* way, explained below.\r\n\r\nSuggestion:\r\n\r\n` tsc -w `should do the following under the hood \r\n\r\n```\r\n# algorithm\r\nfor each  tsconfig.json file X\r\ncd $(dirname  X) && tsc -w \r\n```\r\n\r\nthat's all that really needs to happen TMK. So what will happen is a single tsc -w command may spawn several tsc -w commands.\r\n\r\nI could implement this myself, but I think tsc -w should come with an extra flag that tells tsc -w to look for all tsconfig.json files."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/328579606","html_url":"https://github.com/Microsoft/TypeScript/issues/16604#issuecomment-328579606","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/16604","id":328579606,"user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars3.githubusercontent.com/u/8000722?v=4","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"created_at":"2017-09-11T16:13:34Z","updated_at":"2017-09-11T16:13:34Z","author_association":"CONTRIBUTOR","body":"Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed."}}
{"actor":{"display_login":"mhegazy"}}