Skip to content

fix: add CJS declarations for public exports - #103

Merged
sjungwon03 merged 1 commit into
devfrom
fix/102-cjs-public-export-types
Aug 3, 2026
Merged

fix: add CJS declarations for public exports#103
sjungwon03 merged 1 commit into
devfrom
fix/102-cjs-public-export-types

Conversation

@sjungwon03

Copy link
Copy Markdown
Member

Summary

  • fixes Node16/CommonJS TypeScript TS1479 failures for TypeChain root, /langchain, /agent, and /typemcp static imports
  • adds matching CJS runtime bundles (.cjs) and conditionally selected CommonJS declarations (.d.cts) while retaining existing ESM artifacts
  • verifies all public entrypoint artifacts and package export conditions
  • extends packed Node16 CommonJS consumer coverage to compile and execute root, LangChain, agent, and TypeMCP subpath imports with their declared peers
  • updates current-release documentation to TypeChain 0.2.1 and TypeMCP 0.3.1

Verification

  • npm run verify
  • npm run verify:consumer
  • npm run verify:publish
  • npm audit --omit=dev --audit-level=low
  • git diff --check

Closes #102

@sjungwon03 sjungwon03 added area:decorators Standard TypeScript decorator metadata and registration bug Something isn't working release-promotion size:M Medium, focused change labels Aug 3, 2026

@sjungwon03-ai sjungwon03-ai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed the exact head 7a8d4d3. Verified nested import/require type conditions and matching CJS artifacts, packed Node16 CommonJS static-import compilation and runtime for root/langchain/agent/typemcp with declared peers, plus full CI and npm 12 readiness. No blocking findings.

@sjungwon03
sjungwon03 merged commit 859477c into dev Aug 3, 2026
2 checks passed
@sjungwon03
sjungwon03 deleted the fix/102-cjs-public-export-types branch August 3, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:decorators Standard TypeScript decorator metadata and registration bug Something isn't working release-promotion size:M Medium, focused change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: provide CJS declarations for TypeChain public exports

2 participants