Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ci: Migrate husky from v4 to v5
  • 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
@@ -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
@@ -0,0 +1 @@
npx lint-staged
10 changes: 1 addition & 9 deletions package.json
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.