Skip to content

Commit afcd739

Browse files
authored
Merge pull request #113 from lgeiger/prebuild-install
Use prebuild-install to reduce package size
2 parents e9575b9 + 2af6ade commit afcd739

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99
"url": "https://github.com/zeromq/zeromq.js.git"
1010
},
1111
"dependencies": {
12-
"nan": "^2.4.0",
13-
"prebuild": "^5.0.0"
12+
"@lgeiger/prebuild-install": "^2.0.1",
13+
"nan": "^2.4.0"
1414
},
1515
"devDependencies": {
1616
"electron-mocha": "^3.2.1",
1717
"jsdoc": "^3.4.2",
1818
"mocha": "^3.2.0",
1919
"nyc": "^10.0.0",
20+
"prebuild": "^5.0.0",
2021
"semver": "^5.3.0",
2122
"should": "^11.1.0"
2223
},
@@ -25,7 +26,7 @@
2526
},
2627
"scripts": {
2728
"build:libzmq": "node scripts/preinstall.js",
28-
"install": "prebuild --install --preinstall \"npm run build:libzmq\"",
29+
"install": "prebuild-install || (npm run build:libzmq && node-gyp rebuild)",
2930
"prebuild": "prebuild --all --strip",
3031
"build:docs": "jsdoc -R README.md -d docs lib/*.js",
3132
"postpublish": "./scripts/trigger_travis_build.sh",

0 commit comments

Comments
 (0)