{
  "name": "green-points-co-managed-account",
  "version": "1.0.0",
  "description": "榴莲皇后绿积分共管账户服务 - Multi-party co-managed account participant application",
  "author": "榴莲皇后",
  "main": "dist-electron/main.js",
  "scripts": {
    "dev": "concurrently \"npm run dev:vite\" \"npm run dev:electron\"",
    "dev:vite": "vite",
    "dev:electron": "wait-on http://localhost:5173 && electron .",
    "clean": "rimraf dist dist-electron release node_modules/.cache",
    "clean:all": "rimraf dist dist-electron release node_modules package-lock.json",
    "build": "npx tsc -p tsconfig.electron.json && vite build && electron-builder",
    "build:win": "npm run build -- --win",
    "build:mac": "npm run build -- --mac",
    "build:linux": "npm run build -- --linux",
    "rebuild": "npm run clean && npm run build",
    "rebuild:win": "npm run clean && npm run build:win",
    "preview": "vite preview",
    "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
    "proto:generate": "grpc_tools_node_protoc --js_out=import_style=commonjs,binary:./proto --grpc_out=grpc_js:./proto --proto_path=../../api/proto ../../api/proto/*.proto"
  },
  "dependencies": {
    "@cosmjs/amino": "^0.37.0",
    "@cosmjs/encoding": "^0.37.0",
    "@cosmjs/proto-signing": "^0.37.0",
    "@cosmjs/stargate": "^0.37.0",
    "@grpc/grpc-js": "^1.9.0",
    "@grpc/proto-loader": "^0.7.10",
    "@noble/curves": "^2.0.1",
    "@noble/hashes": "^2.0.1",
    "bech32": "^2.0.0",
    "electron-store": "^8.1.0",
    "express": "^4.18.2",
    "qrcode.react": "^3.1.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-router-dom": "^6.20.0",
    "sql.js": "^1.13.0",
    "uuid": "^9.0.1",
    "zustand": "^4.4.7"
  },
  "devDependencies": {
    "@types/express": "^4.17.21",
    "@types/node": "^20.10.0",
    "@types/react": "^18.2.39",
    "@types/react-dom": "^18.2.17",
    "@types/uuid": "^9.0.7",
    "@vitejs/plugin-react": "^4.2.0",
    "concurrently": "^8.2.2",
    "electron": "^28.0.0",
    "electron-builder": "^24.9.1",
    "electron-rebuild": "^3.2.9",
    "eslint": "^8.54.0",
    "eslint-plugin-react-hooks": "^4.6.0",
    "grpc-tools": "^1.12.4",
    "rimraf": "^6.1.2",
    "typescript": "^5.3.2",
    "vite": "^5.0.2",
    "wait-on": "^7.2.0"
  },
  "build": {
    "appId": "com.durianqueen.green-points-account",
    "afterPack": "./scripts/afterPack.js",
    "productName": "榴莲皇后绿积分共管账户服务",
    "directories": {
      "buildResources": "resources",
      "output": "release"
    },
    "asar": true,
    "asarUnpack": [
      "node_modules/sql.js/**/*"
    ],
    "files": [
      "dist/**/*",
      "dist-electron/**/*",
      "wasm/**/*"
    ],
    "extraResources": [
      {
        "from": "proto",
        "to": "proto",
        "filter": [
          "**/*"
        ]
      },
      {
        "from": "node_modules/sql.js/dist/sql-wasm.wasm",
        "to": "sql-wasm.wasm"
      }
    ],
    "win": {
      "target": [
        "nsis"
      ],
      "icon": "resources/icon.ico"
    },
    "mac": {
      "target": [
        "dmg"
      ],
      "icon": "resources/icon.icns"
    },
    "linux": {
      "target": [
        "AppImage"
      ],
      "icon": "resources/icon.png"
    }
  }
}
