pnpm

Verified·Scanned 2/18/2026

This skill documents pnpm usage for Node.js workspaces, CI, Docker, patches, and workspace configuration. It includes explicit shell commands (e.g., pnpm install), writes STORE_PATH to $GITHUB_ENV, and references registries like https://registry.npmjs.org/.

by onmax·v6205807·19.0 KB·317 installs
Scanned from main at 6205807 · Transparency log ↗
$ vett add onmax/nuxt-skills/pnpm

pnpm

Content-addressable store, strict deps, workspace protocol, catalogs.

When to Use

  • Installing/managing npm packages
  • Monorepo workspace setup with catalogs
  • Overriding transitive dependencies
  • Patching third-party packages
  • CI/CD configuration for pnpm projects
  • Supply chain security hardening

Quick Start

pnpm install                      # Install deps
pnpm add <pkg>                    # Add dep
pnpm add -D <pkg>                 # Dev dep
pnpm -r run build                 # Run in all packages
pnpm --filter @myorg/app build    # Run in specific package

Workspace Setup

# pnpm-workspace.yaml
packages:
  - 'packages/*'
  - 'apps/*'

# Catalogs for centralized version management
catalog:
  react: ^18.2.0
  typescript: ~5.3.0
// package.json - Use workspace protocol and catalogs
{
  "packageManager": "pnpm@10.28.2",
  "dependencies": {
    "@myorg/utils": "workspace:^",
    "react": "catalog:"
  }
}

Reference Files

TaskFile
Commands, scripts, filteringcli.md
Workspaces, catalogs, configworkspaces.md
Overrides, patches, hooks, storefeatures.md
CI/CD, Docker, migrationci.md

Loading Files

Consider loading these reference files based on your task:

  • references/cli.md - if using pnpm commands, scripts, or filtering
  • references/workspaces.md - if setting up monorepo, catalogs, or workspace config
  • references/features.md - if using overrides, patches, hooks, or managing store
  • references/ci.md - if configuring CI/CD, Docker, or migrating from npm/yarn

DO NOT load all files at once. Load only what's relevant to your current task.

Cross-Skill References

  • TypeScript libs → Use ts-library skill for library patterns
  • Build tooling → Use tsdown or vite skills