[PR #3764] [MERGED] feat(cli): resolves tsconfig references for path aliases #4993

Closed
opened 2026-03-13 12:06:37 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3764
Author: @ericc-ch
Created: 8/3/2025
Status: Merged
Merged: 8/16/2025
Merged by: @Bekacru

Base: canaryHead: feat/resolve-tsconfig-references


📝 Commits (6)

  • 31d713b feat(cli): resolves tsconfig references for path aliases
  • 56ce0f6 chore: generate changeset
  • 332be40 test(cli): config is loaded correctly with alias
  • d3ccf11 Merge branch 'main' into feat/resolve-tsconfig-references
  • bef9aa9 chore: remove changeset
  • 98f1024 Merge branch 'canary' into feat/resolve-tsconfig-references

📊 Changes

2 files changed (+396 additions, -6 deletions)

View changed files

📝 packages/cli/src/utils/get-config.ts (+68 -6)
📝 packages/cli/test/get-config.test.ts (+328 -0)

📄 Description

Previously references field was ignored and path aliases were only taken from main tsconfig file

closes #3762


Summary by cubic

Path aliases are now resolved from all referenced tsconfig files, not just the main tsconfig.json. This allows projects using tsconfig references to have their path aliases recognized correctly.

  • Bug Fixes
    • Handles missing or circular tsconfig references without errors.
    • Supports both directory and direct file references in the references field.

🔄 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/3764 **Author:** [@ericc-ch](https://github.com/ericc-ch) **Created:** 8/3/2025 **Status:** ✅ Merged **Merged:** 8/16/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `feat/resolve-tsconfig-references` --- ### 📝 Commits (6) - [`31d713b`](https://github.com/better-auth/better-auth/commit/31d713b3a1ee7e644fa000471fb77ae9253722cd) feat(cli): resolves tsconfig references for path aliases - [`56ce0f6`](https://github.com/better-auth/better-auth/commit/56ce0f61bb1f35a9d9c0415ec16956985c4db4b9) chore: generate changeset - [`332be40`](https://github.com/better-auth/better-auth/commit/332be40c4367eeaba3d9c3cd69b59ad98eed939f) test(cli): config is loaded correctly with alias - [`d3ccf11`](https://github.com/better-auth/better-auth/commit/d3ccf11e1287a357cd69ab06fafb82a2d43a437e) Merge branch 'main' into feat/resolve-tsconfig-references - [`bef9aa9`](https://github.com/better-auth/better-auth/commit/bef9aa9347dcf56938df96c40d3c0c58bdfe8161) chore: remove changeset - [`98f1024`](https://github.com/better-auth/better-auth/commit/98f1024baa258df0ace2c2c911f7114821a9fbb7) Merge branch 'canary' into feat/resolve-tsconfig-references ### 📊 Changes **2 files changed** (+396 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/cli/src/utils/get-config.ts` (+68 -6) 📝 `packages/cli/test/get-config.test.ts` (+328 -0) </details> ### 📄 Description Previously references field was ignored and path aliases were only taken from main tsconfig file closes #3762 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Path aliases are now resolved from all referenced tsconfig files, not just the main tsconfig.json. This allows projects using tsconfig references to have their path aliases recognized correctly. - **Bug Fixes** - Handles missing or circular tsconfig references without errors. - Supports both directory and direct file references in the references field. <!-- 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-03-13 12:06:37 -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#4993