[PR #81] [MERGED] feat: add CJS/ESM dual module support #103

Closed
opened 2026-02-16 06:17:10 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/81
Author: @killagu
Created: 12/15/2025
Status: Merged
Merged: 1/2/2026
Merged by: @christian-bromann

Base: mainHead: feat/cjs


📝 Commits (1)

  • 260d785 feat: add CJS/ESM dual module support

📊 Changes

2 files changed (+33 additions, -5 deletions)

View changed files

📝 package.json (+17 -3)
📝 tsdown.config.ts (+16 -2)

📄 Description

  • Add exports field in package.json for dual module support
  • Configure tsdown to build both CJS and ESM formats
  • Add post-build script to rename files to correct extensions
  • Keep original tsconfig.json configuration
  • Generate single-file outputs: index.cjs and index.mjs

Refs:


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/deepagentsjs/pull/81 **Author:** [@killagu](https://github.com/killagu) **Created:** 12/15/2025 **Status:** ✅ Merged **Merged:** 1/2/2026 **Merged by:** [@christian-bromann](https://github.com/christian-bromann) **Base:** `main` ← **Head:** `feat/cjs` --- ### 📝 Commits (1) - [`260d785`](https://github.com/langchain-ai/deepagentsjs/commit/260d785f3f4cee859169545bff4fea933b55b957) feat: add CJS/ESM dual module support ### 📊 Changes **2 files changed** (+33 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+17 -3) 📝 `tsdown.config.ts` (+16 -2) </details> ### 📄 Description - Add exports field in package.json for dual module support - Configure tsdown to build both CJS and ESM formats - Add post-build script to rename files to correct extensions - Keep original tsconfig.json configuration - Generate single-file outputs: index.cjs and index.mjs Refs: - https://github.com/langchain-ai/deepagentsjs/issues/75 - https://github.com/langchain-ai/deepagents/issues/557 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 06:17:10 -05:00
yindo closed this issue 2026-02-16 06:17:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#103