Skip to content

Commit 4a9ecbb

Browse files
committed
Add prepublish script to build & test
1 parent 63a7a1b commit 4a9ecbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"license": "MIT",
66
"scripts": {
77
"build": "tslint -p . && tsc",
8-
"test": "mocha -r ts-node/register --recursive \"./src/**/__tests__/*\""
8+
"test": "mocha -r ts-node/register --recursive \"./src/**/__tests__/*\"",
9+
"prepublish": "npm run build && npm run test"
910
},
1011
"typings": "lib/index.d.ts",
1112
"repository": {

0 commit comments

Comments
 (0)