Skip to content

chore: remove unused devDependencies - #508

Merged
tusbar merged 1 commit into
masterfrom
tusbar/remove-unused-devdeps
Jul 31, 2026
Merged

chore: remove unused devDependencies#508
tusbar merged 1 commit into
masterfrom
tusbar/remove-unused-devdeps

Conversation

@tusbar

@tusbar tusbar commented Jul 31, 2026

Copy link
Copy Markdown
Member

Audited package.json against actual usage across the sources, configs and workflows. Two devDependencies are dead weight:

Package Why
@jest/types Never imported – jest.config.ts takes Config from jest, and tests/index.spec.ts uses @jest/globals
ts-node Was only there so Jest could load jest.config.ts. Node 24 strips types natively and Jest 30 relies on that

Everything else is load-bearing and stays: @swc/core (required peer of @swc/jest), @jest/globals, @swc/jest, jest, jest-junit (CI reporter), @tsconfig/node24, typescript, @types/node, xo + eslint-config-xo-bizon, tsdown, semantic-release + @bizon/semantic-release-config.

.github/dependabot.yml needs no change – the jest group's @jest/* pattern still matches @jest/globals.

Verification

pnpm xo && pnpm check:ts && pnpm test && pnpm build all pass: 7 tests, 100% coverage, dual CJS/ESM output builds as before.

@jest/types was never imported: jest.config.ts takes Config from
`jest` and the test suite uses @jest/globals.

ts-node was only needed for Jest to load jest.config.ts. Node 24
strips types natively and Jest 30 relies on that, so it is dead
weight.
Copilot AI review requested due to automatic review settings July 31, 2026 12:55
@tusbar
tusbar enabled auto-merge (squash) July 31, 2026 12:55
@tusbar
tusbar merged commit d2e482d into master Jul 31, 2026
5 checks passed
@tusbar
tusbar deleted the tusbar/remove-unused-devdeps branch July 31, 2026 12:55
@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (ceae2ed) to head (ae0a73f).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #508   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           12        12           
  Branches         1         1           
=========================================
  Hits            12        12           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bizon-bot

Copy link
Copy Markdown
Member

🎉 This PR is included in version 6.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR trims the project’s declared devDependency surface by removing @jest/types and ts-node from package.json, aligning the manifest with what’s directly imported/used in the repo while keeping the lockfile consistent with the updated dependency set.

Changes:

  • Removed @jest/types from devDependencies.
  • Removed ts-node from devDependencies.
  • Regenerated pnpm-lock.yaml to reflect the updated dependency graph.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Removes @jest/types and ts-node from declared devDependencies.
pnpm-lock.yaml Updates the lockfile to reflect the dependency graph after removing the two devDependencies.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pnpm-lock.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants