Skip to content

Commit

Permalink
docs: update yarn 2+ install
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode authored and nikoladavitkovski committed Sep 5, 2022
1 parent d27582f commit 2da1291
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
```
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2da1291

Please sign in to comment.