mirror of
https://github.com/hanzoai/insights.git
synced 2026-10-30 16:15:31 +00:00
35 lines
1.7 KiB
JSON
35 lines
1.7 KiB
JSON
{
|
|
"name": "@hanzo/cyclotron",
|
|
"version": "0.1.12",
|
|
"description": "Node bindings for cyclotron",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"scripts": {
|
|
"test": "cargo test",
|
|
"build": "pnpm run build:cargo --release && pnpm run build:move-lib && pnpm run build:typescript",
|
|
"build:dev": "pnpm run build:cargo && pnpm run build:move-lib:dev && pnpm run build:typescript",
|
|
"build:move-lib": "TARGET_DIR=${CARGO_TARGET_DIR:-../target} && cp \"$TARGET_DIR/release/libcyclotron_node.dylib\" index.node 2>/dev/null || cp \"$TARGET_DIR/release/libcyclotron_node.so\" index.node || (echo \"No valid library file found in $TARGET_DIR/release/\" && exit 1)",
|
|
"build:move-lib:dev": "TARGET_DIR=${CARGO_TARGET_DIR:-../target} && cp \"$TARGET_DIR/debug/libcyclotron_node.dylib\" index.node 2>/dev/null || cp \"$TARGET_DIR/debug/libcyclotron_node.so\" index.node || (echo \"No valid library file found in $TARGET_DIR/debug/\" && exit 1)",
|
|
"build:cargo": "cargo build --message-format=json-render-diagnostics > cargo.log",
|
|
"build:cargo:debug": "pnpm run build:cargo",
|
|
"build:cross": "cross build --message-format=json-render-diagnostics > cross.log",
|
|
"build:typescript": "tsc",
|
|
"typecheck": "tsc --noEmit",
|
|
"typecheck:tsgo": "tsgo --noEmit",
|
|
"clean": "rm -rf index.node",
|
|
"package": "NODE_ENV=development pnpm --filter=@hanzo/cyclotron run build"
|
|
},
|
|
"author": "",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@types/node": "^22.13.14",
|
|
"typescript": "catalog:",
|
|
"undici-types": "^7.3.0"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"index.node"
|
|
]
|
|
}
|
|
|