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(vite): get tsconfig from new path including target #22775

Merged
merged 1 commit into from
May 8, 2024

Conversation

ms-tng
Copy link
Contributor

@ms-tng ms-tng commented Apr 11, 2024

Current Behavior

Since v18.2.3 (e4c4697) the tsconfig.generated.json file generated if "buildLibsFromSource": false is placed under a path containing the current build target. The nx-tsconfig-paths plugin of @nx/vite was not updated accordingly, so now it doesn't find tsconfig.generated.json, effectively causing @nx/vite to ignore the "buildLibsFromSource": false setting.

Expected Behavior

With this PR, nx-tsconfig-paths finds tsconfig.generated.json at the correct path, so "buildLibsFromSource": false works as it did before v18.2.3.

@ms-tng ms-tng requested a review from a team as a code owner April 11, 2024 08:56
@ms-tng ms-tng requested a review from jaysoo April 11, 2024 08:56
Copy link

vercel bot commented Apr 11, 2024

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 11:58am

@ms-tng ms-tng force-pushed the fix/vite-get-tsconfig-from-new-path branch from 1b92ada to 88fe30b Compare May 7, 2024 11:56
Copy link
Contributor

@Coly010 Coly010 left a comment

Choose a reason for hiding this comment

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

Good catch!

@Coly010 Coly010 merged commit b4f6e42 into nrwl:master May 8, 2024
6 checks passed
FrozenPandaz pushed a commit that referenced this pull request May 9, 2024
## Current Behavior
Since v18.2.3 (e4c4697) the
`tsconfig.generated.json` file generated if `"buildLibsFromSource":
false` is placed under a path containing the current build target. The
`nx-tsconfig-paths` plugin of `@nx/vite` was not updated accordingly, so
now it doesn't find `tsconfig.generated.json`, effectively causing
`@nx/vite` to ignore the `"buildLibsFromSource": false` setting.

## Expected Behavior
With this PR, `nx-tsconfig-paths` finds `tsconfig.generated.json` at the
correct path, so `"buildLibsFromSource": false` works as it did before
v18.2.3.

(cherry picked from commit b4f6e42)
Copy link

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 May 19, 2024
@ms-tng ms-tng deleted the fix/vite-get-tsconfig-from-new-path branch May 21, 2024 06:40
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.

None yet

2 participants