Skip to content

Commit

Permalink
Specify package manager version for project
Browse files Browse the repository at this point in the history
Summary:
Prompted by facebook#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
  • Loading branch information
huntie authored and facebook-github-bot committed Oct 17, 2024
1 parent 7bbac8e commit b8f6c50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b8f6c50

Please sign in to comment.