Skip to content

Instantly share code, notes, and snippets.

@shafayeatsumit
Created September 15, 2022 10:02
Show Gist options
  • Save shafayeatsumit/dd504eafe397c75d2829acd647bbe055 to your computer and use it in GitHub Desktop.
Save shafayeatsumit/dd504eafe397c75d2829acd647bbe055 to your computer and use it in GitHub Desktop.
using patch packages
step 1. yarn add -D patch-package postinstall-postinstall
step 2. make change to the files
setp 3. # run patch-package to create a .patch file
npx patch-package some-package
you will see a new folder is created inside `patches`
step 4.
"scripts": {
"postinstall": "patch-package"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment