{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/23414","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/23414/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/23414/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/23414/events","html_url":"https://github.com/Microsoft/TypeScript/issues/23414","id":314372465,"number":23414,"title":"Watch mode sometimes watches files that aren't targeted for compilation, depending on installed packages","user":{"login":"dguo","id":2763135,"avatar_url":"https://avatars0.githubusercontent.com/u/2763135?v=4","gravatar_id":"","url":"https://api.github.com/users/dguo","html_url":"https://github.com/dguo","followers_url":"https://api.github.com/users/dguo/followers","following_url":"https://api.github.com/users/dguo/following{/other_user}","gists_url":"https://api.github.com/users/dguo/gists{/gist_id}","starred_url":"https://api.github.com/users/dguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dguo/subscriptions","organizations_url":"https://api.github.com/users/dguo/orgs","repos_url":"https://api.github.com/users/dguo/repos","events_url":"https://api.github.com/users/dguo/events{/privacy}","received_events_url":"https://api.github.com/users/dguo/received_events","type":"User","site_admin":false},"labels":[{"id":113970722,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/By%20Design","name":"By Design","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":{"login":"sheetalkamat","id":8052792,"avatar_url":"https://avatars2.githubusercontent.com/u/8052792?v=4","gravatar_id":"","url":"https://api.github.com/users/sheetalkamat","html_url":"https://github.com/sheetalkamat","followers_url":"https://api.github.com/users/sheetalkamat/followers","following_url":"https://api.github.com/users/sheetalkamat/following{/other_user}","gists_url":"https://api.github.com/users/sheetalkamat/gists{/gist_id}","starred_url":"https://api.github.com/users/sheetalkamat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheetalkamat/subscriptions","organizations_url":"https://api.github.com/users/sheetalkamat/orgs","repos_url":"https://api.github.com/users/sheetalkamat/repos","events_url":"https://api.github.com/users/sheetalkamat/events{/privacy}","received_events_url":"https://api.github.com/users/sheetalkamat/received_events","type":"User","site_admin":false},"assignees":[{"login":"sheetalkamat","id":8052792,"avatar_url":"https://avatars2.githubusercontent.com/u/8052792?v=4","gravatar_id":"","url":"https://api.github.com/users/sheetalkamat","html_url":"https://github.com/sheetalkamat","followers_url":"https://api.github.com/users/sheetalkamat/followers","following_url":"https://api.github.com/users/sheetalkamat/following{/other_user}","gists_url":"https://api.github.com/users/sheetalkamat/gists{/gist_id}","starred_url":"https://api.github.com/users/sheetalkamat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheetalkamat/subscriptions","organizations_url":"https://api.github.com/users/sheetalkamat/orgs","repos_url":"https://api.github.com/users/sheetalkamat/repos","events_url":"https://api.github.com/users/sheetalkamat/events{/privacy}","received_events_url":"https://api.github.com/users/sheetalkamat/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/67","html_url":"https://github.com/Microsoft/TypeScript/milestone/67","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/67/labels","id":3170744,"number":67,"title":"TypeScript 2.9","description":"","creator":{"login":"DanielRosenwasser","id":972891,"avatar_url":"https://avatars2.githubusercontent.com/u/972891?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielRosenwasser","html_url":"https://github.com/DanielRosenwasser","followers_url":"https://api.github.com/users/DanielRosenwasser/followers","following_url":"https://api.github.com/users/DanielRosenwasser/following{/other_user}","gists_url":"https://api.github.com/users/DanielRosenwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRosenwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRosenwasser/subscriptions","organizations_url":"https://api.github.com/users/DanielRosenwasser/orgs","repos_url":"https://api.github.com/users/DanielRosenwasser/repos","events_url":"https://api.github.com/users/DanielRosenwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRosenwasser/received_events","type":"User","site_admin":false},"open_issues":163,"closed_issues":211,"state":"open","created_at":"2018-03-08T06:09:43Z","updated_at":"2018-04-28T19:40:12Z","due_on":"2018-05-11T07:00:00Z","closed_at":null},"comments":6,"created_at":"2018-04-15T00:03:41Z","updated_at":"2018-04-28T19:40:12Z","closed_at":"2018-04-28T19:40:12Z","author_association":"NONE","body":"<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨 -->\r\n<!--\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n  * Read the CONTRIBUTING guidelines: https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md\r\n  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n-->\r\n\r\n<!-- If you have a QUESTION:\r\n   THIS IS NOT A FORUM FOR QUESTIONS.\r\n   Ask questions at http://stackoverflow.com/questions/tagged/typescript\r\n    or https://gitter.im/Microsoft/TypeScript\r\n-->\r\n\r\n<!-- If you have a SUGGESTION:\r\n  Most suggestion reports are duplicates, please search extra hard before logging a new suggestion.\r\n  See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md\r\n-->\r\n\r\n<!-- If you have a BUG:\r\n  Please fill in the *entire* template below.\r\n-->\r\n\r\n<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:**  2.8.1\r\n\r\nI also tried with `typescript@next`, but the issue persisted.\r\n\r\n<!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** \r\ntoo many files watched in watch mode\r\n\r\n**Code**\r\nI created a [repo](https://github.com/dguo/tsc-watch-bug) that is as minimal as possible while still demonstrating the problem. Details are in the README.\r\n\r\n**Expected behavior:**\r\nWhen giving `tsc` specific files to compile, watch mode should only check for recompilation when those files are changed.\r\n\r\n**Actual behavior:**\r\nWith the dependencies in the repo's `package.json`, watch mode recompiles when other files are changed, like `package.json`, a JS file in the top level directory, or a JS file within `node_modules`. This occurs even though none of the dependencies are used by the file that is targeted for compilation. Removing any of the dependencies fixes the problem.\r\n\r\n**Playground Link:** N/A\r\n\r\n**Related Issues:** #7211\r\n\r\nTrying to debug this issue would have been easier if there was a way to get more insight into the `watch` mode. I don't think there's a way to get `tsc` to list which files are being watched or which file triggered a recompilation."}}
{"actor":{"display_login":"mhegazy"}}