Skip to content

Commit 9b02bba

Browse files
committed
Split test and linter check for precommit.
1 parent 1e2daff commit 9b02bba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"description": "Nimbella add-on for Netlify to extends Netlify Sites with serverless functions and stateful APIs using Nimbella Cloud.",
66
"scripts": {
77
"setup": "yarn install",
8-
"test": "xo --no-semicolon && jest --coverage",
8+
"precommit": "xo --no-semicolon && jest --coverage",
9+
"test": "jest --coverage",
910
"lint": "xo --no-semicolon",
1011
"lint-fix": "xo --no-semicolon --fix"
1112
},
@@ -48,7 +49,7 @@
4849
},
4950
"husky": {
5051
"hooks": {
51-
"pre-commit": "yarn test"
52+
"pre-commit": "yarn precommit"
5253
}
5354
},
5455
"files": [

0 commit comments

Comments
 (0)