fix(hexclave): rename STACK_SKIP_TEMPLATE_GENERATION env in Dockerfiles

The preinstall hook now checks HEXCLAVE_SKIP_TEMPLATE_GENERATION, but the
Docker builders still set the old STACK_ name, so the skip guard never
matched and pnpm install tried to run ./scripts/generate-sdks.ts (not
copied into the build layer), failing with ERR_MODULE_NOT_FOUND.
This commit is contained in:
Bilal Godil 2026-06-03 13:34:26 -07:00
parent 4a8245ae4d
commit 703c6db22c
3 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ RUN turbo prune --scope=@hexclave/backend --docker
FROM base AS builder
# Skip generate-sdks.ts in preinstall hook (file not available in pruned output)
ENV STACK_SKIP_TEMPLATE_GENERATION=true
ENV HEXCLAVE_SKIP_TEMPLATE_GENERATION=true
COPY --from=pruner /app/out/json/ .
COPY --from=pruner /app/out/pnpm-lock.yaml .

View File

@ -36,7 +36,7 @@ RUN turbo prune --scope=@hexclave/backend --scope=@hexclave/dashboard --docker
FROM node-base AS builder
# Skip generate-sdks.ts in preinstall hook (file not available in pruned output)
ENV STACK_SKIP_TEMPLATE_GENERATION=true
ENV HEXCLAVE_SKIP_TEMPLATE_GENERATION=true
# copy over package.json files and install dependencies
COPY --from=pruner /app/out/json/ .

View File

@ -34,7 +34,7 @@ RUN turbo prune --scope=@hexclave/backend --scope=@hexclave/dashboard --docker
FROM base AS builder
# Skip generate-sdks.ts in preinstall hook (file not available in pruned output)
ENV STACK_SKIP_TEMPLATE_GENERATION=true
ENV HEXCLAVE_SKIP_TEMPLATE_GENERATION=true
# copy over package.json files and install dependencies
COPY --from=pruner /app/out/json/ .