From 5f6212cd36960a7f2d15b76ba030a39dc35f7733 Mon Sep 17 00:00:00 2001 From: Benjamin Staneck Date: Fri, 25 Oct 2019 12:58:59 +0200 Subject: [PATCH] Move husky check to new format --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d7063c49..4629c56c 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "test": "yarn run lint && yarn run test:unit", "test:unit": "ava", "test:unit:watch": "yarn run test:unit -- --watch", - "prepush": "yarn test", "postinstall": "webpack --config-name hyper-app && electron-builder install-app-deps && yarn run rebuild-node-pty && cpy --cwd=target --parents 'node_modules/**/*' '../app/'", "rebuild-node-pty": "electron-rebuild -f -w target/node_modules/node-pty -m target", "dist": "yarn run build && cross-env BABEL_ENV=production babel --out-file target/renderer/bundle.js --no-comments --minified target/renderer/bundle.js && electron-builder", @@ -325,5 +324,10 @@ "style-loader": "1.0.0", "typescript": "3.6.4", "webpack": "4.41.2" + }, + "husky": { + "hooks": { + "pre-push": "yarn test" + } } }