Skip to content

Commit

Permalink
chore: migrate husky 4 to 5
Browse files Browse the repository at this point in the history
husky-4-to-5 v1.0.0
  • Loading branch information
Kikobeats committed Mar 22, 2021
1 parent bc6910f commit c43f7c7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@microlink/root",
"description": "Turns links into a beautiful previews",
"homepage": "https://microlink.io/sdk",
"version": "",
"author": {
"email": "[email protected]",
"name": "Kiko Beats",
Expand Down Expand Up @@ -29,7 +30,7 @@
"@commitlint/config-conventional": "latest",
"finepack": "latest",
"git-authors-cli": "latest",
"husky": "latest",
"husky": "~5.2.0",
"lerna": "latest",
"lint-staged": "latest",
"npm-check-updates": "latest",
Expand All @@ -43,8 +44,9 @@
"scripts": {
"build": "lerna run build",
"clean": "lerna clean --yes && rm -rf node_modules",
"lint": "standard-markdown README.md && lerna exec npm run lint",
"install": "lerna bootstrap --force-local --no-ci",
"lint": "standard-markdown README.md && lerna exec npm run lint",
"postinstall": "husky install",
"prepublishOnly": "lerna run build",
"prerelease": "npm run update:check",
"pretest": "npm run lint",
Expand All @@ -61,12 +63,6 @@
"@commitlint/config-conventional"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"package.json": [
"finepack"
Expand Down

0 comments on commit c43f7c7

Please sign in to comment.