mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-06-01 23:00:37 +00:00
- 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>
30 lines
884 B
JSON
30 lines
884 B
JSON
{
|
|
"name": "@ruvector/rvf-wasm",
|
|
"version": "0.1.5",
|
|
"description": "RuVector Format WASM microkernel for browser and edge vector operations",
|
|
"main": "pkg/rvf_wasm.js",
|
|
"types": "pkg/rvf_wasm.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./pkg/rvf_wasm.d.ts",
|
|
"import": "./pkg/rvf_wasm.mjs",
|
|
"require": "./pkg/rvf_wasm.js",
|
|
"default": "./pkg/rvf_wasm.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"pkg/"
|
|
],
|
|
"scripts": {
|
|
"build": "cargo build --release --target wasm32-unknown-unknown --manifest-path ../../crates/rvf/rvf-wasm/Cargo.toml && wasm-opt -Oz ../../crates/rvf/target/wasm32-unknown-unknown/release/rvf_wasm.wasm -o pkg/rvf_wasm_bg.wasm"
|
|
},
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/ruvnet/ruvector"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://registry.npmjs.org/",
|
|
"access": "public"
|
|
}
|
|
}
|