Skip to content

Keep the Worker bundle sources in the alchemy.new archive - #16

Merged
jonbeckman merged 2 commits into
masterfrom
cursor/fix-publish-archive-bundle-f10b
Nov 28, 2026
Merged

jonbeckman merged 2 commits into
masterfrom
cursor/fix-publish-archive-bundle-f10b

Conversation

@jonbeckman

Copy link
Copy Markdown
Contributor

Summary

alchemy.new stops while bundling agent-board 0.1.1. The generated Worker entry imports @alchemy.run/cloudflare/Bridge. The bundler resolves that import with the worker export condition, which points at src/Bridge.ts. The publish exclude dropped node_modules/**/*.ts and kept only the bootstrap files, so that source is not in the archive and the bundle fails. The same resolve applies to @alchemy.run/better-auth/*.

The publish step now keeps the TypeScript sources under @alchemy.run/cloudflare/src and @alchemy.run/better-auth/src. Node still loads Alchemy's runtime bootstrap as TypeScript. Alchemy 2.0.0-beta.87 does not change this: the generated entry still imports Bridge, and the worker condition still points at TypeScript.

Tests

  • Built the pruned archive with the old exclude, extracted it, and bundled packages/server/src/BoardWorker.ts. The bundle failed with the deploy error: the generated entry imports @alchemy.run/cloudflare/Bridge, which cannot be resolved.
  • Built the pruned archive with this exclude (82,873,564 bytes), extracted it into an empty directory, and bundled the Worker and the site from that tree. Both bundles finished. Nothing was deployed.

Notes

Patch release. Version 0.1.1 stays as published. The next published version is the one to deploy.

Open in Web Open in Cursor 

The generated entry imports @alchemy.run/cloudflare/Bridge, and the worker export condition resolves that to TypeScript. The publish exclude was deleting those sources, so the deploy stopped at the bundle step.

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

github-actions Bot commented Nov 28, 2026 •

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-publish-archive-bundle.md Deploy the published archive

Run nub run tegami locally to create a changelog interactively.

Managed by Tegami.

The publish job and the pull request job pack the same pruned tree through one workflow, so the exclude list stays in one place. The pull request run validates only and does not publish.

Co-authored-by: Jonathan Beckman <jonathantbeckman@gmail.com>
@jonbeckman
jonbeckman merged commit 7f62b9a into master Nov 28, 2026
6 checks passed
@jonbeckman
jonbeckman deleted the cursor/fix-publish-archive-bundle-f10b branch November 28, 2026 19:33
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