patch: fix husky to work with v above 5

This commit is contained in:
JOASSART Edwin 2024-05-08 08:54:22 +02:00 committed by Edwin Joassart
parent 05a838f1ed
commit 45ee9d3cec
2 changed files with 5 additions and 5 deletions

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm run prettify

View File

@ -14,6 +14,7 @@
"url": "git@github.com:balena-io/etcher.git"
},
"scripts": {
"prepare": "husky install",
"prettify": "prettier --write lib/**/*.css && balena-lint --fix --typescript typings lib tests forge.config.ts forge.sidecar.ts webpack.config.ts",
"lint": "npm run prettify && catch-uncommitted",
"test": "echo 'Only use custom tests; if you want to test locally, use `npm run wdio`' && exit 0",
@ -24,11 +25,6 @@
"wdio:e2e": "xvfb-maybe wdio run ./wdio.conf.ts --suite e2e",
"wdio:ci": "xvfb-maybe wdio run ./wdio.conf.ts --suite ci"
},
"husky": {
"hooks": {
"pre-commit": "npm run prettify"
}
},
"author": "Balena Ltd. <hello@balena.io>",
"license": "Apache-2.0",
"dependencies": {