fix: added clean step to build process
This commit is contained in:
+2
-1
@@ -5,11 +5,12 @@
|
|||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"clean": "rimraf dist",
|
||||||
"lint": "eslint --ignore-path .eslintignore --ext .js,.ts .",
|
"lint": "eslint --ignore-path .eslintignore --ext .js,.ts .",
|
||||||
"lint-fix": "eslint --fix --ignore-path .eslintignore --ext .js,.ts . --max-warnings=0",
|
"lint-fix": "eslint --fix --ignore-path .eslintignore --ext .js,.ts . --max-warnings=0",
|
||||||
"format-staged": "pretty-quick --staged",
|
"format-staged": "pretty-quick --staged",
|
||||||
"format": "pretty-quick",
|
"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",
|
"tests": "mocha -R progress -r ts-node/register ./tests/**/*.spec.ts",
|
||||||
"test": "mocha -r ts-node/register",
|
"test": "mocha -r ts-node/register",
|
||||||
"test-coverage": "nyc npm run tests",
|
"test-coverage": "nyc npm run tests",
|
||||||
|
|||||||
Reference in New Issue
Block a user