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

feature suggestion: remove yarn requirement #2881

Open
mikemaccana opened this issue Apr 2, 2024 · 2 comments
Open

feature suggestion: remove yarn requirement #2881

mikemaccana opened this issue Apr 2, 2024 · 2 comments
Labels
cli enhancement New feature or request

Comments

@mikemaccana
Copy link
Contributor

mikemaccana commented Apr 2, 2024

Similar to #2839 - originally there were a few reasons to add a yarn dependency

There's a few downsides to yarn too:

  • when we teach a class and point people to the anchor install page everyone has to manually install yarn dependency along with Rust and Solana CLI. Removing yarn would significantly reduce the steps.
  • npm ships with node, and is used in all previous labs to run package.json scripts.
  • npm has it's own lock file name, though it will use yarn, it will also tell you it's using yarn, and warnings will appen when both lockfiles are used.

There doesn't seem to be a good reason to require a third party package manage manager anymore.

As @acheroncrypto mentioned in #2839:

It's always good to have less dependencies

😁

@acheroncrypto acheroncrypto added enhancement New feature or request cli labels Apr 2, 2024
@acheroncrypto
Copy link
Collaborator

To add to the downsides you mentioned, I was a fan of yarn but their v3 release was quite annoying to upgrade, so I think it's worth moving away from it.

@beeb
Copy link

beeb commented Apr 25, 2024

To add to the list, yarn v4 is not compatible with VSCode out of the box. It requires a special VSCode extension (ZipFS) and needs additional commands to add a typescript SDK, and finally the version of typescript that is used needs to changed manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants