From 3c75c43d37356f73c1751052e679777d391eea4b Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 11 Feb 2016 13:59:40 +0000 Subject: [PATCH] Bail if build step fails --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 89e51e03..ff3789e9 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "build:compile": "babel --source-maps -d lib src", "build:bundle": "NODE_ENV=production webpack -p lib/vector/index.js vector/bundle.js", "build": "npm run build:css && npm run build:compile && npm run build:bundle", - "package": "npm run build && mkdir packages; bestzip packages/vector-`git describe --dirty || echo unknown`.zip vector", + "package": "npm run build && (mkdir packages || true) && bestzip packages/vector-`git describe --dirty || echo unknown`.zip vector", "start:js": "webpack -w src/vector/index.js vector/bundle.js", "start:js:prod": "NODE_ENV=production webpack -w src/vector/index.js vector/bundle.js", "start:skins:css": "catw \"src/skins/vector/css/**/*.css\" -o vector/components.css",