Abort publish if build fails

.. otherwise we end up publishing a broken build.
This commit is contained in:
Richard van der Hoff 2016-04-19 13:26:20 +01:00
parent 24223ae2b6
commit e114f04e47

View file

@ -17,7 +17,7 @@
"build": "babel src -d lib --source-maps",
"start": "babel src -w -d lib --source-maps",
"clean": "rimraf lib",
"prepublish": "npm run build; git rev-parse HEAD > git-revision.txt",
"prepublish": "npm run build && git rev-parse HEAD > git-revision.txt",
"test": "karma start --browsers PhantomJS",
"test-multi": "karma start --single-run=false"
},