add build to prepublish

This commit is contained in:
Dror Gluska
2019-07-05 00:31:51 +03:00
parent 14247dcbb8
commit 63817068a8

View File

@@ -52,7 +52,7 @@
"lint": "tslint --project .",
"dryrun": "tsc -noEmit",
"build": "tsc",
"prepublish": "npm run lint && npm run dryrun && npm run test",
"prepublish": "rimraf ./dist && npm run lint && npm run dryrun && npm run test && npm run build",
"install": "npm run build",
"coverage": "rimraf ./.nyc_output && rimraf ./coverage && nyc mocha -r ts-node/register -r source-map-support/register --ui bdd test/**/*.spec.{ts,tsx}\"",
"doc": "rimraf ./docs && typedoc",