Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency husky to v9 #3515

Merged
merged 2 commits into from
Jan 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "npx lerna bootstrap && 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": "6.6.2",
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
Loading