summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--metro.config.js25
1 files changed, 25 insertions, 0 deletions
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