Skip to content

feat(inspector): group dependencies tree by catalog or module type#171

Merged
antfu merged 1 commit into
mainfrom
antfu/deps-on-grouping-toggle
May 28, 2026
Merged

feat(inspector): group dependencies tree by catalog or module type#171
antfu merged 1 commit into
mainfrom
antfu/deps-on-grouping-toggle

Conversation

@antfu
Copy link
Copy Markdown
Owner

@antfu antfu commented May 28, 2026

Adds a small icon button next to the deep-tree toggle in the package details panel that cycles the "Used by" / "Deps on" tree through three grouping modes: None, Catalog, and Module. Catalog mode addresses #51 / PR #53 — surfacing which pnpm catalog each direct dep comes from — while module mode (ESM / CJS / DUAL / …) gives a quick read on a package's module-type composition without leaving the tree view. The choice persists in localStorage alongside the other UI preferences, and grouping applies only at the top level so deep-tree expansion still works inside each section.

Created with the help of an agent.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 28, 2026

Open in StackBlitz

npm i https://pkg.pr.new/node-modules-inspector@171
npm i https://pkg.pr.new/node-modules-tools@171

commit: 1daf136

@antfu antfu merged commit 46810ab into main May 28, 2026
8 of 11 checks passed
@antfu antfu deleted the antfu/deps-on-grouping-toggle branch May 28, 2026 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant