Spaces:
Running
Running
| # 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!" | |