Version: 10.x
pnpm exec
プロジェクトのスコープでシェルコマンドを実行します。
node_modules/.bin
is added to thePATH
, sopnpm exec
allows executing commands of dependencies.
例
If you have Jest as a dependency of your project, there is no need to install Jest globally, just run it withpnpm exec
:
pnpm exec jest
Theexec
part is actually optional when the command is not in conflict with a builtin pnpm command, so you may also just run:
pnpm jest