Skip to main content

补丁协议

patch: 协议将补丁应用于包源。这对于应用尚未合并到主软件包源中的错误修复很有用。

¥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/react@18.0.0#./my-patches/react-types.patch

生成补丁

¥Generating a patch

补丁应该由 yarn patch 工作流生成,而不是手动创建。

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

查看 修补文档 了解所有详细信息。

¥Check the patching documentation for all details.