[PR #5427] [MERGED] fix(core): correctly set typesVersions paths #22902

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5427
Author: @XiNiHa
Created: 10/20/2025
Status: Merged
Merged: 10/20/2025
Merged by: @himself65

Base: canaryHead: fix/core-typesversions


📝 Commits (1)

  • b5ac6ab fix(core): correctly set typesVersions paths

📊 Changes

1 file changed (+20 additions, -17 deletions)

View changed files

📝 packages/core/package.json (+20 -17)

📄 Description

This fixes an issue where types exported from @better-auth/core fail to resolve with moduleResolution: Node10.

Before:
스크린샷 2025-10-20 오후 8 51 10

After:

스크린샷 2025-10-20 오후 8 50 14

Summary by cubic

Fixes TypeScript type resolution for @better-auth/core when using moduleResolution: Node10. Corrects typesVersions paths so root and subpath exports point to the right .d.ts files.

  • Bug Fixes
    • Mapped "." to dist/index.d.ts and subpaths (api, async_hooks, context, env, error, utils, social-providers, db, db/adapter, oauth2) to dist//index.d.ts.
    • Types now resolve correctly for Node10-style module resolution.

🔄 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/5427 **Author:** [@XiNiHa](https://github.com/XiNiHa) **Created:** 10/20/2025 **Status:** ✅ Merged **Merged:** 10/20/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/core-typesversions` --- ### 📝 Commits (1) - [`b5ac6ab`](https://github.com/better-auth/better-auth/commit/b5ac6abc95464317548b0d5b52d0e53b811f11f6) fix(core): correctly set typesVersions paths ### 📊 Changes **1 file changed** (+20 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/package.json` (+20 -17) </details> ### 📄 Description This fixes an issue where types exported from `@better-auth/core` fail to resolve with `moduleResolution: Node10`. Before: <img width="1920" height="583" alt="스크린샷 2025-10-20 오후 8 51 10" src="https://github.com/user-attachments/assets/fbfba1fd-0473-48c4-9ce6-377072efefb1" /> After: <img width="1920" height="496" alt="스크린샷 2025-10-20 오후 8 50 14" src="https://github.com/user-attachments/assets/10244101-3f16-4707-ba83-283b953b1f30" /> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes TypeScript type resolution for @better-auth/core when using moduleResolution: Node10. Corrects typesVersions paths so root and subpath exports point to the right .d.ts files. - **Bug Fixes** - Mapped "." to dist/index.d.ts and subpaths (api, async_hooks, context, env, error, utils, social-providers, db, db/adapter, oauth2) to dist/<subpath>/index.d.ts. - Types now resolve correctly for Node10-style module resolution. <!-- 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:21:33 -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#22902