Monorepo Starter
install
yarn install # lerna bootstrap --npm-client yarn --use-workspaces
clean
lerna clean # clean all the node_modules
yarn workspaces run clean # clean the node_modules under each package
add/remove dependency
yarn workspace packageA remove lodash # only remove lodash from packageA
yarn workspaces remove lodash # remove lodash from all packages
yarn remove -W -D typescript # remove typescript from root
build
lerna run --stream --sort build
version bump
lerna version --conventional-commits # auto version bump by conventional-commits
lerna version # manual version bump
publish
lerna publish from-git # publish to npm
create package
lerna create packageA -y # create packageA