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 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 bypnpm patch
.
配置项
---patches-dir <patchesDir>
生成的补丁文件将保存到该目录。 By default, patches are saved to the patches
directory in the root of the project.