Skip to content

fix: move ethers from dependencies to devDependencies#358

Open
dawsbot wants to merge 1 commit into
masterfrom
fix/ethers-to-devdeps
Open

fix: move ethers from dependencies to devDependencies#358
dawsbot wants to merge 1 commit into
masterfrom
fix/ethers-to-devdeps

Conversation

@dawsbot

@dawsbot dawsbot commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Summary

ethers@^5.7.2 was listed in dependencies, so every consumer of essential-eth installs ethers transitively — ironic for a library whose pitch is being 10x smaller than ethers.

Verified with grep: ethers is imported nowhere in src/ or test/. Its only use is scripts/update-bundle-sizes.sh (bundle-size comparisons), which is dev-only tooling. This PR moves it to devDependencies.

Changes

  • package.json: ethers moved from dependencies to devDependencies
  • package-lock.json: regenerated (ethers subtree now marked dev; consumers no longer pull it)
  • readme.md: bundle-size table refresh — auto-generated by the repo's own pre-commit hook

Verification

  • vitest run: 174 passed / 33 failed — the 33 failures are identical on unmodified master (integration tests failing with "Must be authenticated!" because no ALCHEMY_API_KEY is set locally). Zero regressions from this change.
  • tsup build: success
  • eslint: 0 errors (pre-existing warnings only)
  • scripts/update-bundle-sizes.sh still works (it ran via the pre-commit hook and produced this PR's readme update)

🤖 Generated with Claude Code

ethers@^5.7.2 was listed as a runtime dependency, but it is not
imported anywhere in src/ or test/ — its only use is in
scripts/update-bundle-sizes.sh for bundle-size comparisons.

For a library whose whole pitch is being 10x smaller than ethers,
shipping ethers as a transitive install to every consumer defeats
the purpose. Moving it to devDependencies keeps the bundle-size
script working while removing it from consumer install trees.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
essential-eth Ready Ready Preview, Comment Jul 6, 2026 7:03pm

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