I’m trying to setup a monorepo using yarn workspaces with multiple reason projects. I’d like to make use of yarn’s node_modules hoisting feature.
So far my structure looks like this:
packages/ - app-one/ ... - package.json - bsconfig.json - ui-components/ ... - package.json - bs-config.json
bs-dependencies as follows:
bs-dependencies": ["bs-css", "reason-react"]
These dependencies are also listed in
Due to yarn’s dependency hoisting, when I run
yarn install at root,
reasonreact get installed to
So when I run
bsb -make-world, bsb can’t find
This makes sense to me since
bsb is looking for those dependencies in
<root>/packages/app-one/node_modules and doesn’t see /node_modules.
Is there anyway I can get bsb to recognize the hoisted dependencies? Or is there another way to setup this project to get things to build correctly?