As a good soul 😇, you have done a pull request with the fix. But what if the pull request is not yet accepted and you need this fix to deploy your project?! 🤔
Patch-Package is a tool to
patch a dependency, it will create a
.patch file and it will patch the package after each npm install.
- Open the file you want to edit and add your fix.
- Run :
npx patch-package package-name
This will create a
.patch file under a new repository
Commit this file to your git repository
Finally add following script to your
package.json. This will run after each
npm installand will patch the package.