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: https://github.com/openedx/frontend-app-learning/pull/1622
This commit is contained in:
Régis Behmo
2025-04-02 12:48:48 +02:00
parent ebb87070da
commit 8109ba39bb
2 changed files with 0 additions and 23 deletions

17
package-lock.json generated
View File

@@ -31,7 +31,6 @@
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^16.2.0",
"@testing-library/user-event": "^14.6.1",
"husky": "8.0.3",
"prop-types": "15.8.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
@@ -13813,22 +13812,6 @@
"node": ">=10.17.0"
}
},
"node_modules/husky": {
"version": "8.0.3",
"resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
"integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
"dev": true,
"license": "MIT",
"bin": {
"husky": "lib/bin.js"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/sponsors/typicode"
}
},
"node_modules/hyperdyperid": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/hyperdyperid/-/hyperdyperid-1.2.0.tgz",

View File

@@ -19,11 +19,6 @@
"files": [
"/dist"
],
"husky": {
"hooks": {
"pre-commit": "npm run lint"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/openedx/frontend-component-footer.git"
@@ -46,7 +41,6 @@
"@testing-library/react": "^16.2.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/user-event": "^14.6.1",
"husky": "8.0.3",
"prop-types": "15.8.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",