-
-
Notifications
You must be signed in to change notification settings - Fork 643
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
Support for yarn@berry #4568
Comments
I'm not at all familiar with Yarn Berry. Does Adonis work with Yarn Berry? Have you been able to try?
As I was saying, I think nobody in the team is super familiar with yarn berry. So this is an initiative that someone in the community should lead About older version of |
Yeah. I think our goal is to support npm and pnpm (latest) versions. Yarn had massive changes with every version and we are not even aware of what all those changes are. Bun is also very much in experimental state. Infact, we recently updated our docs to just mention I will close this issue for now. |
For the record if needed, I have indeed been able to try by patching locally adonis and it works perfecly once the support for yarn berry is added. |
I agree with @rault-a. We should not stop people trying to use Yarn Berry or Bun to install dependencies. It seems to be an easy fix that will help people that already know what they are doing. |
Yeah same. If we are sure that Adonis works correctly with these packages manager and that it only requires a few lines to be changed, then I don't see any reason to not support it Especially as Yarn has a huge number of users, more than pnpm if I am not wrong. Not supporting it would cut us off from a large part of the community |
Hello, I quickly check the other places mentioned by @Julien-R44 (because I did not had any issue between It seems those places (codemod and bundler) fallback on For the Still open to make the PR if needed, at least for the |
Yup, happy to accept a PR for that! Thanks |
Can this we closed since the PR has been merged? |
Yes! |
We are still missing updates for the bundler, codemods and create-adonisjs @rault-a do you plan to create a PR for this ? |
Yes, but I am waiting for the release of the assembler, required to update the core (otherwise, there is a typing issue) |
Package version
6.9.0
Describe the bug
Hello 👋🏻
When adding a package with
node ace add
, it throw an error and crashes when using yarn berry (yarn v2, v3 or v4).In
@antfu/install-pkg
, when using yarn berry, it returnsyarn@berry
instead ofyarn
but@adonisjs/core
checks that the package manager isyarn
,npm
orpnpm
. Just addingyarn@berry
to the list of supported package managers incommands/add.ts:48
fixes the issue.Also,
@antfu/install-pkg
can returnpnpm@6
for older version of pnpm, orbun
for bun, but I did not test those.I can do a PR for this issue if you want, at least for
yarn@berry
, not sure the support for bun or the older versions of pnpm is something that we want.Reproduction repo
No response
The text was updated successfully, but these errors were encountered: