Skip to content

feat: support excluding devDependencies and specific dependency trees - #195

Merged
43081j merged 11 commits into
e18e:mainfrom
outslept:o/add-dependency-exclusion
Nov 10, 2026
Merged

43081j merged 11 commits into
e18e:mainfrom
outslept:o/add-dependency-exclusion

Conversation

@outslept

@outslept outslept commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds two new action inputs to filter the analyzed dep graph before checks run:

  • exclude-dev: Ignores devDependencies and any transitive packages exclusively reachable through them.
  • exclude-dependencies: Accepts a comma-separated list of package names or * wildcard patterns (e.g. @eslint/eslintrc, @types/*) and prunes both the matching packages and their transitive subtrees.

upd: Not entirely sure how you prefer to handle /build output here. Do I need to push manifests as well?

@43081j

43081j commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

pushed a bunch of changes FYI.

roughly:

  • skip the RegExp, just split on * and consume the chunks
  • join the two loops to just iterate from the root instead
  • rename to exclude-packages to be clear its not talking about package.json#dependencies
  • remove getBool as the runner already passes the default value in
  • change the comma helper to use a Set as-is

@github-actions

Copy link
Copy Markdown

e18e dependency analysis

No dependency warnings found.

@43081j
43081j merged commit dbc7686 into e18e:main Nov 10, 2026
4 checks passed
@outslept

Copy link
Copy Markdown
Contributor Author

@43081j forgot to add, closes #10, #29 and Phillipe's PR

@outslept
outslept deleted the o/add-dependency-exclusion branch November 10, 2026 17:41
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.

2 participants