Skip to content

Commit

Permalink
husky@8
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuss committed Jul 7, 2024
1 parent 47b2ac9 commit e86f4c8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion build.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const { execSync } = require('child_process');
if (fs.existsSync(path.join(__dirname, '.git'))) {
try {
console.log("Activating Husky's Git hooks...");
execSync(path.join(__dirname, 'node_modules', '.bin', 'husky'), { stdio: 'inherit' });
execSync(path.join(__dirname, 'node_modules', '.bin', 'husky'), ['install', '.husky'], {
stdio: 'inherit',
});
} catch (e) {
console.warn('Failed to activate Husky Git hooks:', e.message);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^9.0.11",
"husky": "8",
"inquirer": "^8.2.0",
"js-yaml": "^4.1.0",
"loglevel": "^1.8.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2333,10 +2333,10 @@ has@^1.0.3:
dependencies:
function-bind "^1.1.1"

husky@^9.0.11:
version "9.0.11"
resolved "https://registry.yarnpkg.com/husky/-/husky-9.0.11.tgz#fc91df4c756050de41b3e478b2158b87c1e79af9"
integrity sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==
husky@8:
version "8.0.3"
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184"
integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==

iconv-lite@^0.4.24:
version "0.4.24"
Expand Down

0 comments on commit e86f4c8

Please sign in to comment.