How to exclude android\build folder?
bradstiff opened this issue · 1 comments
bradstiff commented
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 commented
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)'",