{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2999","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2999/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2999/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2999/events","html_url":"https://github.com/Microsoft/TypeScript/issues/2999","id":72580845,"number":2999,"title":"Files ending with comments causes generated code to append the original code.","user":{"login":"blackening","id":1753927,"avatar_url":"https://avatars.githubusercontent.com/u/1753927?v=3","gravatar_id":"","url":"https://api.github.com/users/blackening","html_url":"https://github.com/blackening","followers_url":"https://api.github.com/users/blackening/followers","following_url":"https://api.github.com/users/blackening/following{/other_user}","gists_url":"https://api.github.com/users/blackening/gists{/gist_id}","starred_url":"https://api.github.com/users/blackening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackening/subscriptions","organizations_url":"https://api.github.com/users/blackening/orgs","repos_url":"https://api.github.com/users/blackening/repos","events_url":"https://api.github.com/users/blackening/events{/privacy}","received_events_url":"https://api.github.com/users/blackening/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Duplicate","name":"Duplicate","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-02T04:00:47Z","updated_at":"2015-05-02T04:10:46Z","closed_at":null,"body":"See screenshot for repro code, its much clearer.\r\n![minimal repro code](https://cloud.githubusercontent.com/assets/1753927/7439840/db615cf0-f0c1-11e4-8c1d-4e29e33a6e5b.png)\r\n\r\nGenerated using grunt-typescript 0.6.1/typescript 1.4.1 with the following config:\r\n```\r\ntypescript: {\r\n\t\t\tbase: {\r\n\t\t\t\tsrc: [\"src/**/*.ts\"],\r\n\t\t\t\toptions: {\r\n\t\t\t\t\tmodule: \"commonjs\", \r\n\t\t\t\t\ttarget: \"es5\", \r\n\t\t\t\t\tbasePath: \"src\",\r\n\t\t\t\t\tsourceMap: false, \r\n\t\t\t\t\tdeclaration: false,\r\n\t\t\t\t\treferences:[\r\n\t\t\t\t\t\t\"typings/**/*.d.ts\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n```\r\n\r\nAssuming its unlikely that grunt-typescript will produce this kind of bug.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/98299854","html_url":"https://github.com/Microsoft/TypeScript/issues/2999#issuecomment-98299854","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2999","id":98299854,"user":{"login":"DanielRosenwasser","id":972891,"avatar_url":"https://avatars.githubusercontent.com/u/972891?v=3","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},"created_at":"2015-05-02T04:10:46Z","updated_at":"2015-05-02T04:10:46Z","body":"Duplicate of #1714, and has been fixed since. If you try out our recently released [TypeScript 1.5 beta](http://blogs.msdn.com/b/typescript/archive/2015/04/30/announcing-typescript-1-5-beta.aspx), you'll get the correct behavior."}}