diff --git a/.husky/commit-msg b/.husky/commit-msg index 5127f9a..4974c35 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,2 +1,4 @@ -npx commitlint --edit $1 +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" +npx commitlint --edit $1 diff --git a/TODO b/TODO index 5d437f1..5df6518 100644 --- a/TODO +++ b/TODO @@ -35,7 +35,7 @@ - DONE: Display minimun & recommended requirements - DONE: Display developers, publishers, release date & metacritic - DONE: Add protondb url -- DONE: Add support for husky@9.x +- TODO: Add support for husky@9.x - TODO: Find a way to display the correct version in docker - TODO: Find why ora@8.0.1 breaks the blessed UI - TODO: Some game have a different key for the requirements e.g Half life 2, COunter strike diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 4260d4d..5a2ca42 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -29,7 +29,7 @@ "c8": "^9.1.0", "eslint": "^8.57.0", "esmock": "^2.6.4", - "husky": "^9.0.11", + "husky": "^8.0.3", "markdownlint-cli2": "^0.12.1", "semantic-release": "^23.0.0", "sinon": "^17.0.1", @@ -4260,15 +4260,15 @@ } }, "node_modules/husky": { - "version": "9.0.11", - "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz", - "integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==", + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", "dev": true, "bin": { - "husky": "bin.mjs" + "husky": "lib/bin.js" }, "engines": { - "node": ">=18" + "node": ">=14" }, "funding": { "url": "https://github.com/sponsors/typicode" @@ -13610,9 +13610,9 @@ "dev": true }, "husky": { - "version": "9.0.11", - "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz", - "integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==", + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", "dev": true }, "ignore": { diff --git a/package.json b/package.json index bbb7917..8666d9e 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "unit": "c8 --100 node --test --loader esmock test/**/*.spec.js", "unit:coverage": "node --test --experimental-test-coverage --loader esmock test/**/*.spec.js", "test:coverage": "npm run lint && npm run unit:coverage", - "prepare": "husky" + "prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"" }, "repository": { "type": "git",