Skip to content

Commit

Permalink
fix: husky lost hooks (#1728)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump husky from 4.3.8 to 6.0.0

Bumps [husky](https://github.com/typicode/husky) from 4.3.8 to 6.0.0.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](typicode/husky@v4.3.8...v6.0.0)

Signed-off-by: dependabot[bot] <[email protected]>

* fix: trigger hooks

* fix: test hook

* fix: add hook

* fix: move the instalation to the postinstall script

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
simonadomnisoru and dependabot[bot] authored May 25, 2021
1 parent e0c2053 commit 4c9e480
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 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/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn i18n:add
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn linter:check && yarn flow:check
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,9 @@
"lint": "npm run flow:check && npm run linter:check",
"cy:open": "d2-utils-cypress open --appStart 'yarn start:forCypress'",
"cy:run": "d2-utils-cypress run --appStart 'yarn start:forCypress'",
"verifyCacheVersion": "node scripts/verifyCacheVersion.js"
},
"husky": {
"hooks": {
"pre-commit": "d2-app-scripts i18n extract && git add ./i18n/",
"pre-push": "yarn linter:check && yarn flow:check"
}
"verifyCacheVersion": "node scripts/verifyCacheVersion.js",
"postinstall": "husky install",
"i18n:add": "d2-app-scripts i18n extract && git add ./i18n/"
},
"devDependencies": {
"@babel/plugin-transform-flow-strip-types": "^7.13.0",
Expand Down

0 comments on commit 4c9e480

Please sign in to comment.