Skip to content

fix(js): add input on .d.ts files within dependency projects#34968

Merged
leosvelperez merged 2 commits into
masterfrom
fix/d-ts-src-inputs
Mar 25, 2026
Merged

fix(js): add input on .d.ts files within dependency projects#34968
leosvelperez merged 2 commits into
masterfrom
fix/d-ts-src-inputs

Conversation

@AgentEnder
Copy link
Copy Markdown
Member

This pull request makes a targeted improvement to how TypeScript dependency tracking is handled in the build system. Specifically, it ensures that all *.d.ts files from dependent projects are included as inputs, improving type safety and correctness in incremental builds.

Dependency tracking improvements:

  • Updated the getInputs function in plugin.ts to add all *.d.ts files from dependencies as tracked inputs, ensuring that changes to type definition files in dependent projects are properly detected and trigger rebuilds.

@AgentEnder AgentEnder requested a review from a team as a code owner March 23, 2026 21:13
@AgentEnder AgentEnder requested a review from FrozenPandaz March 23, 2026 21:13
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 23, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 124e7ed
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/69c321993dcf9700083e0a5e
😎 Deploy Preview https://deploy-preview-34968--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
Copy Markdown

netlify Bot commented Mar 23, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 124e7ed
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/69c321992a4f1a0008328342
😎 Deploy Preview https://deploy-preview-34968--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
Copy Markdown
Contributor

nx-cloud Bot commented Mar 23, 2026

View your CI Pipeline Execution ↗ for commit 124e7ed

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 57m 2s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 11s View ↗
nx-cloud record -- pnpm nx conformance:check ✅ Succeeded 7s View ↗
nx build workspace-plugin ✅ Succeeded 1m 38s 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-25 15:54:19 UTC

Copy link
Copy Markdown
Contributor

@nx-cloud nx-cloud Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ The fix from Nx Cloud was applied

We updated 91 inline snapshots in plugin.spec.ts to include the newly added { "dependencies": true, "fileset": "**/*.d.ts" } input entry, which was introduced by the PR's change to getInputs() in plugin.ts. Without these snapshot updates, the js:test task fails with 87 mismatches because the received output now contains this additional entry that the existing snapshots did not anticipate.

Warning

  • We could not verify this fix.
  • The suggested diff is too large to display here, but you can view it on Nx Cloud ↗

🔔 Heads up, your workspace has pending recommendations ↗ to auto-apply fixes for similar failures.

Revert fix via Nx Cloud  

View interactive diff ↗

➡️ This fix was applied by Craigory Coppola

🎓 Learn more about Self-Healing CI on nx.dev

Co-authored-by: AgentEnder <AgentEnder@users.noreply.github.com>
@leosvelperez leosvelperez merged commit f81ad07 into master Mar 25, 2026
24 checks passed
@leosvelperez leosvelperez deleted the fix/d-ts-src-inputs branch March 25, 2026 15:56
FrozenPandaz pushed a commit that referenced this pull request Mar 26, 2026
This pull request makes a targeted improvement to how TypeScript
dependency tracking is handled in the build system. Specifically, it
ensures that all `*.d.ts` files from dependent projects are included as
inputs, improving type safety and correctness in incremental builds.

Dependency tracking improvements:

* Updated the `getInputs` function in `plugin.ts` to add all `*.d.ts`
files from dependencies as tracked inputs, ensuring that changes to type
definition files in dependent projects are properly detected and trigger
rebuilds.

---------

Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
Co-authored-by: AgentEnder <AgentEnder@users.noreply.github.com>
(cherry picked from commit f81ad07)
@github-actions
Copy link
Copy Markdown
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 31, 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