From 1c81a70b0349a7f7577d0124b4b67ab5ea01e68d Mon Sep 17 00:00:00 2001 From: polwex Date: Wed, 16 Jul 2025 12:04:52 +0700 Subject: m --- metro.config.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 metro.config.js diff --git a/metro.config.js b/metro.config.js new file mode 100644 index 0000000..b0f19e8 --- /dev/null +++ b/metro.config.js @@ -0,0 +1,25 @@ +const { getDefaultConfig } = require('expo/metro-config'); +const path = require('path'); + +const config = getDefaultConfig(__dirname); + +// Add the parent directory to watched folders so Metro can find local packages +config.watchFolders = [ + path.resolve(__dirname, '..'), +]; + +// Configure resolver to handle local packages +config.resolver = { + ...config.resolver, + nodeModulesPaths: [ + path.resolve(__dirname, 'node_modules'), + path.resolve(__dirname, '../'), + ], + extraNodeModules: { + 'urbit-key-generation': path.resolve(__dirname, '../urbit-key-generation'), + 'urbit-ob': path.resolve(__dirname, '../urbit-ob'), + 'sigil-js': path.resolve(__dirname, '../sigil-ts'), + }, +}; + +module.exports = config; \ No newline at end of file -- cgit v1.2.3