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

chore(deps): upgrade husky to the latest version #10572

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all 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/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn exec lint-staged
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"eslint-plugin-testing-library": "^6.2.2",
"fs-extra": "^11.2.0",
"glob": "^10.4.1",
"husky": "^4.3.8",
"husky": "^9.0.11",
"jest": "27.5.1",
"jest-cli": "27.5.1",
"jest-transform-stub": "^2.0.0",
Expand Down Expand Up @@ -93,7 +93,7 @@
"lint:ts": "yarn lint packages/*/src",
"lint:versions": "node scripts/verifyPatternflyVersions.js",
"lint:tests": "yarn lint packages/*/src/components/*/__tests__/*.test.*",
"prepare": "ts-patch install -s",
"postinstall": "ts-patch install -s && husky",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new version of Yarn actually does not support prepare, so I had to use the postinstall hook instead.

"serve:docs": "yarn workspace @patternfly/react-docs serve",
"serve:integration": "lerna run preview --scope=demo-app-ts",
"start": "yarn build && concurrently --kill-others \"yarn watch\" \"yarn workspace @patternfly/react-docs develop\"",
Expand All @@ -106,11 +106,6 @@
"watch": "yarn build:esm --watch",
"screenshots": "yarn workspace @patternfly/react-docs screenshots"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.md": "yarn lint:md --fix",
"*.{js,jsx,ts,tsx}": "yarn lint --fix",
Expand Down
122 changes: 6 additions & 116 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3242,7 +3242,7 @@ __metadata:
eslint-plugin-testing-library: "npm:^6.2.2"
fs-extra: "npm:^11.2.0"
glob: "npm:^10.4.1"
husky: "npm:^4.3.8"
husky: "npm:^9.0.11"
jest: "npm:27.5.1"
jest-cli: "npm:27.5.1"
jest-transform-stub: "npm:^2.0.0"
Expand Down Expand Up @@ -4343,13 +4343,6 @@ __metadata:
languageName: node
linkType: hard

"@types/parse-json@npm:^4.0.0":
version: 4.0.2
resolution: "@types/parse-json@npm:4.0.2"
checksum: 10c0/b1b863ac34a2c2172fbe0807a1ec4d5cb684e48d422d15ec95980b81475fac4fdb3768a8b13eef39130203a7c04340fc167bae057c7ebcafd7dec9fe6c36aeb1
languageName: node
linkType: hard

"@types/prettier@npm:^2.1.5":
version: 2.7.3
resolution: "@types/prettier@npm:2.7.3"
Expand Down Expand Up @@ -6789,13 +6782,6 @@ __metadata:
languageName: node
linkType: hard

"ci-info@npm:^2.0.0":
version: 2.0.0
resolution: "ci-info@npm:2.0.0"
checksum: 10c0/8c5fa3830a2bcee2b53c2e5018226f0141db9ec9f7b1e27a5c57db5512332cde8a0beb769bcbaf0d8775a78afbf2bb841928feca4ea6219638a5b088f9884b46
languageName: node
linkType: hard

"ci-info@npm:^3.2.0, ci-info@npm:^3.6.1":
version: 3.9.0
resolution: "ci-info@npm:3.9.0"
Expand Down Expand Up @@ -7258,13 +7244,6 @@ __metadata:
languageName: node
linkType: hard

"compare-versions@npm:^3.6.0":
version: 3.6.0
resolution: "compare-versions@npm:3.6.0"
checksum: 10c0/11d4cad6f8da9e246d1d7b02912fdd38f33c7167257c1860defbe8a0ea846f774c1e17da081afb277c54549ba5cb2bef4e4350449ba2749f7b721f0203ba0cc7
languageName: node
linkType: hard

"compressible@npm:~2.0.16":
version: 2.0.18
resolution: "compressible@npm:2.0.18"
Expand Down Expand Up @@ -7595,19 +7574,6 @@ __metadata:
languageName: node
linkType: hard

"cosmiconfig@npm:^7.0.0":
version: 7.1.0
resolution: "cosmiconfig@npm:7.1.0"
dependencies:
"@types/parse-json": "npm:^4.0.0"
import-fresh: "npm:^3.2.1"
parse-json: "npm:^5.0.0"
path-type: "npm:^4.0.0"
yaml: "npm:^1.10.0"
checksum: 10c0/b923ff6af581638128e5f074a5450ba12c0300b71302398ea38dbeabd33bbcaa0245ca9adbedfcf284a07da50f99ede5658c80bb3e39e2ce770a99d28a21ef03
languageName: node
linkType: hard

"cosmiconfig@npm:^8.0.0, cosmiconfig@npm:^8.2.0":
version: 8.3.6
resolution: "cosmiconfig@npm:8.3.6"
Expand Down Expand Up @@ -10181,15 +10147,6 @@ __metadata:
languageName: node
linkType: hard

"find-versions@npm:^4.0.0":
version: 4.0.0
resolution: "find-versions@npm:4.0.0"
dependencies:
semver-regex: "npm:^3.1.2"
checksum: 10c0/4ed736f0604e9249104fb8679850ad8bfb9262142e79f86bc88e1e731e6958616a1dd6b0d6814634e993e7a59efaa1546a92e0d47a22534c6e79ec382ea60950
languageName: node
linkType: hard

"findup-sync@npm:^5.0.0":
version: 5.0.0
resolution: "findup-sync@npm:5.0.0"
Expand Down Expand Up @@ -11677,24 +11634,12 @@ __metadata:
languageName: node
linkType: hard

"husky@npm:^4.3.8":
version: 4.3.8
resolution: "husky@npm:4.3.8"
dependencies:
chalk: "npm:^4.0.0"
ci-info: "npm:^2.0.0"
compare-versions: "npm:^3.6.0"
cosmiconfig: "npm:^7.0.0"
find-versions: "npm:^4.0.0"
opencollective-postinstall: "npm:^2.0.2"
pkg-dir: "npm:^5.0.0"
please-upgrade-node: "npm:^3.2.0"
slash: "npm:^3.0.0"
which-pm-runs: "npm:^1.0.0"
"husky@npm:^9.0.11":
version: 9.0.11
resolution: "husky@npm:9.0.11"
bin:
husky-run: bin/run.js
husky-upgrade: lib/upgrader/bin.js
checksum: 10c0/c7aa15edf35ba8f1451be2bc73fffbdecaf6fea06516e45603d89457463b5e43454bb1f5952a9f0c905d700f4d8912052c9d4c6b8eb8186a55df46e792c17fcb
husky: bin.mjs
checksum: 10c0/2c787dcf74a837fc9a4fea7da907509d4bd9a289f4ea10ecc9d86279e4d4542b0f5f6443a619bccae19e265f2677172cc2b86aae5c932a35a330cc227d914605
languageName: node
linkType: hard

Expand Down Expand Up @@ -16088,15 +16033,6 @@ __metadata:
languageName: node
linkType: hard

"opencollective-postinstall@npm:^2.0.2":
version: 2.0.3
resolution: "opencollective-postinstall@npm:2.0.3"
bin:
opencollective-postinstall: index.js
checksum: 10c0/8a0104a218bc1afaae943f0af378461eeb2836f9848bad872bbd067ec5d1d9791636f307454ab77d0746f10341366f295384656a340ebdb87a2585058e8567e5
languageName: node
linkType: hard

"opener@npm:^1.5.2":
version: 1.5.2
resolution: "opener@npm:1.5.2"
Expand Down Expand Up @@ -16844,15 +16780,6 @@ __metadata:
languageName: node
linkType: hard

"pkg-dir@npm:^5.0.0":
version: 5.0.0
resolution: "pkg-dir@npm:5.0.0"
dependencies:
find-up: "npm:^5.0.0"
checksum: 10c0/793a496d685dc55bbbdbbb22d884535c3b29241e48e3e8d37e448113a71b9e42f5481a61fdc672d7322de12fbb2c584dd3a68bf89b18fffce5c48a390f911bc5
languageName: node
linkType: hard

"pkg-dir@npm:^7.0.0":
version: 7.0.0
resolution: "pkg-dir@npm:7.0.0"
Expand All @@ -16869,15 +16796,6 @@ __metadata:
languageName: node
linkType: hard

"please-upgrade-node@npm:^3.2.0":
version: 3.2.0
resolution: "please-upgrade-node@npm:3.2.0"
dependencies:
semver-compare: "npm:^1.0.0"
checksum: 10c0/222514d2841022be4b843f38d415beadcc6409c0545d6d153778d71c601bba7bbf1cd5827d650c7fae6a9a2ba7cf00f4b6729b40d015a3a5ba2937e57bc1c435
languageName: node
linkType: hard

"plop@npm:^3.1.2":
version: 3.1.2
resolution: "plop@npm:3.1.2"
Expand Down Expand Up @@ -18695,13 +18613,6 @@ __metadata:
languageName: node
linkType: hard

"semver-compare@npm:^1.0.0":
version: 1.0.0
resolution: "semver-compare@npm:1.0.0"
checksum: 10c0/9ef4d8b81847556f0865f46ddc4d276bace118c7cb46811867af82e837b7fc473911981d5a0abc561fa2db487065572217e5b06e18701c4281bcdd2a1affaff1
languageName: node
linkType: hard

"semver-diff@npm:^2.0.0":
version: 2.1.0
resolution: "semver-diff@npm:2.1.0"
Expand All @@ -18711,13 +18622,6 @@ __metadata:
languageName: node
linkType: hard

"semver-regex@npm:^3.1.2":
version: 3.1.4
resolution: "semver-regex@npm:3.1.4"
checksum: 10c0/17bb7742b280e113c7850ce40b274341c74f61077a0712babd84782ea11b5bc343cde5b4e6d06721b29a2a4a17a42c5b8d1559efd9fd3de799997e83d361162c
languageName: node
linkType: hard

"semver@npm:2 || 3 || 4 || 5, semver@npm:^5.0.3, semver@npm:^5.1.0, semver@npm:^5.3.0, semver@npm:^5.4.1, semver@npm:^5.5.0, semver@npm:^5.6.0":
version: 5.7.2
resolution: "semver@npm:5.7.2"
Expand Down Expand Up @@ -22096,13 +22000,6 @@ __metadata:
languageName: node
linkType: hard

"which-pm-runs@npm:^1.0.0":
version: 1.1.0
resolution: "which-pm-runs@npm:1.1.0"
checksum: 10c0/b8f2f230aa49babe21cb93f169f5da13937f940b8cc7a47d2078d9d200950c0dba5ac5659bc01bdbe401e6db3adec6a97b6115215a4ca8e87fd714aebd0cabc6
languageName: node
linkType: hard

"which-typed-array@npm:^1.1.14, which-typed-array@npm:^1.1.15, which-typed-array@npm:^1.1.9":
version: 1.1.15
resolution: "which-typed-array@npm:1.1.15"
Expand Down Expand Up @@ -22460,13 +22357,6 @@ __metadata:
languageName: node
linkType: hard

"yaml@npm:^1.10.0":
version: 1.10.2
resolution: "yaml@npm:1.10.2"
checksum: 10c0/5c28b9eb7adc46544f28d9a8d20c5b3cb1215a886609a2fd41f51628d8aaa5878ccd628b755dbcd29f6bb4921bd04ffbc6dcc370689bb96e594e2f9813d2605f
languageName: node
linkType: hard

"yargs-parser@npm:20.2.4":
version: 20.2.4
resolution: "yargs-parser@npm:20.2.4"
Expand Down
Loading