Three fixes:
1. locking.rs: __errno_location is Linux-only; macOS uses __error().
Split the extern "C" declarations by target_os so rvf-runtime
compiles on both platforms.
2. build-rvf-node.yml: NAPI CLI outputs index.<platform>.node instead
of rvf-node.<platform>.node. Added rename step after build.
3. build-rvf-node.yml: darwin builds need -undefined dynamic_lookup
RUSTFLAGS so NAPI symbols resolve at runtime via Node.js.
Added CARGO_TARGET_*_APPLE_DARWIN_RUSTFLAGS env vars.
Co-Authored-By: claude-flow <ruv@ruv.net>
The copy step was failing with "cp: 'X' and 'X' are the same file" because
committed binaries in npm/ subdirs matched the find pattern. Added -maxdepth 1
to only find freshly built files and realpath comparison before cp.
Co-Authored-By: claude-flow <ruv@ruv.net>
- Fix WASM glue: detect Node.js properly instead of relying on fetch()
(fetch on file:// URLs fails in Node.js 18-21)
- Support both CJS require() and ESM import via exports map
- Add .mjs ESM wrapper for dual-format support
- Remove "type": "module" for CJS compatibility
- Bump rvf-wasm to 0.1.5
- Add build-rvf-node.yml CI workflow for cross-platform NAPI builds
(linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc)
- Fix wasm-dedup-check CI: use --ignore-scripts --omit=optional to avoid
EBADPLATFORM errors from platform-specific workspace packages
Co-Authored-By: claude-flow <ruv@ruv.net>