Skip to content

TSM-02: Add CJS/ESM export compatibility test - #558

Draft
Justin Hammond (Justintime50) wants to merge 1 commit into
ts-migrate/01-ts-build-scaffoldingfrom
ts-migrate/02-package-export-readiness
Draft

TSM-02: Add CJS/ESM export compatibility test#558
Justin Hammond (Justintime50) wants to merge 1 commit into
ts-migrate/01-ts-build-scaffoldingfrom
ts-migrate/02-package-export-readiness

Conversation

@Justintime50

@Justintime50 Justin Hammond (Justintime50) commented Aug 6, 2026

Copy link
Copy Markdown
Member

Summary

Implements topology item 2 by adding explicit package export compatibility coverage for both CJS and ESM consumption paths.

Changes in this PR

  • adds test/services/module_exports_compat.test.js.
  • validates CommonJS require('../..') returns constructable client.
  • validates ESM import('../..') default export returns constructable client.

Testing

  • npx vitest run test/services/module_exports_compat.test.js

Stack Context

Depends on PR #557.

@Justintime50
Justin Hammond (Justintime50) force-pushed the ts-migrate/02-package-export-readiness branch from be693fd to 60d3e85 Compare August 6, 2026 21:07
@Justintime50 Justin Hammond (Justintime50) changed the title TSM-02: add CJS/ESM export compatibility test TSM-02: Add CJS/ESM export compatibility test Aug 6, 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