fix: add test and format to build script

This commit is contained in:
StevanFreeborn
2023-02-01 23:58:27 -06:00
parent 0580ce5cca
commit 88bf080847
+3 -2
View File
@@ -5,8 +5,9 @@
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"scripts": { "scripts": {
"format": "pretty-quick --staged", "format-staged": "pretty-quick --staged",
"build": "npm run tests && tsc", "format": "pretty-quick",
"build": "npm run tests && npm run format && 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",