-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Strange file count increase when adding --outDir
#41504
Comments
Can you use |
I cannot share the exact file name, but I noticed by comparing both that the previous 142 files only included Is it possible that the combination of |
If you set
to your tsconfig. It sounds like this is more a configuration error than a bug, though. |
I will try to improve the configuration in the coming weeks. It does sound like a configuration error, it would be great to be able to have TypeScript copy JS files without compiling them, but that's more of a feature requests than a bug report. Thanks for pointing out the possible problem with our config. Should I close the issue? |
I can close; please open a new one if you find something odd. Thanks! |
TypeScript Version: 4.0.3
Search Terms: outDir, ourDir memory usage, outDir double files, outDir increase files
Code
This happens in multiple codebases. We're moving from compiling the JS files in-place to compiling into a
dist
directory, and we've seen a strange increase in memory usage of thetsc
compiler. In particular, the number of picked up files seems to have jumped 3 times.Here is our new
ts-config.json
Expected behavior:
I would expect this to not impact the number of compiled files by the
tsc
compiler. For reference, here are the diagnostics, beforeoutDir
:Actual behavior:
Increase in easily 3x time the number of files picked up by
tsc
, double the amount of memory used by the compiler. Here are the diagnostics:Related Issues: #30473
The text was updated successfully, but these errors were encountered: