Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-bun-cli-auto-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@stripe/link-cli': patch
---

Prevent Bun from automatically starting an HTTP server after CLI commands finish by removing the CLI entrypoint's default fetch-bearing export. Explicit HTTP serving remains available through `serve`.
4 changes: 2 additions & 2 deletions packages/cli/src/cli.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,6 @@ cli.command(
);
cli.command(createServeCli(cli));

// Bun auto-starts an HTTP server for default exports with a fetch method.
// This is a CLI entrypoint; HTTP serving must go through the explicit serve command.
cli.serve();

export default cli;