Skip to content

Conversation

@leosvelperez
Copy link
Member

Current Behavior

The @nx/js:typescript-sync generator adds project dependencies as TypeScript project references to each project's tsconfig.json and runtime tsconfig file (e.g., tsconfig.app.json, tsconfig.lib.json, etc.). This is redundant since projects' tsconfig.json files already reference the runtime tsconfig file, which would reference the dependencies.

Expected Behavior

The @nx/js:typescript-sync generator should add project dependencies as TypeScript project references to each project's runtime tsconfig file (e.g., tsconfig.app.json, tsconfig.lib.json, etc.). If the project only has a tsconfig.json file, it should add them to it.

We've observed some performance improvement with this change while running the typecheck tasks.

@leosvelperez leosvelperez self-assigned this Nov 11, 2025
@leosvelperez leosvelperez requested a review from a team as a code owner November 11, 2025 10:57
@leosvelperez leosvelperez requested a review from Coly010 November 11, 2025 10:57
@netlify
Copy link

netlify bot commented Nov 11, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit ea344be
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/6914bde4bf9f9c000859f937
😎 Deploy Preview https://deploy-preview-33438--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.

@vercel
Copy link

vercel bot commented Nov 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Nov 12, 2025 5:08pm

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Nov 11, 2025

View your CI Pipeline Execution ↗ for commit ea344be

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 39m 7s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 32s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 11s 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 2025-11-12 17:47:56 UTC

@leosvelperez leosvelperez enabled auto-merge (squash) November 12, 2025 17:05
@leosvelperez leosvelperez merged commit 36b9f7a into master Nov 12, 2025
20 checks passed
@leosvelperez leosvelperez deleted the nxc-3332 branch November 12, 2025 17:48
FrozenPandaz pushed a commit that referenced this pull request Nov 12, 2025
## Current Behavior

The `@nx/js:typescript-sync` generator adds project dependencies as
TypeScript project references to each project's `tsconfig.json` and
runtime tsconfig file (e.g., `tsconfig.app.json`, `tsconfig.lib.json`,
etc.). This is redundant since projects' `tsconfig.json` files already
reference the runtime tsconfig file, which would reference the
dependencies.

## Expected Behavior

The `@nx/js:typescript-sync` generator should add project dependencies
as TypeScript project references to each project's runtime tsconfig file
(e.g., `tsconfig.app.json`, `tsconfig.lib.json`, etc.). If the project
only has a `tsconfig.json` file, it should add them to it.

We've observed some performance improvement with this change while
running the `typecheck` tasks.
@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 Nov 18, 2025
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.

4 participants