61 lines
2.2 KiB
JSON
61 lines
2.2 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.10",
|
|
"license": "MIT",
|
|
"files": [
|
|
"README.md",
|
|
"LICENSE",
|
|
"package.json",
|
|
"index.d.ts",
|
|
"nodejs/automerge_wasm.js",
|
|
"nodejs/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",
|
|
"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 -Oz $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/expect": "^24.3.0",
|
|
"@types/jest": "^27.4.0",
|
|
"@types/mocha": "^9.1.0",
|
|
"@types/node": "^17.0.13",
|
|
"@types/uuid": "^8.3.4",
|
|
"@typescript-eslint/eslint-plugin": "^5.25.0",
|
|
"@typescript-eslint/parser": "^5.25.0",
|
|
"cross-env": "^7.0.3",
|
|
"eslint": "^8.16.0",
|
|
"fast-sha256": "^1.3.0",
|
|
"mocha": "^9.1.3",
|
|
"pako": "^2.0.4",
|
|
"rimraf": "^3.0.2",
|
|
"ts-mocha": "^9.0.2",
|
|
"typescript": "^4.6.4"
|
|
},
|
|
"exports": {
|
|
"browser": "./bundler/automerge_wasm.js",
|
|
"require": "./nodejs/automerge_wasm.js"
|
|
}
|
|
}
|