microsoft / microsoft/TypeScript
Skip type checking project reference redirect(declaration file from project reference) to improve perf
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
Search Terms
Suggestion
We could probably set internal option and skip type checking project reference redirects (included .d.ts files from project reference output)
This could speed up tsc --b mode by skipping type checking generated files, (eg. skip compiler.d.ts when building tsc project and so on...) Since in build mode referencing projects are not built if there are any errors in the referenced project this should report all errors.
Use Cases
Examples
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. new expression-level syntax)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by investigating TypeScript's project-reference redirect handling in tsc --b mode; the issue does not name implementation files or tests. Verify how generated .d.ts files are type-checked and how errors from referenced projects are reported. Done should preserve referenced-project error reporting while skipping redundant redirect checks and improving build performance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- compilers, performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100