deps: add Yarn 1.22.5
Ref https://github.com/nodejs/node/discussions/37193 (and https://github.com/nodejs/node/discussions/37193#discussioncomment-332622 in particular, cc @jasnell @mcollina)
This commit adds Yarn to the Node release tarballs and installers. I tested:
- Windows (
.\vcbuild.bat msi
and ran the resulting exe) - MacOS (
make pkg
and ran the resulting pkg) - Linux (untar'd the
.tar.gz
file)
In all cases, running yarn --version
yielded the correct Yarn version (1.22.5 for infra reasons, which is for all purposes identical to 1.22.10 minus a postinstall script which has no impact whatsoever in this situation).
- This PR changes close to nothing for existing Node.js users (this PR doesn't remove
npm
from the Node.js project, and you can still install Yarn separately from Node.js), it's meant to improve the experience of new users. - Reasons for integrating Yarn v1 (rather than v2) are outlined in https://github.com/nodejs/node/pull/37277#issuecomment-775586604 and more in depth in https://github.com/nodejs/node/discussions/37193#discussioncomment-341160
- Please keep the discussion focused on Yarn v1, integration of other package managers can happen in a separate issue.