본문으로 건너뛰기
버전: 7.x

pnpm patch <pkg>

버전 7.4.0에서 추가됨

Prepare a package for patching (inspired by a similar command in Yarn).

This command will cause a package to be extracted in a temporary directory intended to be editable at will.

Once you're done with your changes, run pnpm patch-commit <path> (with <path> being the temporary directory you received) to generate a patchfile and register it into your top-level manifest via the patchedDependencies field.

Usage:

pnpm patch <pkg name>@<version>

옵션

--edit-dir <dir>

Added in: v7.11.0

The package that needs to be patched will be extracted to this directory.