Configuration options for the staged execution
The directory containing the root package.json file
The npm script command to execute in each package
Maximum number of packages to process simultaneously within each stage (default: 3)
Optional function to filter packages by name
A promise that resolves when all stages have completed execution successfully, or rejects immediately on first failure
Executes a npm script command across all workspace packages in dependency order stages. Packages are grouped into stages where each stage contains packages whose dependencies have been completed in previous stages. Uses fail-fast behavior - stops execution immediately when any package fails.