Skip to content

Commit

Permalink
Unvendor Yarn; favor Corepack for installation
Browse files Browse the repository at this point in the history
According to the Yarn documentation, Yarn no longer needs to be bundled
with a project, but rather, installing Yarn ought to be done using
[Corepack](https://yarnpkg.com/corepack), which is shipped in modern
Node versions. This commit removes the Yarn binary from the repo and
updates the installation instructions in the README to match.
  • Loading branch information
mcmire committed Apr 25, 2024
1 parent b14503d commit 663cdea
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 896 deletions.
893 changes: 0 additions & 893 deletions .yarn/releases/yarn-4.1.1.cjs

This file was deleted.

2 changes: 0 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ nodeLinker: node-modules
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-allow-scripts.cjs
spec: "https://raw.githubusercontent.com/LavaMoat/LavaMoat/main/packages/yarn-plugin-allow-scripts/bundles/@yarnpkg/plugin-allow-scripts.js"

yarnPath: .yarn/releases/yarn-4.1.1.cjs
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ See our documentation:

- Install the current LTS version of [Node.js](https://nodejs.org)
- If you are using [nvm](https://github.com/creationix/nvm#installation) (recommended) running `nvm install` will install the latest version and running `nvm use` will automatically choose the right node version for you.
- Install [Yarn v3](https://yarnpkg.com/getting-started/install)
- Install [Yarn](https://yarnpkg.com) v4 via [Corepack](https://github.com/nodejs/corepack?tab=readme-ov-file#how-to-install)
- Run `yarn install` to install dependencies and run any required post-install scripts

### Testing and Linting
Expand Down

0 comments on commit 663cdea

Please sign in to comment.