From b8f6c5089ee0f736ba9fa0437027c048189ff5df Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Thu, 17 Oct 2024 06:41:29 -0700 Subject: [PATCH] Specify package manager version for project Summary: Prompted by https://github.com/facebook/react-native/pull/47083, this change adds a `"packageManager"` field to the root `package.json` specifying `yarn@1.22.22`. This will configure a compatible, predictable version of Yarn for users using [Corepack](https://nodejs.org/api/corepack.html) via the Yarn Modern install process. See https://yarnpkg.com/getting-started/install and https://nodejs.org/api/corepack.html. Tested on a fresh system (GitHub Codespaces). Changelog: [Internal] Differential Revision: D64536673 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 61402e78e7b3c7..e72d331579f6ed 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "private": true, "version": "1000.0.0", "license": "MIT", + "packageManager": "yarn@1.22.22", "scripts": { "android": "cd packages/rn-tester && npm run android", "build-android": "./gradlew :packages:react-native:ReactAndroid:build",