From 25d0675037d93b7a87bc07145e11a333669e41d9 Mon Sep 17 00:00:00 2001 From: Sibiraj <20282546+sibiraj-s@users.noreply.github.com> Date: Thu, 28 Apr 2022 12:18:40 +0530 Subject: [PATCH] docs: replace deprecated npx option (#1070) * docs: update deprecated npx option * docs: fix commitlint commands * Update docs/README.md * Update docs/README.md Co-authored-by: typicode --- docs/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index d0f249015..b9009a046 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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._ @@ -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 ``` @@ -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 ```