Skip to content

Commit

Permalink
Fix RNGH not working in pnpm project (#2334)
Browse files Browse the repository at this point in the history
## Description

in pnpm project, there will be many RNGH instances since some package has depend on RNGH, pnpm will generate such folder, which will break `noMultipleInstancesAssertion` function
  • Loading branch information
chj-damon authored Dec 8, 2022
1 parent 0ba8a5f commit 1031673
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def noMultipleInstancesAssertion() {
Set<File> files = fileTree(rootDir.parent) {
include "node_modules/**/react-native-gesture-handler/package.json"
exclude "**/.yarn/**"
exclude "**/.pnpm/**"
}.files

if (files.size() > 1) {
Expand Down

0 comments on commit 1031673

Please sign in to comment.