mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-09-30 10:03:14 +00:00
18 lines
493 B
JavaScript
18 lines
493 B
JavaScript
|
|
const path = require('path');
|
||
|
|
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
|
||
|
|
|
||
|
|
const projectRoot = __dirname;
|
||
|
|
const monorepoRoot = path.resolve(projectRoot, '..');
|
||
|
|
|
||
|
|
const config = {
|
||
|
|
watchFolders: [path.resolve(monorepoRoot, 'shared')],
|
||
|
|
resolver: {
|
||
|
|
nodeModulesPaths: [
|
||
|
|
path.resolve(projectRoot, 'node_modules'),
|
||
|
|
path.resolve(monorepoRoot, 'node_modules'),
|
||
|
|
],
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
module.exports = mergeConfig(getDefaultConfig(projectRoot), config);
|