From e20e878b8b83b9eec33ceff6216e9c5e6885c8cd Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 18 Apr 2018 13:45:31 -0400 Subject: [PATCH] clean on build and build:watch --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4253d44df9..856670e1ac 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,9 @@ }, "license": "GPL-3.0", "scripts": { - "prebuild": "rimraf dist/**/*", - "build": "tsc", - "build:watch": "tsc -watch", + "clean": "rimraf dist/**/*", + "build": "npm run clean && tsc", + "build:watch": "npm run clean && tsc -watch", "lint": "tslint src/**/*.ts spec/**/*.ts || true", "lint:fix": "tslint src/**/*.ts spec/**/*.ts --fix", "test": "karma start ./spec/support/karma.conf.js --single-run",