Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

tsgo --build fails to invalidate incremental cache after dependency update #2666

Description

When updating dependencies in package.json that introduce breaking type changes, tsgo --build (incremental mode) fails to detect these changes if a tsconfig.tsbuildinfo file already exists. The build reports success despite the presence of type errors.

If the tsconfig.tsbuildinfo file is manually deleted, the compiler correctly identifies and reports the type errors.

Expected Behavior

The TypeScript compiler should detect changes in node_modules (or the program signature of dependencies) and invalidate the relevant parts of the incremental cache, forcing a re-check of affected files.

Actual Behavior

The compiler assumes the project is up-to-date because the local source files' timestamps/hashes haven't changed, ignoring the fact that the external type definitions they depend on have changed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions