Using npm Workspaces to Hoist Dependencies in a Monorepo
Learn how to set up npm workspaces, hoist dependencies, verify shared copies, and handle version conflicts in a monorepo.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to set up npm workspaces, hoist dependencies, verify shared copies, and handle version conflicts in a monorepo.
Yarn workspaces let multiple packages share a single dependency tree, but hoisting behavior and migration quirks can catch teams off guard. Here's how to set them up, when to disable hoisting, and how to verify the setup.
Learn how Terramate’s selective execution skips unchanged stacks in a monorepo, reducing plan/apply time and cost while keeping CI pipelines reliable.
Set up an npm workspace monorepo with minimal design, verify hoisting, run workspace scripts, and handle pitfalls like accidental dependency exposure and version conflicts.
A diagnostic guide for resolving pnpm workspace installation failures, covering store corruption, lockfile mismatches, and workspace protocol errors.
Learn how Turborepo’s task pipeline and content‑hash cache reduce redundant work in JavaScript monorepos, and see a concrete configuration you can try today.
Learn how pnpm’s workspace protocol creates a single content‑addressable store and symlinks packages, cutting duplicate dependencies and speeding up installs in a monorepo.
Learn how Bazel's action graph caching and hermetic sandboxing give truly incremental builds, see a concrete Java example, and understand the trade-offs before adopting it in your monorepo.
Large monorepos make cloning a nightmare. Combine Git’s partial‑clone (blob:none) with sparse‑checkout to download only the history you need and materialize just the paths you care about. Learn how, when, and what to watch out for.