Skip to content

Document --sequential flag for pnpm run "/<regex>/" #9578

Open
pnpm/pnpm.io
#672
@MattIPv4

Description

@MattIPv4

Contribution

Describe the user story

I currently use npm-run-all2 in many of my packages to run all dev: prefixed scripts, for example, in parallel. I also use npm-run-all2 to run all test: prefixed scripts sequentially.

I can use pnpm run "/<regex>/" to replace the dev: prefixed call, running them in parallel, but I cannot replace the test: prefixed call as pnpm run "/<regex>/" does not allow for sequential running.

Describe the solution you'd like

pnpm run already has a --parallel flag for other situations, so I'd love to see the opposite, a --sequential flag added for this situation.

Describe the drawbacks of your solution

I suppose there is a risk that there isn't a particular guaranteed order for this, but I would assume by default it'll just run in whatever order the scripts are in in package.json, only running those matching the regex pattern.

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions