From ec1ab05ae69adc459086f00c0218b6af65b03576 Mon Sep 17 00:00:00 2001 From: chris moran Date: Mon, 20 Jul 2020 04:49:43 -0400 Subject: [PATCH] Deprecated prepush script in package.json -> This fixes: ```Warning: Setting pre-push script in package.json > scripts will be deprecated Please move it to husky.hooks in package.json, a .huskyrc file, or a husky.config.js file Or run ./node_modules/.bin/husky-upgrade for automatic update``` --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0b89641fd..f737b4bae 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "test": "yarn lint && jest src/.*", "test:watch": "jest --watch src", "prepublishOnly": "yarn build && yarn test && yarn e2e", - "prepush": "yarn test", "prepare": "yarn build" }, "repository": { @@ -106,5 +105,10 @@ "sideEffects": [ "**/*.css", "**/*.scss" - ] + ], + "husky": { + "hooks": { + "pre-push": "yarn test" + } + } }