- Notifications
You must be signed in to change notification settings - Fork13.1k
Description
Suggestion
🔍 Search Terms
tsc --build --noEmit
build noEmit
List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily and help provide feedback.
✅ Viability Checklist
My suggestion meets these guidelines:
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- This feature would agree with the rest ofTypeScript's Design Goals.
⭐ Suggestion
Allowtsc --build --noEmit, the relevant types can be emitted to thetsbuildinfo for incremental building. This is very useful to allow type checking only for projects using project references and working with a bundler. e.g. Acreate-vue project, which currently has to resort to hackery such asvue-tsc --noEmit -p tsconfig.vitest.json --composite false which is not as accurate as type checking each project individually.
📃 Motivating Example
tsc --build --noEmit is now supported, allowing to only run type checking for projects using project references that don't also build types usingtsc.
💻 Use Cases
Type checking only, for projects using other build tools thantsc but still using project references for each of configuration.