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): ensure cache is created correctly for separate vite and vitest config files #22244 #22618

Merged
merged 1 commit into from Apr 3, 2024

Conversation

Coly010
Copy link
Contributor

@Coly010 Coly010 commented Apr 2, 2024

Current Behavior

When both a Vite config file and Vitest config file exist for a single project, the hash that is calculated when creating the targets is the same, and therefore one operation overwrites the other.
This leads to invalid store of targets available for the project.

Expected Behavior

Both sets of targets should produce a different hash allowing for a separate cache for each which gets merged correctly when targets are inferred.

Related Issue(s)

Fixes #22244

@Coly010 Coly010 requested a review from a team as a code owner April 2, 2024 13:55
@Coly010 Coly010 self-assigned this Apr 2, 2024
Copy link

vercel bot commented Apr 2, 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 Apr 3, 2024 2:23pm

@Coly010 Coly010 enabled auto-merge (squash) April 3, 2024 14:26
@Coly010 Coly010 merged commit 2149fa2 into nrwl:master Apr 3, 2024
6 checks passed
FrozenPandaz pushed a commit that referenced this pull request Apr 5, 2024
Copy link

github-actions bot commented Apr 9, 2024

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 Apr 9, 2024
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.

Available tasks for a project missing after vite.config.ts
2 participants