Add prepare script and repository field for git-dependency installs

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.
This commit is contained in:
2026-07-26 04:05:20 -07:00
parent 8a8a824f3b
commit b045a22b5d
+6 -1
View File
@@ -10,7 +10,8 @@
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "tsc -p tsconfig.json --watch",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"prepare": "npm run build"
},
"keywords": [
"electron",
@@ -21,6 +22,10 @@
"v8"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://git.oxmc.me/oxmc/electron-performance.git"
},
"peerDependencies": {
"electron": ">=20.0.0"
},