A collection of links, resources and ideas on code sharing for typescript/javascript projects
- npm-local-development
- Symlinking
- lerna
- yarn workspaces
- meta
- Meta
- private npm packages
- hosted npm registry
- npm private(paid)
- github packages
- use git urls
Since React Native metro packager does not follow symlinks some extra workaround setup needs to be done.
A good solution is watching and copying files
onchange 'mylib/dist/*.js' -- cp ./mylib/dist/* ./myapp/node_modules/mylib
these articles provide some comparisons of various approaches