Follow

Any developers interested in taking up this challenge?

Build 1.x with 7.x

Yarn 2.x already moved to babel 7.x but there is no stable release for yarn 2.x and it is completely different from yarn 1.x.

This will help us ship yarn in (we already moved everything else to babel 7.x but could not port this yet) for next stable release bullseye.

It would be useful to nodejs developers to make initial installation of yarn easy.

The situation seems worse than I initially thought.

As per yarn 2 announcement blog,

dev.to/arcanis/introducing-yar

Yarn 2 can be installed using yarn 1 only!

Why do everyone has reinvent a different wheel?

@nodejs

@paolog tried packaging yarn 2 and this is what he found

bugs.debian.org/cgi-bin/bugrep

Quoting part of it,

"the tarball is 180 MB (up from ~70 MB for yarn 1) and has all dependencies needed to run yarn (!) including monaco-editor (?) from Microsoft (the code editor which powers VS Code), react-icons, 6 versions of the typescript tree (version 3.75, 3.95 and 4.1 and three patched versions) etc."

@paolog

So now installing yarn 2 on is like,

# apt install npm
# npm install -g yarn
$ yarn set version berry

@paolog with excellent troubleshooting by @akshay we finally have built with 7!

Thanks a lot Akshay for helping here and which also makes it possible to remove babel 6 from .

Thanks also to Paolo for maintaining yarnpkg. Its a bit of relief that all your packaging work was not lost as not shipping yarn in bullseye main would have been a big disappointment.

@praveen yes but the last line only applies locally in a project

@praveen @akshay that’s really a team upload ! Thanks for your efforts

@paolog @akshay
Another good news here. I got yarn 2 built using corepack sources!

I used a few npm dist tarballs in node_modules, once we package those, we can have yarn 2 in main.

@praveen @akshay I rejoice, and ready to play with it although there are many things I don’t grasp. You need to file an ITP and share a packaging repo ?

@paolog @akshay yes, I will get to it in the coming days. If you are impatient, you can start with the missing build dependencies (I shared the list in js team list).

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!