https://github.com/chrisdothtml/monorepo-import
For importing an external repo into a monorepo subdirectory with git history/blame intact
https://github.com/chrisdothtml/monorepo-import
Last synced: about 1 year ago
JSON representation
For importing an external repo into a monorepo subdirectory with git history/blame intact
- Host: GitHub
- URL: https://github.com/chrisdothtml/monorepo-import
- Owner: chrisdothtml
- Created: 2020-05-22T19:06:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-08T19:11:50.000Z (over 5 years ago)
- Last Synced: 2025-04-12T22:44:38.388Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 55.7 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# monorepo-import
> For importing an external repo into a monorepo subdirectory with git history/blame intact
This tool is forked from `lerna import`, and is intended to allow for using that logic generically with non-lerna monorepos.
## Install
```sh
yarn global add @chrisdothtml/monorepo-import
# or
npm install -g @chrisdothtml/monorepo-import
# or
volta install @chrisdothtml/monorepo-import
```
## Use
```sh
# Usage:
monorepo-import --help
monorepo-import
# Examples:
monorepo-import ../external-repo ../monorepo external-repo
monorepo-import ../my-project ../monorepo projects/my-project
```
When you use this to import an external repo into your monorepo:
- it will apply every commit of `` one-by-one on top of HEAD of ``
- file paths throughout the entire repo history are prefixed by your provided ``
- original commit author, committer, and date are all preserved