automerge/rust/automerge-wasm/package.json

60 lines
2.3 KiB
JSON

{
"collaborators": [
"Orion Henry <orion@inkandswitch.com>",
"Alex Good <alex@memoryandthought.me>",
"Martin Kleppmann"
],
"name": "@automerge/automerge-wasm",
"description": "wasm-bindgen bindings to the automerge rust implementation",
"homepage": "https://github.com/automerge/automerge-rs/tree/main/automerge-wasm",
"repository": "github:automerge/automerge-rs",
"version": "0.1.22",
"license": "MIT",
"files": [
"README.md",
"LICENSE",
"package.json",
"index.d.ts",
"nodejs/automerge_wasm.js",
"nodejs/automerge_wasm_bg.wasm",
"deno/automerge_wasm.js",
"deno/automerge_wasm_bg.wasm",
"bundler/automerge_wasm.js",
"bundler/automerge_wasm_bg.js",
"bundler/automerge_wasm_bg.wasm"
],
"private": false,
"types": "index.d.ts",
"module": "./bundler/automerge_wasm.js",
"main": "./nodejs/automerge_wasm.js",
"scripts": {
"lint": "eslint test/*.ts index.d.ts",
"debug": "cross-env PROFILE=dev TARGET_DIR=debug yarn buildall",
"build": "cross-env PROFILE=dev TARGET_DIR=debug FEATURES='' yarn buildall",
"release": "cross-env PROFILE=release TARGET_DIR=release yarn buildall",
"buildall": "cross-env TARGET=nodejs yarn target && cross-env TARGET=bundler yarn target && cross-env TARGET=deno yarn target",
"target": "rimraf ./$TARGET && yarn compile && yarn bindgen && yarn opt",
"compile": "cargo build --target wasm32-unknown-unknown --profile $PROFILE",
"bindgen": "wasm-bindgen --no-typescript --weak-refs --target $TARGET --out-dir $TARGET ../target/wasm32-unknown-unknown/$TARGET_DIR/automerge_wasm.wasm",
"opt": "wasm-opt -O4 $TARGET/automerge_wasm_bg.wasm -o $TARGET/automerge_wasm_bg.wasm",
"test": "ts-mocha -p tsconfig.json --type-check --bail --full-trace test/*.ts"
},
"devDependencies": {
"@types/mocha": "^10.0.1",
"@types/node": "^18.11.13",
"@typescript-eslint/eslint-plugin": "^5.46.0",
"@typescript-eslint/parser": "^5.46.0",
"cross-env": "^7.0.3",
"eslint": "^8.29.0",
"fast-sha256": "^1.3.0",
"mocha": "^10.2.0",
"pako": "^2.1.0",
"rimraf": "^3.0.2",
"ts-mocha": "^10.0.0",
"typescript": "^4.9.4"
},
"exports": {
"browser": "./bundler/automerge_wasm.js",
"require": "./nodejs/automerge_wasm.js"
}
}