npm workspaces Explained
What npm workspaces does, with an example.
Published November 12, 2026
npm workspaces let you manage multiple related packages within a single top-level project (a monorepo) using one npm install.
Key points
- Part of the standard npm CLI that ships with Node.js
Example
"workspaces": ["packages/*"]