Skip to content

fix: skip docs generation when build output missing#89

Merged
orionmiz merged 1 commit into
mainfrom
edward_karrot/fix-prepack-skip
Apr 10, 2026
Merged

fix: skip docs generation when build output missing#89
orionmiz merged 1 commit into
mainfrom
edward_karrot/fix-prepack-skip

Conversation

@orionmiz

Copy link
Copy Markdown
Collaborator

Summary

  • Fix CI release failure: prepack script (tsx scripts/generate-docs.ts) was failing with exit code 1 when docs/build/client/llms/ doesn't exist
  • Change from process.exit(1) to console.warn() + early return so publishing succeeds even without docs build
  • Docs can still be generated explicitly via npm run build:docs

Fixes https://github.com/daangn/ventyd/actions/runs/24237153402/job/70762517585

Test plan

  • npm run prepack succeeds without docs build output (warns and skips)
  • npm run build:docs still generates dist/docs/*.md correctly

🤖 Generated with Claude Code

prepack runs during npm publish in CI where docs site may not be
built. Instead of failing with exit code 1, log a warning and skip.
Docs can be generated separately via `npm run build:docs`.

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

vercel Bot commented Apr 10, 2026

Copy link
Copy Markdown

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

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

@orionmiz orionmiz merged commit 7d9b7f4 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