From ce1ed31702471b026573eeb26b080928c83350b5 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Tue, 30 Jan 2024 13:10:40 +0100 Subject: [PATCH] Add support for Node Corepack Node ships with Corepack, a "package manager manager". It works by reading `packageManager` entry in `package.json` and downloading required binaries transparently, on-the-fly. Therefore it ensures that all developers using Corepack run the same version of package manager: - reducing changes for any incompatibilities that might be caused by different versions, - making installation seamless - Yarn is installed transparently without any intervention, provided you have Corepack enabled - making migration to e.g. modern Yarn or pnpm very easy, as developers don't need to take any further actions besides pulling the latest changes from origin This PR does not break the repository for those using Yarn Classic (v1) installed using standalone installer, while adding an easy way to contribute for those who did not install it. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 377bb344..2d991c1b 100644 --- a/package.json +++ b/package.json @@ -88,5 +88,6 @@ "commitizen": { "path": "./node_modules/cz-conventional-changelog" } - } + }, + "packageManager": "yarn@1.22.19" }