File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11#run husky pre-commit hook only if frontend changed
2- if git diff --name-only --cached | grep 'frontend/';
2+ if git diff --diff-filter=d -- name-only --cached | grep 'frontend/';
33 then
44 echo "FRONTEND FOLDER CHANGED --> starting husky..."
5- cd frontend && pnpm lint:fix && pnpm tsc-check
6- git add -u
5+ cd frontend && \
6+ pnpm exec eslint --fix $(git diff --diff-filter=d --name-only --cached --relative) && \
7+ pnpm tsc-check
8+ git add -u $(git diff --diff-filter=d --name-only --cached --relative)
79fi
Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ export default defineEventHandler(async (event): Promise<Pagination<Project> | E
5858
5959 type ProjectCount = { 'count(id)' : number } ;
6060 const projectCountResult = await fetchFromTinybird < ProjectCount [ ] > ( '/v0/pipes/projects_list.json' , {
61+ collectionSlug,
62+ isLf,
6163 count : true ,
6264 } ) ;
6365
You can’t perform that action at this time.
0 commit comments