Skip to content

fix: use prepack for embedded docs generation#87

Merged
orionmiz merged 1 commit intomainfrom
edward_karrot/fix-prepack
Apr 10, 2026
Merged

fix: use prepack for embedded docs generation#87
orionmiz merged 1 commit intomainfrom
edward_karrot/fix-prepack

Conversation

@orionmiz
Copy link
Copy Markdown
Collaborator

Summary

  • Replace postbuild with prepack script for tsx scripts/generate-docs.ts
  • postbuild runs after tsdown but the docs site build output (docs/build/client/llms/) may not exist yet, resulting in empty dist/docs/
  • prepack runs at publish time (Mastra pattern), ensuring docs are generated when the build output is available

Test plan

  • npm run build:docs generates dist/docs/*.md (13 files)
  • npm pack --dry-run shows dist/docs/ files included

🤖 Generated with Claude Code

postbuild runs after tsdown but before docs site is built, so
dist/docs/ would be empty. Use prepack (Mastra pattern) to ensure
docs are generated at publish time when the build output exists.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ventyd Building Building Preview, Comment Apr 10, 2026 9:33am

@orionmiz orionmiz merged commit a12ca6a into main Apr 10, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant