expo template

This commit is contained in:
2026-06-02 12:01:39 +02:00
parent 7923514c5c
commit cc596e632f
40 changed files with 407 additions and 17 deletions

View File

@@ -0,0 +1,19 @@
// Learn more: https://docs.expo.dev/guides/monorepos/
const { getDefaultConfig } = require('expo/metro-config');
const path = require('path');
const projectRoot = __dirname;
const monorepoRoot = path.resolve(projectRoot, '../..');
const config = getDefaultConfig(projectRoot);
// Watch the whole monorepo so changes in packages/* trigger rebuilds.
config.watchFolders = [monorepoRoot];
// Resolve modules from the app's node_modules first, then the workspace root.
config.resolver.nodeModulesPaths = [
path.resolve(projectRoot, 'node_modules'),
path.resolve(monorepoRoot, 'node_modules'),
];
module.exports = config;