This repository has been archived on 2026-07-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
crisleo94 22ded87250 feat: implement mobile reader
- implement mobile epub reader
2026-06-20 13:33:44 -05:00

26 lines
863 B
JavaScript

const { getDefaultConfig } = require("expo/metro-config");
const path = require("path");
const projectRoot = __dirname;
const monorepoRoot = path.resolve(projectRoot, "..");
/**
* Expo SDK 52+ configures Metro for Yarn/npm/pnpm workspaces automatically
* when using expo/metro-config. This file keeps an explicit monorepo root so
* @cloud-reader/shared (packages/shared) resolves reliably in dev and on EAS.
*
* If you previously added manual watchFolders/nodeModulesPaths and things
* work, prefer this minimal config. After changes: npx expo start --clear
*
* @see https://docs.expo.dev/guides/monorepos/
*/
const config = getDefaultConfig(projectRoot);
config.watchFolders = [monorepoRoot];
config.resolver.nodeModulesPaths = [
path.resolve(projectRoot, "node_modules"),
path.resolve(monorepoRoot, "node_modules"),
];
module.exports = config;