Skip to content

chore: fix depcheck failure from the storybook merge - #1305

Open
dorianvp wants to merge 2 commits into
devfrom
bb/fix-depcheck-failure-on-pr-thr_fdci8kcqia
Open

chore: fix depcheck failure from the storybook merge#1305
dorianvp wants to merge 2 commits into
devfrom
bb/fix-depcheck-failure-on-pr-thr_fdci8kcqia

Conversation

@dorianvp

Copy link
Copy Markdown
Member

Summary

yarn depcheck fails on every PR based on dev since the storybook merge (#1278, commit 5bd8fc4):

  • reg-cli is a real dependency. visual/diff.mts spawns node_modules/.bin/reg-cli by path, which depcheck cannot trace. It joins the ignore list in .depcheckrc.yml with the reason recorded.
  • @vitejs/plugin-react is unused. Nothing imports it, @storybook/react-vite and @storybook/react-native-web-vite 9.1.20 do not declare it as a dependency or peer, and vite-plugin-rnw bundles its own copy. Removed from package.json and yarn.lock.

Test plan

  • yarn depcheck reports "No depcheck issue"
  • CI js-depcheck job passes

🤖 Generated with Claude Code

dorianvp and others added 2 commits August 23, 2026 20:58
reg-cli is spawned by path in visual/diff.mts, which depcheck cannot
trace, so it joins the ignore list. @vitejs/plugin-react is unused:
nothing imports it and no installed package declares it as a peer.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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