-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(codemod): avoid overwriting existing packageManager field (#8551)
### Description Fixes #8308 Previously we would attempt to update the `packageManager` field to whatever version we found for the listed package manager based on the current `PATH`/cwd. This PR removes that behavior and now trusts the user if they have one listed in `package.json`. With the adoption of `corepack` more often then not, we want the contents of `package.json` to inform the binary used instead of the other way around. ### Testing Instructions Updated existing unit tests to no longer expect changes
- Loading branch information
1 parent
3bca6e8
commit 56297b7
Showing
2 changed files
with
16 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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