Skip to content

feat: merge-train/ci#21746

Open
AztecBot wants to merge 7 commits intonextfrom
merge-train/ci
Open

feat: merge-train/ci#21746
AztecBot wants to merge 7 commits intonextfrom
merge-train/ci

Conversation

@AztecBot
Copy link
Collaborator

@AztecBot AztecBot commented Mar 18, 2026

BEGIN_COMMIT_OVERRIDE
feat: split bb.js into arch-specific npm packages (#21700)
END_COMMIT_OVERRIDE

## Summary

- Ships `@aztec/bb.js` native binaries as separate per-platform packages
(`@aztec/bb.js-linux-x64`, `@aztec/bb.js-linux-arm64`,
`@aztec/bb.js-darwin-x64`, `@aztec/bb.js-darwin-arm64`) using the
`optionalDependencies` pattern (same as esbuild, swc, etc.)
- The wrapper `@aztec/bb.js` drops from ~170MB to ~17MB (JS + WASM
only); npm/yarn/pnpm only download the matching platform's binaries
- Platform detection in `platform.ts` resolves binaries from the arch
package first, falls back to local `build/` for dev
- Release pipeline and aztec-up Verdaccio setup updated to publish arch
packages before the wrapper

## Test plan

- [ ] Verify `npm pack` in `barretenberg/ts/` excludes `build/`
directory
- [ ] Verify `prepare_arch_packages.sh` generates correct package dirs
with binaries
- [ ] Verify `findBbBinary()` resolves from both arch package and
`build/` fallback
- [ ] Verify aztec-up Verdaccio tests install the correct arch package
- [ ] Verify WASM fallback still works when no arch package is installed
Copy link
Collaborator

@ludamad ludamad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Auto-approved

@AztecBot AztecBot added this pull request to the merge queue Mar 18, 2026
@AztecBot
Copy link
Collaborator Author

🤖 Auto-merge enabled after 4 hours of inactivity. This PR will be merged automatically once all checks pass.

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants