Courses / Monorepo Tooling
2. npm workspaces
npm's built-in workspaces feature to manage multiple packages in one repository.
JavaScript
npm workspaces
A built-in npm feature for managing multiple interdependent packages inside a single repository.
"I want to develop several related packages together without copying node_modules or running installs separately."
npm workspaces let you declare multiple package folders in a single repository's package.json so npm treats them as a multi-package project, resolving local package links and sharing a single top-level install.
"I want to develop several related packages together without copying node_modules or running installs separately."
npm workspaces let you declare multiple package folders in a single repository's package.json so npm treats them as a multi-package project, resolving local package links and sharing a single top-level install.