Back to Pnpm Io

pnpm run

versioned_docs_archived/version-3.x/pnpm-run.md

latest413 B
Original Source

Runs a defined package script.

pnpm run <command> [-- <args>...]

In addition to the shell’s pre-existing PATH, pnpm run adds node_modules/.bin to the PATH provided to scripts. As of v3.5, when executed inside a workspace, <workspace root>/node_modules/.bin is also added to the PATH, so if a tool is installed in the workspace root, it may be called in any workspace package's scripts.