Skip to content

Commit 3c0ce6a

Browse files
authored
Merge pull request #10 from sdetweil/master
fix rebuild step process so its compatible to magic mirror v2.18 and later
2 parents 31fa6ab + 091dbbc commit 3c0ce6a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
"author": "AxLED",
1111
"license": "MIT",
1212
"scripts": {
13-
"install": "electron-rebuild"
13+
"postinstall": "./postinstall"
1414
},
1515
"dependencies": {
16-
"onoff": "latest",
17-
"electron-rebuild": "latest"
16+
"onoff": "latest"
1817
}
1918
}

postinstall

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)