{ "name": "ruffle-core", "version": "0.1.0", "description": "Core bindings for Ruffle", "license": "(MIT OR Apache-2.0)", "main": "./pkg/index.js", "types": "./pkg/index.d.ts", "files": [ "pkg/" ], "scripts": { "build": "npm run build:cargo && npm run build:wasm-bindgen && npm run build:wasm-opt && npm run build:ts", "build:cargo": "cargo build --release --target wasm32-unknown-unknown", "build:wasm-bindgen": "wasm-bindgen ../../../target/wasm32-unknown-unknown/release/ruffle_web.wasm --target web --out-dir ./pkg --out-name ruffle_web", "build:wasm-opt": "wasm-opt -o ./pkg/ruffle_web_bg.wasm -O -g ./pkg/ruffle_web_bg.wasm || npm run build:wasm-opt-failed", "build:wasm-opt-failed": "echo 'NOTE: Since wasm-opt could not be found (or it failed), the resulting module might not perform that well, but it should still work.' && [[ $GITHUB_ACTIONS != true ]]", "build:ts": "tsc -d && node tools/set_version.js", "docs": "typedoc", "test": "cross-env TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"} mocha" }, "devDependencies": { "@types/mocha": "^8.2.2", "@typescript-eslint/eslint-plugin": "^4.28.1", "@typescript-eslint/parser": "^4.28.1", "cross-env": "^7.0.3", "eslint": "^7.29.0", "eslint-plugin-jsdoc": "^35.4.1", "esm": "^3.2.25", "mocha": "^9.0.1", "replace-in-file": "^6.2.0", "ts-node": "^10.0.0", "typedoc": "^0.21.2", "typescript": "^4.3.4" } }