Closed colincasey closed 1 year ago
While this fix does address the issue with using 2.4.3
as a global yarn
binary, instead of having to add this special case that executes on every build, we've decided to exclude 2.4.3
from our inventory listing.
This should not impact applications that use 2.4.3
because in Yarn 2+ you are expected to commit the .yarn/release/yarn-vX.Y.Z.cjs
file which controls the actual version of Yarn used during a build. The globally installed Yarn simply operates as a wrapper to invoking the commited release version and that should be compatible with all of our other versions of Yarn in our inventory.
After #617 was merged our inventory automation ran and the PR to update the
yarn
inventory with2.4.3
(#620) had failing tests that showed that the layout for this version did not match our other distributions.This PR handles this edge case by renaming the
bin/yarn.js
script tobin/yarn
which matches the binary we expect to find. This is slightly different the@yarnpkg/cli-dist
layout which uses a portable shell script atyarn/bin
that callsnode /path/to/yarn.js
.