From ef8f718a71029fb23ec59ee7ab7b78b9b5d61863 Mon Sep 17 00:00:00 2001 From: Steven Petryk Date: Sat, 7 Oct 2023 16:47:04 -0700 Subject: [PATCH] docs: document `resolutions` and `pnpm.overrides` merging Docs change for pnpm/pnpm#7174. --- docs/package_json.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/package_json.md b/docs/package_json.md index 9b622ceb0eb7..96c6daf33ce2 100644 --- a/docs/package_json.md +++ b/docs/package_json.md @@ -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 -