Skip to content

Commit

Permalink
Use "test" script in pre-push hook
Browse files Browse the repository at this point in the history
- The "test" script already does the linting, so there is no need
  for a "lint-test" script.
  • Loading branch information
Kehrlann committed Sep 5, 2019
1 parent e4d0a5b commit 1ae5050
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"test": "npm run lint && npm run testonly",
"testonly": "NODE_ENV=test mocha test/specs.js",
"testonly-watch": "NODE_ENV=test mocha -w test/specs.js",
"lint": "standard",
"lint-test": "npm run lint && npm run test"
"lint": "standard"
},
"bugs": {
"url": "https://github.com/ilearnio/module-alias/issues"
Expand Down Expand Up @@ -46,7 +45,7 @@
},
"husky": {
"hooks": {
"pre-push": "npm run lint-test"
"pre-push": "npm run test"
}
}
}

0 comments on commit 1ae5050

Please sign in to comment.