feat(core): update getTouchedProjectsFromLockFile to detect which projects were changed from pnpm lock file diff#31091
Merged
jaysoo merged 3 commits intonrwl:masterfrom May 16, 2025
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Contributor
|
View your CI Pipeline Execution ↗ for commit eb190a4.
☁️ Nx Cloud last updated this comment at |
62a4ad4 to
74f9831
Compare
laneysmith
commented
May 9, 2025
…jects were changed from pnpm lock file diff Closes nrwl#29986
74f9831 to
eb190a4
Compare
Member
|
The YAML file is not treated as JSON changes. I pushed an update to I've verified that this works locally. Thanks for your contribution! |
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…jects were changed from pnpm lock file diff
Closes #29986
Current Behavior
Nx projects that use pnpm catalogs cannot take advantage of the
projectsAffectedByDependencyUpdates“auto”setting because updating catalog versions does not touch project files.Expected Behavior
When
projectsAffectedByDependencyUpdatesis set to“auto”, updating a catalog dependency version should result in all projects that use it getting marked as affected.A catalog version update and the affected projects can be detected from a changed pnpm lock file. This PR updates the
getTouchedProjectsFromLockFilelogic to check the lock file for pnpm monorepos.Example pnpm lock file diff after catalog dependency update:
Related Issue(s)
#29986
Fixes #29986