diff options
author | polwex <polwex@sortug.com> | 2025-07-16 12:04:52 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-07-16 12:04:52 +0700 |
commit | 1c81a70b0349a7f7577d0124b4b67ab5ea01e68d (patch) | |
tree | 5b5095fffd37f934d9e2b7ae67d5e99a4e18e392 | |
parent | 9c2fba56e0f68f976c1abe486f9fd3c6e93b437e (diff) |
m
-rw-r--r-- | metro.config.js | 25 |
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 |