Skip to content

Commit

Permalink
chore(deps): update dependency husky to v9 (#3515)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency husky to v9

* refactor: updated to husky v9 format

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Rettig <serettig@posteo.de>
  • Loading branch information
renovate[bot] and sr258 authored Jan 12, 2025
1 parent 1e498ad commit bfc6f00
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ test/data/hub-content/*
test/data/content-type-cache/real-content-types.json
test/data/hub-content-extracted/*
packages/h5p-html-exporter/test/data/content/*
packages/h5p-examples/public
google_translate.json
.json-autotranslate-cache

Expand Down
5 changes: 1 addition & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit $1
commitlint --edit $1
6 changes: 2 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint && npm run format:check
npm run lint
npm run format:check
3 changes: 0 additions & 3 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run test
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default [
'**/test/data/',
'scripts/',
'packages/h5p-examples/h5p/',
'packages/h5p-examples/public/',
'packages/h5p-rest-example-server/h5p/',
'**/node_modules/',
'**/*.d.ts',
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"localize": "./localize.sh",
"postinstall": "concurrently \"npm run build\" \"npm run download:content-type-cache && npm run download:h5p\"",
"pre-commit": "concurrently \"npm:lint\" \"npm:format\"",
"prepare": "husky install",
"prepare": "husky",
"publish:h5p-express": "cd packages/h5p-express && npm publish",
"publish:h5p-html-exporter": "cd packages/h5p-html-exporter && npm publish",
"publish:h5p-mongos3": "cd packages/h5p-mongos3 && npm publish",
Expand Down Expand Up @@ -98,7 +98,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.35.0",
"globals": "^15.14.0",
"husky": "8.0.3",
"husky": "9.1.7",
"jest": "29.7.0",
"json-autotranslate": "1.14.5",
"lerna": "8.1.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/h5p-examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build:client": "npx tsc -p ./tsconfig.client.json",
"build:server": "npx tsc -p ./tsconfig.server.json",
"build": "npm run build:server && npm run build:client",
"clean": "rm -rf h5p && rm -rf build && rm -rf coverage && rm -rf node_modules",
"clean": "rm -rf h5p && rm -rf build && rm -rf coverage && rm -rf node_modules && rm -rf public",
"start": "node build/express.js",
"test:e2e:tests": "npx jest --config jest.e2e.config.js --maxWorkers=1",
"test:e2e": "start-server-and-test start http://localhost:8080 test:e2e:tests",
Expand Down

0 comments on commit bfc6f00

Please sign in to comment.