On 03/08/2022 18:30, Jonas Smedegaard wrote:
> Package: pkg-js-tools
> Version: 0.14.32
> Severity: wishlist
> Tags: upstream
>
pkgjs-depends resolves a dependency tree with the inspected package as
root.

This results in reused dependencies always being listed multiple times.

I think it would be helpful to flip it around to resolve multiple trees,
each with the "final leaf" as root and the inspected package (which
would then be the final leaf) omitted.

Please consider providing this as an option - or perhaps do it by
default.

It might also make sense to offer to output the internally computed
graph structure (e.g. in graphviz "dot" format) to allow rendering the
a multipgraph (which is hard to do in a console so more sensible to
offload to other tools).

  - Jonas

Hi,

I just implemented a --graph option (0.14.33). Will see how to fix this issue later.

Cheers,
Yadd

Reply via email to