Skip to content

Commit 46325f8

Browse files
authoredOct 12, 2023
docs: prefer delete script prepare compare to ignore scripts (#1307)
1 parent 94d0393 commit 46325f8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎docs/guide.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ There's no right or wrong way to disable husky in CI/Docker/Prod context and is
6868

6969
### With npm
7070

71-
If you want to prevent husky from installing completely
71+
If you want to prevent husky from installing completely, you can specifically disable `prepare` script with:
7272

7373
```shell
74-
npm ci --omit=dev --ignore-scripts
74+
npm pkg delete scripts.prepare
75+
npm ci --omit=dev
7576
```
7677

77-
Alternatively, you can specifically disable `prepare` script with
78+
Alternatively, you can ignore scripts during installation. Be cautious, this argument ignores dependencies scripts as well.
7879

7980
```shell
80-
npm pkg delete scripts.prepare
81-
npm ci --omit=dev
81+
npm ci --omit=dev --ignore-scripts
8282
```
8383

8484
### With a custom script

0 commit comments

Comments
 (0)
Please sign in to comment.