yarn-workspaces
React Native & yarn workspaces
Things to remember when using workspaces
- Flow runs in each package not on the whole workspace
- apply nohoist to all modules that contain native code (ios & android code)
- Avoids ios and android build directory clashes
- More likely to work with react-native link
- Pure JS libraries work fine without nohoist
- Always
yarn install
at the root not in apackage/rider
directory
Links
- https://yarnpkg.com/lang/en/docs/workspaces/
- https://github.com/lerna/lerna
- https://yarnpkg.com/blog/2018/02/15/nohoist/