-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Monorepos and relative root #195
Comments
Hi, @boojum! Could you provide some additional output:
|
I also had the same problem. The only way to get it to work is to prefix any of the globs with IGNORE THE REST OF THIS:
|
This is my pre-commit:
parallel: true
commands:
format-project:
root: "project/"
glob: "**/{src,cypress}/**/*.{js,tsx,ts,jsx}"
run: npx git-format-staged --formatter 'pwd >&2 && echo {} >&2' {staged_files}
|
Whoops, I forgot |
Please, open a new discussion if the issue is still relevant! I'll be glad to dig into your case. |
I'm trying to get
lefthook
to play with my monorepo as per #72. My project structure is as follows:The
lefthook
config at the root of the repo:When I edit any of the listed files (
js
,ts
,svelte
,css
etc etc), and then try to commit themlefthook
is not kicking in. When I runnpx lefthook run pre-commit
- with staged relevant files -lefthook
comes back to me with:Any idea what I might be missing here?
The text was updated successfully, but these errors were encountered: