Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(js): only add typescript project references for explicit dependencies in sync generator #28998

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cogwirrel
Copy link
Contributor

This change omits references to implicit dependency tsconfigs for typescript projects in the sync generator, since given that they are not referenced directly in code there is no need for project references.

Current Behavior

TypeScript sync generator adds references to any dependency project which has a tsconfig (where composite is true), including implicit dependencies where these references are unnecessary and can potentially cause build failures.

See example repo.

Expected Behavior

Only explicit dependencies should be referenced in tsconfigs.

Related Issue(s)

Fixes #28997

…cies in sync generator

This change omits references to implicit dependency tsconfigs for typescript projects in the sync
generator, since given that they are not referenced directly in code there is no need for project
references.

Fixes nrwl#28997
@cogwirrel cogwirrel requested a review from a team as a code owner November 19, 2024 23:12
Copy link

vercel bot commented Nov 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Nov 28, 2024 0:03am

Copy link

nx-cloud bot commented Nov 19, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[sync] typescript-sync generator adds project references for implicit dependencies
2 participants