{
  "name": "farmcontrol-server",
  "version": "1.0.0",
  "description": "Connects to moonraker and also manages the socket connection to the printer.",
  "main": "build/index.js",
  "type": "module",
  "scripts": {
    "start": "node build/index.js",
    "dev": "cross-env NODE_ENV=development nodemon src/index.js",
    "dev:electron": "concurrently \"cross-env NODE_ENV=development vite src/electron --port 5287 --no-open\" \"cross-env NODE_ENV=development electron src/index.js\"",
    "build": "yarn clean && mkdir build && cp -r src/* build/ && cp package.json config.json build/ && yarn build:electron-renderer && cp src/electron/preload.js build/electron/ && rm -rf build/electron/App.jsx build/electron/main.jsx build/electron/App.css build/electron/index.css build/electron/FarmControlLogo.jsx build/electron/vite.config.js build/electron/public build/electron/build",
    "build:electron-renderer": "vite build src/electron --outDir build/electron",
    "build:electron": "yarn build && electron-builder",
    "clean": "rimraf build"
  },
  "author": "Tom Butcher",
  "license": "ISC",
  "dependencies": {
    "@ant-design/icons": "^6.1.0",
    "ant-design": "^1.0.0",
    "antd": "^5.28.0",
    "axios": "^1.13.2",
    "canvas": "^3.2.0",
    "etcd3": "^1.1.2",
    "express": "^5.1.0",
    "ipp": "^2.0.1",
    "jsonwebtoken": "^9.0.2",
    "keycloak-connect": "^26.1.1",
    "lodash": "^4.17.21",
    "log4js": "^6.9.1",
    "mongoose": "^9.0.0",
    "node-cache": "^5.1.2",
    "node-thermal-printer": "^4.5.0",
    "pdf-to-img": "^5.0.0",
    "prop-types": "^15.8.1",
    "sharp": "^0.34.5",
    "socket.io": "^4.8.1",
    "socket.io-client": "^4.8.1",
    "ws": "^8.18.3"
  },
  "devDependencies": {
    "@electron/rebuild": "^4.0.1",
    "@vitejs/plugin-react": "^5.1.1",
    "concurrently": "^9.2.1",
    "cross-env": "^10.1.0",
    "electron": "^38.7.1",
    "electron-builder": "^26.0.12",
    "jest": "^30.2.0",
    "nodemon": "^3.1.11",
    "react": "^19.2.0",
    "react-dom": "^19.2.0",
    "rimraf": "^6.1.2",
    "supertest": "^7.1.4",
    "vite": "^7.2.4",
    "vite-plugin-svgo": "^2.0.0",
    "vite-plugin-svgr": "^4.5.0"
  },
  "build": {
    "appId": "com.tombutcher.farmcontrolserver",
    "productName": "Farm Control Server",
    "executableName": "farmcontrol-server",
    "icon": "assets/farmcontrolhosticon.png",
    "directories": {
      "output": "app_dist"
    },
    "files": [
      "build/**/*",
      "node_modules/**/*"
    ],
    "mac": {
      "target": "dmg"
    },
    "win": {
      "target": "nsis"
    },
    "linux": {
      "target": [
        "AppImage",
        "deb",
        "rpm"
      ],
      "category": "Utility",
      "maintainer": "Tom Butcher <tom@tombutcher.work>",
      "executableName": "farmcontrol-server"
    },
    "deb": {
      "priority": "optional",
      "afterInstall": "packaging/linux/after-install.sh",
      "afterRemove": "packaging/linux/after-remove.sh"
    },
    "rpm": {
      "afterInstall": "packaging/linux/after-install.sh",
      "afterRemove": "packaging/linux/after-remove.sh"
    },
    "extraResources": [
      {
        "from": "packaging/linux/farmcontrol-server.service",
        "to": "farmcontrol-server.service"
      }
    ]
  }
}
