TSM-02: Add CJS/ESM export compatibility test - #558
Merged
Justin Hammond (Justintime50) merged 2 commits intoSep 1, 2026
Merged
Conversation
Justin Hammond (Justintime50)
force-pushed
the
ts-migrate/02-package-export-readiness
branch
from
August 6, 2026 21:07
be693fd to
60d3e85
Compare
Justin Hammond (Justintime50)
force-pushed
the
ts-migrate/02-package-export-readiness
branch
3 times, most recently
from
August 7, 2026 19:49
a9eb4be to
b3e282a
Compare
Justin Hammond (Justintime50)
force-pushed
the
ts-migrate/02-package-export-readiness
branch
from
August 7, 2026 19:54
b3e282a to
eb35df3
Compare
Justin Hammond (Justintime50)
marked this pull request as ready for review
August 12, 2026 20:27
sam wuraola (samw-easypost)
approved these changes
Aug 17, 2026
Justin Hammond (Justintime50)
deleted the
ts-migrate/02-package-export-readiness
branch
September 1, 2026 20:50
Justin Hammond (Justintime50)
added a commit
that referenced
this pull request
Sep 1, 2026
## Summary > NOTE: The `dev-docs` in this PR can mostly be ignored as it was used to steer the agent during this entire stack development, but can be reviewed if desired (is later removed as it's not intended to stay) Codifies permissive TypeScript migration guardrails and adds explicit timing/rules for when rename-only conversion ends and type hardening begins. ## Changes in this PR - adds permissive strategy guidance in dev docs (dev-docs/TYPE_STRATEGY.md) - adds compile-only type compatibility checks (tsconfig.type-tests.json and test/types/permissive_types.ts) - wires typescript:compat into the typescript pipeline in package.json - updates dev-docs/TS_MIGRATION_EXECUTION_BOARD.md with: - Type-Integration Policy by phase (TSM-00..TSM-91) - required hardening checks for TSM-06+ - deferred typing PR requirements - catch-up schedule for hardening already completed foundation layers ## Testing - npm run typescript ## Stack Context Depends on PR #558.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements topology item 2 by adding explicit package export compatibility coverage for both CJS and ESM consumption paths.
Changes in this PR
test/services/module_exports_compat.test.js.require('../..')returns constructable client.import('../..')default export returns constructable client.Testing
npx vitest run test/services/module_exports_compat.test.jsStack Context
Depends on PR #557.