Skip to content

Commit df6aeff

Browse files
committed
Refactor npm scripts
1 parent 681392a commit df6aeff

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,19 @@
4747
"prettier": "^2.0.0",
4848
"remark-cli": "^11.0.0",
4949
"remark-preset-wooorm": "^9.0.0",
50-
"rimraf": "^3.0.0",
5150
"tape": "^5.0.0",
5251
"type-coverage": "^2.0.0",
5352
"typescript": "^4.0.0",
5453
"xo": "^0.52.0"
5554
},
5655
"scripts": {
5756
"prepack": "npm run build && npm run format",
58-
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
59-
"generate": "node build",
57+
"generate": "node build.js",
58+
"build": "tsc --build --clean && tsc --build && type-coverage",
6059
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
61-
"test-api": "node test/index.js",
62-
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test/index.js",
63-
"test": "npm run generate && npm run build && npm run format && npm run test-coverage"
60+
"test-api": "node --conditions development test/index.js",
61+
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
62+
"test": "npm run build && npm run format && npm run test-coverage"
6463
},
6564
"prettier": {
6665
"tabWidth": 2,

0 commit comments

Comments
 (0)