Skip to content

Commit

Permalink
docs: prefer delete script prepare compare to ignore scripts (#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelgautier authored Oct 12, 2023
1 parent 94d0393 commit 46325f8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ There's no right or wrong way to disable husky in CI/Docker/Prod context and is

### With npm

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

```shell
npm ci --omit=dev --ignore-scripts
npm pkg delete scripts.prepare
npm ci --omit=dev
```

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

```shell
npm pkg delete scripts.prepare
npm ci --omit=dev
npm ci --omit=dev --ignore-scripts
```

### With a custom script
Expand Down

0 comments on commit 46325f8

Please sign in to comment.