mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 01:21:09 +02:00
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>
26 lines
767 B
Bash
Executable file
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!"
|