Back to Berry

Patch Protocol

packages/docusaurus/docs/advanced/01-general-reference/protocols/patch.mdx

2026-04-17450 B
Original Source

The patch: protocol applies a patch to the package source. This is useful for applying bug fixes that have not yet been merged into the main package source.

yarn add @types/react@patch:@types/[email protected]#./my-patches/react-types.patch

Generating a patch

Patches are meant to be generated by the yarn patch workflow rather than created manually.

Check the patching documentation for all details.