Skip to content

Commit fa0df17

Browse files
committed
Refactor npm scripts
1 parent 058e231 commit fa0df17

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,17 @@
3333
"prettier": "^2.0.0",
3434
"remark-cli": "^11.0.0",
3535
"remark-preset-wooorm": "^9.0.0",
36-
"rimraf": "^3.0.0",
3736
"tape": "^5.0.0",
3837
"type-coverage": "^2.0.0",
3938
"typescript": "^4.0.0",
4039
"xo": "^0.52.0"
4140
},
4241
"scripts": {
4342
"prepack": "npm run build && npm run format",
44-
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
43+
"build": "tsc --build --clean && tsc --build && type-coverage",
4544
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
46-
"test-api": "node test.js",
47-
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js",
45+
"test-api": "node --conditions development test.js",
46+
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
4847
"test": "npm run build && npm run format && npm run test-coverage"
4948
},
5049
"prettier": {

0 commit comments

Comments
 (0)