Skip to content

Comments

feat: add option to include/exclude dev deps#127

Draft
serhalp wants to merge 1 commit intoe18e:mainfrom
serhalp:fix/10
Draft

feat: add option to include/exclude dev deps#127
serhalp wants to merge 1 commit intoe18e:mainfrom
serhalp:fix/10

Conversation

@serhalp
Copy link

@serhalp serhalp commented Feb 18, 2026

I was setting up the action in some of my projects and I was annoyed that I couldn't exclude dev deps, so here you go 😁.

Closes #10.

@github-actions
Copy link

github-actions bot commented Feb 18, 2026

⚠️ Duplicate Dependencies (found: 6, threshold: 1)

📦 Package 📋 Versions
@actions/http-client
2 versions
  • @e18e/action-dependency-diff@0.0.1
    • @actions/github@9.0.0
      • @actions/http-client@3.0.2

  • @e18e/action-dependency-diff@0.0.1
    • @actions/core@3.0.0
      • @actions/http-client@4.0.0

eslint-visitor-keys
2 versions
  • @e18e/action-dependency-diff@0.0.1
    • eslint@10.0.0
      • @eslint-community/eslint-utils@4.9.1
        • eslint-visitor-keys@3.4.3

  • @e18e/action-dependency-diff@0.0.1
    • eslint@10.0.0
      • eslint-visitor-keys@5.0.0

ignore
2 versions
  • @e18e/action-dependency-diff@0.0.1
    • eslint@10.0.0
      • ignore@5.3.2

  • @e18e/action-dependency-diff@0.0.1
    • typescript-eslint@8.56.0
      • @typescript-eslint/eslint-plugin@8.56.0
        • ignore@7.0.5

brace-expansion
2 versions
  • @e18e/action-dependency-diff@0.0.1
    • typescript-eslint@8.56.0
      • ...
        • @typescript-eslint/typescript-estree@8.56.0
          • minimatch@9.0.5
            • brace-expansion@2.0.2

  • @e18e/action-dependency-diff@0.0.1
    • eslint@10.0.0
      • @eslint/config-array@0.23.1
        • minimatch@10.2.0
          • brace-expansion@5.0.2

minimatch
2 versions
  • @e18e/action-dependency-diff@0.0.1
    • eslint@10.0.0
      • @eslint/config-array@0.23.1
        • minimatch@10.2.0

  • @e18e/action-dependency-diff@0.0.1
    • typescript-eslint@8.56.0
      • @typescript-eslint/eslint-plugin@8.56.0
        • @typescript-eslint/type-utils@8.56.0
          • @typescript-eslint/typescript-estree@8.56.0
            • minimatch@9.0.5

balanced-match
2 versions
  • @e18e/action-dependency-diff@0.0.1
    • typescript-eslint@8.56.0
      • ...
        • minimatch@9.0.5
          • brace-expansion@2.0.2
            • balanced-match@1.0.2

  • @e18e/action-dependency-diff@0.0.1
    • eslint@10.0.0
      • @eslint/config-array@0.23.1
        • minimatch@10.2.0
          • brace-expansion@5.0.2
            • balanced-match@4.0.2

💡 To find out what depends on a specific package, run: npm ls example-package

export function computeDependencyVersions(
lockFile: ParsedLockFile
lockFile: ParsedLockFile,
includeDevDeps: boolean
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i wonder if its worth just accepting excludeTypes: DependencyType[] (or whatever the type is called)

then set the right visitors based on the specified types

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.

Add an option to exclude dev dependencies

2 participants