From 77ba75732e1cbdf795b53bc20fe507c07910249d Mon Sep 17 00:00:00 2001 From: Iyk Azorji Date: Sat, 14 Dec 2024 00:13:20 -0500 Subject: [PATCH] fix: update metro to add account kit workspace --- examples/react-native-bare-example/metro.config.js | 1 + examples/react-native-expo-example/metro.config.js | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/react-native-bare-example/metro.config.js b/examples/react-native-bare-example/metro.config.js index d7fb852418..e315f1d159 100644 --- a/examples/react-native-bare-example/metro.config.js +++ b/examples/react-native-bare-example/metro.config.js @@ -18,6 +18,7 @@ config.watchFolders = [workspaceRoot, projectRoot]; config.resolver.nodeModulesPaths = [ path.resolve(projectRoot, 'node_modules'), path.resolve(workspaceRoot, 'node_modules'), + path.resolve(workspaceRoot, 'account-kit/rn-signer/node_modules'), ]; // Force Metro to resolve (sub)dependencies only from the `nodeModulesPaths` config.resolver.disableHierarchicalLookup = true; diff --git a/examples/react-native-expo-example/metro.config.js b/examples/react-native-expo-example/metro.config.js index 3d042fc9a9..9b432e4613 100644 --- a/examples/react-native-expo-example/metro.config.js +++ b/examples/react-native-expo-example/metro.config.js @@ -15,6 +15,7 @@ config.watchFolders = [projectRoot, monorepoRoot]; config.resolver.nodeModulesPaths = [ path.resolve(projectRoot, "node_modules"), path.resolve(monorepoRoot, "node_modules"), + path.resolve(monorepoRoot, "account-kit/rn-signer/node_modules"), ]; // Force Metro to resolve (sub)dependencies only from the `nodeModulesPaths`