Skip to content

Commit b7a1290

Browse files
committed
chore: remove husky 🪓🐶
We remove husky, which is triggering pre-push git hooks, including running "npm lint". This is causing failures when building Docker images, because "npm clean-install --omit=dev" automatically triggers "npm prepare", which attemps to run "husky". But husky is not listed in the build dependencies, only in devDependencies. As a consequence, package installation is failing with the following error: 14.13 > @edx/frontend-app-ora-grading@0.0.1 prepare 14.13 > husky install 14.13 14.15 sh: 1: husky: not found Similar to: openedx/frontend-app-learning#1622
1 parent 520dd6e commit b7a1290

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

package-lock.json

Lines changed: 0 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717
"start": "fedx-scripts webpack-dev-server --progress",
1818
"test": "fedx-scripts jest --coverage --passWithNoTests"
1919
},
20-
"husky": {
21-
"hooks": {
22-
"pre-commit": "npm run lint"
23-
}
24-
},
2520
"author": "edX",
2621
"license": "AGPL-3.0",
2722
"homepage": "https://github.com/openedx/frontend-app-authn#readme",
@@ -78,7 +73,6 @@
7873
"eslint-plugin-import": "2.31.0",
7974
"glob": "7.2.3",
8075
"history": "5.3.0",
81-
"husky": "9.1.7",
8276
"jest": "29.7.0",
8377
"react-test-renderer": "^17.0.2"
8478
}

0 commit comments

Comments
 (0)