New Feature
@gigabo Adds an awesome feature to help users transition their repos into a monorepo and being able to basically move the contents of another repo into the lerna repo (including the git history)!
$ lerna import <path-to-external-repository>
Import the package at <path-to-external-repository>
, with commit history, into packages/<directory-name>
. Original commit authors, dates and messages are preserved. Commits are applied to the current branch.
This is useful for gathering pre-existing standalone packages into a Lerna repo. Each commit is modified to make changes relative to the package directory. So, for example, the commit that added package.json
will instead add packages/<directory-name>/package.json
.