Skip to content

fix: 🐛 ignore @astrojs/react in knip config - #31

Merged
iamnewton merged 1 commit into
mainfrom
fix/knip-astrojs-react
Aug 28, 2026
Merged

fix: 🐛 ignore @astrojs/react in knip config#31
iamnewton merged 1 commit into
mainfrom
fix/knip-astrojs-react

Conversation

@iamnewton

Copy link
Copy Markdown
Contributor

Knip flags @astrojs/react as an unused devDependency in packages/components-doc because it's registered as an Astro integration in the root astro.config.ts rather than statically imported in the package. packages/components-doc has sandbox.tsx which requires the React integration to render, but Knip cannot trace the link from the integration declaration to the package-level dependency. Adding it to ignoreDependencies unblocks the Dependabot PR (#25) and any future bumps of this package.

…not as static import

packages/components-doc has sandbox.tsx requiring the React integration,
but @astrojs/react is declared as an Astro integration in the root
astro.config.ts rather than statically imported in the package. Knip
cannot trace this link and flags it as an unused devDependency.

Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com>
@iamnewton
iamnewton requested a review from a team as a code owner August 28, 2026 21:28
@github-actions github-actions Bot added the bug Something isn't working label Aug 28, 2026
@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #31   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           20        20           
  Lines          105       105           
  Branches        18        18           
=========================================
  Hits           105       105           
Components Coverage Δ
components-doc 100.00% <ø> (ø)
registry-doc 100.00% <ø> (ø)

@iamnewton
iamnewton merged commit 91c2872 into main Aug 28, 2026
36 checks passed
@iamnewton
iamnewton deleted the fix/knip-astrojs-react branch August 28, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant