{
  "name": "midasnarky",
  "description": "JavaScript bindings for SnarkyJS",
  "version": "0.1.1",
  "license": "Apache-2.0",
  "type": "module",
  "main": "./dist/web/index.js",
  "exports": {
    "types": "./dist/node/index.d.ts",
    "browser": "./dist/web/index.js",
    "node": {
      "import": "./dist/node/index.js",
      "require": "./dist/node/index.cjs"
    },
    "default": "./dist/web/index.js"
  },
  "types": "./dist/node/index.d.ts",
  "files": [
    "src/build",
    "dist",
    "src/lib",
    "src/**/*.d.ts"
  ],
  "bin": {
    "snarky-run": "src/build/run.js"
  },
  "engines": {
    "node": ">=16.4.0"
  },
  "scripts": {
    "type-check": "tsc --noEmit",
    "dev": "npx tsc -p tsconfig.node.json && cp src/snarky.d.ts dist/node/snarky.d.ts",
    "make": "make -C ../../../.. snarkyjs",
    "build": "rimraf ./dist/node && npx tsc -p tsconfig.node.json && cp -r src/node_bindings dist/node/_node_bindings && node src/build/buildNode.js && cp src/snarky.d.ts dist/node/snarky.d.ts",
    "build:test": "npx tsc -p tsconfig.test.json && cp src/snarky.d.ts dist/node/snarky.d.ts",
    "build:node": "npm run build",
    "build:web": "rimraf ./dist/web && node src/build/buildWeb.js",
    "build:examples": "rimraf ./dist/examples && npx tsc -p tsconfig.examples.json || exit 0",
    "serve:web": "cp src/chrome_bindings/server.js src/chrome_bindings/index.html dist/web && node dist/web/server.js",
    "prepublish:web": "NODE_ENV=production node src/build/buildWeb.js",
    "prepublish:node": "npm run build && NODE_ENV=production node src/build/buildNode.js",
    "prepublish:both": "npm run prepublish:web && npm run prepublish:node",
    "prepublishOnly": "npm run prepublish:web && npm run prepublish:node",
    "bootstrap": "npm run build && node src/build/extractJsooMethods.cjs && npm run build",
    "format": "prettier --write --ignore-unknown **/*",
    "test": "for f in ./src/**/*.test.ts; do NODE_OPTIONS=--experimental-vm-modules npx jest $f || exit 1; done",
    "clean": "rimraf ./dist",
    "clean-all": "rimraf ./dist && rimraf ./tests/report && rimraf ./tests/test-artifacts",
    "test:integration": "./run-integration-tests.sh",
    "test:unit": "./run-unit-tests.sh",
    "test:e2e": "rimraf ./tests/report && rimraf ./tests/test-artifacts && npx playwright test",
    "e2e:prepare-server": "npm run build:examples && (cp -rf dist/examples dist/web || :) && node src/build/e2eTestsBuildHelper.js && cp -rf src/chrome_bindings/index.html src/chrome_bindings/server.js tests/artifacts/html/*.html tests/artifacts/javascript/*.js dist/web",
    "e2e:run-server": "node dist/web/server.js",
    "e2e:install": "npx playwright install --with-deps",
    "e2e:show-report": "npx playwright show-report tests/report"
  },
  "author": "O(1) Labs",
  "devDependencies": {
    "@playwright/test": "^1.25.2",
    "@types/isomorphic-fetch": "^0.0.36",
    "@types/jest": "^27.0.0",
    "@types/node": "^18.7.13",
    "@typescript-eslint/eslint-plugin": "^5.0.0",
    "esbuild": "^0.13.13",
    "eslint": "^8.0.0",
    "expect": "^29.0.1",
    "fs-extra": "^10.0.0",
    "howslow": "^0.1.0",
    "jest": "^28.1.3",
    "minimist": "^1.2.5",
    "prettier": "^2.3.2",
    "replace-in-file": "^6.3.5",
    "rimraf": "^3.0.2",
    "ts-jest": "^28.0.8",
    "typedoc": "^0.23.11",
    "typescript": "^4.8.2"
  },
  "dependencies": {
    "env": "^0.0.2",
    "isomorphic-fetch": "^3.0.0",
    "reflect-metadata": "^0.1.13",
    "tslib": "^2.3.0"
  }
}
