Skip to content

Commit 9dc0235

Browse files
committed
auto-publish scripts
1 parent 4c37e04 commit 9dc0235

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"description": "Used in npm for command line application support",
55
"scripts": {
66
"test": "tap test/*.js --100",
7-
"snap": "TAP_SNAPSHOT=1 tap test/*.js --100"
7+
"snap": "TAP_SNAPSHOT=1 tap test/*.js --100",
8+
"preversion": "npm test",
9+
"postversion": "npm publish",
10+
"postpublish": "git push origin --follow-tags"
811
},
912
"repository": {
1013
"type": "git",

0 commit comments

Comments
 (0)