diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b2690b7..89f7c9b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,7 +29,7 @@ Special thanks to the following contributors: @B1gG, @codac, @ezeholz, @khassel, - Use node v16 in github workflow (replacing node v10) - Moved some files into better suited directories - Update dependencies in package.json, require node >= v12, remove `rrule-alt` and `rrule` -- Update dependencies in package.json and migrate husky to v6 +- Update dependencies in package.json and migrate husky to v6, fix husky setup in prod environment ### Removed diff --git a/package.json b/package.json index 4b45193d..35816029 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "lint:prettier": "prettier --write **/*.{js,css,json,md,yml}", "lint:js": "eslint js/**/*.js modules/default/**/*.js clientonly/*.js serveronly/*.js translations/*.js vendor/*.js tests/**/*.js config/* --config .eslintrc.json --fix", "lint:css": "stylelint css/main.css modules/default/**/*.css --config .stylelintrc.json --fix", - "prepare": "husky install" + "prepare": "[ -f node_modules/.bin/husky ] && husky install || echo no husky installed." }, "repository": { "type": "git",