Skip to content

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

Description

@rubenferreira97

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.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions