From 8f379b442138305bc5cbc61a4b61550d9507e79e Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Wed, 7 Aug 2024 02:20:49 +0200 Subject: [PATCH] docs: document manage-package-manager-versions --- docs/npmrc.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/npmrc.md b/docs/npmrc.md index 53501b25bc92..7e3cef0800ce 100644 --- a/docs/npmrc.md +++ b/docs/npmrc.md @@ -779,6 +779,21 @@ Added in: v9.2.0 When enabled, pnpm will fail if its version doesn't exactly match the version specified in the `packageManager` field of `package.json`. +### manage-package-manager-versions + +Added in: v9.7.0 + +* Default: **false** +* Type: **Boolean** + +When enabled, pnpm will automatically download and run the version of pnpm specified in the `packageManager` field of `package.json`. This is the same field used by Corepack. Example: + +```json +{ + "packageManager": "pnpm@9.3.0" +} +``` + ## Build Settings ### ignore-scripts