본문으로 건너뛰기
버전: Next

pnpm patch-commit <path>

Generate a patch out of a directory and save it (inspired by a similar command in Yarn).

This command will compare the changes from path to the package it was supposed to patch, generate a patch file, save the a patch file to patchesDir (which can be customized by the --patches-dir option), and add an entry to patchesDependencies in the top level manifest file.

사용법:

pnpm patch-commit <path>
  • path is the path to a modified copy of the patch target package, it is usually a temporary directory generated by pnpm patch.

옵션

---patches-dir <patchesDir>

생성된 패치 파일은 이 디렉토리에 저장됩니다. 기본적으로 패치는 프로젝트 루트의 패치 디렉토리에 저장됩니다.