noEmit
The compiler option that makes tsc check types without writing any output files.
In more detail
It is the usual type-checking step in continuous integration, and the partner of a fast transpiler or bundler that produces the actual JavaScript. It exits with a non-zero status when there are type errors, so the pipeline fails.
Example
tsc --noEmitRelated terms
- tsc — The command-line TypeScript compiler, which type-checks a project and writes JavaScript and declaration files.
- noEmitOnError — The compiler option that stops tsc from writing any JavaScript if the project has type errors.
- continuous integration — Automatically building and testing every change as soon as it is pushed, so problems are caught early.
- bundler — A build tool, such as webpack, Rollup or Vite, that follows imports and combines modules into files a browser can load efficiently.
Taught in
- The Compiler Pipeline: tsc, AST And Code Emission — Production TypeScript
- Verify Your Environment: Running tsc And Bun TypeScript — Production TypeScript