{
  "name": "ontime",
  "version": "3.0.0-alpha",
  "author": "Carlos Valente",
  "description": "Time keeping for live events",
  "repository": "https://github.com/cpvalente/ontime",
  "keywords": [
    "lighdev",
    "ontime",
    "timer"
  ],
  "license": "AGPL-3.0-only",
  "main": "main.js",
  "devDependencies": {
    "electron": "^28.0.0",
    "electron-builder": "^24.9.1",
    "eslint": "^8.53.0",
    "eslint-config-prettier": "^9.0.0",
    "prettier": "^3.0.3"
  },
  "scripts": {
    "postinstall": "",
    "lint": "eslint . --quiet",
    "lint-staged": "eslint",
    "dev:electron": "cross-env NODE_ENV=development electron .",
    "dist-win": "electron-builder --publish=never  --x64 --win",
    "dist-mac": "electron-builder --publish=never  --mac",
    "dist-linux": "electron-builder --publish=never  --x64 --linux",
    "cleanup": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
  },
  "build": {
    "productName": "ontime",
    "appId": "no.lightdev.ontime",
    "asar": true,
    "dmg": {
      "artifactName": "ontime-macOS-${arch}.dmg",
      "icon": "icon.icns"
    },
    "mac": {
      "target": {
        "target": "dmg",
        "arch": [
          "x64",
          "arm64"
        ]
      },
      "category": "public.app-category.productivity",
      "icon": "icon.icns"
    },
    "win": {
      "target": "nsis"
    },
    "nsis": {
      "artifactName": "ontime-win64.exe",
      "oneClick": false,
      "allowToChangeInstallationDirectory": true,
      "allowElevation": true,
      "createDesktopShortcut": true,
      "createStartMenuShortcut": true,
      "deleteAppDataOnUninstall": true,
      "runAfterFinish": false,
      "installerIcon": "icon.ico",
      "installerSidebar": "ontime-install.bmp",
      "uninstallerSidebar": "ontime-uninstall.bmp"
    },
    "linux": {
      "target": "AppImage",
      "artifactName": "ontime-linux.AppImage"
    },
    "files": [
      "**/*",
      "assets/",
      "!**/{yarn.lock,yarn-error.log}",
      "!**/{pnpm-lock.yaml}",
      "!**/{test,tests,__test__,__tests__}",
      "!**/{mock,mocks,__mock__,__mocks__}",
      "!*{.spec.js,*.test.js,*.spec.ts,.test.ts}"
    ],
    "directories": {
      "buildResources": "./assets/"
    },
    "extraResources": [
      {
        "from": "../client/build",
        "to": "extraResources/client/",
        "filter": [
          "**/*",
          "!**/{yarn.lock,yarn-error.log}",
          "!**/{pnpm-lock.yaml}",
          "!**/{test,tests,__test__,__tests__}",
          "!**/{mock,mocks,__mock__,__mocks__}",
          "!*{.spec.js,*.test.js,*.spec.ts,.test.ts}"
        ]
      },
      {
        "from": "../server/dist/",
        "to": "extraResources/server/",
        "filter": [
          "**/*",
          "!**/{yarn.lock,yarn-error.log}",
          "!**/{pnpm-lock.yaml}",
          "!**/{test,tests,__test__,__tests__}",
          "!**/{mock,mocks,__mock__,__mocks__}",
          "!*{.spec.js,*.test.js,*.spec.ts,.test.ts}"
        ]
      },
      {
        "from": "../server/src/preloaded-db/",
        "to": "extraResources/preloaded-db/",
        "filter": [
          "**/*"
        ]
      },
      {
        "from": "../server/src/external/",
        "to": "extraResources/external/",
        "filter": [
          "**/*"
        ]
      }
    ]
  }
}
