{"action":"created","issue":{"url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/175","labels_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/175/comments","events_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/175/events","html_url":"https://github.com/AngularClass/angular2-webpack-starter/issues/175","id":123347724,"number":175,"title":"Remove \"files\" from tsconfig.json","user":{"login":"vivainio","id":557579,"avatar_url":"https://avatars.githubusercontent.com/u/557579?v=3","gravatar_id":"","url":"https://api.github.com/users/vivainio","html_url":"https://github.com/vivainio","followers_url":"https://api.github.com/users/vivainio/followers","following_url":"https://api.github.com/users/vivainio/following{/other_user}","gists_url":"https://api.github.com/users/vivainio/gists{/gist_id}","starred_url":"https://api.github.com/users/vivainio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivainio/subscriptions","organizations_url":"https://api.github.com/users/vivainio/orgs","repos_url":"https://api.github.com/users/vivainio/repos","events_url":"https://api.github.com/users/vivainio/events{/privacy}","received_events_url":"https://api.github.com/users/vivainio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-21T20:02:13Z","updated_at":"2015-12-22T07:57:53Z","closed_at":null,"body":"It's considered a bit of an antipattern to have list of source files in tsconfig.json.\r\n\r\nCurrently, you need to add your new .ts files there to get vscode working. This doesn't scale to nontrivial projects\r\n\r\nhttps://github.com/Microsoft/TypeScript/wiki/tsconfig.json : \r\n\r\n```\r\nIf no \"files\" property is present in a tsconfig.json, the compiler defaults to including all TypeScript (*.ts or *.tsx) files in the containing directory and subdirectories. When a \"files\" property is present, only the specified files are included.\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/comments/166547077","html_url":"https://github.com/AngularClass/angular2-webpack-starter/issues/175#issuecomment-166547077","issue_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/175","id":166547077,"user":{"login":"vivainio","id":557579,"avatar_url":"https://avatars.githubusercontent.com/u/557579?v=3","gravatar_id":"","url":"https://api.github.com/users/vivainio","html_url":"https://github.com/vivainio","followers_url":"https://api.github.com/users/vivainio/followers","following_url":"https://api.github.com/users/vivainio/following{/other_user}","gists_url":"https://api.github.com/users/vivainio/gists{/gist_id}","starred_url":"https://api.github.com/users/vivainio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivainio/subscriptions","organizations_url":"https://api.github.com/users/vivainio/orgs","repos_url":"https://api.github.com/users/vivainio/repos","events_url":"https://api.github.com/users/vivainio/events{/privacy}","received_events_url":"https://api.github.com/users/vivainio/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T07:57:53Z","updated_at":"2015-12-22T07:57:53Z","body":"For reference, here is all we have in our tsconfig.json (but as said, we are using tsify):\r\n\r\n```json\r\n{\r\n\t\"compileOnSave\": false,\r\n\t\"compilerOptions\": {\r\n        \"module\": \"commonjs\",\r\n        \"sourceMap\": false,\r\n        \"moduleResolution\":\"classic\",\r\n        \"target\":\"es5\"\r\n    }\r\n}\r\n```\r\n\r\nIt's not next to our node_modules, but in a directory that contains our apps ts code. In the angular2-webpack-starter, this would be either src/ or src/app"}}