diff --git a/.husky/setup.js b/.husky/setup.js deleted file mode 100644 index 06dfea9..0000000 --- a/.husky/setup.js +++ /dev/null @@ -1 +0,0 @@ -!require('ci-info').isCI && require('husky').install(); diff --git a/.husky/setup.mjs b/.husky/setup.mjs new file mode 100644 index 0000000..5c1638b --- /dev/null +++ b/.husky/setup.mjs @@ -0,0 +1,3 @@ +import { isCI } from 'ci-info'; + +!isCI && (await import('husky').then((module) => module.default())); diff --git a/package.json b/package.json index 0489421..dc8ce09 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "packageManager": "pnpm@8.12.0", "scripts": { - "prepare": "node ./.husky/setup.js", + "prepare": "node ./.husky/setup.mjs", "husky:pre-commit": "lint-staged", "husky:commit-msg": "commitlint --edit ${1}", "test": "pnpm run build:references && pnpm run eslint && pnpm run tscheck", @@ -48,7 +48,7 @@ "dotenv": "16.4.5", "eslint": "8.57.0", "eslint-config-prettier": "9.1.0", - "husky": "8.0.3", + "husky": "9.0.11", "lint-staged": "15.2.2", "npm-check-updates": "16.14.18", "prettier": "3.2.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d5dda70..b77072d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -42,8 +42,8 @@ importers: specifier: 9.1.0 version: 9.1.0(eslint@8.57.0) husky: - specifier: 8.0.3 - version: 8.0.3 + specifier: 9.0.11 + version: 9.0.11 lint-staged: specifier: 15.2.2 version: 15.2.2 @@ -1258,7 +1258,7 @@ packages: ajv: 6.12.6 debug: 4.3.4 espree: 9.6.1 - globals: 13.20.0 + globals: 13.24.0 ignore: 5.2.4 import-fresh: 3.3.0 js-yaml: 4.1.0 @@ -1281,7 +1281,7 @@ packages: resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} engines: {node: '>=10.10.0'} dependencies: - '@humanwhocodes/object-schema': 2.0.2 + '@humanwhocodes/object-schema': 2.0.3 debug: 4.3.4 minimatch: 3.1.2 transitivePeerDependencies: @@ -1293,8 +1293,8 @@ packages: engines: {node: '>=12.22'} dev: true - /@humanwhocodes/object-schema@2.0.2: - resolution: {integrity: sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==} + /@humanwhocodes/object-schema@2.0.3: + resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} dev: true /@isaacs/cliui@8.0.2: @@ -4238,7 +4238,7 @@ packages: file-entry-cache: 6.0.1 find-up: 5.0.0 glob-parent: 6.0.2 - globals: 13.20.0 + globals: 13.24.0 graphemer: 1.4.0 ignore: 5.2.4 imurmurhash: 0.1.4 @@ -4522,7 +4522,7 @@ packages: resolution: {integrity: sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==} engines: {node: ^10.12.0 || >=12.0.0} dependencies: - flatted: 3.2.7 + flatted: 3.3.1 rimraf: 3.0.2 dev: true @@ -4531,8 +4531,8 @@ packages: hasBin: true dev: true - /flatted@3.2.7: - resolution: {integrity: sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==} + /flatted@3.3.1: + resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} dev: true /follow-redirects@1.15.3: @@ -4827,13 +4827,6 @@ packages: ini: 2.0.0 dev: true - /globals@13.20.0: - resolution: {integrity: sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==} - engines: {node: '>=8'} - dependencies: - type-fest: 0.20.2 - dev: true - /globals@13.24.0: resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} engines: {node: '>=8'} @@ -5143,9 +5136,9 @@ packages: ms: 2.1.3 dev: true - /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