Skip to content

fix: improve packaging#4

Merged
rhuanbarreto merged 6 commits into
mainfrom
packaging
Feb 23, 2026
Merged

fix: improve packaging#4
rhuanbarreto merged 6 commits into
mainfrom
packaging

Conversation

@rhuanbarreto

@rhuanbarreto rhuanbarreto commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix binary build failure: bun build --compile --bytecode rejects top-level await at parse time even though bun run and tsc accept it. Wrapped all async bootstrap logic in src/cli.ts into an async function main() called via .catch() to fix the v0.1.0 release binaries failure.
  • Add build check to validate pipeline: New build:check script (bun build --compile --bytecode --outfile dist/.build-check) added to bun run validate so this class of regression is caught locally before reaching CI.
  • Clean up npm package: Removed "main": "src/cli.ts" (always included in npm publish regardless of files, pulling the CLI entry point into the package unintentionally) and removed dist/types/ from files (unreachable dead weight — no types condition in exports, Bun consumers get types directly from the .ts source).

Test plan

  • bun run validate passes (lint + typecheck + format + test + ADR check + build check)
  • bun build --compile --bytecode --outfile dist/test && rm dist/test succeeds locally
  • npm pack --dry-run only includes src/formats/rules.ts (no src/cli.ts, no dist/types/)

🤖 Generated with Claude Code

@rhuanbarreto rhuanbarreto changed the title Packaging fix: improve packaging Feb 23, 2026
@rhuanbarreto rhuanbarreto merged commit ea910f1 into main Feb 23, 2026
2 checks passed
@archgatebot archgatebot Bot mentioned this pull request Feb 23, 2026
@rhuanbarreto rhuanbarreto deleted the packaging branch February 24, 2026 22:51
rhuanbarreto added a commit that referenced this pull request Feb 28, 2026
* refactor: restructure main function and improve error handling

* chore: update project description and enhance validation script

* chore: update bun version to 1.3.9

* chore: update validation steps to include build check

* chore: remove duplicate version entry from CHANGELOG

* fix: formatting
rhuanbarreto added a commit that referenced this pull request Mar 3, 2026
* refactor: restructure main function and improve error handling

* chore: update project description and enhance validation script

* chore: update bun version to 1.3.9

* chore: update validation steps to include build check

* chore: remove duplicate version entry from CHANGELOG

* fix: formatting
rhuanbarreto added a commit that referenced this pull request Mar 4, 2026
* refactor: restructure main function and improve error handling

* chore: update project description and enhance validation script

* chore: update bun version to 1.3.9

* chore: update validation steps to include build check

* chore: remove duplicate version entry from CHANGELOG

* fix: formatting
This was referenced Mar 4, 2026
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.

1 participant