{
  "name": "telegram-invite-automation",
  "version": "1.3.0",
  "private": true,
  "description": "Automated user parsing and invites for Telegram groups",
  "main": "src/main/index.js",
  "type": "commonjs",
  "scripts": {
    "dev": "concurrently -k \"vite\" \"wait-on http://127.0.0.1:5173 && electron .\"",
    "start": "electron .",
    "build": "NODE_OPTIONS=--no-warnings vite build && NODE_OPTIONS=--no-warnings electron-builder",
    "build:win": "NODE_OPTIONS=--no-warnings vite build && NODE_OPTIONS=--no-warnings electron-builder --win",
    "build:win:x64": "NODE_OPTIONS=--no-warnings vite build && NODE_OPTIONS=--no-warnings electron-builder --win --x64",
    "build:win:x64:installer": "NODE_OPTIONS=--no-warnings vite build && NODE_OPTIONS=--no-warnings electron-builder --win --x64 --config.win.target=nsis",
    "build:win:x64:portable": "NODE_OPTIONS=--no-warnings vite build && NODE_OPTIONS=--no-warnings electron-builder --win --x64 --config.win.target=portable",
    "build:win:x64:portable:zip": "npm run build:win:x64:portable && zip -j -o dist/release/Telegram-Invite-Automation-win-portable-x64.zip dist/release/Telegram-Invite-Automation-win-x64-*.exe",
    "build:mac": "NODE_OPTIONS=--no-warnings vite build && NODE_OPTIONS=--no-warnings electron-builder --mac",
    "build:all": "NODE_OPTIONS=--no-warnings vite build && NODE_OPTIONS=--no-warnings electron-builder --win --mac",
    "build:linux": "NODE_OPTIONS=--no-warnings vite build && NODE_OPTIONS=--no-warnings electron-builder --linux",
    "dist": "NODE_OPTIONS=--no-warnings vite build && NODE_OPTIONS=--no-warnings electron-builder",
    "build:converter:mac": "bash scripts/build-converter.sh",
    "build:converter:win": "powershell -ExecutionPolicy Bypass -File scripts/build-converter.ps1"
  },
  "dependencies": {
    "better-sqlite3": "^9.4.0",
    "dayjs": "^1.11.11",
    "telegram": "^2.26.9",
    "react": "^18.2.0",
    "react-dom": "^18.2.0"
  },
  "devDependencies": {
    "@electron/notarize": "^2.2.0",
    "@vitejs/plugin-react": "^4.2.1",
    "concurrently": "^8.2.2",
    "electron": "^29.1.0",
    "electron-builder": "^24.12.0",
    "wait-on": "^7.2.0",
    "vite": "^5.1.4"
  },
  "build": {
    "appId": "com.profi.telegram-invite-automation",
    "productName": "Telegram Invite Automation",
    "icon": "resources/icon.png",
    "directories": {
      "output": "dist/release"
    },
    "files": [
      "dist/**",
      "src/main/**",
      "package.json",
      "!resources/**",
      "!**/*.map",
      "!**/__tests__/**",
      "!**/test/**",
      "!**/tests/**",
      "!**/docs/**",
      "!**/*.md",
      "!**/README*",
      "!**/CHANGELOG*"
    ],
    "extraResources": [
      {
        "from": "resources/converter",
        "to": "converter"
      }
    ],
    "asar": {
      "smartUnpack": true
    },
    "asarUnpack": [
      "**/*.node"
    ],
    "afterSign": "scripts/notarize.js",
    "electronLanguages": [
      "ru",
      "en-US"
    ],
    "mac": {
      "category": "public.app-category.productivity",
      "hardenedRuntime": true,
      "target": [
        "dmg"
      ],
      "artifactName": "Telegram-Invite-Automation-mac-${version}.${ext}"
    },
    "win": {
      "target": [
        "nsis",
        "portable"
      ],
      "artifactName": "Telegram-Invite-Automation-win-${arch}-${version}.${ext}"
    },
    "linux": {
      "target": [
        "AppImage",
        "deb"
      ]
    },
    "nsis": {
      "oneClick": false,
      "allowToChangeInstallationDirectory": true
    }
  }
}
