Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative way to manage Yarn installation #1363

Closed
vojtechszocs opened this issue Mar 30, 2019 · 1 comment
Closed

Alternative way to manage Yarn installation #1363

vojtechszocs opened this issue Mar 30, 2019 · 1 comment

Comments

@vojtechszocs
Copy link
Contributor

Drawing inspiration from Facebook's Jest 🃏 project, there's an alternative way to manage Yarn 📦 installation.

Following steps are based on jestjs/jest#8095:

  1. create .yarn/releases directory
  2. copy yarn-<version>.js to .yarn/releases
  3. create .yarnrc file with contents yarn-path ".yarn/releases/yarn-<version>.js"
  4. exclude .yarn/* in tsconfig.json
  5. 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

vojtechszocs added a commit to vojtechszocs/console that referenced this issue Apr 5, 2019
@vojtechszocs
Copy link
Contributor Author

vojtechszocs commented Apr 9, 2019

Fixed by #1362 in master-next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants