Skip to content

Commit

Permalink
Restructure the pre scripts for better granularity
Browse files Browse the repository at this point in the history
  • Loading branch information
swansontec committed May 24, 2019
1 parent 5dbae64 commit 65fb862
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@
"scripts": {
"build": "rimraf lib && rollup -c",
"lint": "standard '*.js' 'src/**/*.js' 'test/**/*.js'",
"test": "npm run lint && rollup -c && nyc mocha"
"precommit": "npm run lint && npm test",
"prepare": "npm run build",
"pretest": "npm run build",
"test": "nyc mocha"
},
"husky": {
"hooks": {
"pre-commit": "npm test"
"pre-commit": "npm run precommit"
}
},
"devDependencies": {
Expand Down

0 comments on commit 65fb862

Please sign in to comment.