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

cannot patch .gradle file

Open vladp opened this issue 5 years ago • 3 comments

Trying to patch a gradle script (which is part of an npm package)

I tried yarn patch-package @react-native-community/cli

and yarn patch-package --include ./node_modules/@react-native-community/cli-platform-android/native_modules.gradle @react-native-community/cli

The error I get is:

$ /home/v/myproj/FRONTEND/rn.common/node_modules/.bin/patch-package --include ./node_modules/@react-native-community/cli-platform-android/native_modules.gradle @react-native-community/cli
patch-package 6.2.2
• Creating temporary folder
• Installing @react-native-community/[email protected] with yarn
• Diffing your files with clean files
⁉️  Not creating patch file for package '@react-native-community/cli'
⁉️  There don't appear to be any changes.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

but the change is there, as I modified ./node_modules/@react-native-community/cli-platform-android/native_modules.gradle

vladp avatar Apr 25 '20 03:04 vladp

I am having the same issue.

kaogire avatar Aug 18 '21 20:08 kaogire

I am having the same issue.

thekalko avatar Oct 24 '21 18:10 thekalko

@ds300 hi, does this support changes other than .js or .ts files?

xgenem avatar Aug 27 '22 11:08 xgenem