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:
+6
-1
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user