pnpm / benchmarks-of-javascript-package-managers

Benchmarks of JavaScript Package Managers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace Yarn PnP w/ Yarn 2

arcanis opened this issue · 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)

I don't have objections

commented

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

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.

commented

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

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