patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

Error: There don't appear to be any changes

Open jacquesdev opened this issue 2 years ago • 3 comments

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/[email protected] 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.

jacquesdev avatar Sep 21 '23 14:09 jacquesdev

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 avatar Sep 25 '23 16:09 mgol

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

mgol avatar Sep 25 '23 16:09 mgol

For the record, running:

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

worked for me.

mgol avatar Sep 25 '23 16:09 mgol