[PR #5316] [CLOSED] fix(docs): use ts-node for sync-orama script to prevent build error #5921

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5316
Author: @ibxbit
Created: 10/15/2025
Status: Closed

Base: canaryHead: fix/docs-tsnode-script


📝 Commits (8)

  • f0e78d0 docs: Fix typo in localohst to localhost in .env.example
  • 4266833 Merge branch 'canary' into canary
  • d202fda fix(docs): add default values to ogSchema to prevent ZodError during prerendering
  • 1bb09bc fix(docs): use ts-node for sync-orama script to prevent build error
  • ae70505 Merge branch 'canary' of https://github.com/better-auth/better-auth into canary
  • e0ebd40 Merge branch 'canary' into fix/docs-tsnode-script
  • 015ceef chore(docs): Regenerate pnpm-lock.yaml after adding ts-node
  • 0da7415 fix(docs): add --esm flag to ts-node for sync-orama script

📊 Changes

3 files changed (+107 additions, -18 deletions)

View changed files

📝 docs/app/api/og/route.tsx (+3 -3)
📝 docs/package.json (+2 -1)
📝 pnpm-lock.yaml (+102 -14)

📄 Description

Updated the scripts:sync-orama script in docs/package.json to use ts-node instead of node. This resolves the ERR_UNKNOWN_FILE_EXTENSION error when attempting to run the TypeScript file directly during the build process, thus fixing a build process oversight.


Summary by cubic

Use ts-node for the docs sync script to fix TypeScript build errors. Also prevent OG API prerender failures and correct a localhost typo in the expo example env.

  • Bug Fixes

    • Switch scripts:sync-orama to ts-node to avoid ERR_UNKNOWN_FILE_EXTENSION during build.
    • Add default values to ogSchema to prevent ZodError in edge prerendering.
    • Fix BETTER_AUTH_URL typo (localohst → localhost) in demo/expo-example/.env.example.
  • Dependencies

    • Add ts-node (^10.9.2) to docs/package.json.

🔄 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/5316 **Author:** [@ibxbit](https://github.com/ibxbit) **Created:** 10/15/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `fix/docs-tsnode-script` --- ### 📝 Commits (8) - [`f0e78d0`](https://github.com/better-auth/better-auth/commit/f0e78d08d95b96cd89be40b750298ecef58dbaab) docs: Fix typo in localohst to localhost in .env.example - [`4266833`](https://github.com/better-auth/better-auth/commit/426683390811ae3f47b5235b483e5ae9b3dbb19e) Merge branch 'canary' into canary - [`d202fda`](https://github.com/better-auth/better-auth/commit/d202fda9bc05808dca32727812b161f0b59de522) fix(docs): add default values to ogSchema to prevent ZodError during prerendering - [`1bb09bc`](https://github.com/better-auth/better-auth/commit/1bb09bca7d27381524074e3651f4e7e5302ffab0) fix(docs): use ts-node for sync-orama script to prevent build error - [`ae70505`](https://github.com/better-auth/better-auth/commit/ae705058f9ac305d8673d6302b19dcc0b874c125) Merge branch 'canary' of https://github.com/better-auth/better-auth into canary - [`e0ebd40`](https://github.com/better-auth/better-auth/commit/e0ebd409410f5b93e2beabcb22389a75c87a5df8) Merge branch 'canary' into fix/docs-tsnode-script - [`015ceef`](https://github.com/better-auth/better-auth/commit/015ceef318bcb44c7e0b1b68af90e43023d01f90) chore(docs): Regenerate pnpm-lock.yaml after adding ts-node - [`0da7415`](https://github.com/better-auth/better-auth/commit/0da74153c53410f0f31d7aaf8f362ab0ea837ede) fix(docs): add --esm flag to ts-node for sync-orama script ### 📊 Changes **3 files changed** (+107 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `docs/app/api/og/route.tsx` (+3 -3) 📝 `docs/package.json` (+2 -1) 📝 `pnpm-lock.yaml` (+102 -14) </details> ### 📄 Description Updated the `scripts:sync-orama` script in `docs/package.json` to use `ts-node` instead of `node`. This resolves the `ERR_UNKNOWN_FILE_EXTENSION` error when attempting to run the TypeScript file directly during the build process, thus fixing a build process oversight. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Use ts-node for the docs sync script to fix TypeScript build errors. Also prevent OG API prerender failures and correct a localhost typo in the expo example env. - **Bug Fixes** - Switch scripts:sync-orama to ts-node to avoid ERR_UNKNOWN_FILE_EXTENSION during build. - Add default values to ogSchema to prevent ZodError in edge prerendering. - Fix BETTER_AUTH_URL typo (localohst → localhost) in demo/expo-example/.env.example. - **Dependencies** - Add ts-node (^10.9.2) to docs/package.json. <!-- 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:41:24 -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#5921