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 2, 2022
1 parent f3c7227 commit fe43339
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/README.md
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 fe43339

Please sign in to comment.