Skip to content

verifyDepsBeforeRun triggers full install with pnpm --filter ... exec #11865

Description

@matthewshober

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

No response

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

  1. Use pnpm v11 in a monorepo workspace
  2. Run pnpm --filter <package> exec <command>
  3. Observe that pnpm performs a full workspace install before executing

Describe the Bug

Since upgrading to pnpm v11, running pnpm --filter <package> exec <command> triggers a full workspace install before executing the command. This was surfaced by the change in pnpm v11 to make verifyDepsBeforeRun default to install.

Expected Behavior

It installs only the filtered package's dependencies.

Which Node.js version are you using?

24.15.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions