pnpm patch-commit <path>
디렉터리에서 패치를 생성하고 저장합니다(Yarn의 유사한 명령어에서 영감을 받음).
This command will compare the changes from path to the package it was supposed to patch, generate a patch file, save the patch file to patchesDir (which can be customized by the --patches-dir option), and add an entry to patchedDependencies.
사용법:
pnpm patch-commit <path>
path는 패치 대상 패키지의 수정된 사본 경로이며, 보통pnpm patch가 생성한 임시 디렉터리입니다.
옵션#
--patches-dir <patchesDir>#
생성된 패치 파일은 이 디렉토리에 저장됩니다. 기본적으로 패치는 프로젝트 루트의 patches 디렉터리에 저장됩니다.