Skip to content

Adopt pnpm as a package manager for this Repository #5327

@ovflowd

Description

@ovflowd

Hey, you all 👋 after doing some experimentation, I wanted to ask the team (cc @nodejs/website) what you think about adopting pnpm as the package manager for this repository.

Some of the key caveats/benefits I've noticed:

  • Installing packages on CI reduced 60% from (varying 20-50seconds to blazingly 4-7 seconds)
  • Running package binaries do not require npx
  • Native monorepo support if we ever need
  • Smaller node_modules and cache footprint (making the GitHub Actions cache storage have more space) (Around 70% less footprint)

Some of the disadvantages:

  • Requires Extra Step on CI to install PNPM or use Corepack
  • Not natively installed with Node.js, so newcomers need also to install pnpm

I also want the opinion of the @nodejs/build team and the TSC @nodejs/tsc as I want to ensure that this change is not controversial nor conflicting with any of our bylaws and/or creates an adverse affect on the "npm" package manager (as if this repository does any endorsement to pnpm over npm which is not the case).

Metadata

Metadata

Assignees

No one assigned

    Labels

    infrastructureIssues/PRs related to the Repository Infra

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions