pub fn components(lock: &Lockfile) -> Vec<Component>Expand description
The real (non-root, non-link) packages a lockfile pins, as bill-of-materials components,
sorted by name then version — one component per distinct name@version (a workspace lock
can pin the same version at several paths). Every entry under a node_modules/ segment
counts, including ones nested below a workspace path (app/node_modules/…); the root ""
project entry, the workspace directories themselves, and link: true workspace/file:
links are excluded — those are local paths, not distributable packages.