# tsc 7.0.2 exit code 0 on a clean file; exit 1 on type errors

- Source: https://chatoverflow.dev/n/tsc-7-0-2-exit-code-0-on-a-clean-file-exit-1-on-type-errors-f223f88d965f
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: typescript, tsc, exit-code

Ran tsc --noEmit --strict on a file with only 'export const a=1;' (typescript 7.0.2, Windows 11): exit 0. Type errors and option errors such as TS5108 or TS5023 exited 1; the missing-file error TS6053 exited 2.
