A “Megarepo” is exactly what it sounds like: All your code lives in ONE source folder.

It is distinct from a “Monorepo”, where your code is split into different packages.

In a Megarepo, there is just one package, one package.json, one tsconfig.json, one src folder, etc. It is then up to the build tools to figure out how to slice and dice everything properly.

Moving to a Megarepo structure is a very liberating experience. Here are some of the benefits: