[PR #5260] [MERGED] chore: use type: module by default #22787

Closed
opened 2026-04-15 21:16:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5260
Author: @himself65
Created: 10/12/2025
Status: Merged
Merged: 10/13/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/10/12/type-module


📝 Commits (2)

  • be478a0 chore: use type: module by default
  • 448916d chore: update package.json to use ESM entry points

📊 Changes

7 files changed (+10 additions, -6 deletions)

View changed files

📝 packages/better-auth/package.json (+1 -1)
📝 packages/cli/package.json (+1 -0)
📝 packages/core/package.json (+1 -1)
📝 packages/expo/package.json (+2 -1)
📝 packages/sso/package.json (+2 -1)
📝 packages/stripe/package.json (+2 -1)
📝 packages/telemetry/package.json (+1 -1)

📄 Description

Fixes: https://github.com/better-auth/better-auth/issues/1974


Summary by cubic

Make ESM the default for @better-auth/cli, @better-auth/expo, @better-auth/sso, and @better-auth/stripe by adding "type": "module" to their package.json files. This standardizes module behavior in Node and fixes better-auth/better-auth#1974.


🔄 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/better-auth/better-auth/pull/5260 **Author:** [@himself65](https://github.com/himself65) **Created:** 10/12/2025 **Status:** ✅ Merged **Merged:** 10/13/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/10/12/type-module` --- ### 📝 Commits (2) - [`be478a0`](https://github.com/better-auth/better-auth/commit/be478a0521a092a259ede217ffc5d4850d5602d8) chore: use `type: module` by default - [`448916d`](https://github.com/better-auth/better-auth/commit/448916d5da4847991e3bfa26c9bbadb5ba0303ca) chore: update package.json to use ESM entry points ### 📊 Changes **7 files changed** (+10 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/package.json` (+1 -1) 📝 `packages/cli/package.json` (+1 -0) 📝 `packages/core/package.json` (+1 -1) 📝 `packages/expo/package.json` (+2 -1) 📝 `packages/sso/package.json` (+2 -1) 📝 `packages/stripe/package.json` (+2 -1) 📝 `packages/telemetry/package.json` (+1 -1) </details> ### 📄 Description Fixes: https://github.com/better-auth/better-auth/issues/1974 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Make ESM the default for @better-auth/cli, @better-auth/expo, @better-auth/sso, and @better-auth/stripe by adding "type": "module" to their package.json files. This standardizes module behavior in Node and fixes better-auth/better-auth#1974. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 21:16:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#22787