Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Replace Yarn PnP w/ Yarn 2 #31

@arcanis

Description

@arcanis
Collaborator

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)

Activity

zkochan

zkochan commented on Jan 5, 2020

@zkochan
Member

I don't have objections

omeid

omeid commented on Jan 31, 2020

@omeid

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

arcanis

arcanis commented on Jan 31, 2020

@arcanis
CollaboratorAuthor

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.

omeid

omeid commented on Feb 2, 2020

@omeid

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

linked a pull request that will close this issue on Feb 11, 2020
doamatto

doamatto commented on Feb 24, 2021

@doamatto

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @arcanis@omeid@zkochan@doamatto

      Issue actions

        Replace Yarn PnP w/ Yarn 2 · Issue #31 · pnpm/benchmarks-of-javascript-package-managers