{
  "name": "mattermost-desktop",
  "productName": "Mattermost",
  "version": "5.11.0-develop.1",
  "description": "Mattermost",
  "main": "dist/index.js",
  "author": "Mattermost, Inc. <feedback@mattermost.com>",
  "license": "Apache-2.0",
  "desktopName": "Mattermost.Desktop",
  "homepage": "https://mattermost.com",
  "engines": {
    "node": ">=18.0.0"
  },
  "repository": {
    "type": "git",
    "url": "git://github.com/mattermost/desktop.git"
  },
  "scripts": {
    "postinstall": "patch-package && electron-builder install-app-deps",
    "clean": "rm -rf release/ node_modules/ src/node_modules/ dist/ && cd e2e && npm run clean && cd -",
    "clean-install": "npm run clean && npm install",
    "clean-dist": "rm -rf dist/",
    "check": "run-p lint:js-quiet check-build-config check-types test:unit",
    "check-build-config": "tsc ./src/common/config/buildConfig.ts --outDir dist --baseUrl src --skipLibCheck && node scripts/check_build_config.js",
    "check-types": "tsc",
    "prune": "ts-prune",
    "i18n-extract": "mmjstool i18n extract-desktop",
    "lint:js": "eslint --ext .js,.jsx,.tsx,.ts --cache .",
    "lint:js-quiet": "npm run lint:js -- --quiet",
    "fix:js": "npm run lint:js-quiet -- --fix",
    "test": "run-s lint:js test:unit",
    "test:unit": "jest",
    "test:unit-coverage": "jest --coverage",
    "e2e": "npm run build-test && cd e2e && npm i && npm run run:e2e",
    "build": "run-p build:*",
    "build:main": "webpack-cli --config webpack.config.main.js",
    "build:preload": "webpack-cli --config webpack.config.preload.js",
    "build:renderer": "webpack-cli --config webpack.config.renderer.js",
    "build-prod": "cross-env NODE_ENV=production run-s check-build-config build",
    "build-prod-mas": "cross-env NODE_ENV=production IS_MAC_APP_STORE=true run-s check-build-config build",
    "build-prod-upgrade": "cross-env NODE_ENV=production CAN_UPGRADE=true run-s check-build-config build",
    "build-test": "cross-env NODE_ENV=test run-p build:*",
    "create-linux-dev-shortcut": "node scripts/create_linux_dev_shortcut.js",
    "start": "npm run create-linux-dev-shortcut && electron dist/ --disable-dev-mode",
    "restart": "run-s build start",
    "watch": "npm run create-linux-dev-shortcut && node scripts/watch.js",
    "package": "run-s package:windows package:mac-with-universal package:mas package:linux",
    "package:windows": "run-s package:windows-*",
    "package:windows-zip": "npm run build-prod && electron-builder --win zip --x64 --arm64 --publish=never",
    "package:windows-installers": "npm run build-prod-upgrade && electron-builder --win nsis --x64 --arm64 --publish=never && node scripts/cp_msi_app_update.js && electron-builder --win msi --x64 --arm64 --publish=never",
    "package:mac": "npm run build-prod && electron-builder --config.mac.provisioningProfile=./mac.provisionProfile --mac --x64 --arm64 --publish=never",
    "package:mac-with-universal": "npm run package:mac -- --universal",
    "package:mas": "npm run build-prod-mas && electron-builder --mac mas --universal --publish=never",
    "package:mas-dev": "npm run build-prod-mas && electron-builder --mac mas-dev --universal --publish=never",
    "package:linux": "run-s package:linux-*",
    "package:linux-tar": "npm run build-prod && electron-builder --linux tar.gz --x64 --publish=never && cross-env CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ electron-builder --linux tar.gz --arm64 --publish=never",
    "package:linux-pkg": "npm run build-prod && electron-builder --linux deb rpm --x64 --publish=never && cross-env CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ electron-builder --linux deb rpm --arm64 --publish=never",
    "package:linux-appImage": "npm run build-prod-upgrade && electron-builder --linux tar.gz appimage --x64 --publish=never && cross-env CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ electron-builder --linux tar.gz appimage --arm64 --publish=never"
  },
  "jest": {
    "clearMocks": true,
    "moduleDirectories": [
      "src",
      "node_modules"
    ],
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js",
      "jsx",
      "json"
    ],
    "collectCoverageFrom": [
      "src/common/**/*.ts",
      "src/main/**/*.ts"
    ],
    "testMatch": [
      "**/src/**/*.test.js",
      "**/src/**/*.test.ts"
    ],
    "testPathIgnorePatterns": [
      "/node_modules/",
      "/e2e/",
      "/webpack.config.test.js"
    ],
    "globals": {
      "__HASH_VERSION__": "5.0.0",
      "__CAN_UPGRADE__": false,
      "__IS_NIGHTLY_BUILD__": false,
      "__IS_MAC_APP_STORE__": false,
      "__DISABLE_GPU__": false,
      "__SKIP_ONBOARDING_SCREENS__": false
    },
    "setupFiles": [
      "./src/jest/jestSetup.js"
    ],
    "setupFilesAfterEnv": [
      "./src/jest/jestSetupAfterEnv.js"
    ],
    "reporters": [
      "default",
      [
        "jest-junit",
        {
          "suiteName": "unit tests",
          "outputName": "test-results.xml",
          "classNameTemplate": "{classname}-{title}",
          "titleTemplate": "{classname}-{title}",
          "ancestorSeparator": "> "
        }
      ]
    ]
  },
  "devDependencies": {
    "@babel/preset-env": "7.24.0",
    "@babel/preset-react": "7.23.3",
    "@babel/preset-typescript": "7.23.3",
    "@electron/fuses": "1.8.0",
    "@mattermost/desktop-api": "file:api-types",
    "@mattermost/eslint-plugin": "1.1.0-0",
    "@types/auto-launch": "5.0.5",
    "@types/jest": "29.4.1",
    "@types/react": "17.0.43",
    "@types/react-beautiful-dnd": "13.1.8",
    "@types/react-dom": "17.0.14",
    "@types/uuid": "9.0.8",
    "@types/valid-url": "1.0.7",
    "@types/winreg": "1.2.36",
    "7zip-bin": "5.1.1",
    "babel-loader": "9.1.3",
    "copy-webpack-plugin": "10.2.4",
    "cross-env": "7.0.3",
    "css-loader": "6.7.1",
    "electron": "33.2.0",
    "electron-builder": "24.13.3",
    "electron-connect": "0.6.3",
    "eslint": "8.57.0",
    "eslint-import-resolver-webpack": "0.13.8",
    "eslint-plugin-formatjs": "4.12.2",
    "eslint-plugin-no-only-tests": "3.1.0",
    "eslint-plugin-react": "7.34.0",
    "eslint-plugin-react-hooks": "4.6.0",
    "html-webpack-plugin": "5.5.0",
    "jest": "29.4.1",
    "jest-junit": "13.1.0",
    "mini-css-extract-plugin": "2.6.0",
    "mmjstool": "github:mattermost/mattermost-utilities#3b4506b0f6b14fbb402f9f8ef932370e459e3773",
    "node-loader": "2.0.0",
    "npm-run-all": "4.1.5",
    "patch-package": "8.0.0",
    "sass": "1.49.11",
    "sass-loader": "12.6.0",
    "semver": "7.6.0",
    "style-loader": "3.3.1",
    "ts-prune": "0.10.3",
    "typescript": "5.3.3",
    "webpack": "5.90.3",
    "webpack-cli": "4.10.0",
    "webpack-merge": "5.8.0"
  },
  "dependencies": {
    "@emotion/react": "11.11.4",
    "@mattermost/compass-icons": "0.1.45",
    "auto-launch": "5.0.6",
    "bootstrap": "4.6.1",
    "bootstrap-dark": "1.0.3",
    "classnames": "2.5.1",
    "electron-context-menu": "4.0.4",
    "electron-extension-installer": "1.2.0",
    "electron-is-dev": "2.0.0",
    "electron-log": "5.2.0",
    "electron-updater": "6.3.0",
    "joi": "17.12.2",
    "macos-notification-state": "3.0.0",
    "pretty-bytes": "6.1.1",
    "react": "17.0.2",
    "react-beautiful-dnd": "13.1.1",
    "react-bootstrap": "1.6.4",
    "react-dom": "17.0.2",
    "react-intl": "6.6.2",
    "react-select": "5.8.0",
    "uuid": "9.0.1",
    "valid-url": "1.0.9",
    "windows-focus-assist": "1.4.0",
    "winreg-utf8": "0.1.1",
    "yargs": "17.7.2"
  }
}
