{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/18472","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/18472/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/18472/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/18472/events","html_url":"https://github.com/Microsoft/TypeScript/issues/18472","id":257801805,"number":18472,"title":"exclude not working for subdirectories","user":{"login":"tyrsius","id":1187432,"avatar_url":"https://avatars1.githubusercontent.com/u/1187432?v=4","gravatar_id":"","url":"https://api.github.com/users/tyrsius","html_url":"https://github.com/tyrsius","followers_url":"https://api.github.com/users/tyrsius/followers","following_url":"https://api.github.com/users/tyrsius/following{/other_user}","gists_url":"https://api.github.com/users/tyrsius/gists{/gist_id}","starred_url":"https://api.github.com/users/tyrsius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyrsius/subscriptions","organizations_url":"https://api.github.com/users/tyrsius/orgs","repos_url":"https://api.github.com/users/tyrsius/repos","events_url":"https://api.github.com/users/tyrsius/events{/privacy}","received_events_url":"https://api.github.com/users/tyrsius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-14T17:44:27Z","updated_at":"2017-09-14T20:04:24Z","closed_at":null,"author_association":"NONE","body":"<!-- BUGS: Please use this template. -->\r\n\r\n\r\n**TypeScript Version:** 2.5.2\r\n\r\n**Code**\r\n\r\n```ts\r\n{\r\n  \"compilerOptions\": {\r\n    \"outDir\": \"dist\",\r\n    \"allowJs\": true,\r\n    \"target\": \"es2017\",\r\n    \"module\": \"commonjs\",\r\n    \"sourceMap\": false,\r\n    \"alwaysStrict\": true\r\n  },\r\n  \"include\": [\r\n    \"src/**/*\"\r\n  ],\r\n  \"exclude\": [\r\n    \"templates/**\" //or \"**/templates/**\" or \"**/templates\"\r\n  ]\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nAll directories with `templates` in them are excluded\r\n\r\n**Actual behavior:**\r\n\r\nThey are not excluded.\r\n\r\n```\r\n// Example error, there are hundreds of these\r\nsrc/plugins/lambdaApiNode/templates/api.js(31,10): error TS1109: Expression expected.\r\n```\r\n\r\n![image](https://user-images.githubusercontent.com/1187432/30445036-aa4888fa-9939-11e7-9db2-32799d7767b3.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/329593500","html_url":"https://github.com/Microsoft/TypeScript/issues/18472#issuecomment-329593500","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/18472","id":329593500,"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-14T20:04:24Z","updated_at":"2017-09-14T20:04:24Z","author_association":"CONTRIBUTOR","body":"you should not need the trailing `/*` though. that is a bug that needs to be addressed."}}
{"actor":{"display_login":"mhegazy"}}