Skip to content

Commit 72ed944

Browse files
committed
Change prepack script to prepare
The prepare script is run with devDependencies installed, while the prepack script is not. This fixes “check-for-leaks: command not found” when installing spectron directly from Git (npm install electron-userland/spectron). https://docs.npmjs.com/cli/v6/using-npm/scripts Signed-off-by: Anders Kaseorg <andersk@mit.edu>
1 parent fc4c67e commit 72ed944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"lint": "eslint \"**/*.js\" \"**/*.ts\" && prettier --check \"**/*.js\" \"**/*.ts\"",
99
"prettier:write": "prettier --write \"**/*.js\" \"**/*.ts\"",
10-
"prepack": "check-for-leaks",
10+
"prepare": "check-for-leaks",
1111
"prepush": "check-for-leaks",
1212
"pretest": "tsc lib/spectron.d.ts",
1313
"test": "npm run lint && xvfb-maybe mocha",

0 commit comments

Comments
 (0)