Publish a private npm repo using Lerna
Introducing Lerna Lerna is a tool that optimizes the workflow around managing multi-package repositories with Git and npm. Blockquote Don’t communicate by sharing memory, share memory by communicating. — Rob Pike 1 Getting started npm i -g lerna # or yarn global add lerna # To install dependencies for all packages lerna bootstrap # Remove the node_modules directory from all packages. https://github.com/lerna/lerna/#clean# lerna clean # Import the package in the local path <pathToRepo> into packages/<directory-name> with commit history lerna import <pathToRepo> # To run all the tests (if the corresponding script, "test" exists) lerna run test Step to npm publish Update the packages/working-lib and commit your works Make sure your lib is working properly (consider using jest/other testing tools in your lib) Bump-up the version in packages/working-lib/package....