From ca1dbfb8e7652fce149ccb50552d2e529d93ebe6 Mon Sep 17 00:00:00 2001 From: ChengaDev Date: Tue, 15 Nov 2022 01:37:47 +0200 Subject: [PATCH] Update jest & husky version --- .husky/pre-commit | 5 +++++ .husky/pre-push | 4 ++++ package.json | 8 +++----- 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100755 .husky/pre-commit create mode 100755 .husky/pre-push diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..bf1b57b --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,5 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npm run build +npm run lint diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100755 index 0000000..610c2a5 --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npm test diff --git a/package.json b/package.json index 82a4363..1ce79f0 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,6 @@ "test": "jest --verbose=true --coverage", "build": "mkdir -p dist && mkdir -p themes && npm run build-styl && npm run build-jsx", "lint": "tslint --project tsconfig.json --config tslint.json './src/**/*.tsx'", - "precommit": "npm run build && npm run lint", - "prepush": "npm test", "release": "standard-version", "patch": "npm run release -- --release-as patch", "build-styl-monikai": "stylus --compress < src/monikai.styl > themes/monikai.css", @@ -50,14 +48,14 @@ "enzyme": "^3.8.0", "enzyme-adapter-react-16": "^1.9.1", "enzyme-to-json": "^3.3.5", - "husky": "^1.3.1", + "husky": "^8.0.2", "jest": "^24.5.0", "react": "^16.7.0", "react-dom": "^16.7.0", "react-test-renderer": "^16.7.0", "standard-version": "^4.4.0", "stylus": "^0.54.5", - "ts-jest": "^23.10.5", + "ts-jest": "^24.3.0", "tslint": "^5.12.0", "typescript": "^3.2.2", "webpack": "^4.28.3" @@ -79,4 +77,4 @@ "lcov" ] } -} +} \ No newline at end of file