Skip to content

Fix Bun Elysia entry point detection - #169

Open
jay23606 wants to merge 1 commit into
fly-apps:mainfrom
jay23606:fix/165-elysia-entrypoint
Open

jay23606 wants to merge 1 commit into
fly-apps:mainfrom
jay23606:fix/165-elysia-entrypoint

Conversation

@jay23606

Copy link
Copy Markdown

Fixes #165

Change

For Bun projects without a start script, select an existing module or main entry (trying its .ts path when the declared file is missing), then a file from scripts.dev without --watch, and finally src/index.ts or the existing index.ts fallback. This makes the Elysia template generate a command for its actual src/index.ts entry.

Validation

  • Regression test on the clean base failed as expected: generated bun index.ts instead of bun src/index.ts.
  • The same regression test passed on this branch; all five Bun start-command tests passed.
  • npm run eslint passed.
  • Full npm test on this branch: 318 passing, 10 pending, 48 failing. The clean-base run also failed under the same WSL-mounted Windows checkout with unrelated CRLF-sensitive snapshots and .dockerignore template errors. No files related to those failures changed.
  • Docker image build and HTTP smoke test were not run.

🤖 Generated with Claude Code

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Signed-off-by: jay23606 <4602056+jay23606@users.noreply.github.com>
@alexleventer
alexleventer self-requested a review October 22, 2026 23:41
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.

Elysia (Bun): the container runs bun index.ts, but the entry file is src/index.ts

1 participant