diff --git a/package.json b/package.json index cd3ca70..b6a2015 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,12 @@ "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { + "clean": "rimraf dist", "lint": "eslint --ignore-path .eslintignore --ext .js,.ts .", "lint-fix": "eslint --fix --ignore-path .eslintignore --ext .js,.ts . --max-warnings=0", "format-staged": "pretty-quick --staged", "format": "pretty-quick", - "build": "npm run tests && npm run format && tsc", + "build": "npm run lint-fix && npm run tests && npm run format && npm run clean && tsc", "tests": "mocha -R progress -r ts-node/register ./tests/**/*.spec.ts", "test": "mocha -r ts-node/register", "test-coverage": "nyc npm run tests",