跳至主要內容
版本:7.x

pnpm patch-commit <path>

新增於 v7.4.0

從特定目錄中產生 patch(靈感來自 Yarn中的類似命令)。

pnpm patch-commit <patchDir>

Options

---patches-dir <dir>

Added in: v7.30.0

The generated patch file will be saved to this directory. By default, patches are saved to the patches directory in the root of the project.