In the previous post, I mentioned so-called workspaces. This is a good starting point which also will show how to structure your future and existing projects. The first one (starting without any projects) is easy, the second (existing ones) requires a bit more work but with a bit of luck, everything should run smoothly.
The below steps describe how to do this with (very similar) or file. The rest is quite similar.
Wait, but why not npm? I've heard that it also has workspaces.
AFAIK it's still not monorepo-ready due to serious problems with hoisting and the lack of ability to solve such dependencies. A good explanation of the struggle with npm caveats is provided in . Or even better, switch to yarn berry or pnpm. As far as I'm aware, they should be free of such problems.
SOCIAL SHARE CARD GENERATOR