We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31fa6ab + 091dbbc commit 3c0ce6aCopy full SHA for 3c0ce6a
package.json
@@ -10,10 +10,9 @@
10
"author": "AxLED",
11
"license": "MIT",
12
"scripts": {
13
- "install": "electron-rebuild"
+ "postinstall": "./postinstall"
14
},
15
"dependencies": {
16
- "onoff": "latest",
17
- "electron-rebuild": "latest"
+ "onoff": "latest"
18
}
19
postinstall
@@ -0,0 +1,8 @@
1
+#!/bin/bash
2
+
3
+if [ ! -f ../../node_modules/.bin/electron-rebuild ]; then
4
+ cd ../..
5
+ npm install electron-rebuild >/dev/null 2>&1
6
+ cd -
7
+fi
8
+../../node_modules/.bin/electron-rebuild
0 commit comments