{"id":17093574,"url":"https://github.com/chrisdothtml/monorepo-import","last_synced_at":"2025-04-12T22:44:42.382Z","repository":{"id":55897036,"uuid":"266187756","full_name":"chrisdothtml/monorepo-import","owner":"chrisdothtml","description":"For importing an external repo into a monorepo subdirectory with git history/blame intact","archived":false,"fork":false,"pushed_at":"2020-12-08T19:11:50.000Z","size":57,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T22:44:38.388Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrisdothtml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-22T19:06:58.000Z","updated_at":"2023-02-06T11:16:21.000Z","dependencies_parsed_at":"2022-08-15T08:51:05.430Z","dependency_job_id":null,"html_url":"https://github.com/chrisdothtml/monorepo-import","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdothtml%2Fmonorepo-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdothtml%2Fmonorepo-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdothtml%2Fmonorepo-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdothtml%2Fmonorepo-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisdothtml","download_url":"https://codeload.github.com/chrisdothtml/monorepo-import/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643048,"owners_count":21138353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T14:07:40.308Z","updated_at":"2025-04-12T22:44:42.361Z","avatar_url":"https://github.com/chrisdothtml.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# monorepo-import\n\n\u003e For importing an external repo into a monorepo subdirectory with git history/blame intact\n\nThis tool is forked from `lerna import`, and is intended to allow for using that logic generically with non-lerna monorepos.\n\n## Install\n\n```sh\nyarn global add @chrisdothtml/monorepo-import\n# or\nnpm install -g @chrisdothtml/monorepo-import\n# or\nvolta install @chrisdothtml/monorepo-import\n```\n\n## Use\n\n```sh\n# Usage:\nmonorepo-import --help\nmonorepo-import \u003cexternal-repo-path\u003e \u003cmonorepo-path\u003e \u003csub-directory\u003e\n\n# Examples:\nmonorepo-import ../external-repo ../monorepo external-repo\nmonorepo-import ../my-project ../monorepo projects/my-project\n```\n\nWhen you use this to import an external repo into your monorepo:\n\n- it will apply every commit of `\u003cexternal-repo-path\u003e` one-by-one on top of HEAD of `\u003cmonorepo-path\u003e`\n- file paths throughout the entire repo history are prefixed by your provided `\u003csub-directory\u003e`\n- original commit author, committer, and date are all preserved\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisdothtml%2Fmonorepo-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisdothtml%2Fmonorepo-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisdothtml%2Fmonorepo-import/lists"}