benchmarks-of-javascript-package-managers icon indicating copy to clipboard operation
benchmarks-of-javascript-package-managers copied to clipboard

Replace Yarn PnP w/ Yarn 2

Open arcanis opened this issue 4 years ago • 5 comments

Since Yarn 2 has PnP enabled (with a better implementation as Yarn 1), I think it would make more sense to use that.

To use Yarn 2, the following command has to be run within the project outside of the benchmark:

yarn policies set-version berry

Some other particularities:

  • to remove the cache, better use yarn cache clean --all. You also can add enableGlobalCache which will use a unique cache (otherwise it'll have a first global cache, then a per-project cache).

  • when removing the n_m, you'll instead want to remove the .pnp.js file for PnP (I think it's currently marked as n/a)

arcanis avatar Jan 05 '20 11:01 arcanis

I don't have objections

zkochan avatar Jan 05 '20 12:01 zkochan

I would prefer if it was added along with yarn PnP than replaced, it should give a better picture of the overall packaging landscape.

omeid avatar Jan 31 '20 00:01 omeid

Not really, the 1.x PnP implem was an experiment branch we never bumped to production. The amount of people who care about that is small.

arcanis avatar Jan 31 '20 07:01 arcanis

Can you explain what do you mean by bumped to production?

omeid avatar Feb 02 '20 23:02 omeid

Bumping and +1. Would be great to know if it's worth switching from Yarn 2 from a benchmarking POV

doamatto avatar Feb 24 '21 05:02 doamatto