managarten/docker/shared/build-shared-packages.sh
Wuesteon 111e7dd02c 🐛 fix(docker): add missing build-shared-packages.sh script for Docker builds
The todo-backend Dockerfile (and potentially other backends) expect this script
to exist in docker/shared/. This script builds shared packages in dependency
order during Docker image builds.

Fixes CI failure: "ERROR: failed to build: /docker/shared/build-shared-packages.sh: not found"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 20:51:15 +01:00

26 lines
767 B
Bash
Executable file

#!/bin/sh
# Build shared packages in dependency order for Docker builds
# This script is used by backend Dockerfiles to build shared packages
set -e
echo "Building shared packages in dependency order..."
# Build packages in dependency order
cd /app
# 1. Build base packages with no dependencies
echo "Building better-auth-types..."
cd packages/better-auth-types && pnpm build && cd /app
echo "Building shared-errors..."
cd packages/shared-errors && pnpm build && cd /app
# 2. Build packages that depend on base packages
echo "Building shared-nestjs-cors..."
cd packages/shared-nestjs-cors && pnpm build && cd /app
echo "Building shared-nestjs-auth..."
cd packages/shared-nestjs-auth && pnpm build && cd /app
echo "✅ All shared packages built successfully!"