From 3af7368e4402d3347ccd26b840aa3de184d8551d Mon Sep 17 00:00:00 2001 From: StevanFreeborn Date: Sat, 4 Feb 2023 00:02:39 -0600 Subject: [PATCH] fix: added clean step to build process --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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",