File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ YARN_VERSION="4.9.4"
1111# Definition specific tests
1212check " version" node --version
1313check " pnpm" pnpm -v
14+ check " yarn" yarn --version
1415
1516# Corepack provides shims for package managers like yarn. The first time yarn is invoked via the "yarn"
1617# command, corepack will interactively request permission to download the yarn binary. To
Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ YARN_VERSION="4.9.4"
1111# Definition specific tests
1212check " version" node --version
1313check " pnpm" pnpm -v
14+ check " yarn" yarn --version
1415
1516# Corepack provides shims for package managers like yarn. The first time yarn is invoked via the "yarn"
1617# command, corepack will interactively request permission to download the yarn binary. To
1718# avoid this interactive mode and download the binary automatically, we explicitly call "corepack use yarn"
1819# instead (doesn't require user input). Once that command completes, "yarn" can be used in a non-interactive mode.
20+
1921check " yarn shim location" bash -c " . /usr/local/share/nvm/nvm.sh && type yarn &> /dev/null"
2022check " download yarn" bash -c " . /usr/local/share/nvm/nvm.sh && corepack use yarn@${YARN_VERSION} "
2123check " yarn version" bash -c " . /usr/local/share/nvm/nvm.sh && yarn --version | grep ${YARN_VERSION} "
You can’t perform that action at this time.
0 commit comments