Not published to npm, so consumers install it as a git dependency. npm only runs devDependencies + the prepare lifecycle script for git deps (unlike a registry install, which skips devDependencies and ships prebuilt dist/ instead), so without this, dist/ would be missing on install.
44 lines
984 B
JSON
44 lines
984 B
JSON
{
|
|
"name": "electron-performance",
|
|
"version": "0.1.0",
|
|
"description": "Reduce Electron memory/CPU footprint via tiered Chromium/V8 flags, Pi/GPU-aware tuning, and runtime GC/cache monitoring.",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.json",
|
|
"dev": "tsc -p tsconfig.json --watch",
|
|
"prepublishOnly": "npm run build",
|
|
"prepare": "npm run build"
|
|
},
|
|
"keywords": [
|
|
"electron",
|
|
"performance",
|
|
"memory",
|
|
"optimization",
|
|
"chromium",
|
|
"v8"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.oxmc.me/oxmc/electron-performance.git"
|
|
},
|
|
"peerDependencies": {
|
|
"electron": ">=20.0.0"
|
|
},
|
|
"dependencies": {
|
|
"detect-rpi": "^1.6.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"@oxmc/node-gpuinfo": "^1.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"electron": "^32.0.0",
|
|
"typescript": "^5.5.0"
|
|
}
|
|
}
|