yarn patch
This command will cause a package to be extracted in a temporary directory (under a folder named "patch-workdir"). This folder will be editable at will; running yarn patch
inside it will then cause Yarn to generate a patchfile and register it into your top-level manifest (cf the patch:
protocol)..
Usage
$> yarn patch <package>