Skip to content

Commit

Permalink
patch: fix husky to work with v5+
Browse files Browse the repository at this point in the history
  • Loading branch information
aethernet committed May 8, 2024
1 parent ff0032a commit 7adbd41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run prettify
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down

0 comments on commit 7adbd41

Please sign in to comment.