chore: update husky (#7671)

This commit is contained in:
btea
2024-02-18 18:23:18 +08:00
committed by GitHub
parent 4001982783
commit e4caa114ac
4 changed files with 58 additions and 70 deletions

View File

@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
pnpm commitlint --edit --config=commitlint.config.cjs

View File

@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
pnpm run lint --quiet

View File

@@ -5,7 +5,7 @@
"bump": "changeset version && pnpm update-manifests",
"changeset": "changeset",
"preinstall": "npx only-allow pnpm",
"prepare": "husky install",
"prepare": "husky",
"pretest": "pnpm run compile-only && pnpm --dir=__fixtures__ run prepareFixtures",
"lint": "pnpm run spellcheck && pnpm lint:meta && syncpack list-mismatches --workspace false && pnpm run lint:ts",
"spellcheck": "cspell \"**/*.ts\" \"**/README.md\" \".changeset/*.md\" --no-progress",
@@ -49,7 +49,7 @@
"cross-env": "^7.0.3",
"cspell": "7.3.8",
"eslint": "^8.56.0",
"husky": "^8.0.3",
"husky": "^9.0.11",
"jest": "^29.7.0",
"keyv": "4.5.4",
"lcov-result-merger": "^3.3.0",

118
pnpm-lock.yaml generated
View File

@@ -100,8 +100,8 @@ importers:
specifier: ^8.56.0
version: 8.56.0
husky:
specifier: ^8.0.3
version: 8.0.3
specifier: ^9.0.11
version: 9.0.11
jest:
specifier: ^29.7.0
version: 29.7.0(@babel/types@7.23.9)(@types/node@18.19.15)(ts-node@10.9.2(@types/node@18.19.15)(typescript@5.3.3))
@@ -8946,7 +8946,7 @@ packages:
/@types/adm-zip@0.5.5:
resolution: {integrity: sha512-YCGstVMjc4LTY5uK9/obvxBya93axZOVOyf2GSUulADzmLhYE45u2nAssCs/fWBs1Ifq5Vat75JTPwd5XZoPJw==}
dependencies:
'@types/node': 18.19.16
'@types/node': 18.19.17
dev: true
/@types/archy@0.0.33:
@@ -8993,7 +8993,7 @@ packages:
/@types/byline@4.2.36:
resolution: {integrity: sha512-dO55KDSaOSE+3T8TwP66mzn0u/PM/aSedVMr1tby7WBNjfLIuS6IbYXi1mlau49sVSVB+gXKJscWE0JO3tlXDw==}
dependencies:
'@types/node': 18.19.16
'@types/node': 18.19.17
dev: true
/@types/cacheable-request@6.0.3:
@@ -9001,13 +9001,13 @@ packages:
dependencies:
'@types/http-cache-semantics': 4.0.4
'@types/keyv': 3.1.4
'@types/node': 18.19.16
'@types/node': 18.19.17
'@types/responselike': 1.0.3
/@types/cross-spawn@6.0.6:
resolution: {integrity: sha512-fXRhhUkG4H3TQk5dBhQ7m/JDdSNHKwR2BBia62lhwEIq9xGiQKLxd6LymNhn47SjXhsUEPmxi+PKw2OkW4LLjA==}
dependencies:
'@types/node': 18.19.16
'@types/node': 18.19.17
dev: true
/@types/emscripten@1.39.10:
@@ -9016,20 +9016,20 @@ packages:
/@types/fs-extra@9.0.13:
resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==}
dependencies:
'@types/node': 18.19.16
'@types/node': 18.19.17
dev: true
/@types/glob@8.1.0:
resolution: {integrity: sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==}
dependencies:
'@types/minimatch': 5.1.2
'@types/node': 18.19.16
'@types/node': 18.19.17
dev: true
/@types/graceful-fs@4.1.9:
resolution: {integrity: sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==}
dependencies:
'@types/node': 18.19.16
'@types/node': 18.19.17
dev: true
/@types/hosted-git-info@3.0.5:
@@ -9042,7 +9042,7 @@ packages:
/@types/http-proxy@1.17.14:
resolution: {integrity: sha512-SSrD0c1OQzlFX7pGu1eXxSEjemej64aaNPRhhVYUGqXh0BtldAAx37MG8btcumvpgKyZp1F5Gn3JkktdxiFv6w==}
dependencies:
'@types/node': 18.19.16
'@types/node': 18.19.17
dev: true
/@types/ini@1.3.31:
@@ -9101,7 +9101,7 @@ packages:
/@types/keyv@3.1.4:
resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==}
dependencies:
'@types/node': 18.19.16
'@types/node': 18.19.17
/@types/lodash.clonedeep@4.5.9:
resolution: {integrity: sha512-19429mWC+FyaAhOLzsS8kZUsI+/GmBAQ0HFiCPsKGU+7pBXOQWhyrY6xNNDwUSX8SMZMJvuFVMF9O5dQOlQK9Q==}
@@ -9141,7 +9141,7 @@ packages:
/@types/mz@2.7.8:
resolution: {integrity: sha512-mGLNqqwt8yu4pDw9rEphAiyWnEdok0GzOGrwi5EiTuDFxw7H3ZaEI4ASFKq4HaZtemtjQ8MkcmtWcrU4V0WkIw==}
dependencies:
'@types/node': 18.19.16
'@types/node': 18.19.17
dev: true
/@types/node@12.20.55:
@@ -9157,8 +9157,8 @@ packages:
dependencies:
undici-types: 5.26.5
/@types/node@18.19.16:
resolution: {integrity: sha512-mjtrR7Wco9ZwcGBc1zre6fENlj9z42/+0W26lBGtGBTPiR3Zm9iZAaiPhxreG6magwGCILLVYwlQ48GjAaqM6w==}
/@types/node@18.19.17:
resolution: {integrity: sha512-SzyGKgwPzuWp2SHhlpXKzCX0pIOfcI4V2eF37nNBJOhwlegQ83omtVQ1XxZpDE06V/d6AQvfQdPfnw0tRC//Ng==}
dependencies:
undici-types: 5.26.5
@@ -9194,7 +9194,7 @@ packages:
/@types/responselike@1.0.3:
resolution: {integrity: sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==}
dependencies:
'@types/node': 18.19.16
'@types/node': 18.19.17
/@types/retry@0.12.5:
resolution: {integrity: sha512-3xSjTp3v03X/lSQLkczaN9UIEwJMoMCA1+Nb5HfbJEQWogdeQIyVtTvxPXDQjZ5zws8rFQfVfRdz03ARihPJgw==}
@@ -9204,7 +9204,7 @@ packages:
resolution: {integrity: sha512-F3OznnSLAUxFrCEu/L5PY8+ny8DtcFRjx7fZZ9bycvXRi3KPTRS9HOitGZwvPg0juRhXFWIeKX58cnX5YqLohQ==}
dependencies:
'@types/glob': 8.1.0
'@types/node': 18.19.16
'@types/node': 18.19.17
dev: true
/@types/semver@6.2.7:
@@ -9235,7 +9235,7 @@ packages:
/@types/ssri@7.1.5:
resolution: {integrity: sha512-odD/56S3B51liILSk5aXJlnYt99S6Rt9EFDDqGtJM26rKHApHcwyU/UoYHrzKkdkHMAIquGWCuHtQTbes+FRQw==}
dependencies:
'@types/node': 18.19.16
'@types/node': 18.19.17
/@types/stack-utils@2.0.3:
resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==}
@@ -9248,13 +9248,13 @@ packages:
/@types/tar-stream@2.2.3:
resolution: {integrity: sha512-if3mugZfjVkXOMZdFjIHySxY13r6GXPpyOlsDmLffvyI7tLz9wXE8BFjNivXsvUeyJ1KNlOpfLnag+ISmxgxPw==}
dependencies:
'@types/node': 18.19.16
'@types/node': 18.19.17
dev: true
/@types/tar@6.1.11:
resolution: {integrity: sha512-ThA1WD8aDdVU4VLuyq5NEqriwXErF5gEIJeyT6gHBWU7JtSmW2a5qjNv3/vR82O20mW+1vhmeZJfBQPT3HCugg==}
dependencies:
'@types/node': 18.19.16
'@types/node': 18.19.17
minipass: 4.2.8
dev: true
@@ -9290,7 +9290,7 @@ packages:
/@types/write-file-atomic@4.0.3:
resolution: {integrity: sha512-qdo+vZRchyJIHNeuI1nrpsLw+hnkgqP/8mlaN6Wle/NKhydHmUN9l4p3ZE8yP90AJNJW4uB8HQhedb4f1vNayQ==}
dependencies:
'@types/node': 18.19.16
'@types/node': 18.19.17
dev: true
/@types/yargs-parser@21.0.3:
@@ -9551,7 +9551,7 @@ packages:
clipanion: 3.2.0-rc.6(typanion@3.14.0)
cross-spawn: 7.0.3
diff: 5.2.0
dotenv: 16.4.3
dotenv: 16.4.4
fast-glob: 3.3.2
got: 11.8.6
lodash: 4.17.21
@@ -9576,13 +9576,6 @@ packages:
'@yarnpkg/core': 4.0.3(typanion@3.14.0)
dev: false
/@yarnpkg/fslib@3.0.0-rc.25:
resolution: {integrity: sha512-3/sEMUETbKzmIkP8e9khIdJ7CPecdL2UKLQC946Jpmu6PP8kTNCwcAk5bSIkBZVEHJMPEaZ3TlMAhedpAWF7wg==}
engines: {node: '>=14.15.0'}
dependencies:
tslib: 2.6.2
dev: false
/@yarnpkg/fslib@3.0.2:
resolution: {integrity: sha512-dqSpZCj9ZeqMZzITHvpi5qKS9MCLWZYCl6NHCSl3a+BqiyLApehWAy60zjv9F1fxKZ6RKDgHLhBWhx8RwPm6Dw==}
engines: {node: '>=18.12.0'}
@@ -9626,7 +9619,7 @@ packages:
engines: {node: '>=10.19.0'}
dependencies:
'@types/node': 13.13.52
'@yarnpkg/fslib': 3.0.0-rc.25
'@yarnpkg/fslib': 3.0.2
tslib: 1.14.1
dev: false
@@ -9634,7 +9627,7 @@ packages:
resolution: {integrity: sha512-fOZoZJP8AqHtAWlgZukbQu87lHtm2Hutz5EzahKx7756EfgkE3hcyp0PukYzO2GITPtgsNo5A0V4R1FgFJtAUA==}
engines: {node: '>=18.12.0'}
dependencies:
'@types/node': 18.19.16
'@types/node': 18.19.17
'@yarnpkg/fslib': 3.0.2
dev: false
@@ -9987,7 +9980,7 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
es-abstract: 1.22.3
es-abstract: 1.22.4
get-intrinsic: 1.2.4
is-string: 1.0.7
dev: false
@@ -10006,7 +9999,7 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
es-abstract: 1.22.3
es-abstract: 1.22.4
es-array-method-boxes-properly: 1.0.0
is-string: 1.0.7
dev: false
@@ -10017,7 +10010,7 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
es-abstract: 1.22.3
es-abstract: 1.22.4
es-errors: 1.3.0
es-shim-unscopables: 1.0.2
dev: false
@@ -10028,7 +10021,7 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
es-abstract: 1.22.3
es-abstract: 1.22.4
es-shim-unscopables: 1.0.2
/array.prototype.flatmap@1.3.2:
@@ -10037,7 +10030,7 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
es-abstract: 1.22.3
es-abstract: 1.22.4
es-shim-unscopables: 1.0.2
dev: false
@@ -10048,7 +10041,7 @@ packages:
array-buffer-byte-length: 1.0.1
call-bind: 1.0.7
define-properties: 1.2.1
es-abstract: 1.22.3
es-abstract: 1.22.4
es-errors: 1.3.0
get-intrinsic: 1.2.4
is-array-buffer: 3.0.4
@@ -10291,7 +10284,7 @@ packages:
hasBin: true
dependencies:
caniuse-lite: 1.0.30001587
electron-to-chromium: 1.4.667
electron-to-chromium: 1.4.668
node-releases: 2.0.14
update-browserslist-db: 1.0.13(browserslist@4.22.3)
dev: true
@@ -11242,20 +11235,19 @@ packages:
resolution: {integrity: sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==}
engines: {node: '>=10'}
/define-data-property@1.1.3:
resolution: {integrity: sha512-h3GBouC+RPtNX2N0hHVLo2ZwPYurq8mLmXpOLTsw71gr7lHt5VaI4vVkDUNOfiWmm48JEXe3VM7PmLX45AMmmg==}
/define-data-property@1.1.4:
resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==}
engines: {node: '>= 0.4'}
dependencies:
es-define-property: 1.0.0
es-errors: 1.3.0
get-intrinsic: 1.2.4
gopd: 1.0.1
has-property-descriptors: 1.0.2
/define-properties@1.2.1:
resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==}
engines: {node: '>= 0.4'}
dependencies:
define-data-property: 1.1.3
define-data-property: 1.1.4
has-property-descriptors: 1.0.2
object-keys: 1.1.1
@@ -11389,8 +11381,8 @@ packages:
is-obj: 2.0.0
dev: true
/dotenv@16.4.3:
resolution: {integrity: sha512-II98GFrje5psQTSve0E7bnwMFybNLqT8Vu8JIFWRjsE3khyNUm/loZupuy5DVzG2IXf/ysxvrixYOQnM6mjD3A==}
/dotenv@16.4.4:
resolution: {integrity: sha512-XvPXc8XAQThSjAbY6cQ/9PcBXmFoWuw1sQ3b8HqUCR6ziGXjkTi//kB9SWa2UwqlgdAIuRqAa/9hVljzPehbYg==}
engines: {node: '>=12'}
/duplexify@3.7.1:
@@ -11424,8 +11416,8 @@ packages:
/ee-first@1.1.1:
resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
/electron-to-chromium@1.4.667:
resolution: {integrity: sha512-66L3pLlWhTNVUhnmSA5+qDM3fwnXsM6KAqE36e2w4KN0g6pkEtlT5bs41FQtQwVwKnfhNBXiWRLPs30HSxd7Kw==}
/electron-to-chromium@1.4.668:
resolution: {integrity: sha512-ZOBocMYCehr9W31+GpMclR+KBaDZOoAEabLdhpZ8oU1JFDwIaFY0UDbpXVEUFc0BIP2O2Qn3rkfCjQmMR4T/bQ==}
dev: true
/emittery@0.13.1:
@@ -11489,14 +11481,16 @@ packages:
dependencies:
is-arrayish: 0.2.1
/es-abstract@1.22.3:
resolution: {integrity: sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==}
/es-abstract@1.22.4:
resolution: {integrity: sha512-vZYJlk2u6qHYxBOTjAeg7qUxHdNfih64Uu2J8QqWgXZ2cri0ZpJAkzDUK/q593+mvKwlxyaxr6F1Q+3LKoQRgg==}
engines: {node: '>= 0.4'}
dependencies:
array-buffer-byte-length: 1.0.1
arraybuffer.prototype.slice: 1.0.3
available-typed-arrays: 1.0.6
call-bind: 1.0.7
es-define-property: 1.0.0
es-errors: 1.3.0
es-set-tostringtag: 2.0.2
es-to-primitive: 1.2.1
function.prototype.name: 1.1.6
@@ -12388,7 +12382,7 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
es-abstract: 1.22.3
es-abstract: 1.22.4
functions-have-names: 1.2.3
/functions-have-names@1.2.3:
@@ -12959,9 +12953,9 @@ packages:
ms: 2.1.3
dev: false
/husky@8.0.3:
resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==}
engines: {node: '>=14'}
/husky@9.0.11:
resolution: {integrity: sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==}
engines: {node: '>=18'}
hasBin: true
dev: true
@@ -15023,7 +15017,7 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
es-abstract: 1.22.3
es-abstract: 1.22.4
dev: false
/object.groupby@1.0.2:
@@ -15032,7 +15026,7 @@ packages:
array.prototype.filter: 1.0.3
call-bind: 1.0.7
define-properties: 1.2.1
es-abstract: 1.22.3
es-abstract: 1.22.4
es-errors: 1.3.0
dev: false
@@ -15042,7 +15036,7 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
es-abstract: 1.22.3
es-abstract: 1.22.4
dev: false
/on-finished@2.4.1:
@@ -16312,7 +16306,7 @@ packages:
resolution: {integrity: sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==}
engines: {node: '>= 0.4'}
dependencies:
define-data-property: 1.1.3
define-data-property: 1.1.4
es-errors: 1.3.0
function-bind: 1.1.2
get-intrinsic: 1.2.4
@@ -16323,7 +16317,7 @@ packages:
resolution: {integrity: sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==}
engines: {node: '>= 0.4'}
dependencies:
define-data-property: 1.1.3
define-data-property: 1.1.4
functions-have-names: 1.2.3
has-property-descriptors: 1.0.2
@@ -16714,7 +16708,7 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
es-abstract: 1.22.3
es-abstract: 1.22.4
get-intrinsic: 1.2.4
has-symbols: 1.0.3
internal-slot: 1.0.7
@@ -16728,21 +16722,21 @@ packages:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
es-abstract: 1.22.3
es-abstract: 1.22.4
/string.prototype.trimend@1.0.7:
resolution: {integrity: sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==}
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
es-abstract: 1.22.3
es-abstract: 1.22.4
/string.prototype.trimstart@1.0.7:
resolution: {integrity: sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==}
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
es-abstract: 1.22.3
es-abstract: 1.22.4
/string_decoder@1.1.1:
resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==}
@@ -18217,7 +18211,7 @@ time:
/graceful-git@3.1.2: '2021-09-16T00:23:26.185Z'
/graph-cycles@1.2.1: '2021-04-11T09:47:00.295Z'
/https-proxy-server-express@0.1.2: '2024-01-17T16:04:39.089Z'
/husky@8.0.3: '2023-01-03T08:01:18.807Z'
/husky@9.0.11: '2024-02-13T23:01:43.987Z'
/hyperdrive-schemas@2.0.0: '2020-07-14T11:16:33.671Z'
/ini@4.1.1: '2023-05-16T17:58:46.240Z'
/is-gzip@2.0.0: '2017-08-13T15:56:02.298Z'