Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hotfix-husky] Updated Husky to version 5 #21

Merged
merged 4 commits into from
Nov 25, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname $0)/_/husky.sh"

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

yarn
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 lint-staged
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 tsc:clean && yarn lint
16 changes: 3 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,8 @@
"lerna:init": "lerna exec -- yarn install && yarn tsc && lerna link --force-local",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,json",
"lint:fix": "yarn lint --fix",
"postinstall": "yarn lerna:init && yarn build",
"test": "lerna run test --concurrency 1",
"post-checkout": "yarn",
"post-merge": "yarn",
"pre-commit": "yarn lint-staged",
"pre-push": "yarn build:clean && yarn lint"
},
"hooks": {
"post-checkout": "yarn post-checkout",
"post-merge": "yarn post-merge",
"pre-commit": "yarn pre-commit",
"pre-push": "yarn pre-push"
"postinstall": "yarn husky install && yarn lerna:init && yarn build",
"test": "lerna run test --concurrency 1"
},
"lint-staged": {
"*.{js,jsx,ts,tsx,json}": [ "eslint --fix" ]
Expand All @@ -39,7 +29,7 @@
"@types/node": "^14.11.2",
"cz-lerna-changelog": "^2.0.3",
"eslint": "^7.10.0",
"husky": "^4.3.0",
"husky": "^5.0.4",
"jest": "^26.5.2",
"lerna": "^3.22.1",
"lint-staged": "^10.5.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/backend/aws/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@gravitywelluk/json-api-error@1.0.22":
version "1.0.22"
resolved "https://registry.yarnpkg.com/@gravitywelluk/json-api-error/-/json-api-error-1.0.22.tgz#a1cd2ae1106ab62a460fde38b707f39cda869751"
integrity sha512-E8BlLhv17JOL9QAoFnimLQvpIv/mjtJmaqIHL5ygn7+/PAj05GDm6NNn9ExaU7FctIjUyb4OTSG6oQf0C+gDpw==
"@gravitywelluk/json-api-error@1.0.23":
version "1.0.23"
resolved "https://registry.yarnpkg.com/@gravitywelluk/json-api-error/-/json-api-error-1.0.23.tgz#467c2dac6ce9d619b711827095f7e8d891cbefec"
integrity sha512-TUlp7WzrtncRZxt4eN1iIUR1PFRObOUttooH2NRDwqUnscFaLW9VgizBqJlVD3Pnl6VcjHDr9sK608enfeDBJA==
dependencies:
"@sentry/node" "^5.22.0"
axios "^0.19.2"
Expand Down
16 changes: 8 additions & 8 deletions packages/backend/lambda-utils/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
# yarn lockfile v1


"@gravitywelluk/debug@1.0.21":
version "1.0.21"
resolved "https://registry.yarnpkg.com/@gravitywelluk/debug/-/debug-1.0.21.tgz#8b41d74400e4bc2d42ecfc03fd9fdece71e24daa"
integrity sha512-FYXxSrI4NCbQdM23TcL1golqudfdrAXxgKDP6FPWWpnh7UsaGUVeUeOp9Ya4aJ76qsD5FFes9Twd0q59ct39zQ==
"@gravitywelluk/debug@1.0.22":
version "1.0.22"
resolved "https://registry.yarnpkg.com/@gravitywelluk/debug/-/debug-1.0.22.tgz#090877afc12474aa35e8f5940b927df80fa03820"
integrity sha512-GiWQR30HQKIyH7MS12QEkAs5EkAK3jEPZFNMzi1lVQ8vqmdnCESJoupzOSx6zAXJXc4SWyfx0OWzPOjCnG5kOw==
dependencies:
debug "^4.2.0"

"@gravitywelluk/json-api-error@1.0.22":
version "1.0.22"
resolved "https://registry.yarnpkg.com/@gravitywelluk/json-api-error/-/json-api-error-1.0.22.tgz#a1cd2ae1106ab62a460fde38b707f39cda869751"
integrity sha512-E8BlLhv17JOL9QAoFnimLQvpIv/mjtJmaqIHL5ygn7+/PAj05GDm6NNn9ExaU7FctIjUyb4OTSG6oQf0C+gDpw==
"@gravitywelluk/json-api-error@1.0.23":
version "1.0.23"
resolved "https://registry.yarnpkg.com/@gravitywelluk/json-api-error/-/json-api-error-1.0.23.tgz#467c2dac6ce9d619b711827095f7e8d891cbefec"
integrity sha512-TUlp7WzrtncRZxt4eN1iIUR1PFRObOUttooH2NRDwqUnscFaLW9VgizBqJlVD3Pnl6VcjHDr9sK608enfeDBJA==
dependencies:
"@sentry/node" "^5.22.0"
axios "^0.19.2"
Expand Down
16 changes: 8 additions & 8 deletions packages/backend/sequelize-utils/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
# yarn lockfile v1


"@gravitywelluk/debug@1.0.21":
version "1.0.21"
resolved "https://registry.yarnpkg.com/@gravitywelluk/debug/-/debug-1.0.21.tgz#8b41d74400e4bc2d42ecfc03fd9fdece71e24daa"
integrity sha512-FYXxSrI4NCbQdM23TcL1golqudfdrAXxgKDP6FPWWpnh7UsaGUVeUeOp9Ya4aJ76qsD5FFes9Twd0q59ct39zQ==
"@gravitywelluk/debug@1.0.22":
version "1.0.22"
resolved "https://registry.yarnpkg.com/@gravitywelluk/debug/-/debug-1.0.22.tgz#090877afc12474aa35e8f5940b927df80fa03820"
integrity sha512-GiWQR30HQKIyH7MS12QEkAs5EkAK3jEPZFNMzi1lVQ8vqmdnCESJoupzOSx6zAXJXc4SWyfx0OWzPOjCnG5kOw==
dependencies:
debug "^4.2.0"

"@gravitywelluk/json-api-error@1.0.22":
version "1.0.22"
resolved "https://registry.yarnpkg.com/@gravitywelluk/json-api-error/-/json-api-error-1.0.22.tgz#a1cd2ae1106ab62a460fde38b707f39cda869751"
integrity sha512-E8BlLhv17JOL9QAoFnimLQvpIv/mjtJmaqIHL5ygn7+/PAj05GDm6NNn9ExaU7FctIjUyb4OTSG6oQf0C+gDpw==
"@gravitywelluk/json-api-error@1.0.23":
version "1.0.23"
resolved "https://registry.yarnpkg.com/@gravitywelluk/json-api-error/-/json-api-error-1.0.23.tgz#467c2dac6ce9d619b711827095f7e8d891cbefec"
integrity sha512-TUlp7WzrtncRZxt4eN1iIUR1PFRObOUttooH2NRDwqUnscFaLW9VgizBqJlVD3Pnl6VcjHDr9sK608enfeDBJA==
dependencies:
"@sentry/node" "^5.22.0"
axios "^0.19.2"
Expand Down
28 changes: 14 additions & 14 deletions packages/backend/serverless-queue/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
dependencies:
debug "^4.2.0"

"@gravitywelluk/debug@1.0.21":
version "1.0.21"
resolved "https://registry.yarnpkg.com/@gravitywelluk/debug/-/debug-1.0.21.tgz#8b41d74400e4bc2d42ecfc03fd9fdece71e24daa"
integrity sha512-FYXxSrI4NCbQdM23TcL1golqudfdrAXxgKDP6FPWWpnh7UsaGUVeUeOp9Ya4aJ76qsD5FFes9Twd0q59ct39zQ==
"@gravitywelluk/debug@1.0.22":
version "1.0.22"
resolved "https://registry.yarnpkg.com/@gravitywelluk/debug/-/debug-1.0.22.tgz#090877afc12474aa35e8f5940b927df80fa03820"
integrity sha512-GiWQR30HQKIyH7MS12QEkAs5EkAK3jEPZFNMzi1lVQ8vqmdnCESJoupzOSx6zAXJXc4SWyfx0OWzPOjCnG5kOw==
dependencies:
debug "^4.2.0"

Expand All @@ -38,24 +38,24 @@
ramda "^0.27.0"
uuid "^8.1.0"

"@gravitywelluk/json-api-error@1.0.22":
version "1.0.22"
resolved "https://registry.yarnpkg.com/@gravitywelluk/json-api-error/-/json-api-error-1.0.22.tgz#a1cd2ae1106ab62a460fde38b707f39cda869751"
integrity sha512-E8BlLhv17JOL9QAoFnimLQvpIv/mjtJmaqIHL5ygn7+/PAj05GDm6NNn9ExaU7FctIjUyb4OTSG6oQf0C+gDpw==
"@gravitywelluk/json-api-error@1.0.23":
version "1.0.23"
resolved "https://registry.yarnpkg.com/@gravitywelluk/json-api-error/-/json-api-error-1.0.23.tgz#467c2dac6ce9d619b711827095f7e8d891cbefec"
integrity sha512-TUlp7WzrtncRZxt4eN1iIUR1PFRObOUttooH2NRDwqUnscFaLW9VgizBqJlVD3Pnl6VcjHDr9sK608enfeDBJA==
dependencies:
"@sentry/node" "^5.22.0"
axios "^0.19.2"
joi "^17.3.0"
ramda "^0.27.0"
uuid "^8.1.0"

"@gravitywelluk/sequelize-utils@1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@gravitywelluk/sequelize-utils/-/sequelize-utils-1.0.2.tgz#46e7f20567ea8d63d0e0d2a85f7ac0e981fa6c21"
integrity sha512-ad/MEW9CvDr+erLghLW3dd/rh7tN3ofTpLRQ0C7XU43X92KKYFplmLIzc3iPtEq7IZG80ptJqmynTZEcEKcx8Q==
"@gravitywelluk/sequelize-utils@1.0.3":
version "1.0.3"
resolved "https://registry.yarnpkg.com/@gravitywelluk/sequelize-utils/-/sequelize-utils-1.0.3.tgz#870b24701a13c016bccf2c8f45c0d4c9825b2971"
integrity sha512-iwbUBO4d35uk6w5jYjYrxN2iqGi0W31/8PFIyJ+M3+SzMJZOyD6puqfDY2K95leLeOMpc367ZOJyI89ZSuepbw==
dependencies:
"@gravitywelluk/debug" "1.0.21"
"@gravitywelluk/json-api-error" "1.0.22"
"@gravitywelluk/debug" "1.0.22"
"@gravitywelluk/json-api-error" "1.0.23"
ramda "^0.27.1"

"@hapi/hoek@^9.0.0":
Expand Down
46 changes: 4 additions & 42 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2480,11 +2480,6 @@ compare-func@^2.0.0:
array-ify "^1.0.0"
dot-prop "^5.1.0"

compare-versions@^3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.6.0.tgz#1a5689913685e5a87637b8d3ffca75514ec41d62"
integrity sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==

component-emitter@^1.2.1:
version "1.3.0"
resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0"
Expand Down Expand Up @@ -3594,13 +3589,6 @@ find-up@^4.0.0, find-up@^4.1.0:
locate-path "^5.0.0"
path-exists "^4.0.0"

find-versions@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/find-versions/-/find-versions-3.2.0.tgz#10297f98030a786829681690545ef659ed1d254e"
integrity sha512-P8WRou2S+oe222TOCHitLy8zj+SIsVJh52VP4lvXkaFVnOFFdoWv1H1Jjvel1aI6NCFOAaeAVm8qrI0odiLcww==
dependencies:
semver-regex "^2.0.0"

flat-cache@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz#5d296d6f04bda44a4630a301413bdbc2ec085ec0"
Expand Down Expand Up @@ -4088,21 +4076,10 @@ humanize-ms@^1.2.1:
dependencies:
ms "^2.0.0"

husky@^4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/husky/-/husky-4.3.0.tgz#0b2ec1d66424e9219d359e26a51c58ec5278f0de"
integrity sha512-tTMeLCLqSBqnflBZnlVDhpaIMucSGaYyX6855jM4AguGeWCeSzNdb1mfyWduTZ3pe3SJVvVWGL0jO1iKZVPfTA==
dependencies:
chalk "^4.0.0"
ci-info "^2.0.0"
compare-versions "^3.6.0"
cosmiconfig "^7.0.0"
find-versions "^3.2.0"
opencollective-postinstall "^2.0.2"
pkg-dir "^4.2.0"
please-upgrade-node "^3.2.0"
slash "^3.0.0"
which-pm-runs "^1.0.0"
husky@^5.0.4:
version "5.0.4"
resolved "https://registry.yarnpkg.com/husky/-/husky-5.0.4.tgz#24e666d560f340ce70bf58e7658eb574e3bddcca"
integrity sha512-35tdr4zrmJrpMconZggELF8zzNuddp2NEpPc4AjplPoYJauPZU6WuvCCrJYOTZv5UUj9C15ikQWCcTXk4jJj9Q==

iconv-lite@0.4.24, iconv-lite@^0.4.17, iconv-lite@^0.4.24:
version "0.4.24"
Expand Down Expand Up @@ -6116,11 +6093,6 @@ onetime@^5.1.0:
dependencies:
mimic-fn "^2.1.0"

opencollective-postinstall@^2.0.2:
version "2.0.3"
resolved "https://registry.yarnpkg.com/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz#7a0fff978f6dbfa4d006238fbac98ed4198c3259"
integrity sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==

optionator@^0.8.1:
version "0.8.3"
resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495"
Expand Down Expand Up @@ -7094,11 +7066,6 @@ semver-compare@^1.0.0:
resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc"
integrity sha1-De4hahyUGrN+nvsXiPavxf9VN/w=

semver-regex@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/semver-regex/-/semver-regex-2.0.0.tgz#a93c2c5844539a770233379107b38c7b4ac9d338"
integrity sha512-mUdIBBvdn0PLOeP3TEkMH7HHeUP3GjsXCwKarjv/kGmUFOYg1VqEemKhoQpWMu6X2I8kHeuVdGibLGkVK+/5Qw==

"semver@2 || 3 || 4 || 5", "semver@2.x || 3.x || 4 || 5", semver@^5.4.1, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0, semver@^5.7.0, semver@^5.7.1:
version "5.7.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
Expand Down Expand Up @@ -8263,11 +8230,6 @@ which-module@^2.0.0:
resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=

which-pm-runs@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/which-pm-runs/-/which-pm-runs-1.0.0.tgz#670b3afbc552e0b55df6b7780ca74615f23ad1cb"
integrity sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs=

which@^1.2.9, which@^1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"
Expand Down