@yarnpkg/plugin-patch

4.0.2 • Public • Published

@yarnpkg/plugin-patch

This plugin adds support for the patch: protocol.

Install

This plugin is included by default in Yarn.

Usage

  1. Run yarn patch <package name> and edit the resulting folder.

  2. Once you're ready, run yarn patch-commit -s <patch folder> to store the result inside a .patch file.

  3. Add the patch: protocol to your dependencies as such:

{
  "dependencies": {
    "lodash": "patch:lodash@1.0.0#./my-patch-file.patch"
  }
}

Caveat

You cannot add dependencies through the patch: protocol. Check this FAQ entry for more details.

/@yarnpkg/plugin-patch/

    Package Sidebar

    Install

    npm i @yarnpkg/plugin-patch

    Weekly Downloads

    31,725

    Version

    4.0.2

    License

    BSD-2-Clause

    Unpacked Size

    72.1 kB

    Total Files

    25

    Last publish

    Collaborators

    • daniel15
    • bestander
    • cpojer
    • arcanis
    • yarnbot