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

pnpm patch <pkg>

패칭을 위한 패키지를 준비합니다(Yarn의 유사한 명령에서 영감을 받음).

이 명령은 마음대로 편집할 수 있도록 임시 디렉토리에 패키지를 추출합니다.

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.

사용법:

pnpm patch <pkg name>@<version>

옵션

--edit-dir &lt;dir>

패치가 필요한 패키지는 이 디렉터리로 추출됩니다.

--ignore-existing

패치할 때 기존에 존재하는 패치 파일을 무시합니다.