Tooling concepts
Manage related packages with npm workspaces
Workspaces let one npm project coordinate several local packages. npm links workspace packages into its install tree and can run commands in selected packages. Do not assume every package can import every sibling without declaring its dependency. That may fail outside the monorepo. Example type: bash. Context: npm-lab. Expected observation: The list contains packages/units.. See local fixture evidence.
Formal Syntax & Structure
javascript syntaxjavascript
npm pkg get workspacesWorking Example
Example Snippetjavascript
npm pkg get workspaces