Skip to content

Commit

Permalink
docs: document resolutions and pnpm.overrides merging (#463)
Browse files Browse the repository at this point in the history
Docs change for pnpm/pnpm#7174.
  • Loading branch information
stevenpetryk authored Oct 9, 2023
1 parent 7943dad commit b36e9c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/package_json.md
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,9 @@ Scripts listed in this array will be required in each project of the workspace.

## resolutions

Same as [`pnpm.overrides`]. We read it for easier migration from Yarn.
Functionally identical to [`pnpm.overrides`], this field is intended to make it easier to migrate from Yarn.

`resolutions` and `pnpm.overrides` get merged before package resolution (with `pnpm.overrides` taking precedence), which can be useful when you're migrating from Yarn and need to tweak a few packages just for pnpm.

[pnpm patch-commit]: ./cli/patch-commit.md
[`pnpm.overrides`]: #pnpmoverrides

0 comments on commit b36e9c3

Please sign in to comment.