Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: replace deprecated npx option #1070

Merged
merged 4 commits into from
Apr 28, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"'
typicode marked this conversation as resolved.
Show resolved Hide resolved
```

_For Windows users, if you see the help message when running `npx husky add ...`, try `node node_modules/.bin/husky add ...` instead. This isn't an issue with husky code._
Expand Down Expand Up @@ -457,7 +457,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 @@ -478,7 +478,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
typicode marked this conversation as resolved.
Show resolved Hide resolved
# or
yarn commitlint --edit $1
```
Expand Down