Skip to content

Commit

Permalink
ci: Migrate husky from v4 to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Feb 9, 2021
1 parent 1d14b37 commit 47a5b8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(git diff 'HEAD@{1}' --name-only | grep 'package-lock.json' > /dev/null) && npm ci || :
git remote prune origin
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
10 changes: 1 addition & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,7 @@
"tsc": "tsc",
"format": "prettier --write **/*.ts",
"format:check": "prettier --check **/*.ts",
"release": "standard-version",
"update-deps": "(git diff 'HEAD@{1}' --name-only | grep 'package-lock.json' > /dev/null) && npm ci || :"
},
"husky": {
"skipCI": true,
"hooks": {
"pre-commit": "lint-staged",
"post-merge": "npm run update-deps; git remote prune origin"
}
"release": "standard-version"
},
"lint-staged": {
"{src,__tests__}/**/*.ts": [
Expand Down

0 comments on commit 47a5b8c

Please sign in to comment.