From 5a882cea2cbe914a70148305455a855590c7ea0d Mon Sep 17 00:00:00 2001 From: yushijinhun Date: Sat, 20 Oct 2018 23:28:37 +0800 Subject: [PATCH] Add npm prepublishOnly script --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5ff4bea..71d4851 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,11 @@ "main": "dist/skinview3d.js", "scripts": { "build": "rollup -c", + "test": "karma start && npm run lint", + "prepublishOnly": "npm test && rimraf dist && npm run build", "lint": "tslint --formatters-dir ./node_modules/tslint-formatter-beauty -t beauty -p .", "dev": "npm-run-all --parallel watch serve", "watch": "rollup -w -c", - "test": "karma start && npm run lint", "serve": "ws" }, "repository": {