Skip to content

fix(cli): list scripts for filtered run - #13440

Merged
zkochan merged 2 commits into
mainfrom
fix-13437
Jul 27, 2026
Merged

zkochan merged 2 commits into
mainfrom
fix-13437

Conversation

@zkochan

@zkochan zkochan commented Jul 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #13437.

When pnpm --filter <package> run selects exactly one workspace package and no script name is provided, pacquet now lists that package’s scripts and the root workspace scripts instead of returning ERR_PNPM_SCRIPT_NAME_IS_REQUIRED. The TypeScript CLI already has this behavior, so this PR restores Rust parity without changing the TypeScript implementation. Multi-project recursive runs without a script name continue to return the existing error.

Squash Commit Body

Select the filtered workspace graph before requiring a script name. When exactly one project is selected, render its scripts and the root workspace scripts through the normal listing path; retain the recursive missing-script error for larger selections.

Add an integration regression test covering the filtered command and keep coverage for the multi-project recursive error.

Fixes pnpm/pnpm#13437.

Checklist

  • The change is implemented in both the TypeScript CLI and the Rust
    pnpm/ port, or the description notes what still needs porting.
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. Keep it short and written for pnpm users — it becomes a release note.
  • Added or updated tests.

Written by an agent (Codex, GPT-5).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed run without a script name so filtered executions correctly list commands for the selected package.
    • Updated command listings to include scripts from the workspace root when appropriate.
    • Kept the “script name required” behavior when multiple packages are selected without specifying a script.
  • Tests
    • Added and updated coverage to verify selected-package and workspace-root scripts are shown, while unselected packages’ scripts are excluded.

Copilot AI review requested due to automatic review settings July 27, 2026 20:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ae6970ec-7099-4f1d-8188-cdb5708152d4

📥 Commits

Reviewing files that changed from the base of the PR and between dd102be and 05b2107.

📒 Files selected for processing (1)
  • .changeset/calm-pugs-list.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • .changeset/calm-pugs-list.md

📝 Walkthrough

Walkthrough

The run command now lists scripts for a uniquely filtered project when no script name is provided, including available root workspace scripts. Multiple selected projects still require an explicit script name, with unit and integration tests covering both behaviors.

Changes

Filtered run listing

Layer / File(s) Summary
Command listing renderer
pnpm/crates/cli/src/cli_args/run.rs, pnpm/crates/cli/src/cli_args/run/tests.rs
render_project_commands accepts optional root workspace context and appends non-empty root scripts to the rendered command list. Existing call sites and renderer tests pass the new argument.
Recursive filtered run flow
pnpm/crates/cli/src/cli_args/run/recursive.rs, pnpm/crates/cli/tests/run_recursive.rs, .changeset/calm-pugs-list.md
A missing script name lists commands when exactly one project is selected, while multiple selections still return ERR_PNPM_SCRIPT_NAME_IS_REQUIRED. Integration coverage verifies selected and root scripts are shown while unselected scripts are omitted.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant run_recursive
  participant WorkspaceSelection
  participant render_project_commands
  User->>run_recursive: --filter project-1 run
  run_recursive->>WorkspaceSelection: resolve filtered projects
  WorkspaceSelection-->>run_recursive: one selected project
  run_recursive->>render_project_commands: render project and root scripts
  render_project_commands-->>User: command listings
Loading

Assessment against linked issues

Objective Addressed Explanation
List scripts for a filtered package when run has no script name [#13437] ✅

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

  • pnpm/pnpm#13300: Both changes modify missing-script-name handling in the recursive run path.

Suggested labels: product: pacquet

Suggested reviewers: copilot

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-13437

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

fix(cli): List scripts for single-package filtered run

🐞 Bug fix 🧪 Tests 🕐 40+ Minutes

Grey Divider

AI Description

• Fix --filter  run to list scripts when exactly one package is selected.
• Include root workspace scripts in the listing, matching TypeScript CLI behavior.
• Add integration coverage for filtered listing and keep recursive missing-script error.
Diagram

graph TD
  B["pacquet run_recursive"] --> C{"Script name provided?"}
  C -- "no" --> D{"Selected projects == 1?"}
  D -- "yes" --> E[("Selected pkg manifest")]
  E --> F["render_project_commands(manifest, root_manifest)"]
  F --> G["STDOUT: scripts list"]
  D -- "no" --> H["Error: ScriptNameRequired"]
  R[("Root workspace manifest")] --> F

  subgraph Legend
    direction LR
    _proc["Process"] ~~~ _dec{"Decision"} ~~~ _db[("Manifest JSON")]
  end
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Append root workspace section in the caller
  • ➕ Keeps render_project_commands focused on a single manifest
  • ➕ Avoids threading root-workspace concerns into shared rendering code
  • ➖ Duplicates formatting logic and risks drift from the normal listing output path
  • ➖ Harder to reuse consistently across entry points
2. Always select graph before validating script name (current), but list only project scripts
  • ➕ Simpler output and fewer manifest reads
  • ➕ Avoids introducing new root-workspace output semantics
  • ➖ Would remain inconsistent with TypeScript CLI behavior
  • ➖ Misses a key part of the user expectation for pnpm run listings

Recommendation: The chosen approach (select the filtered workspace graph first, then decide listing vs error) is the right behavioral fix and matches the TypeScript CLI. Passing an optional root_manifest into the existing renderer is a low-risk way to reuse stable formatting while adding the missing root section only when needed.

Files changed (5) +107 / -14

Bug fix (2) +43 / -11
run.rsExtend script listing renderer to optionally include root scripts +24/-4

Extend script listing renderer to optionally include root scripts

• Updates 'render_project_commands' to accept an optional root manifest and render a dedicated root-workspace scripts section. Adjusts the non-workspace 'run' path to call the new signature without root context.

pnpm/crates/cli/src/cli_args/run.rs

recursive.rsList scripts for single-project filtered recursive run without script name +19/-7

List scripts for single-project filtered recursive run without script name

• Moves the script-name requirement to after workspace selection. If the filtered selection resolves to exactly one project, it prints that project’s scripts plus root workspace scripts; otherwise it preserves the existing 'ScriptNameRequired' error.

pnpm/crates/cli/src/cli_args/run/recursive.rs

Tests (2) +59 / -3
tests.rsUpdate unit tests for new 'render_project_commands' signature +2/-2

Update unit tests for new 'render_project_commands' signature

• Adjusts existing script-listing unit tests to pass 'None' for the optional root manifest. Keeps coverage for lifecycle vs other grouping and the no-scripts message.

pnpm/crates/cli/src/cli_args/run/tests.rs

run_recursive.rsAdd integration regression test for filtered script listing +57/-1

Add integration regression test for filtered script listing

• Expands the existing recursive missing-script error test to a multi-project workspace. Adds a new integration test asserting that '--filter project-1 run' lists selected project scripts and root workspace scripts, and does not leak unselected project scripts.

pnpm/crates/cli/tests/run_recursive.rs

Documentation (1) +5 / -0
calm-pugs-list.mdAdd changeset for filtered 'run' script-listing fix +5/-0

Add changeset for filtered 'run' script-listing fix

• Adds a patch changeset documenting the restored behavior for 'pnpm --filter <package> run' when no script name is provided. This becomes the user-facing release note for the fix.

.changeset/calm-pugs-list.md

@greptile-apps

greptile-apps Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Reviews (2): Last reviewed commit: "docs(changeset): mention root scripts" | Re-trigger Greptile

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.changeset/calm-pugs-list.md:
- Line 5: Update the changeset release note to mention that pnpm --filter
<package> run lists both the selected package’s scripts and root workspace
scripts when no script name is specified, preserving the required pnpm changeset
bump and user-visible behavior wording.

In `@pnpm/crates/cli/src/cli_args/run.rs`:
- Around line 617-626: In run.rs, move root_scripts construction before the
empty-output check and return “There are no scripts specified.” only when both
selected-package and root-workspace scripts are empty, while preserving
rendering of both command sets. In
pnpm/crates/cli/tests/run_recursive.rs:1373-1421, add a selected package with no
scripts and regression-level CLI assertions that filtered listing still includes
root-workspace commands; the selected-package commands should remain covered
where applicable.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 76abb7af-cc30-460c-8336-3f9b841b2f61

📥 Commits

Reviewing files that changed from the base of the PR and between bcd0b3c and dd102be.

📒 Files selected for processing (5)
  • .changeset/calm-pugs-list.md
  • pnpm/crates/cli/src/cli_args/run.rs
  • pnpm/crates/cli/src/cli_args/run/recursive.rs
  • pnpm/crates/cli/src/cli_args/run/tests.rs
  • pnpm/crates/cli/tests/run_recursive.rs

Comment thread .changeset/calm-pugs-list.md Resolved
Comment thread pnpm/crates/cli/src/cli_args/run.rs Resolved
@qodo-code-review

qodo-code-review Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (3) 📘 Rule violations (0) 📜 Skill insights (0)

Context used
✅ Compliance rules (platform): 24 rules

Grey Divider


Remediation recommended

1. Unsanitized root script output 🐞 Bug ⛨ Security
Description
The new root-workspace script listing prints manifest-derived script names and bodies directly to
the terminal, allowing control/format characters from package.json to reach stdout in the filtered
run listing path. This expands terminal-output attack surface (e.g., ANSI/OSC sequences) compared
to the previous behavior where pnpm --filter <pkg> run errored before printing root scripts.
Code

pnpm/crates/cli/src/cli_args/run.rs[R631-636]

+        write!(
+            output,
+            "Commands of the root workspace project (to run them, use \"pnpm -w run\"):\n{}",
+            render_commands(&root_scripts),
+        )
+        .unwrap();
Relevance

⭐⭐⭐ High

Terminal-output sanitization for manifest-derived strings was previously accepted (PR #13287).

PR-#13287

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The added root listing block pipes raw package.json scripts entries into render_commands,
which formats the strings directly into terminal output. The codebase includes dedicated
sanitization helpers used elsewhere to prevent control characters from reaching terminal output, and
a past accepted bug explicitly calls out terminal escape injection concerns.

pnpm/crates/cli/src/cli_args/run.rs[617-647]
pnpm/crates/cli/src/cli_args/sanitize.rs[7-34]
PR-#13287

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
Root workspace scripts are now rendered via `render_commands(&root_scripts)` without stripping control/format characters. Malicious manifests can inject terminal control sequences into the listing output.

### Issue Context
The repo already has `sanitize`/`sanitize_inline` helpers intended to strip control/format chars before terminal emission.

### Fix Focus Areas
- pnpm/crates/cli/src/cli_args/run.rs[617-647]
- pnpm/crates/cli/src/cli_args/sanitize.rs[7-34]

### Proposed change
Sanitize at the output boundary in `render_commands` (covers both project scripts and the new root scripts):
- Apply `sanitize_inline(name)` for script names.
- Apply `sanitize_inline(script)` (or `sanitize(script)` if you intentionally want to allow `\n`/`\t`) for script bodies before formatting.
Optionally add a regression test that includes ANSI/control characters in a root script name/body and asserts they are stripped in the listing output.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Slow recursive missing-script path 🐞 Bug ➹ Performance
Description
run_recursive now discovers workspace projects and builds/selects the workspace graph before
validating that a script name is present, so pacquet -r run (no script) does extra
filesystem/graph work before returning ERR_PNPM_SCRIPT_NAME_IS_REQUIRED. This is a PR-introduced
performance regression on the invalid-usage path and can be noticeable in large workspaces.
Code

pnpm/crates/cli/src/cli_args/run/recursive.rs[R92-95]

+    let Some(script_name) = args.script_name() else {
+        if graph.len() != 1 {
+            return Err(RecursiveRunError::ScriptNameRequired.into());
+        }
Relevance

⭐⭐⭐ High

Team accepted similar run/recursive performance improvements (PR #13375).

PR-#13375

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The new control flow checks script_name only after workspace discovery/selection; those helpers
perform workspace-manifest IO, enumerate projects, and build the full projects graph, so the error
path now does materially more work than before.

pnpm/crates/cli/src/cli_args/run/recursive.rs[82-109]
pnpm/crates/cli/src/cli_args/recursive.rs[234-246]
pnpm/crates/cli/src/cli_args/recursive.rs[284-313]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`run_recursive` performs `discover_workspace_projects()` and `select_recursive_projects()` even when no script name is provided and the command will error (multi-project selection). Previously this path fast-failed.

### Issue Context
You still need the new behavior when filters resolve to exactly one project (list scripts instead of error). The fast-fail should therefore apply only when it is impossible to hit the single-project listing case (e.g., no `--filter`/`--filter-prod` selectors are present).

### Fix Focus Areas
- pnpm/crates/cli/src/cli_args/run/recursive.rs[82-109]
- pnpm/crates/cli/src/cli_args/recursive.rs[234-246]
- pnpm/crates/cli/src/cli_args/recursive.rs[284-313]

### Proposed change
Add an early guard before workspace discovery:
- If `args.script_name().is_none()` **and** `config.filter.is_empty()` **and** `config.filter_prod.is_empty()`, immediately return `ScriptNameRequired` (preserves old fast-fail behavior).
- Otherwise, proceed with discovery/selection and keep the existing `graph.len() == 1` listing behavior.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Hidden root scripts listed 🐞 Bug ≡ Correctness
Description
When listing scripts for a single filtered project, root-workspace scripts are collected without
excluding hidden script names (starting with .), even though the selected project's listing does
exclude them. This can expose scripts that are intentionally hidden from pnpm run listings.
Code

pnpm/crates/cli/src/cli_args/run.rs[R617-626]

+    let root_scripts = root_manifest
+        .and_then(|manifest| manifest.get("scripts"))
+        .and_then(Value::as_object)
+        .map(|scripts| {
+            scripts
+                .iter()
+                .filter_map(|(name, script)| Some((name.as_str(), script.as_str()?)))
+                .collect::<Vec<_>>()
+        })
+        .unwrap_or_default();
Relevance

⭐⭐ Medium

No historical evidence found on filtering dot-prefixed scripts in root-workspace script listings.

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The selected project's scripts are explicitly filtered to skip names starting with ., but the
newly added root scripts block iterates all scripts entries without that filter.

pnpm/crates/cli/src/cli_args/run.rs[588-600]
pnpm/crates/cli/src/cli_args/run.rs[617-626]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`render_project_commands` filters hidden scripts (`name.starts_with('.')`) for the selected project, but the new root-workspace scripts block does not, so hidden root scripts can be shown.

### Issue Context
This inconsistency is introduced by the new `root_manifest` listing path.

### Fix Focus Areas
- pnpm/crates/cli/src/cli_args/run.rs[588-600]
- pnpm/crates/cli/src/cli_args/run.rs[617-626]

### Proposed change
Apply the same `name.starts_with('.')` check when building `root_scripts` (or refactor script collection into a shared helper used by both the project and root blocks).

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Previous review results

Review updated until commit 05b2107 ⚖️ Balanced

Results up to commit dd102be ⚖️ Balanced


🐞 Bugs (3) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Remediation recommended
1. Slow recursive missing-script path 🐞 Bug ➹ Performance
Description
run_recursive now discovers workspace projects and builds/selects the workspace graph before
validating that a script name is present, so pacquet -r run (no script) does extra
filesystem/graph work before returning ERR_PNPM_SCRIPT_NAME_IS_REQUIRED. This is a PR-introduced
performance regression on the invalid-usage path and can be noticeable in large workspaces.
Code

pnpm/crates/cli/src/cli_args/run/recursive.rs[R92-95]

+    let Some(script_name) = args.script_name() else {
+        if graph.len() != 1 {
+            return Err(RecursiveRunError::ScriptNameRequired.into());
+        }
Relevance

⭐⭐⭐ High

Team accepted similar run/recursive performance improvements (PR #13375).

PR-#13375

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The new control flow checks script_name only after workspace discovery/selection; those helpers
perform workspace-manifest IO, enumerate projects, and build the full projects graph, so the error
path now does materially more work than before.

pnpm/crates/cli/src/cli_args/run/recursive.rs[82-109]
pnpm/crates/cli/src/cli_args/recursive.rs[234-246]
pnpm/crates/cli/src/cli_args/recursive.rs[284-313]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`run_recursive` performs `discover_workspace_projects()` and `select_recursive_projects()` even when no script name is provided and the command will error (multi-project selection). Previously this path fast-failed.

### Issue Context
You still need the new behavior when filters resolve to exactly one project (list scripts instead of error). The fast-fail should therefore apply only when it is impossible to hit the single-project listing case (e.g., no `--filter`/`--filter-prod` selectors are present).

### Fix Focus Areas
- pnpm/crates/cli/src/cli_args/run/recursive.rs[82-109]
- pnpm/crates/cli/src/cli_args/recursive.rs[234-246]
- pnpm/crates/cli/src/cli_args/recursive.rs[284-313]

### Proposed change
Add an early guard before workspace discovery:
- If `args.script_name().is_none()` **and** `config.filter.is_empty()` **and** `config.filter_prod.is_empty()`, immediately return `ScriptNameRequired` (preserves old fast-fail behavior).
- Otherwise, proceed with discovery/selection and keep the existing `graph.len() == 1` listing behavior.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Unsanitized root script output 🐞 Bug ⛨ Security
Description
The new root-workspace script listing prints manifest-derived script names and bodies directly to
the terminal, allowing control/format characters from package.json to reach stdout in the filtered
run listing path. This expands terminal-output attack surface (e.g., ANSI/OSC sequences) compared
to the previous behavior where pnpm --filter <pkg> run errored before printing root scripts.
Code

pnpm/crates/cli/src/cli_args/run.rs[R631-636]

+        write!(
+            output,
+            "Commands of the root workspace project (to run them, use \"pnpm -w run\"):\n{}",
+            render_commands(&root_scripts),
+        )
+        .unwrap();
Relevance

⭐⭐⭐ High

Terminal-output sanitization for manifest-derived strings was previously accepted (PR #13287).

PR-#13287

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The added root listing block pipes raw package.json scripts entries into render_commands,
which formats the strings directly into terminal output. The codebase includes dedicated
sanitization helpers used elsewhere to prevent control characters from reaching terminal output, and
a past accepted bug explicitly calls out terminal escape injection concerns.

pnpm/crates/cli/src/cli_args/run.rs[617-647]
pnpm/crates/cli/src/cli_args/sanitize.rs[7-34]
PR-#13287

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
Root workspace scripts are now rendered via `render_commands(&root_scripts)` without stripping control/format characters. Malicious manifests can inject terminal control sequences into the listing output.

### Issue Context
The repo already has `sanitize`/`sanitize_inline` helpers intended to strip control/format chars before terminal emission.

### Fix Focus Areas
- pnpm/crates/cli/src/cli_args/run.rs[617-647]
- pnpm/crates/cli/src/cli_args/sanitize.rs[7-34]

### Proposed change
Sanitize at the output boundary in `render_commands` (covers both project scripts and the new root scripts):
- Apply `sanitize_inline(name)` for script names.
- Apply `sanitize_inline(script)` (or `sanitize(script)` if you intentionally want to allow `\n`/`\t`) for script bodies before formatting.
Optionally add a regression test that includes ANSI/control characters in a root script name/body and asserts they are stripped in the listing output.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Hidden root scripts listed 🐞 Bug ≡ Correctness
Description
When listing scripts for a single filtered project, root-workspace scripts are collected without
excluding hidden script names (starting with .), even though the selected project's listing does
exclude them. This can expose scripts that are intentionally hidden from pnpm run listings.
Code

pnpm/crates/cli/src/cli_args/run.rs[R617-626]

+    let root_scripts = root_manifest
+        .and_then(|manifest| manifest.get("scripts"))
+        .and_then(Value::as_object)
+        .map(|scripts| {
+            scripts
+                .iter()
+                .filter_map(|(name, script)| Some((name.as_str(), script.as_str()?)))
+                .collect::<Vec<_>>()
+        })
+        .unwrap_or_default();
Relevance

⭐⭐ Medium

No historical evidence found on filtering dot-prefixed scripts in root-workspace script listings.

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The selected project's scripts are explicitly filtered to skip names starting with ., but the
newly added root scripts block iterates all scripts entries without that filter.

pnpm/crates/cli/src/cli_args/run.rs[588-600]
pnpm/crates/cli/src/cli_args/run.rs[617-626]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`render_project_commands` filters hidden scripts (`name.starts_with('.')`) for the selected project, but the new root-workspace scripts block does not, so hidden root scripts can be shown.

### Issue Context
This inconsistency is introduced by the new `root_manifest` listing path.

### Fix Focus Areas
- pnpm/crates/cli/src/cli_args/run.rs[588-600]
- pnpm/crates/cli/src/cli_args/run.rs[617-626]

### Proposed change
Apply the same `name.starts_with('.')` check when building `root_scripts` (or refactor script collection into a shared helper used by both the project and root blocks).

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

Copilot AI review requested due to automatic review settings July 27, 2026 20:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 27, 2026
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 05b2107

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@github-actions

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.00     13.7±0.39ms    27.4 MB/sec    1.03     14.1±0.23ms    26.6 MB/sec
packument/parse                                  1.00     46.0±0.40µs  1443.0 MB/sec    1.04     47.6±1.21µs  1394.2 MB/sec
tarball/download_dependency                      1.08      5.0±0.65ms   869.4 KB/sec    1.00      4.6±0.50ms   941.9 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.00    239.8±6.83ms 66.7 KElem/sec    1.02    243.9±9.70ms 65.6 KElem/sec

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.64%. Comparing base (bcd0b3c) to head (05b2107).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13440   +/-   ##
=======================================
  Coverage   87.64%   87.64%           
=======================================
  Files         545      545           
  Lines       93897    93926   +29     
=======================================
+ Hits        82292    82324   +32     
+ Misses      11605    11602    -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zkochan
zkochan merged commit a1f602e into main Jul 27, 2026
37 checks passed
@zkochan
zkochan deleted the fix-13437 branch July 27, 2026 20:18
@coderabbitai coderabbitai Bot mentioned this pull request Jul 27, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pacquet reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rust pnpm requires a script name instead of listing filtered package scripts

3 participants