From 58a091099623028b75f36123ebcae0aa7cda19c3 Mon Sep 17 00:00:00 2001
From: Tom French <tom@tomfren.ch>
Date: Thu, 30 Jun 2022 22:43:50 +0100
Subject: [PATCH] build: remove deprecated nohoist settings and prevent
 hoisting of mobile dependencies

---
 package.json                | 24 ------------------------
 packages/mobile/.yarnrc.yml |  1 +
 2 files changed, 1 insertion(+), 24 deletions(-)
 create mode 100644 packages/mobile/.yarnrc.yml

diff --git a/package.json b/package.json
index de1fe3374..64025a752 100644
--- a/package.json
+++ b/package.json
@@ -15,30 +15,6 @@
   "workspaces": {
     "packages": [
       "packages/*"
-    ],
-    "nohoist": [
-      "**/better-sqlite3",
-      "**/better-sqlite3/**",
-      "mobile/react-native",
-      "mobile/react-native-*",
-      "mobile/rn-fetch-blob",
-      "mobile/**/event-target-shim",
-      "mobile/@sentry/react-native",
-      "mobile/nodejs-mobile-react-native",
-      "**/mobile/nodejs-mobile-react-native/**",
-      "**/@react-native-community/**",
-      "**/@react-navigation/**",
-      "mobile/react-navigation",
-      "mobile/react-navigation-tabs",
-      "mobile/rn-snoopy",
-      "mobile/rn-snoopy/**",
-      "mobile/detox",
-      "mobile/detox/**",
-      "mobile/jsc-android",
-      "mobile/jsc-android/**",
-      "**/react-native-web",
-      "**/react-native-web/**",
-      "**/@sentry/cli"
     ]
   },
   "scripts": {
diff --git a/packages/mobile/.yarnrc.yml b/packages/mobile/.yarnrc.yml
new file mode 100644
index 000000000..72cf3b413
--- /dev/null
+++ b/packages/mobile/.yarnrc.yml
@@ -0,0 +1 @@
+nmHoistingLimits: workspaces
-- 
GitLab