Skip to content

Commit

Permalink
npm run cov shouldn't fail when open command does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Mar 5, 2023
1 parent 89daee9 commit ce23421
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"fix": "concurrently -m 1 -c auto npm:fix:eslint npm:fix:prettier",
"mocha": "mocha ./test",
"test": "concurrently -m 1 -c auto npm:build npm:mocha",
"cov": "nyc --reporter=lcov --reporter=text-summary npm test && open ./coverage/lcov-report/index.html",
"nyc": "nyc --reporter=lcov --reporter=text-summary npm run mocha && (which open && open ./coverage/lcov-report/index.html || true)",
"cov": "concurrently -m 1 -c auto npm:build npm:nyc",
"prepare": "husky install"
},
"repository": {
Expand Down

0 comments on commit ce23421

Please sign in to comment.