shark/fish-webworker/package.json

17 lines
619 B
JSON

{
"name": "@blockfish/webworker",
"version": "1.0.0",
"description": "Blockfish engine webworker",
"main": "blockfish.js",
"scripts": {
"prebuild": "cargo build --release --target wasm32-unknown-unknown && wasm-bindgen target/wasm32-unknown-unknown/release/fish_webworker.wasm --out-dir build --target web --no-typescript",
"build": "npx esbuild src/worker.js --bundle --minify --outdir=build",
"postbuild": "cp build/fish_webworker_bg.wasm ./blockfish.wasm && cp build/worker.js ./blockfish.js"
},
"author": "iitalics",
"license": "LGPL",
"dependencies": {
"esbuild": "^0.20.1"
}
}