pnpm approved-builds
已添加于:v10.1.0
¥Added in: v10.1.0
批准在安装期间运行脚本的依赖。
¥Approve dependencies for running scripts during installation.
已批准的依赖将添加到 pnpm-workspace.yaml 中的 onlyBuiltDependencies 数组中,而未批准的依赖将保存到 ignoredBuiltDependencies。如果你愿意,也可以手动更新这些设置。
¥The approved dependencies are added to the onlyBuiltDependencies array in pnpm-workspace.yaml, while unapproved ones are saved to ignoredBuiltDependencies. 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.