File size: 614 Bytes
0efb0d1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Setup script for automatic Prisma client generation

set -e

echo "🔧 Setting up project..."

# Generate Node.js Prisma client
echo "📦 Generating Node.js Prisma client..."
npx prisma generate

# Generate Python Prisma client (if Python is available)
if command -v python3 &> /dev/null; then
    echo "🐍 Generating Python Prisma client..."
    cd registry
    python3 -m prisma generate 2>/dev/null || echo "⚠️  Python Prisma client generation skipped (optional)"
    cd ..
else
    echo "⚠️  Python not found, skipping Python Prisma client generation"
fi

echo "✅ Setup complete!"