Packages without version
in manifest ignored when sorting dependency graph
#3933
Labels
Milestone
version
in manifest ignored when sorting dependency graph
#3933
pnpm version: 6.19.1
Code to reproduce the issue:
Not included, but I can probably put something together if desired. I found the easiest way to see this was to debug
node ../<path-to-pnpm-repo>/pnpm/packages/pnpm/spnpm.js <script> -r
from a pnpm monorepo I had locally.Breakpoint location:
pnpm/packages/pkgs-graph/src/index.ts
Line 85 in c547788
Expected behavior:
If a workspace dependency is referenced with
workspace:*
, it should be added to the list of dependencies in the package graph - even if the target dependency is missing theversion
field in its manifest.Actual behavior:
pnpm filters out all dependencies without a
version
field. This can cause recursive run to execute in non-topological order.Additional information:
node -v
prints:The text was updated successfully, but these errors were encountered: