Skip to content

refactor: replace ts-node with native Node TypeScript support#110

Draft
Garbee wants to merge 1 commit intogarbee/remove/rimraffrom
garbee/remove/ts-node
Draft

refactor: replace ts-node with native Node TypeScript support#110
Garbee wants to merge 1 commit intogarbee/remove/rimraffrom
garbee/remove/ts-node

Conversation

@Garbee
Copy link
Copy Markdown
Member

@Garbee Garbee commented Mar 20, 2026

Summary

  • Remove ts-node, switch from CommonJS to ES modules
  • Use Node 24's --experimental-strip-types for native TypeScript execution in tests
  • Use mock.module() (--experimental-test-module-mocks) for ESM-compatible module mocking in tests
  • Convert eslint config from CJS to ESM
  • Add .ts extensions to all relative imports with rewriteRelativeImportExtensions in tsconfig

Test plan

  • All 43 tests pass (yarn test)
  • Build succeeds (yarn build)
  • Lint passes (yarn lint)

No QA Required

Switch from CommonJS to ES modules and remove ts-node by leveraging
Node 24's --experimental-strip-types for native TypeScript execution.
Tests use mock.module() for ESM-compatible module mocking.
@Garbee Garbee self-assigned this Mar 20, 2026
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