You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create .yarnrc file with contents yarn-path ".yarn/releases/yarn-<version>.js"
exclude .yarn/* in tsconfig.json
git add .yarn .yarnrc tsconfig.json && git commit
The need to have some Yarn version (v1.0 or better) installed on the system remains. The yarn-path option is used to defer execution to the given binary.
As a result, both automation (e.g. 🐳 Dockerfiles) and 👨💼👩💼 developers will effectively use the same Yarn version and, even better, switching to a newer version becomes super easy.
Drawing inspiration from Facebook's Jest 🃏 project, there's an alternative way to manage Yarn 📦 installation.
Following steps are based on jestjs/jest#8095:
.yarn/releases
directoryyarn-<version>.js
to.yarn/releases
.yarnrc
file with contentsyarn-path ".yarn/releases/yarn-<version>.js"
.yarn/*
intsconfig.json
git add .yarn .yarnrc tsconfig.json && git commit
The need to have some Yarn version (v1.0 or better) installed on the system remains. The
yarn-path
option is used to defer execution to the given binary.As a result, both automation (e.g. 🐳 Dockerfiles) and 👨💼👩💼 developers will effectively use the same Yarn version and, even better, switching to a newer version becomes super easy.
/cc @spadgett @jhadvig @christianvogt @priley86 @mareklibra @rawagner @jelkosz
The text was updated successfully, but these errors were encountered: