mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
Resolves issue #21434 where Bun fails to build the first time because it tries to generate C++ → Zig bindings before installing @lezer/cpp. The cppbind.ts script imports @lezer/cpp, but the CMake build system was running this script before ensuring that the root-level node_modules was installed. Changes: - Add register_bun_install() call for root directory in BuildBun.cmake - Make bun-cppbind target depend on root node_modules installation - This ensures @lezer/cpp is available before cppbind.ts runs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>