Skip to content

fix(js): include transitive dep outputs in typecheck inputs#34773

Merged
FrozenPandaz merged 1 commit intomasterfrom
nxc-3965
Mar 10, 2026
Merged

fix(js): include transitive dep outputs in typecheck inputs#34773
FrozenPandaz merged 1 commit intomasterfrom
nxc-3965

Conversation

@leosvelperez
Copy link
Member

Current Behavior

The @nx/js/typescript plugin infers dependentTasksOutputFiles: '**/*.{d.ts,tsbuildinfo}' as inputs for typecheck tasks, but only tracks .d.ts outputs from direct dependencies. TypeScript project references transitively read .d.ts files from the full dependency chain, so when a project typechecks, it reads .d.ts outputs from transitive deps too. These undeclared inputs can cause incorrect cache hits.

Expected Behavior

The inferred inputs for typecheck tasks include .d.ts and .tsbuildinfo outputs from the entire transitive dependency graph by setting transitive: true on the dependentTasksOutputFiles input.

TypeScript project references transitively read .d.ts outputs from the
full dependency chain, but the inferred inputs only tracked direct deps.
@leosvelperez leosvelperez requested a review from a team as a code owner March 10, 2026 14:42
@leosvelperez leosvelperez requested a review from JamesHenry March 10, 2026 14:42
@netlify
Copy link

netlify bot commented Mar 10, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit c357c03
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/69b02de663165c00087c3050
😎 Deploy Preview https://deploy-preview-34773--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Mar 10, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit c357c03
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/69b02de6134656000835f4d4
😎 Deploy Preview https://deploy-preview-34773--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Mar 10, 2026

View your CI Pipeline Execution ↗ for commit c357c03

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 46m 59s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3m 26s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 8s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-10 15:34:33 UTC

@FrozenPandaz FrozenPandaz merged commit 0589e67 into master Mar 10, 2026
24 checks passed
@FrozenPandaz FrozenPandaz deleted the nxc-3965 branch March 10, 2026 19:27
@github-actions
Copy link
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants