{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8656","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8656/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8656/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8656/events","html_url":"https://github.com/Microsoft/TypeScript/issues/8656","id":155404491,"number":8656,"title":"--outDir + --watch + path bug after file changes","user":{"login":"materliu","id":1681045,"avatar_url":"https://avatars.githubusercontent.com/u/1681045?v=3","gravatar_id":"","url":"https://api.github.com/users/materliu","html_url":"https://github.com/materliu","followers_url":"https://api.github.com/users/materliu/followers","following_url":"https://api.github.com/users/materliu/following{/other_user}","gists_url":"https://api.github.com/users/materliu/gists{/gist_id}","starred_url":"https://api.github.com/users/materliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/materliu/subscriptions","organizations_url":"https://api.github.com/users/materliu/orgs","repos_url":"https://api.github.com/users/materliu/repos","events_url":"https://api.github.com/users/materliu/events{/privacy}","received_events_url":"https://api.github.com/users/materliu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-18T02:36:17Z","updated_at":"2016-05-19T06:40:19Z","closed_at":"2016-05-19T06:40:19Z","body":"<!--\r\nThank you for contributing to TypeScript! Please review this checklist\r\n       before submitting your issue.\r\n[ ] Many common issues and suggestions are addressed in the FAQ\r\n     https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n[ ] Search for duplicates before logging new issues\r\n    https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue\r\n[ ] Questions are best asked and answered at Stack Overflow\r\n    http://stackoverflow.com/questions/tagged/typescript\r\n\r\nFor bug reports, please include the information below.\r\n__________________________________________________________ -->\r\n\r\n**TypeScript Version:** \r\n1.8.10\r\n\r\n**OS Version:**\r\nMacOS\r\n\r\n\r\n\r\nIn fact, I just begin to learn typescript, because the angular2.0, I use the `https://github.com/angular/quickstart` as the begining, and I change it's file structure, add ts folder, and move the typescript file to ts folder, change npm scripts: \r\n\r\n`\"start\": \"tsc && concurrently \\\"tsc -w\\\" \\\"lite-server\\\" \",`   ---->\r\n`\"start\": \"npm run build:css && tsc --outDir ./app/scripts/ --rootDir ./app/ts/ && concurrently \\\"npm run tsc:w\\\" \\\"lite-server\\\" \",`\r\n\r\n`\"tsc:w\": \"tsc -w\", ` ---->\r\n`\"tsc:w\": \"tsc -w --outDir ./app/scripts/ --rootDir ./app/ts/\",`\r\n\r\nI start the project by run npm start, the tsc generate related js file to app/scripts folder, but when I change some typescirpt file, instead of outputing to the --outDir folder, it outputs .js files to where the .ts file is. It just happens after changing the file, the first compilation is right.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/220240284","html_url":"https://github.com/Microsoft/TypeScript/issues/8656#issuecomment-220240284","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8656","id":220240284,"user":{"login":"materliu","id":1681045,"avatar_url":"https://avatars.githubusercontent.com/u/1681045?v=3","gravatar_id":"","url":"https://api.github.com/users/materliu","html_url":"https://github.com/materliu","followers_url":"https://api.github.com/users/materliu/followers","following_url":"https://api.github.com/users/materliu/following{/other_user}","gists_url":"https://api.github.com/users/materliu/gists{/gist_id}","starred_url":"https://api.github.com/users/materliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/materliu/subscriptions","organizations_url":"https://api.github.com/users/materliu/orgs","repos_url":"https://api.github.com/users/materliu/repos","events_url":"https://api.github.com/users/materliu/events{/privacy}","received_events_url":"https://api.github.com/users/materliu/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T06:40:19Z","updated_at":"2016-05-19T06:40:19Z","body":"after I move the --outDir configuration to tsconfig.json file, the problem get fixed, thx so much. But I still don't know why it not work with the CLI."}}