I have this awesome tool madge. I do
madge --extensions ts,tsx,js,jsx --json .
to get a nice view of local (read non-NPM) dependencies.
I have this awesome tool depcruise. I do
depcruise --output-type json .
to get a thorough view of dependencies (NPM included), summary with some stats and beyond that.
Now, if I write the output from last command to a file, I run the command below to reduce the thorough view to a nice view of all dependencies.
I may also run
madge --extensions ts,tsx,js,jsx --include-npm --json .
but then I get not as nice output, depcruise resolves symlinks which is just what I need working in a lerna monorepo.