pnpm exec
在專案的範圍中執行 Shell 命令。
node_modules/.bin
is added to the PATH
, so pnpm exec
allows executing commands of dependencies.
Examples
If you have Jest as a dependency of your project, there is no need to install Jest globally, just run it with pnpm exec
:
pnpm exec jest