Skip to content

Commit c93caa4

Browse files
Enable GA workflow; add Husky
1 parent 8747f01 commit c93caa4

File tree

5 files changed

+35
-1
lines changed

5 files changed

+35
-1
lines changed

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm test

package-lock.json

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"types": "./dist/types/ResetViewControl.d.ts",
77
"scripts": {
88
"test": "jest",
9-
"build:esm": "tsc"
9+
"build:esm": "tsc",
10+
"prepare": "husky install"
1011
},
1112
"files": [
1213
"dist/esm/ResetViewControl.js",
@@ -43,6 +44,7 @@
4344
"@types/jest": "^27.0.2",
4445
"@types/leaflet": "^1.7.6",
4546
"@types/react": "^17.0.35",
47+
"husky": "^7.0.4",
4648
"jest": "^27.3.1",
4749
"leaflet": "^1.7.1",
4850
"prettier": "^2.4.1",

0 commit comments

Comments
 (0)