{
  "name": "mnote-desktop",
  "version": "0.1.0",
  "private": true,
  "main": "desktop-electron/main.js",
  "scripts": {
    "desktop": "node scripts/desktop-prod.js",
    "desktop:hot": "node scripts/desktop-hot.js",
    "desktop:local": "node scripts/desktop-local.js",
    "desktop:electron": "node desktop-electron/dev-runner.js",
    "build:desktop:next": "node scripts/prepare-desktop-next.js",
    "dist:win": "pnpm run build:desktop:next && electron-builder --win nsis"
  },
  "dependencies": {},
  "devDependencies": {
    "@playwright/test": "^1.56.1",
    "electron": "^34.0.0",
    "electron-builder": "^26.0.12",
    "playwright": "^1.56.1"
  },
  "build": {
    "appId": "org.aichem.mnote",
    "productName": "MNOTE",
    "asar": true,
    "directories": {
      "output": "dist",
      "buildResources": "desktop-electron/build"
    },
    "files": [
      "package.json",
      "desktop-electron/**",
      "!desktop-electron/desktop-next{,/**}"
    ],
    "extraResources": [
      {
        "from": "desktop-electron/desktop-next",
        "to": "desktop-next",
        "filter": [
          "**/*",
          "!node_modules{,/**}"
        ]
      },
      {
        "from": "desktop-electron/desktop-next/node_modules",
        "to": "desktop-next/node_modules"
      }
    ],
    "win": {
      "target": [
        "nsis"
      ]
    },
    "nsis": {
      "oneClick": false,
      "allowToChangeInstallationDirectory": true,
      "include": "desktop-electron/build/installer.nsh"
    }
  },
  "pnpm": {
    "onlyBuiltDependencies": [
      "electron",
      "electron-winstaller"
    ]
  }
}
