Skip to content

Conversation

@dcramer
Copy link
Member

@dcramer dcramer commented Jul 17, 2025

Summary

  • Switched from TypeScript compilation to tsdown bundling to fix GitHub Action execution
  • All dependencies are now bundled into a single minified dist/index.js file
  • This resolves the issue where the v0 tag wasn't working correctly in production

Problem

The GitHub Action was failing in production because it was trying to import dependencies that weren't available at runtime. GitHub Actions require all dependencies to be bundled into the distribution files.

Solution

  • Added tsdown as a bundler
  • Updated build scripts to use tsdown instead of tsc
  • Bundled all dependencies into a single minified file
  • Removed unnecessary build artifacts

Test plan

  • Run pnpm run validate - all tests pass
  • Verify dist/index.js contains bundled dependencies
  • Test the action on a pull request after merging

- Replace TypeScript compilation with tsdown bundling
- Bundle all dependencies into single minified dist/index.js
- Fix GitHub Action execution by including dependencies
- Update build scripts to use tsdown instead of plain tsc
@dcramer dcramer merged commit ce82b43 into main Jul 17, 2025
7 checks passed
@dcramer dcramer deleted the fix/bundle-dependencies branch July 17, 2025 00:52
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