pnpm
Available Commands
| Command | Description |
|---|---|
| dispatch | Runs an arbitrary pnpm command (Terrabuild action name is forwarded to pnpm). |
| install | Installs packages with pnpm install, optionally honoring the lockfile and batching across workspaces. |
| build | Runs the build script (pnpm run build) across targeted workspaces. |
| test | Runs the test script (pnpm run test) across targeted workspaces. |
| run | Runs 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/**" ]
}