467ac95b4e
Fix three Electron 12→42 protocol migration bugs in the resource swapper: register protocol on the app session instead of default, generate valid URLs from Windows paths, and prevent non-swapped krunker.io requests from being cancelled. Swapper now rescans on page refresh to pick up file changes. Add Husky pre-commit hook to run ESLint. Remove unused uuid dependency. Update README with lint script, husky, and swapper improvements. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
40 lines
1.5 KiB
JSON
40 lines
1.5 KiB
JSON
{
|
|
"name": "krunker-civilian-client",
|
|
"version": "0.5.3",
|
|
"description": "Cross-platform Krunker game client",
|
|
"main": "dist/main/index.js",
|
|
"homepage": "https://gitea.crjlab.net/bigjakk/krunker-civilian-client",
|
|
"author": "Krunker Civilian Client <krunker@crjlab.net>",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"postinstall": "node scripts/download-electron.js",
|
|
"dev": "vite build --mode development --config vite.main.config.ts && vite build --mode development --config vite.preload.config.ts && electron .",
|
|
"build:main": "vite build --config vite.main.config.ts",
|
|
"build:preload": "vite build --config vite.preload.config.ts",
|
|
"build": "npm run build:main && npm run build:preload",
|
|
"start": "npm run build && electron .",
|
|
"download-electron": "node scripts/download-electron.js",
|
|
"dist:win": "npm run build && electron-builder --win",
|
|
"dist:linux": "npm run build && electron-builder --linux",
|
|
"dist:all": "npm run build && electron-builder --win --linux",
|
|
"clean": "rimraf dist out",
|
|
"lint": "eslint src/",
|
|
"prepare": "husky"
|
|
},
|
|
"dependencies": {
|
|
"electron-store": "^8.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@types/node": "^22.0.0",
|
|
"electron": "npm:electron-nightly@42.0.0-nightly.20260227",
|
|
"electron-builder": "^26.0.0",
|
|
"eslint": "^10.0.2",
|
|
"husky": "^9.1.7",
|
|
"rimraf": "^6.0.1",
|
|
"typescript": "^5.7.0",
|
|
"typescript-eslint": "^8.56.1",
|
|
"vite": "^6.0.0"
|
|
}
|
|
}
|