-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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): keep refs to ignored files and allow opting out of pruning stale refs in typescript sync generator #27636
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 48e9099. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 4 targets
Sent with 💌 from NxCloud. |
d5290f8
to
285239e
Compare
packages/js/src/generators/typescript-sync/typescript-sync.spec.ts
Outdated
Show resolved
Hide resolved
packages/js/src/generators/typescript-sync/typescript-sync.spec.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments on the test file
… typescript sync generator
… name and comments
285239e
to
48e9099
Compare
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. |
Current Behavior
When the
@nx/js:typescript-sync
generator updates a tsconfig file of an Nx project, it prunes project references pointing to a path that's not part of the Nx project files (including paths inside a nested project) if they don't belong to a project that is a dependency.Expected Behavior
When the
@nx/js:typescript-sync
generator updates a tsconfig file of an Nx project, it should only prune project references pointing to a path that's not part of the Nx project files if it's not ignored and not part of a dependency.Additionally, a new
nx.sync.ignoredReferences
top-level option in tsconfig files allows specifying custom project references that the@nx/js:typescript-sync
sync generator should ignore and not prune.Related Issue(s)
Fixes #