Skip to content

Conversation

KSXGitHub
Copy link
Contributor

Resolves pnpm/pnpm#9578

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

vercel bot commented Jun 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pnpm-io ❌ Failed (Inspect) Jun 1, 2025 1:55pm

@@ -109,6 +109,10 @@ immediately in all matching packages with prefixed streaming output. This is the
preferred flag for long-running processes over many packages, for instance, a
lengthy build process.

### --sequential

Run the specified scripts one by one.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line was copied from pnpm help run.

@@ -109,6 +109,10 @@ immediately in all matching packages with prefixed streaming output. This is the
preferred flag for long-running processes over many packages, for instance, a
lengthy build process.

### --sequential

Run the specified scripts one by one.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be good to explicitly clarify how this works with pnpm run "/regex/" as you're not specifying an order then (afaik it uses the order of the scripts in package.json)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zkochan Is the execution order an implementation detail, undefined behavior, or part of the spec?

@IanVS
Copy link
Contributor

IanVS commented Aug 25, 2025

Since I see there's an option for --parallel, does that mean --sequential is the default? Edit: from testing, it seems that --parallel is the default, at least when using a regex.

@MattIPv4
Copy link

No, which is why I really want this documented.

If you're using pnpm run with a pattern it is parallel by default and you need to pass --sequential to run them in the order they're defined in package.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document --sequential flag for pnpm run "/<regex>/"
3 participants