diff --git a/docker/web.Dockerfile b/docker/web.Dockerfile index 4d92b4f7..5418a692 100644 --- a/docker/web.Dockerfile +++ b/docker/web.Dockerfile @@ -10,7 +10,7 @@ COPY apps/web/package.json ./apps/web/ COPY packages/ ./packages/ RUN pnpm install --frozen-lockfile COPY . . -RUN pnpm --filter @mosaic/web build +RUN pnpm --filter @mosaicstack/web build FROM base AS runner WORKDIR /app diff --git a/scripts/install-hooks.mjs b/scripts/install-hooks.mjs index becf0511..e626bfd4 100644 --- a/scripts/install-hooks.mjs +++ b/scripts/install-hooks.mjs @@ -75,6 +75,16 @@ export async function installHooks({ } = {}) { if (disabled) return; + try { + await execFileAsync('git', ['--version']); + } catch (error) { + if (error.code === 'ENOENT') { + console.warn('git not found; skipping hook installation'); + return; + } + throw error; + } + const huskyDir = path.join(root, '.husky'); const active = path.join(huskyDir, '_'); const nonce = `${Date.now()}-${process.pid}`;