Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to exclude android\build folder? #531

Open
bradstiff opened this issue Aug 8, 2024 · 1 comment
Open

How to exclude android\build folder? #531

bradstiff opened this issue Aug 8, 2024 · 1 comment

Comments

@bradstiff
Copy link

What would be the syntax to patch a package, excluding the contents of the android\build folder?

I tried --exclude "android\build" but it didn't work.

@meramsey
Copy link

this has worked for me @bradstiff

depending on your OS you may have to escape things differently on windows vs linux which is what the below is setup for.

"patch-package": "patch-package --exclude '(^\\.git/|^\\.vscode/|^android/.gradle/|^android/.idea/|^android/.project|^android/.settings/|^android/app/build/|^android/build/|^config.json|^dist/|^fastlane/report.xml|^ios/build/|^ios/DerivedData/|^ios/Pods/|^lib/|^node_modules/|^package-lock.json|^src/modules.ts|.*npm-cache.*|.*\\.DS_Store|.*.env|.*.mobileprovision)'",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants