Skip to content

Commit

Permalink
chore(package.json): update npm script to use nyc
Browse files Browse the repository at this point in the history
  • Loading branch information
exuanbo committed Nov 18, 2020
1 parent 664ab97 commit c0320a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.github/
.nyc_output
coverage/
rollup.config.js
src/
__tests__/img/
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
"main": "dist/index.js",
"module": "dist/index.es.js",
"directories": {
"test": "test"
"test": "__tests__"
},
"scripts": {
"lint": "ts-standardx",
"lint:fix": "ts-standardx --fix",
"clean": "rimraf dist",
"build": "npm run clean && rollup -c",
"test": "npm run lint && mocha __tests__",
"pretest": "npm run build"
"test": "npx nyc@latest --exclude=dist --reporter=lcov --reporter=text-summary mocha __tests__",
"pretest": "npm run build && npm run lint"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit c0320a4

Please sign in to comment.