From 68e26c6675989d15b2c2ce4aca063baebd44e256 Mon Sep 17 00:00:00 2001 From: typicode Date: Mon, 21 Feb 2022 01:34:12 +0100 Subject: [PATCH] docs: update yarn 2+ install --- docs/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index a96fb3f72..97a850d78 100644 --- a/docs/README.md +++ b/docs/README.md @@ -177,8 +177,8 @@ yarn husky install "private": false, // ← your package is public "scripts": { "postinstall": "husky install", - "prepublishOnly": "pinst --disable", - "postpublish": "pinst --enable" + "prepack": "pinst --disable", + "postpack": "pinst --enable" } } ``` @@ -284,7 +284,7 @@ if (!isCi) { Or make `prepare` script fail silently if husky is not installed: ```json -"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"' +"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"" ``` ### With env variables