Skip to main content
Version: 0.193.6

pnpm

Available Commands

CommandDescription
dispatchRuns an arbitrary pnpm command (Terrabuild action name is forwarded to pnpm).
installInstalls packages with pnpm install, optionally honoring the lockfile and batching across workspaces.
buildRuns the build script (pnpm run build) across targeted workspaces.
testRuns the test script (pnpm run test) across targeted workspaces.
runRuns an arbitrary pnpm script (pnpm run <target>).

Project Initializer

Computes default outputs and dependencies from package.json.

project {
@pnpm { }
}

Equivalent to:

project {
ignores = [ "node_modules/**" ]
outputs = [ "dist/**" ]
}