Skip to main content

Concern

Dependency installation and script execution (install, add, run).

Technology

pnpm

Documentation

Version

v10

Implementation

The boilerplate uses pnpm as the package manager. A single pnpm-lock.yaml at the repo root records all dependency versions. Run pnpm install from the root to install dependencies for every workspace. Use pnpm add (from root or from a workspace directory) to add dependencies; use pnpm run <script> to run scripts. Root-level scripts (e.g. dev, build, format) are run from the repo root with pnpm dev, pnpm build, pnpm format. To run a script in one workspace: pnpm --filter <package-name> run <script> (e.g. pnpm --filter shared run build). To run a script in every workspace: pnpm -r run <script> (e.g. pnpm -r run format). Use pnpm dlx to run a package without adding it (e.g. pnpm dlx shadcn@latest create …).

Integration

monorepo / pnpm workspaces

Workspace layout, package list, and workspace:* dependencies are defined in monorepo. This rule covers the package manager and CLI: pnpm version, lockfile, and how to run install/add/run/-r/--filter. Scripts that orchestrate the monorepo (root dev, build, format) are implemented in the root package.json and run via pnpm from the project root.