Run scripts in workspaces and the root package.
Section: Workspace basics
Include workspace root
bash
bash
npm run build --workspaces --include-workspace-rootExplanation
Run scripts in workspaces and the root package.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Workspace basics
Create a new workspace
Create a workspace and update the root workspaces list.
Install all workspace dependencies
Run install across all configured workspaces.
Run a binary from a package
Run a local binary inside the project context.