# vp pm patch-commit

Save edits prepared with [patch](./patch) as a dependency patch.

```bash
vp pm patch-commit /path/to/edited-package
```

## Options

Supply the edit directory from the manager's patch workflow. There are no additional Vite+ options.

There are no command-specific options.

## Compatibility

- **npm:** 12 or later: `npm patch commit`. Earlier versions warn and skip.
- **pnpm:** 7.4 or later: `pnpm patch-commit`. Earlier versions warn and skip.
- **Yarn Classic:** No command. Warns and exits successfully without performing the operation.
- **Yarn Modern:** 3 or later: `yarn patch-commit --save`. Earlier versions warn and skip.
- **Bun:** `bun patch --commit`.

Review and commit the patch and any manifest or lockfile changes produced by the manager.

## Native Options

For native options, see [npm patch commit](https://docs.npmjs.com/cli/v12/commands/npm-patch), [pnpm patch-commit](https://pnpm.io/cli/patch-commit), [Yarn patch-commit](https://yarnpkg.com/cli/patch-commit), and [Bun patch --commit](https://bun.com/docs/pm/cli/patch). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
