Skip to content

Commit fb92734

Browse files
author
Safia Abdalla
committed
Add in-publish to execute prepublish correctly
1 parent efd7143 commit fb92734

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
"url": "http://github.com/nteract/zmq-prebuilt.git"
1010
},
1111
"dependencies": {
12+
"bindings": "~1.2.1",
13+
"in-publish": "^2.0.0",
1214
"nan": "~2.4.0",
13-
"prebuild": "^2.9.0",
14-
"bindings": "~1.2.1"
15+
"prebuild": "^2.9.0"
1516
},
1617
"devDependencies": {
1718
"mocha": "~1.13.0",
@@ -22,6 +23,7 @@
2223
"node": ">=0.8"
2324
},
2425
"scripts": {
26+
"prepublish": "in-publish && node build.js || echo 'Not in npm prepublish.'",
2527
"install": "prebuild --install",
2628
"test": "mocha --expose-gc --slow 2000 --timeout 600000"
2729
},

0 commit comments

Comments
 (0)