android – How to update .patch file

0
166


I’m using the patch-package library to persist some changes in the node-module files (npm i patch-package), I followed the steps described in the package github repo :

run patch-package to create a .patch file
npx patch-package some-package

and I have a .patch package created in my project. Then the next day I had to apply changes to another node-module file and I run npx patch-package some-package command but the .patch didn’t get updated (I see only the fix that I’ve applied the 1st day to the 1st node-module). How can I update the .patch to include all the changes that I make to the node-module files? Any help and suggestion is greatly appreciated.