nx
nx copied to clipboard
Import library from monorepo inside other repo in development mode
Documentation issue
- [ ] Reporting a typo
- [ ] Reporting a documentation bug
- [x] Documentation improvement
- [x] Documentation feedback
Additional context or description
We are trying to migrate to a monorepo solution and we've made most of the work, however a problem was raised with the local development workflow.
We have separated our repos into a private and public on github.
The public Nx monorepo which has some libs that will be published and will be consumed by other github private repo (a simple react app, in this case).
To use the libs locally on the private repo, in development mode, what is the recommended approach, since I don't have some the libs published to npm?
Previously we used the npm i relative-path/to-library, but since the node modules are now on the root folder, the packages are not found.
Is there something we're missing here?
Thank you
This should be a very straightforward process. Anyone has a clue on this?