Skip to content

PNPM

PNPM is a fast, disk space efficient package manager

Install

npm i -g pnpm@latest

Executing tools (npx)

pnpm dlx <my-tool>

Workspaces

Create a pnpm-workspace.yaml with the paths of packages you want to be part of the workspace.

pnpm-workspace.yaml
packages:
    - "packages/*"
    - "apps/*"

Create a .npmrc and enable hoisting, some tools need it.

.npmrc
shamefully-hoist = true

Resources


Last update: August 5, 2023
Created: May 27, 2023