Skip to content

Commit

Permalink
chore: use cross-env for not running lefthook in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Oct 28, 2024
1 parent 215a862 commit 5eb4d69
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .

ENV CI=true
ENV NODE_ENV=production
ENV SKIP_ENV_VALIDATION=true

Expand All @@ -28,7 +27,6 @@ RUN bun run build
FROM base AS runner
WORKDIR /app

ENV CI=true
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=true
ENV SKIP_ENV_VALIDATION=true
Expand Down
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"prepare": "lefthook install",
"prepare": "cross-env-shell '[ \"$NODE_ENV\" != \"production\" ] && lefthook install || exit 0'",
"dev": "next dev --turbopack",
"lint": "biome check --write",
"prebuild": "next telemetry disable",
Expand Down Expand Up @@ -67,6 +67,7 @@
"@types/react-dom": "npm:[email protected]",
"autoprefixer": "^10.4.20",
"client-only": "^0.0.1",
"cross-env": "^7.0.3",
"drizzle-kit": "^0.24.1",
"fluid-tailwind": "^1.0.3",
"lefthook": "^1.7.14",
Expand Down

0 comments on commit 5eb4d69

Please sign in to comment.