Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Latest commit

 

History

History
31 lines (25 loc) · 638 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 638 Bytes

Patch Package

Most code is from https://github.com/ds300/patch-package

Install:

$ bun add @xhyrom/patch-package
$ pnpm add @xhyrom/patch-package
$ yarn add @xhyrom/patch-package
$ npm i @xhyrom/patch-package

Run

# fix a bug in one of your dependencies
vim node_modules/some-package/brokenFile.js

# start patch-package
npx @xhyrom-patch-package some-package
# with bun: bun node_modules/@xhyrom/patch-package some-package

Setup

"scripts": {
+    "postinstall": "@xhyrom-patch-package"
}

With bun:

You need run bun node_modules/@xhyrom/patch-package after every bun add some-package