chore: update postinstall script to check for .git directory before running lefthook install
This commit is contained in:
@@ -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
|
# Selfhosting - should be true if you are selfhosting
|
||||||
PUBLIC_IS_SELFHOSTED=false
|
PUBLIC_IS_SELFHOSTED=false
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@
|
|||||||
"clean:pnpm": "pnpm clean && pnpm store prune",
|
"clean:pnpm": "pnpm clean && pnpm store prune",
|
||||||
"format": "turbo run format",
|
"format": "turbo run format",
|
||||||
"format:check": "git diff --name-only -z --diff-filter=d HEAD~1 | xargs -0 prettier --check --ignore-unknown",
|
"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",
|
"release": "standard-version",
|
||||||
"db:reset": "pnpm --filter @cio/db db:reset",
|
"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",
|
"dashboard:dev": "pnpm dev --filter=@cio/dashboard --filter=@cio/ui --filter=@cio/question-types --filter=@cio/db --filter=@cio/utils",
|
||||||
|
|||||||
Reference in New Issue
Block a user