Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/settings/_shellEmulator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ next script will fail on non-POSIX-compliant systems:
But if the `shellEmulator` setting is set to `true`, it will work on all
platforms.

:::note

Node.js 22 or higher supports running scripts without pnpm's assistance. For the example above, you can run the `test` script with `node --run test`. However, the `shellEmulator` option has no effect on this. Scripts that depend on POSIX features are required to be run `pnpm run` instead of `node --run` to work in non-POSIX-compliant environments.

:::

[bash-like shell]: https://www.npmjs.com/package/@yarnpkg/shell