Skip to content

Commit ae0e7c9

Browse files
committed
fix: bun dev builds sdk before starting cli app
1 parent d931aa3 commit ae0e7c9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/dev.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@ while [[ ! -f "$READY_FILE" ]]; do
2121
sleep 0.1
2222
done
2323

24-
echo "Server is ready! Starting client..."
24+
echo "Server is ready! Building SDK..."
25+
26+
if ! bun --cwd=sdk run build; then
27+
echo "Failed to build SDK. Stopping server..."
28+
kill -TERM -$SERVER_PID 2>/dev/null
29+
exit 1
30+
fi
31+
32+
echo "Starting client..."
2533

2634
# Clean up the signal file
2735
rm -f "$READY_FILE"

0 commit comments

Comments
 (0)