Skip to content

Keep the Worker bridge sources in the publish archive - #17

Closed
jonbeckman wants to merge 1 commit into
masterfrom
cursor/keep-worker-bridge-sources-5f5f
Closed

jonbeckman wants to merge 1 commit into
masterfrom
cursor/keep-worker-bridge-sources-5f5f

Conversation

@jonbeckman

Copy link
Copy Markdown
Contributor

Summary

A deploy of solzero/agent-board@0.1.1 failed while bundling the board Worker, the site, and the domain backfill. The generated entry imports @alchemy.run/cloudflare/Bridge. Alchemy 2.0.0-beta.85 and beta.87 both generate that import. The Worker bundler resolves it with the worker export condition, which is src/Bridge.ts. The publish exclude dropped node_modules/**/*.ts and kept only the Bootstrap sources Node loads, so that file was not in the archive.

@alchemy.run/cloudflare and @alchemy.run/better-auth are already dependencies of @agent-board/server. Upgrading Alchemy does not change the worker condition. The archive now keeps those two packages' TypeScript sources. A bundle of the pruned, excluded tree resolves @alchemy.run/cloudflare/Bridge and finishes.

Tests

  • nub run typecheck
  • nub run effect:diagnostics
  • nub run lint
  • nub run format
  • Fresh install in a clean directory, nub prune --prod, the release.yml exclude list, then the Alchemy Worker bundle for packages/server/src/BoardWorker.ts. The bundle completed. The only external imports left are node: built-ins.

Notes

Alchemy 2.0.0-beta.87 is the latest beta and still points the worker condition at TypeScript, so this pull request does not bump Alchemy. The published 0.1.1 archive is unchanged. The next registry publish is the one a deploy can bundle.

Open in Web Open in Cursor 

The Worker bundler resolves @alchemy.run/cloudflare/Bridge and Better Auth through the worker export condition, which is TypeScript. The archive exclude was dropping those sources, so a deploy failed while bundling the board Worker.

Co-authored-by: Jonathan Beckman <jonathantbeckman@gmail.com>
@jonbeckman
jonbeckman marked this pull request as ready for review November 28, 2026 19:10
@jonbeckman

Copy link
Copy Markdown
Contributor Author

Duplicate of #16, which has the same fix. #16 also keeps .tsx sources and has the full archive-bundle proof. Closing this one.

@jonbeckman jonbeckman closed this Nov 28, 2026
@jonbeckman
jonbeckman deleted the cursor/keep-worker-bridge-sources-5f5f branch November 28, 2026 19:11
@github-actions

Copy link
Copy Markdown
Contributor

Tegami

This repository uses Tegami to manage releases. When your changes affect published packages, add a changelog file under .tegami/ before merging.

Create a changelog → · Changelog format

Release preview

Package Bump Version
agent-board patch 0.1.1 → 0.1.2

Changelogs in this PR

Changelog Title
2026-11-28-deploy-worker-bridge.md Deploy the published package

Run nub run tegami locally to create a changelog interactively.

Managed by Tegami.

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.

2 participants