Skip to content

Commit

Permalink
Merge pull request #22 from balena-io-modules/renovate/major-husky
Browse files Browse the repository at this point in the history
Update dependency husky to v9
  • Loading branch information
joshbwlng authored Apr 9, 2024
2 parents 4a00960 + 3937c57 commit 152406e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no lint-staged
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint-fix": "balena-lint --typescript --fix src test",
"test": "mocha && tsc --noEmit && tsc --noEmit --project ./tsconfig.dev.json && npm run lint",
"prepack": "npm run build",
"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\""
"prepare": "node -e \"try { (await import('husky')).default() } catch (e) { if (e.code !== 'ERR_MODULE_NOT_FOUND') throw e }\" --input-type module"
},
"repository": {
"type": "git",
Expand All @@ -28,7 +28,8 @@
"@types/mocha": "^10.0.0",
"@types/node": "^20.0.0",
"chai": "^4.3.7",
"husky": "^8.0.2",
"husky": "^9.0.0",
"lint-staged": "^15.2.2",
"mocha": "^10.2.0",
"rimraf": "^5.0.0",
"ts-node": "^10.9.1",
Expand All @@ -40,11 +41,6 @@
"require": "ts-node/register/transpile-only",
"extension": ".ts"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.ts": [
"balena-lint --fix"
Expand Down

0 comments on commit 152406e

Please sign in to comment.