ruvector/npm/packages/wasm/package.json
rUv 47dd1a7539 fix: Add CommonJS build and remove WASM dependency
🔧 @ruvector/core@0.1.5
- Added CommonJS build (index.cjs.js) for require() compatibility
- Created dual build system (ESM + CJS)
- Fixed package.json exports to point to correct CJS file

🔧 ruvector@0.1.11
- Updated to @ruvector/core@^0.1.5
- Removed @ruvector/wasm optional dependency (not yet buildable)
- Improved error messages for unsupported platforms

Fixes #13 - Missing CommonJS build issue
2025-11-25 18:05:36 +00:00

35 lines
826 B
JSON

{
"name": "@ruvector/wasm",
"version": "0.1.1",
"description": "WebAssembly bindings for RuVector vector database",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -b",
"build:wasm": "cd ../../../crates/ruvector-wasm && wasm-pack build --target nodejs --out-dir ../../npm/packages/wasm/wasm-pkg",
"clean": "rm -rf dist *.tsbuildinfo wasm-pkg",
"test": "echo \"Tests not yet implemented\"",
"typecheck": "tsc --noEmit",
"lint": "eslint src --ext .ts"
},
"keywords": [
"vector",
"database",
"wasm",
"webassembly",
"embeddings"
],
"author": "",
"license": "MIT",
"files": [
"dist",
"wasm-pkg",
"README.md"
],
"publishConfig": {
"access": "public"
},
"dependencies": {
"@ruvector/core": "^0.1.0"
}
}