-
Notifications
You must be signed in to change notification settings - Fork 12.8k
tsc -w get compiles its own output again #8249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
QQ if someone already knows: What is the current behavior of
With |
outDir is excluded by default if you do not specify |
@mhegazy So when exactly is the endless recursion a desired behaviour? |
When you put it this way, the answer is never :) the issue was, if we always added, some one will have a request to undo that, and there will be no way of doing this, unless we add a new flag --noImplicitOutDirExclusion (which is something we would rather not do). that is the same argument for node_modules as well. |
I understand that and I think it's a fair decision, tho I think it would be better if the compiler eventually stops. Like not be triggered by a file it emitted in the previous round |
One thing we can do, is include it by default, and then let users override that using the include property (from #5980) |
I've gone with : Feeding the the output of the compiler back to the input of the same compiler seems wrong. And |
TypeScript Version:
1.8.10
Code
Have a file
extension.js
and run oncetsc -p jsconfig.json
which gives you a fileout/extension.js
. Start tsc in watch mode, make a change toextension.js
Expected behavior:
The compiler should auto-magically exclude the
outDir
.Actual behavior:
It recurses forever which make the terminal print funny patterns

The text was updated successfully, but these errors were encountered: