pnpm approve-builds
新增于:v10.1.0
🌐 Added in: v10.1.0
批准在安装期间运行脚本的依赖。
🌐 Approve dependencies for running scripts during installation.
经过批准的依赖会以值 true 添加到 pnpm-workspace.yaml 中的 allowBuilds 映射中,而未经批准的依赖则以值 false 保存。如果愿意,你也可以手动更新这些设置。
🌐 The approved dependencies are added to the allowBuilds map in pnpm-workspace.yaml with a value of true, while unapproved ones are saved with a value of false. You can also update these settings manually if you prefer.
选项
🌐 Options
--global, -g
新增于:v10.4.0
🌐 Added in: v10.4.0
批准全局安装的软件包的依赖。
🌐 Approve dependencies of globally installed packages.