In architecture one of the most important statements, in my opinion, is:
Create systems where the success is the path of least resistance.
As an architecture pattern, Monorepo pattern, in any of the form and application should follow this idea.
Simplest Monorepo
Let's start our conversation from the simplest monorepos, usually proposed by various tools as examples.
They also called "workspaces". This is the example taken from the yarn
docs:
// package.json
{
"private": true,
"workspaces": [
"packages/*",
],
}
Folder structure:
/package.json
/packages/package-a/package.json
/packages/package-b/package.json
// TODO