[PR #111] [MERGED] fix: build and export all middlewares to esm and cjs modules #118

Closed
opened 2026-02-16 03:16:13 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/workflows-ts/pull/111
Author: @CdTgr
Created: 5/28/2025
Status: Merged
Merged: 5/28/2025
Merged by: @himself65

Base: mainHead: cjs/middleware-state


📝 Commits (2)

  • d439891 Build and export all middlewares to esm and cjs modules
  • 1ff6161 Create afraid-gifts-give.md

📊 Changes

3 files changed (+54 additions, -9 deletions)

View changed files

.changeset/afraid-gifts-give.md (+5 -0)
📝 packages/core/package.json (+48 -8)
📝 packages/core/tsdown.config.ts (+1 -1)

📄 Description

Description

All the middlewares were currently built and exported in ESM modules.

Therefore, any projects using CJS would cause context issues inside the package.

Conditions

  • This PR resolves issue #1978
  • This PR would satisfy the modified test case in #110

🔄 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/run-llama/workflows-ts/pull/111 **Author:** [@CdTgr](https://github.com/CdTgr) **Created:** 5/28/2025 **Status:** ✅ Merged **Merged:** 5/28/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `main` ← **Head:** `cjs/middleware-state` --- ### 📝 Commits (2) - [`d439891`](https://github.com/run-llama/workflows-ts/commit/d439891e066b6a37f346040a6af97de51d7a3e34) Build and export all middlewares to esm and cjs modules - [`1ff6161`](https://github.com/run-llama/workflows-ts/commit/1ff6161278d4331b9db1243b880e48ed2b922378) Create afraid-gifts-give.md ### 📊 Changes **3 files changed** (+54 additions, -9 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/afraid-gifts-give.md` (+5 -0) 📝 `packages/core/package.json` (+48 -8) 📝 `packages/core/tsdown.config.ts` (+1 -1) </details> ### 📄 Description ## Description All the middlewares were currently built and exported in ESM modules. Therefore, any projects using CJS would cause context issues inside the package. ### Conditions - [x] This PR resolves issue [#1978](https://github.com/run-llama/LlamaIndexTS/issues/1978) - [x] This PR would satisfy the modified test case in #110 --- <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 03:16:13 -05:00
yindo closed this issue 2026-02-16 03:16:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/workflows-ts#118