pnpm8.x 문서는 업데이트되지 않습니다.
최신 문서는최신 버전 (10.x)입니다.
버전: 8.x
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 frompath
to the package it was supposed to patch, generate a patch file, save the a patch file topatchesDir
(which can be customized by the--patches-dir
option), and add an entry topatchesDependencies
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 bypnpm patch
.
옵션
---patches-dir <patchesDir>
The generated patch file will be saved to this directory. By default, patches are saved to thepatches
directory in the root of the project.