ds300 / patch-package

Fix broken node modules instantly 🏃🏽‍♀️💨
MIT License
10.46k stars 295 forks source link

Error: There don't appear to be any changes #492

Open jacquesdev opened 1 year ago

jacquesdev commented 1 year ago

Trying this with a package, and it says there are no changes, however there are. The changes are in the package.json of this package, not sure if that is why it's being ignored for some reason. I've also deleted my local node_modules and re-installed them just to be sure, but it didn't make a difference.

patch-package 8.0.0
• Creating temporary folder
• Installing @segment/analytics-react-native-plugin-firebase@0.3.10 with npm
• Diffing your files with clean files
⁉️  Not creating patch file for package '@segment/analytics-react-native-plugin-firebase'
⁉️  There don't appear to be any changes.
mgol commented 1 year ago

I have the same issue applying this PR: https://github.com/andywer/threads.js/pull/470 to my local installation of the threads package. It does seem package.json may erroneously be excluded...

mgol commented 1 year ago

It seems this has already been covered here: https://github.com/ds300/patch-package/issues/128#issuecomment-467558298

mgol commented 1 year ago

For the record, running:

npx patch-package --exclude '^$' threads 

worked for me.