Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency filtering doesn't work with package aliases #6922

Closed
oloftus opened this issue Aug 8, 2023 · 0 comments · Fixed by #6928
Closed

Dependency filtering doesn't work with package aliases #6922

oloftus opened this issue Aug 8, 2023 · 0 comments · Fixed by #6928

Comments

@oloftus
Copy link

oloftus commented Aug 8, 2023

Problem description

When using dependency filtering, dependent workspace packages referenced through an alias are not found.

pnpm version:

8.6.1

Code to reproduce the issue:

  1. Clone repo https://github.com/oloftus/pnpm-repro
  2. Run pnpm -r install
  3. Run pnpm -r --filter "packagea..." run hello

Expected behavior:

The hello script is run in packages packagea, packageb, and packagec

Actual behavior:

The hello script is run only in packages packagea, packageb, but not packagec

Additional information:

package.json from packagea

{
  "name": "@scoped/packagea",
  "version": "0.0.1",
  "scripts": {
    "hello": "echo 'Hello world'"
  },
  "dependencies": {
    "@scoped/packageb": "workspace:*",
    "packagec": "workspace:@scoped/packagec@*"
  }
}
  • node -v prints:

v18.16.0

  • Windows, macOS, or Linux?:

macOS in Dev Container (.devcontainer.json)

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

Successfully merging a pull request may close this issue.

1 participant