pnpm rebuild
별칭: rb
Re-runs the lifecycle (build) scripts of installed dependencies. The rebuild keeps the dependency groups that the last install included.
pnpm rebuild [<pkg>...]
With package names, only those packages are rebuilt. Without them, every dependency that requires a build is rebuilt.
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#
이 명령은 모노레포의 모든 패키지에서 pnpm rebuild 명령을 실행합니다.
--no-bail#
See --no-bail.