mkdir scribo-monorepo
cd scribo-monorepo
create package.json
if you are using yarn:
{
"private": true,
"workspaces": ["repo1", "repo2", "packages/*"]
}
create pnpm-workspace.yaml
if you are using pnpm:
packages:
- 'repo1'
- 'repo2'
- 'packages/*'
git init
git add .
git commit -m "init"
# git subtree add -P <dir> <repo> <rev>
git subtree add -P "repo1" https://github.com/tokisakiyuu/repo1.git main
git subtree add -P "repo2" https://github.com/tokisakiyuu/repo2.git master
# ...