/lerna-subtree

Manage lerna with git subtree

Apache License 2.0Apache-2.0

lerna-subtree

Manage lerna with git subtree

Proposal

A list of commands to help manage lerna sub-projects with git subtree.

Commands:

  • lerna-subtree add <GIT_REMOTE_URL>

    1. it runs command git remote add subtree-<REPO_NAME> <GIT_REMOTE_URL> if remote does not exist
    2. it runs git subtree add --prefix=packages/<REPO_NAME> subtree-<REPO_NAME> <branch>
  • lerna-subtree publish

    1. it runs lerna publish
    2. it runs, for each sub-tree, git subtree --prefix=packages/<REPO_NAME> push subtree-<REPO_NAME> --all