use in-publish to avoid stupid prepublish npm logic

This commit is contained in:
2016-04-29 16:03:18 -07:00
parent 50c0563479
commit 1018e2b3a8

View File

@@ -7,7 +7,7 @@
"test": "npm run build && npm run mocha", "test": "npm run build && npm run mocha",
"mocha": "mocha --compilers js:babel-core/register test/src/**", "mocha": "mocha --compilers js:babel-core/register test/src/**",
"build": "babel src --out-dir lib", "build": "babel src --out-dir lib",
"prepublish": "npm run test" "prepublish": "in-publish && npm run test || not-in-publish"
}, },
"author": "", "author": "",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -33,6 +33,7 @@
"bluebird": "~3.3.5", "bluebird": "~3.3.5",
"debug": "~2.2.0", "debug": "~2.2.0",
"elasticsearch": "~11.0.1", "elasticsearch": "~11.0.1",
"in-publish": "~2.0.0",
"lodash": "~4.11.1", "lodash": "~4.11.1",
"moment": "~2.10.6", "moment": "~2.10.6",
"puid": "~1.0.5" "puid": "~1.0.5"