Skip to content

Commit

Permalink
fix: update metro to add account kit workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
iykazrji committed Dec 17, 2024
1 parent dddb6ee commit 77ba757
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/react-native-bare-example/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/react-native-expo-example/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 77ba757

Please sign in to comment.