Fix local development instructions to use pnpm

Closes #35
This commit is contained in:
Chris Scott committed 2025-12-29 23:19:05 -05:00
1 parent b88d8a4bf3
commit 614c6ebce8
2 files changed
+30 -22

No files matched your search

+19 -18
View File
@@ -4,18 +4,23 @@ set -e
echo "🔍 Checking prerequisites..."
# Check if Node.js/Bun is installed
if command -v bun &> /dev/null; then
echo "✅ Bun is installed"
NODE_CMD="bun"
elif command -v node &> /dev/null; then
echo "✅ Node.js is installed"
NODE_CMD="node"
else
echo "❌ Neither Bun nor Node.js is installed. Please install one of them."
# Check if pnpm is installed (required for workspaces)
if ! command -v pnpm &> /dev/null; then
echo "❌ pnpm is not installed. Please install it with:"
echo " npm install -g pnpm"
exit 1
fi
echo "✅ pnpm is installed"
# Check if Bun is installed (required for backend)
if ! command -v bun &> /dev/null; then
echo "❌ Bun is not installed. Please install it from https://bun.sh"
exit 1
fi
echo "✅ Bun is installed"
# Check if Git is installed
if ! git --version &> /dev/null; then
echo "❌ Git is not installed. Please install Git and try again."
@@ -46,13 +51,9 @@ else
echo "✅ Workspace directory exists"
fi
# Install dependencies
# Install dependencies using pnpm (handles workspaces)
echo "📦 Installing dependencies..."
if [ "$NODE_CMD" = "bun" ]; then
bun install
else
npm install
fi
pnpm install
echo "✅ Dependencies installed"
@@ -68,6 +69,6 @@ fi
echo "✅ Dev environment ready!"
echo ""
echo "🚀 To start development:"
echo " npm run dev # Start both backend and frontend"
echo " npm run dev:backend # Start backend only"
echo " npm run dev:frontend # Start frontend only"
echo " pnpm dev # Start both backend and frontend"
echo " pnpm dev:backend # Start backend only"
echo " pnpm dev:frontend # Start frontend only"