-
I have a mono repo with 2 projects (backend and front end) which have mookme hooks setup. When we make changes to both projects at the same time, mookme triggers both hooks in parallel, which cause one of them to fail. This happens because the tool
I know about the Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello ! From what I understand,
Solution 2) is just a workaround I would not hold it as an ideal solution, but I can't be sure that 1) or 3) are achievable in your project Hope that helps ! |
Beta Was this translation helpful? Give feedback.
Hello !
From what I understand,
lint-staged
, due to this behaviour does not properly run simultaneously in the same monorepo. I can provide the following options for you in this situation:There is actually an option for lint stage to checkout and stash only a specific workspace while running ? There might already be related issues like that out there
You can put both of the lint jobs in a hooks file above (in
services
in your situation). Thus, both jobs are in the same hook file and can becomeserial
.Instead of linting both workspace separately, you might only lint them once by configuering the linting task at your monorepo level. I wrote a bit about such a setup on Escape's engin…