- after installing yarn at least v1.0 (check with
yarn --version
), open a new terminal and runyarn config set workspaces-experimental true
yarn global add lerna
- since this single git is responsible for several distinct packages, it is important to note the package being changed in the branch name, in addition to a description of the changes being made and the pivotal hash
${packageName}-${pivotalHash}-${description}
aura-be-2039487-create-users
- edit files normally
- use
git add
andgit commit
as usual
- first commit all changes as usual
- (optional) run
lerna updated
to see which packages have "un-released" changes (changes that have not been tagged with a release version in git) - run
lerna publish [-m 'description of unreleased changes']
, and choose an appropriate semver change from the menujjk
cd packages/dependentPackage
yarn add/remove dependedPackage
(whether a local or npm-hosted dependency)yarn install
in any directory of the repo orlerna bootstrap
in the repo root- more info