Skip to content

Commit

Permalink
docs: update info about root option
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Nov 13, 2023
1 parent 91caa53 commit d527c1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,8 @@ You can change the CWD for the command you execute using `root` option.

This is useful when you execute some `npm` or `yarn` command but the `package.json` is in another directory.

For `pre-push` and `pre-commit` hooks and for the custom `files` command `root` option is used to filter file paths. If all files are filtered the command will be skipped.

**Example**

Format and stage files from a `client/` folder.
Expand Down

0 comments on commit d527c1f

Please sign in to comment.