Back to Pnpm Io

pnpm patch-commit

versioned_docs_archived/version-7.x/cli/patch-commit.md

latest338 B
Original Source

Added in: v7.4.0

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

sh
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.