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

peerDependencies do not participate in ordering #7813

Closed
1 of 4 tasks
gracicot opened this issue Mar 20, 2024 · 0 comments · Fixed by #7821
Closed
1 of 4 tasks

peerDependencies do not participate in ordering #7813

gracicot opened this issue Mar 20, 2024 · 0 comments · Fixed by #7821
Assignees

Comments

@gracicot
Copy link

Verify latest release

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

pnpm version

v8.10.5

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

No response

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

No response

Reproduction steps

Create a workspace with two projects in packages/

  • project a is standalone project that has a build step
  • project b has a peer dependency on a, and a build step that depends on a being built
  • pnpm --recursive run build

Describe the Bug

Even with the --sort flag, the pnpm recursive build command will not order build commands.

Workaround: move the peer dependency into dependencies

Expected Behavior

Having the package build in order of dependency.

Which Node.js version are you using?

v20.10.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

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.

2 participants