Skip to content

Conversation

Copy link

Copilot AI commented Jan 22, 2026

Migrates TSDX from v0.14.1 to v2.0.0. TSDX v2 is a complete rewrite using modern Rust/SWC-based tooling instead of Rollup+Babel+Jest+ESLint.

Changes

Dependencies

  • tsdx: ^0.14.1^2.0.0
  • Added bunchee@^6.9.4 (bundler)
  • Added vitest@^4.0.17 (test runner)
  • Added oxlint@^1.41.0 (linter)

Configuration

  • Added vitest.config.ts with globals enabled for backward-compatible test API
  • Updated package.json:
    • Added exports field for proper ESM/CJS resolution
    • Changed ESM output: .esm.js.esm.mjs
    • Added types field alongside existing typings

Scripts

  • test: tsdx testvitest run
  • lint: tsdx lint src testoxlint src test
  • format: tsdx lint src test --fixoxlint src test --fix

Scripts now invoke tools directly rather than through TSDX wrappers to avoid exit code issues in v2.

Tests

  • Snapshots updated to vitest format (different object/error formatting)
  • No behavioral changes
Original prompt

MIgrate TSDX dependency to v2


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: Addono <15435678+Addono@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate TSDX dependency to version 2 Migrate to TSDX v2 Jan 22, 2026
Copilot AI requested a review from Addono January 22, 2026 12:51
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