Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit dcfb487

Browse files
authored
chore: upgrade husky config to v6 (#1204)
1 parent b0e89ef commit dcfb487

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Diff for: .husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

Diff for: .husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged

Diff for: package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"api gateway"
1515
],
1616
"scripts": {
17+
"prepare": "husky install",
1718
"test": "jest --runInBand --coverage",
1819
"packages-install": "lerna exec -- yarn install --frozen-lockfile",
1920
"packages-build": "lerna run build",
@@ -122,11 +123,6 @@
122123
"type": "opencollective",
123124
"url": "https://opencollective.com/serverless-nextjs-plugin"
124125
},
125-
"husky": {
126-
"hooks": {
127-
"pre-commit": "yarn lint-staged"
128-
}
129-
},
130126
"lint-staged": {
131127
"*.{js,jsx,ts,tsx,md,yml}": [
132128
"prettier --write"

0 commit comments

Comments
 (0)