microsoft / microsoft/TypeScript

Skip type checking project reference redirect(declaration file from project reference) to improve perf

Open
#28,260 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Domain: Performance In Discussion Scenario: Monorepos & Cross-Project References Suggestion
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.