Skip to content

Commit

Permalink
fix: pre-push package size
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Sep 28, 2018
1 parent 5d5a1e7 commit e5ac23c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.json
Expand Up @@ -29,7 +29,8 @@
"test-watch": "mocha watch",
"semantic-release": "semantic-release",
"commit": "commit-wizard",
"demo": "node ./demo"
"demo": "node ./demo",
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";"
},
"devDependencies": {
"bluebird": "^3.5.1",
Expand All @@ -55,7 +56,8 @@
},
"husky": {
"hooks": {
"pre-commit": "npm test"
"pre-commit": "npm test",
"pre-push": "npm run size"
}
}
}

0 comments on commit e5ac23c

Please sign in to comment.