{
  "name": "@concordium/rust-bindings",
  "version": "4.0.1",
  "license": "Apache-2.0",
  "type": "module",
  "engines": {
    "node": ">=16"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/Concordium/concordium-node-sdk-js",
    "directory": "packages/rust-bindings"
  },
  "sideEffects": [
    "./lib/*/web/umd/index.min.js",
    "./lib/*/bundler/index.js",
    "./lib/*/react-native/index.js"
  ],
  "main": "lib/dapp/node/cjs/index.cjs",
  "react-native": "lib/dapp/react-native/index.js",
  "browser": "lib/dapp/web/umd/index.min.js",
  "types": "lib/dapp/node/cjs/index.d.ts",
  "exports": {
    ".": {
      "types": "./lib/dapp/node/cjs/index.d.ts",
      "react-native": "./lib/dapp/react-native/index.js",
      "node": {
        "default": "./lib/dapp/node/cjs/index.cjs"
      },
      "browser": {
        "module": "./lib/dapp/web/esm/index.min.js",
        "types": "./lib/dapp/web/esm/index.d.ts",
        "import": "./lib/dapp/web/esm/index.min.js",
        "default": "./lib/dapp/web/umd/index.min.js"
      },
      "default": "./lib/dapp/web/umd/index.min.js"
    },
    "./dapp": {
      "types": "./lib/dapp/node/cjs/index.d.ts",
      "react-native": "./lib/dapp/react-native/index.js",
      "node": {
        "default": "./lib/dapp/node/cjs/index.cjs"
      },
      "browser": {
        "module": "./lib/dapp/web/esm/index.min.js",
        "types": "./lib/dapp/web/esm/index.d.ts",
        "import": "./lib/dapp/web/esm/index.min.js",
        "default": "./lib/dapp/web/umd/index.min.js"
      },
      "default": "./lib/dapp/web/umd/index.min.js"
    },
    "./wallet": {
      "types": "./lib/wallet/node/cjs/index.d.ts",
      "react-native": "./lib/wallet/react-native/index.js",
      "node": {
        "default": "./lib/wallet/node/cjs/index.cjs"
      },
      "browser": {
        "module": "./lib/wallet/web/esm/index.min.js",
        "types": "./lib/wallet/web/esm/index.d.ts",
        "import": "./lib/wallet/web/esm/index.min.js",
        "default": "./lib/wallet/web/umd/index.min.js"
      },
      "default": "./lib/wallet/web/umd/index.min.js"
    },
    "./bundler": {
      "types": "./lib/dapp/bundler/index.d.ts",
      "default": "./lib/dapp/bundler/index.js"
    },
    "./bundler/dapp": {
      "types": "./lib/dapp/bundler/index.d.ts",
      "default": "./lib/dapp/bundler/index.js"
    },
    "./bundler/wallet": {
      "types": "./lib/wallet/bundler/index.d.ts",
      "default": "./lib/wallet/bundler/index.js"
    }
  },
  "files": [
    "./lib/**/index*"
  ],
  "scripts": {
    "rustfmt": "cargo +nightly-2023-04-01-x86_64-unknown-linux-gnu fmt -- --color=always",
    "clippy": "cargo +1.73 clippy --color=always --tests --benches -- -Dclippy::all",
    "build-web": "wasm-pack build ./packages/$0 --target web --out-dir $INIT_CWD/lib/$0/web/esm --out-name index && tsx ./scripts/web-esm-remove-init.ts $0",
    "build-node": "wasm-pack build ./packages/$0 --target nodejs --out-dir $INIT_CWD/lib/$0/node/cjs --out-name index && tsx ./scripts/fix-nodejs-ext.ts",
    "build-bundler": "wasm-pack build ./packages/$0 --target bundler --out-dir $INIT_CWD/lib/$0/bundler --out-name index",
    "build-all": "yarn build-web $0 && yarn build-node $0 && yarn build-bundler $0",
    "build": "yarn build-all dapp && tsx ./scripts/build-react-native-dapp.ts && yarn build-all wallet && tsx ./scripts/build-react-native-wallet.ts && yarn webpack && yarn sanitize",
    "build:rust-bindings-dapp": "yarn build-all dapp && yarn webpack --env package=dapp && tsx ./scripts/build-react-native-dapp.ts && yarn sanitize",
    "build:rust-bindings-wallet": "yarn build-all wallet && yarn webpack --env package=wallet && tsx ./scripts/build-react-native-wallet.ts && yarn sanitize",
    "build:rust-bindings": "yarn build",
    "webpack": "tsx ../../node_modules/.bin/webpack --config webpack.config.ts",
    "clean": "rimraf -- target lib .webpack-cache",
    "sanitize": "rimraf --glob -- \"lib/**/.gitignore\" \"lib/**/package.json\"",
    "lint": "eslint . --cache --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
    "lint-fix": "yarn lint --fix",
    "prettier": "prettier . --ignore-path ../../.gitignore --ignore-path ../../.prettierignore --ignore-path .gitignore",
    "fmt": "yarn prettier --write",
    "fmt-check": "yarn prettier --check"
  },
  "devDependencies": {
    "@types/copyfiles": "^2.4.1",
    "@types/node": "^20.12.13",
    "binaryen": "^114.0.0",
    "buffer": "^6.0.3",
    "copyfiles": "^2.4.1",
    "eslint": "8",
    "prettier": "^3.2.5",
    "rimraf": "^5.0.1",
    "ts-loader": "^9.4.4",
    "tsx": "^4.20.6",
    "typescript": "^5.2.2",
    "webpack": "^5.88.2",
    "webpack-cli": "^5.1.4"
  }
}