pnpm rebuild
别名: rb
重新运行已安装依赖的生命周期(构建)脚本。重建会保留上次安装所包含的依赖组。
pnpm rebuild [<pkg>...]
指定包名时,只会重建这些包。未指定时,会重建每个需要构建的依赖。
A rebuild script in package.json overrides the command, and an rb script overrides pnpm rb. See pnpm pm.
配置项#
--pending#
Rebuild only the packages that were not built during installation, such as under --ignore-scripts.
pnpm rebuild --pending
--recursive, -r#
此命令在 monorepo 的每个包中运行一个命令。
--no-bail#
See --no-bail.