Skip to content

Commit 7529a7e

Browse files
authored
docs: changed husky init to husky install (#4356)
1 parent aea9763 commit 7529a7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: docs/guides/local-setup.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You can find complete setup instructions on the [official documentation](https:/
3131
```sh
3232
npm install --save-dev husky
3333

34-
npx husky init
34+
npx husky install
3535

3636
# Add commit message linting to commit-msg hook
3737
echo "npx --no -- commitlint --edit \$1" > .husky/commit-msg
@@ -51,7 +51,7 @@ echo "npm run commitlint \${1}" > .husky/commit-msg
5151
```sh
5252
yarn add --dev husky
5353
54-
yarn husky init
54+
yarn husky install
5555
5656
# Add commit message linting to commit-msg hook
5757
echo "yarn commitlint --edit \$1" > .husky/commit-msg
@@ -74,7 +74,7 @@ echo "yarn commitlint \${1}" > .husky/commit-msg
7474
```sh
7575
pnpm add --save-dev husky
7676
77-
pnpm husky init
77+
pnpm husky install
7878
7979
# Add commit message linting to commit-msg hook
8080
echo "pnpm dlx commitlint --edit \$1" > .husky/commit-msg
@@ -94,7 +94,7 @@ echo "pnpm commitlint \${1}" > .husky/commit-msg
9494
```sh
9595
deno add --dev husky
9696
97-
deno task --eval husky init
97+
deno task --eval husky install
9898
9999
# Add commit message linting to commit-msg hook
100100
echo "deno task --eval commitlint --edit \$1" > .husky/commit-msg

0 commit comments

Comments
 (0)