From 2656c0b5aa98ad24a659394359251dc94b8dcf71 Mon Sep 17 00:00:00 2001 From: Axel Cureno Basurto Date: Wed, 31 Jul 2024 08:43:35 -0700 Subject: [PATCH] removes husky --- .husky/pre-push | 22 ---------------------- package-lock.json | 16 ---------------- package.json | 4 +--- 3 files changed, 1 insertion(+), 41 deletions(-) delete mode 100644 .husky/pre-push diff --git a/.husky/pre-push b/.husky/pre-push deleted file mode 100644 index ffaf5b44..00000000 --- a/.husky/pre-push +++ /dev/null @@ -1,22 +0,0 @@ -# Check for unstaged changes -if ! git diff-index --quiet HEAD --; then - echo "You have unstaged or uncommitted files. Commit, stash or discard your changes before pushing." - exit 1 -fi - -# Check for uncommitted changes -if ! git diff --cached --quiet; then - echo "You have unstaged or uncommitted files. Commit, stash or discard your changes before pushing." - exit 1 -fi - -#build artifacts -npm run build -echo "successfully built /libs" -git add libs -# if any file changed after build - commit -if ! git diff --cached --quiet; then - echo "staged libs changes detected, will commit" - git commit -m '[pre-push hook] commit artifacts' - echo "committed /libs" -fi diff --git a/package-lock.json b/package-lock.json index 913814f2..898d92ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -46,7 +46,6 @@ "eslint": "^9.5.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", - "husky": "^9.0.11", "prettier": "^3.3.2", "sinon": "13.0.1" } @@ -4192,21 +4191,6 @@ "node": ">= 6" } }, - "node_modules/husky": { - "version": "9.0.11", - "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz", - "integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==", - "dev": true, - "bin": { - "husky": "bin.mjs" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/typicode" - } - }, "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", diff --git a/package.json b/package.json index b1154039..ede07b29 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,7 @@ "lint": "eslint --fix", "test": "npm run test:ci --workspaces", "build": "npm run build --workspaces", - "build:milo": "npm run build:milo --workspaces", - "prepare": "husky" + "build:milo": "npm run build:milo --workspaces" }, "repository": { "type": "git", @@ -54,7 +53,6 @@ "eslint": "^9.5.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", - "husky": "^9.0.11", "prettier": "^3.3.2", "sinon": "13.0.1" }