You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doesn't cause any issues, but it'd be nice not to keep appending the redundant entry :)
Expected Behavior
No duplicate dependency added.
GitHub Repo
No response
Steps to Reproduce
Create a workspace (pnpm dlx create-nx-workspace)
Generate a ts library with vitest as the unitTestRunner (pnpm exec nx generate @nx/js:library --directory=lib1 --unitTestRunner=vitest --no-interactive)
Generate another (pnpm exec nx generate @nx/js:library --directory=lib2 --unitTestRunner=vitest --no-interactive)
Every time the vitest generator was run a new duplicate '^build' dependency was added to the
target defaults for the test task. Updated to ensure it is specified only once.
Fixesnrwl#30288
Current Behavior
When adding multiple typescript libraries with vitest, the generator keeps appending to
dependsOn
in thetest
target default, eg:This doesn't cause any issues, but it'd be nice not to keep appending the redundant entry :)
Expected Behavior
No duplicate dependency added.
GitHub Repo
No response
Steps to Reproduce
pnpm dlx create-nx-workspace
)pnpm exec nx generate @nx/js:library --directory=lib1 --unitTestRunner=vitest --no-interactive
)pnpm exec nx generate @nx/js:library --directory=lib2 --unitTestRunner=vitest --no-interactive
)nx.json
Nx Report
Failure Logs
Package Manager Version
pnpm 10.4.1
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: