Skip to content

Commit e5ac23c

Browse files
committed
fix: pre-push package size
1 parent 5d5a1e7 commit e5ac23c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"test-watch": "mocha watch",
3030
"semantic-release": "semantic-release",
3131
"commit": "commit-wizard",
32-
"demo": "node ./demo"
32+
"demo": "node ./demo",
33+
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";"
3334
},
3435
"devDependencies": {
3536
"bluebird": "^3.5.1",
@@ -55,7 +56,8 @@
5556
},
5657
"husky": {
5758
"hooks": {
58-
"pre-commit": "npm test"
59+
"pre-commit": "npm test",
60+
"pre-push": "npm run size"
5961
}
6062
}
6163
}

0 commit comments

Comments
 (0)