Code blocks that hold only shell commands now use the `sh` language, and blocks showing a file's contents carry a `title` naming the file, across the pnpm v12, pnpm v11, and pnpr docs. Bold file-name labels above code blocks are folded into the titles. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
459 B
Plaintext
15 lines
459 B
Plaintext
### scriptShell
|
|
|
|
* Default: **null**
|
|
* Type: **path**
|
|
|
|
The shell to use for scripts run with the `pnpm run` command.
|
|
|
|
For instance, to force usage of Git Bash on Windows:
|
|
|
|
```sh
|
|
pnpm config set scriptShell "C:\\Program Files\\git\\bin\\bash.exe"
|
|
```
|
|
|
|
Since v11.26.0, a relative path in `pnpm-workspace.yaml` resolves from the workspace root, including for scripts that run in a nested package. A bare command name such as `bash` is still looked up on `PATH`.
|