Skip to content

Commit

Permalink
docs: replace deprecated npx option (typicode#1070)
Browse files Browse the repository at this point in the history
* docs: update deprecated npx option

* docs: fix commitlint commands

* Update docs/README.md

* Update docs/README.md

Co-authored-by: typicode <typicode@gmail.com>
  • Loading branch information
2 people authored and nikoladavitkovski committed Sep 2, 2022
1 parent b48fc65 commit 5a11ae9
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 @@ -73,7 +73,7 @@ To add another hook use `husky add`.
For example:

```shell
npx husky add .husky/commit-msg 'npx --no-install commitlint --edit "$1"'
npx husky add .husky/commit-msg 'npx --no commitlint --edit "$1"'
```

_For Windows users, if you see the help message when running `npx husky add ...`, try `node node_modules/husky/lib/bin add ...` instead. This isn't an issue with husky code._
Expand Down Expand Up @@ -463,7 +463,7 @@ If you were calling directly locally installed binaries, **you need to run them
```shell
# .husky/pre-commit (v7)
# ...
npx --no-install jest
npx --no jest
# or
yarn jest
```
Expand All @@ -484,7 +484,7 @@ Previous `HUSKY_GIT_PARAMS` environment variable is replaced by native params `$
```shell
# .husky/commit-msg (v7)
# ...
npx --no-install commitlint --edit $1
npx --no commitlint --edit $1
# or
yarn commitlint --edit $1
```
Expand Down

0 comments on commit 5a11ae9

Please sign in to comment.