{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8837","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8837/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8837/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8837/events","html_url":"https://github.com/Microsoft/TypeScript/issues/8837","id":156922495,"number":8837,"title":"Output directory messed up if tsc is triggered as VS Code task.","user":{"login":"vilic","id":970430,"avatar_url":"https://avatars.githubusercontent.com/u/970430?v=3","gravatar_id":"","url":"https://api.github.com/users/vilic","html_url":"https://github.com/vilic","followers_url":"https://api.github.com/users/vilic/followers","following_url":"https://api.github.com/users/vilic/following{/other_user}","gists_url":"https://api.github.com/users/vilic/gists{/gist_id}","starred_url":"https://api.github.com/users/vilic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vilic/subscriptions","organizations_url":"https://api.github.com/users/vilic/orgs","repos_url":"https://api.github.com/users/vilic/repos","events_url":"https://api.github.com/users/vilic/events{/privacy}","received_events_url":"https://api.github.com/users/vilic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-26T07:36:00Z","updated_at":"2016-05-27T00:50:23Z","closed_at":null,"body":"This only happens if tsc is executed via Code.\r\n\r\n**TypeScript Version:** \r\n\r\nnightly (1.9.0-dev.20160525-1.0)\r\n\r\n**Code**\r\n\r\n**.vscode/tasks.json**\r\n\r\n```js\r\n{\r\n    \"version\": \"0.1.0\",\r\n    \"command\": \"node\", // Using npm scripts would result the same.\r\n    \"isShellCommand\": true,\r\n    \"args\": [\"node_modules/typescript/lib/tsc.js\"],\r\n    \"showOutput\": \"silent\",\r\n    \"problemMatcher\": \"$tsc\"\r\n}\r\n```\r\n\r\n**tsconfig.json**\r\n\r\n```ts\r\n{\r\n    \"compilerOptions\": {\r\n        \"module\": \"commonjs\",\r\n        \"allowJs\": true,\r\n        \"outDir\": \"bld\",\r\n        \"rootDir\": \"src\"\r\n    },\r\n    \"exclude\": [\r\n        \"node_modules\",\r\n        \"bld\"\r\n    ]\r\n}\r\n```\r\n\r\n**src/foo/bar.ts**\r\n\r\n```ts\r\nimport '../biu/pia';\r\n```\r\n\r\n**src/biu/pia.js**\r\n\r\n```js\r\n// Empty file.\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nCompiles correctly.\r\n\r\n**Actual behavior:** \r\n\r\n```txt\r\nerror TS5055: Cannot write file '.../src/biu/pia.js' because it would overwrite input file.\r\n```\r\n\r\nAnd if you put another .ts file and import it in `src/foo.bar.ts`, it would be output as .js file nested to its .ts source."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/222033981","html_url":"https://github.com/Microsoft/TypeScript/issues/8837#issuecomment-222033981","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8837","id":222033981,"user":{"login":"Seikho","id":5344189,"avatar_url":"https://avatars.githubusercontent.com/u/5344189?v=3","gravatar_id":"","url":"https://api.github.com/users/Seikho","html_url":"https://github.com/Seikho","followers_url":"https://api.github.com/users/Seikho/followers","following_url":"https://api.github.com/users/Seikho/following{/other_user}","gists_url":"https://api.github.com/users/Seikho/gists{/gist_id}","starred_url":"https://api.github.com/users/Seikho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seikho/subscriptions","organizations_url":"https://api.github.com/users/Seikho/orgs","repos_url":"https://api.github.com/users/Seikho/repos","events_url":"https://api.github.com/users/Seikho/events{/privacy}","received_events_url":"https://api.github.com/users/Seikho/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T00:50:23Z","updated_at":"2016-05-27T00:50:23Z","body":"Possibly related to Microsoft/Vscode#6719 ?"}}
{"actor":{"display_login":"Seikho"}}