[openstreetmap/openstreetmap-website] Upgrade to Yarn v3 (PR #3515)

Daniele Basso notifications at github.com
Mon Mar 28 17:24:30 UTC 2022


1. Yarn 1 could be deprecated in any moment and it is in maintenance mode, and the new lockfile format can be more safe: in fact it doesn't use the complete urls of the remotes, but it pulls everything from npm's database; if you want to use custom repos you have to use the complete link in the package.json. So yes it could be even a maintenance task 
2. The v3 and v2 versions of yarn are ugly for this: if you upgrade you have to integrate the js code of yarn itself in your repository. In fact for upgrade i used `yarn set version berry` which pulls the js code from online to your repo. At the moment the only alternative should be [corepack](https://nodejs.org/dist/latest-v17.x/docs/api/corepack.html).
3. No, you can use node_modules as usual it is setted in the way to be retrocompatible
4. I will write now in this issue, because, if I'm right, nodejs 10 is in EOL at the moment. The flag it is removed from yarn, so it gives error trying

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3515#issuecomment-1080939250
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/3515/c1080939250 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220328/119c223a/attachment.htm>


More information about the rails-dev mailing list