Monorepo Workspaces Playground

One repo, two packages at the workshop: what do npm workspaces put in the root’s node_modules, where does a clashing version go, and can app use a chalk it…

Why it matters

Nearly every large project is a monorepo. Knowing workspaces tells you why a sibling package imports without publishing, why there is one big node_modules at the root, why two versions can show up at once, and why something can work in the repo yet break when someone else installs it.

The key idea

A workspace is a link, and its dependencies rise to the root

Common mistakes

Try it in this playground