react-native-monorepo-tools icon indicating copy to clipboard operation
react-native-monorepo-tools copied to clipboard

object: extraNodeModules and array: blockList are empty

Open oskarhertzman opened this issue 3 years ago • 1 comments

const monorepoMetroTools = getMetroTools();

When logging monorepoMetroTools, i get this:

extraNodeModules: {}, blockList: [], watchFolders: [ '/Users/oskar/Desktop/projects/app-helsingborg-guide/node_modules', '/Users/oskar/Desktop/projects/app-helsingborg-guide/cities/Helsingborg', '/Users/oskar/Desktop/projects/app-helsingborg-guide/cities/Lund', '/Users/oskar/Desktop/projects/app-helsingborg-guide/guide-app' ]

how do i get the extraNodeModules and blockList? i have tried providing current working dir with getMetroTools( {cwd: ${[path.resolve(__dirname, "../..")][0]}}) to try to point to root dir instead, but im not sure this is correct way to do it.

Any assistance would be appreciated, thanks.

oskarhertzman avatar Jan 07 '22 14:01 oskarhertzman

Same problem. Has someone solved this?

mxkyb avatar Nov 11 '23 15:11 mxkyb