I have a situation where there are some .ts files that exist only for type-testing. Is it possible to tell tsc to not emit js in outDir for some files. But still typecheck them. And possibly these test files don't need to be under rootDir.
Asked
Active
Viewed 340 times
2
joegomain
- 536
- 1
- 5
- 22
1 Answers
0
You can set noEmit to true:
{
"compilerOptions": {
...
"noEmit": true
}
}
or use the --noEmit flag when running tsc to stop it outputting files.
gilbertbw
- 634
- 2
- 9
- 27
-
This option will stop emission of _all_ source files. I've come to the conclusion that this is not possible. – joegomain Jul 14 '23 at 05:05