Skip to content

Commit 9a94b55

Browse files
committed
refact(package.json): rebuild before running tests
1 parent 314666d commit 9a94b55

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
"exports": "./dist/lib/index.js",
1919
"scripts": {
2020
"dev": "nodemon -e js,ts --watch lib --watch tests --exec 'yarn build'",
21-
"build": "tsc",
21+
"build": "rm -rf ./dist && tsc",
2222
"lint": "npm-run-all \"lint:*\"",
2323
"lint:eslint-docs": "npm-run-all \"update:eslint-docs -- --check\"",
2424
"lint:js": "eslint .",
25-
"test": "mocha tests --recursive ./dist/tests/",
26-
"update:eslint-docs": "eslint-doc-generator"
25+
"test": "yarn build && mocha tests --recursive ./dist/tests/",
26+
"update:eslint-docs": "eslint-doc-generator",
27+
"publish": "yarn build; npm publish"
2728
},
2829
"dependencies": {
2930
"requireindex": "^1.2.0"

0 commit comments

Comments
 (0)