For importing an external repo into a monorepo subdirectory with git history/blame intact
npm install @chrisdothtml/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.
``sh`
yarn global add @chrisdothtml/monorepo-importor
npm install -g @chrisdothtml/monorepo-importor
volta install @chrisdothtml/monorepo-import
`shUsage:
monorepo-import --help
monorepo-import
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