Skip to content

Conversation

Copy link

Copilot AI commented Dec 11, 2025

PR #139 upgraded @types/glob to v9.0.0, which is a stub package directing users to the built-in types from glob itself. This broke TypeScript compilation with error TS2688: Cannot find type definition file for 'glob'.

Changes

  • Removed @types/glob from devDependencies in package.json
  • Updated package-lock.json to reflect the removal
  • Rebuilt dist/ artifacts

The glob package already provides its own type definitions, making the separate @types package unnecessary and conflicting.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/microsoft/component-detection/releases/latest
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/component-detection-dependency-submission-action/component-detection-dependency-submission-action/node_modules/.bin/jest (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Merging #139 broke the test.yml flow - see failure here: https://github.com/advanced-security/component-detection-dependency-submission-action/actions/runs/19709404186/job/56465566211#step:3:29

Work through a few options for fixing, make the change that is minimal to fix this without switching to an entirely new JS architecture paradigm.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

The @types/glob package was upgraded to v9.0.0 in PR #139, which is a stub package that expects glob to provide its own type definitions. This caused TypeScript compilation to fail with "Cannot find type definition file for 'glob'".

Since glob now provides its own types, removing @types/glob resolves the issue.

Co-authored-by: felickz <1760475+felickz@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix test.yml flow after merging PR 139 Remove @types/glob to fix TypeScript compilation failure Dec 11, 2025
Copilot AI requested a review from felickz December 11, 2025 15:00
@felickz felickz marked this pull request as ready for review December 11, 2025 17:59
@felickz felickz requested review from a team as code owners December 11, 2025 17:59
@felickz felickz requested review from adrienpessu and removed request for a team December 11, 2025 17:59
Copy link
Contributor

@felickz felickz left a comment

Choose a reason for hiding this comment

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

Removing a dependency fixes a broken test/build is a 💯 fix from me!

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