Isolate pnpm Workspace Dependencies with Frozen Lockfiles
Stop phantom dependencies in a pnpm monorepo by enforcing isolated node_modules, one committed lockfile, and CI installs that fail on drift.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Stop phantom dependencies in a pnpm monorepo by enforcing isolated node_modules, one committed lockfile, and CI installs that fail on drift.
Yarn workspaces let a monorepo install once from the root, but hoisting is not a guarantee. Learn how the resolution graph works, where phantom dependencies appear, and how to verify the result.
npm workspaces solves monorepo dependency duplication with hoisting and a single lockfile, but phantom dependencies and peer behavior changes require deliberate handling. A practical walkthrough with verification steps.
Yarn Workspaces gives you a single lockfile, instant cross-package symlinks, and topological script execution—no Lerna, no Turborepo, no extra config. Here's how to set it up, control hoisting for stubborn tools, and optimize CI with focus installs.
npm 7+ includes built-in monorepo support via workspaces — no extra tools, single lockfile, symlinked local packages. Here's how it works, a minimal reproducible example, and the gotchas (phantom deps, no version sync) to watch before you publish.
Stop copying shared code between repositories. npm workspaces let you manage multiple packages under one root with a single install.
Learn how pnpm catalogs let you centralize dependency versions in a monorepo, avoid phantom dependencies, and safely update packages across workspaces.
Opera’s Workspaces let you partition tabs into distinct UI groups while sharing session data. This guide shows how to enable, create, and use workspaces, a shared login example, trade‑offs like memory use and lack of isolation, and a real‑world workflow for freelancers and developers.
Workspaces let you compile once and reuse output across jobs in a single workflow. Here is when to use persist_to_workspace, how to wire a build-test-deploy pipeline, and why workspaces are not a cache.