update test scripts

This commit is contained in:
Andre Staltz 2023-08-10 10:52:27 +03:00
parent 207f6a4692
commit 05d0523d1d
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
2 changed files with 6 additions and 4 deletions

View File

@ -43,8 +43,10 @@
"typescript": "^5.0.2" "typescript": "^5.0.2"
}, },
"scripts": { "scripts": {
"build": "tsc", "clean-check": "tsc --build --clean",
"test": "node --test", "prepublishOnly": "npm run clean-check && tsc --build",
"postpublish": "npm run clean-check",
"test": "npm run clean-check && node --test",
"format-code": "prettier --write \"*.js\" \"(test|lib)/*.js\"", "format-code": "prettier --write \"*.js\" \"(test|lib)/*.js\"",
"format-code-staged": "pretty-quick --staged --pattern \"*.js\" --pattern \"(test|lib)/*.js\"", "format-code-staged": "pretty-quick --staged --pattern \"*.js\" --pattern \"(test|lib)/*.js\"",
"coverage": "c8 --reporter=lcov npm run test" "coverage": "c8 --reporter=lcov npm run test"