Repository navigation
CI / package fixes - #421
Conversation
447d3d7 to
f61e227
Compare
| fi | ||
|
|
||
| pnpm check && pnpm fix | ||
| git add . |
There was a problem hiding this comment.
I think the intent here was to catch any built or fixed files, but I agree this is wrong and not desirable.
We should probably take a closer look at better aligning this to conventions we use elsewhere (e.g. using lint-staged)
There was a problem hiding this comment.
In this repo, the pre-commit hook handles building both the JSON schemas and examples from types - which is what the git add . is typically catching here. Without this step, I think we'd absolutely experience drift between types and generated JSONs (especially with external contributors, etc).
I'll try adding this back in a future PR.
jessicamcinchak
left a comment
There was a problem hiding this comment.
Thanks for spotting and fixing out-of-date PNPM versions here !!
| fi | ||
|
|
||
| pnpm check && pnpm fix | ||
| git add . |
There was a problem hiding this comment.
In this repo, the pre-commit hook handles building both the JSON schemas and examples from types - which is what the git add . is typically catching here. Without this step, I think we'd absolutely experience drift between types and generated JSONs (especially with external contributors, etc).
I'll try adding this back in a future PR.
A few small changes which I'm hoping will fix CI:
git add .from pre-commit hook