chore: update postinstall script to check for .git directory before running lefthook install

This commit is contained in:
Rotimi Best
2026-03-10 23:45:00 +01:00
parent 42a8e70d57
commit c465971a5b
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -1,8 +1,3 @@
# *Supabase setup - learn more https://classroomio.com/docs/contributor-guides/supabase-cloud
PUBLIC_SUPABASE_URL=http://localhost:54321
PUBLIC_SUPABASE_ANON_KEY=
PRIVATE_SUPABASE_SERVICE_ROLE=
# Selfhosting - should be true if you are selfhosting
PUBLIC_IS_SELFHOSTED=false
+1 -1
View File
@@ -10,7 +10,7 @@
"clean:pnpm": "pnpm clean && pnpm store prune",
"format": "turbo run format",
"format:check": "git diff --name-only -z --diff-filter=d HEAD~1 | xargs -0 prettier --check --ignore-unknown",
"postinstall": "lefthook install",
"postinstall": "test -d .git && lefthook install || true",
"release": "standard-version",
"db:reset": "pnpm --filter @cio/db db:reset",
"dashboard:dev": "pnpm dev --filter=@cio/dashboard --filter=@cio/ui --filter=@cio/question-types --filter=@cio/db --filter=@cio/utils",