Files
twitch4steamdeck/package.json
T
Andre a5eaafbed3 feat: unify logging via electron-log and add IPC error boundary
Bug reports from Steam Deck (Flatpak) arrived without any useful context:
no terminal, no log file, no trace of what failed. Silent catches in
helixClient hid quota and token errors entirely. IPC handler exceptions
reached the renderer as rejected promises with no server-side record.

electron-log now writes to a rotating log file (~1 MB, 5 files) that
users can attach to bug reports. All IPC handlers are wrapped in
safeHandle, which logs and re-throws at the boundary. Optional-feature
failures (chapters, profile images, viewer counts) emit log.warn with
enough context to diagnose. A React ErrorBoundary catches render crashes
app-wide and logs them before showing a reload prompt.
2026-05-15 09:26:03 +02:00

41 lines
1.2 KiB
JSON

{
"name": "twitch4steamdeck",
"version": "0.4.5",
"description": "Twitch-Client für das Steam Deck (Live & VOD, Big-Screen-UI)",
"main": "out/main/index.js",
"author": "twitch4steamdeck",
"license": "MIT",
"private": true,
"scripts": {
"dev": "electron-vite dev",
"build": "electron-vite build",
"preview": "electron-vite preview",
"typecheck:node": "tsc --noEmit -p tsconfig.node.json",
"typecheck:web": "tsc --noEmit -p tsconfig.web.json",
"typecheck": "npm run typecheck:node && npm run typecheck:web",
"package": "electron-vite build && electron-builder --linux"
},
"dependencies": {
"better-sqlite3": "^12.8.0",
"electron-log": "^5.4.4",
"hls.js": "^1.6.16",
"qrcode": "^1.5.4",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@electron/rebuild": "^4.0.3",
"@types/better-sqlite3": "^7.6.13",
"@types/node": "^20.14.0",
"@types/qrcode": "^1.5.5",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"electron": "^33.0.0",
"electron-builder": "^25.0.5",
"electron-vite": "^2.3.0",
"typescript": "^5.5.3",
"vite": "^5.3.1"
}
}