脚本
pnpm 如何处理 package.json 的 scripts 字段。
¥How pnpm handles the scripts field of package.json.
生命周期脚本
¥Lifecycle Scripts
pnpm:devPreinstall
仅在本地 pnpm install 上运行。
¥Runs only on local pnpm install.
在安装任何依赖之前运行。
¥Runs before any dependency is installed.
该脚本仅在根项目的 package.json.conf 中设置时才会执行。
¥This script is executed only when set in the root project's package.json.