Skip to main content

Monorepo FAQ

Do We Lose History When Migrating?

No, if you use git subtree add without --squash, commit history is preserved.

Why Not git submodule?

Submodules keep repositories separate and can complicate day-to-day workflow for this monorepo style. Subtree is usually simpler here.

Can We Keep Syncing with Old Repositories?

Yes, with git subtree pull and git subtree push, as long as remotes still exist.

Should Commands Be Run from Root?

For global consistency, yes. Root execution ensures workspace resolution and shared lockfile behavior are correct.

How Do Nested Apps Work in This Repo?

They are included by workspace globs in pnpm-workspace.yaml (for example apps/*/* and apps/*/apps/*).