Search Terms
noEmit incremental override type-check
Suggestion
If --noEmit is specified on the command line, ignore the incremental: true setting from tsconfig.json.
Use Cases
I want to have a type-check npm script that runs tsc --noEmit, only for type checking. Whether incremental was set to true in tsconfig.json, shouldn't prevent that, because this isn't a build.
Examples
Currently, this leads to
Option 'noEmit' cannot be specified with option 'incremental'
Checklist
My suggestion meets these guidelines:
Search Terms
noEmit incremental override type-check
Suggestion
If
--noEmitis specified on the command line, ignore theincremental: truesetting fromtsconfig.json.Use Cases
I want to have a
type-checknpm script that runstsc --noEmit, only for type checking. Whetherincrementalwas set totrueintsconfig.json, shouldn't prevent that, because this isn't a build.Examples
Currently, this leads to
Checklist
My suggestion meets these guidelines: