From b045a22b5d41f99440be232f56c4f07621fc9ebe Mon Sep 17 00:00:00 2001 From: oxmc7769 Date: Sun, 26 Jul 2026 04:05:20 -0700 Subject: [PATCH] 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. --- package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d3de871..1e496de 100644 --- a/package.json +++ b/package.json @@ -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" },