Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ as follows:
}
```

`yarnhook` first checks for a `yarn.lock` file. If there is one, it will only check if that file has changed, and may then run `yarn` if the `yarn.lock` has changed. If yarn.lock file is not present, it will search for files in this order, and use the corresponding "\*pm" command https://github.com/frontsideair/yarnhook/blob/29296a37a60c2771c9a45f3717c3659dbd69dbe9/index.js#L15

Note that `git pull` doesn't always trigger the post-merge git hook. If it's a fast-forward update, git doesn't trigger any hooks (unless you are a for some reason actually running on a real git server, in which case, there is the `post-receive` hook)


# Flags

Prepend these flags to your git command to use them.
Expand Down