Skip to content

Commit 3baa09a

Browse files
committed
Use project root instead of empty watch folders to detect macos
1 parent 32a57d8 commit 3baa09a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

apps/test-app/metro.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ const config = makeMetroConfig({
1111
},
1212
});
1313

14-
console.log("watchFolders =", config.watchFolders);
15-
16-
if (config.watchFolders.length === 0) {
14+
if (config.projectRoot.endsWith("macos-test-app")) {
1715
// This patch is needed to locate packages in the monorepo from the MacOS app
1816
// which is intentionally kept outside of the workspaces configuration to prevent
1917
// duplicate react-native version and pollution of the package lock.

0 commit comments

Comments
 (0)