-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 yarn.lock
in bun pm migrate
#6409
Comments
Note Yarn Classic (v1) and Yarn Berry (v2+) uses completely different lockfile formats. Is this tracking both? |
Looking forward to this. We tried to do yarn.lock -> package-lock.json -> bun. But we lost too much context and couldn't build the apps. |
This would be amazing and help us incrementally adopt bun |
This is tracking Yarn v1 because npm download stats suggest more people use it. |
@Jarred-Sumner, you cannot rely on npm download stats. Here's why: https://twitter.com/wojtekmaj91/status/1679944016941527040
|
Actually, this inspired me to measure package managers popularity it as accurately as possible. Here are the results. https://dev.to/wojtekmaj/package-manager-wars-the-real-picture-e9p |
I hope bun can add support for loading and writing Yarn v1 lock file directly, so we can use bun as a drop-in replacement for Yarn v1, because current workflow and keyboard muscle memory are not easily to change.
I think Yarn v1 stills has large users, see the Yarn v4 document Migrating from 1.x / npm, and Alpine Linux only pack Yarn v1. I don't like Yarn v4, it makes a package manager so complex, they don't release a standalone binary for Yarn v4, it need you to use Corepack, a package manager depency another pacakge manger, it doesn't make sense. When I use Yarn v1 to replace
I don't need any advanced features like PnP, workspace, just need it downloads the package files fast. |
@john-griffin |
any progress here?( it is very strange that bun can print yarn.lock but cannot do reverse |
Would love to know an update on this |
would love if bun support the yarn lockfile v2+(4.0+). Compare to yarn lockfile v1, the yarn.lock file doesn't include any registry information, so that lockfile is registry url independent. yarn lockfile v1:
yarn lockfile v2+:
|
Tracking issue following up from #1751
The text was updated successfully, but these errors were encountered: