pnpm

Solid

Opinionated pnpm configuration for single-package repos and monorepos — pnpm-workspace.yaml as pnpm's settings file (supply-chain safety via minimumReleaseAge/trustPolicy, build allowlists, overrides, peer-dependency rules, .npmrc) plus the monorepo layout (package globs, workspace linking, catalogs, requiredScripts). Auto-applies when editing pnpm-workspace.yaml or .npmrc.

AI & Automation 1 stars 0 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
10
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# pnpm Configuration `pnpm-workspace.yaml` at the repo root is where pnpm's behavior is configured — **for any repo, single-package or monorepo.** The supply-chain, build-allowlist, override, and peer-dependency sections below apply everywhere; a single-package repo keeps this file for exactly those settings and simply omits the workspace-layout section (`packages`, linking, catalogs, `requiredScripts`), which only a monorepo needs. Group settings by intent and keep a short comment (often a `https://pnpm.io/settings#...` link) above any non-obvious key. ## Monorepo: workspace layout & linking > Workspace-only — omit in a single-package repo. ```yaml packages: - projects/* - packages/* # Use the workspace protocol for local packages linkWorkspacePackages: deep # Copy (not symlink) workspace deps so builds match what ships injectWorkspacePackages: true # Install the package manager version pinned in package.json managePackageManagerVersions: true ``` ## Monorepo: catalogs > Workspace-only — a single-package repo has nothing to share, so skip this. When several workspace packages share a dependency, pin its version **once** in a catalog so they can never drift apart. Define a default catalog (and optional named catalogs for staged migrations); packages then reference `catalog:` instead of a literal range. ```yaml # pnpm-workspace.yaml catalog: react: ^18.2.0 react-dom: ^18.2.0 catalogs: # referenced as "catalog:react17" react17: react: ^17.0.2 react...

Details

Author
virajp
Repository
virajp/ai-plugins
Created
2 months ago
Last Updated
yesterday
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category