Skip to content

The open source coding agent.

TypeScript

chore: updated stainless script

adamdotdevin4e3c73c4f508
diff --git a/scripts/stainless b/scripts/stainless
index 4b417a00229..3c868c9b844 100755
--- a/scripts/stainless
+++ b/scripts/stainless
@@ -2,6 +2,14 @@
set -e
+# Parse command line arguments
+DEV_MODE=false
+for arg in "$@"; do
+ if [ "$arg" = "--dev" ]; then
+ DEV_MODE=true
+ fi
+done
+
echo "Starting opencode server on port 4096..."
bun run ./packages/opencode/src/index.ts serve --port 4096 &
SERVER_PID=$!
@@ -23,7 +31,13 @@ rm -rf packages/tui/sdk
mv opencode-go/ packages/tui/sdk/
rm -rf packages/tui/sdk/.git
-echo "Kicking off production build..."
-stl builds create --branch main --wait false
+# Only run production build if not in dev mode
+if [ "$DEV_MODE" = false ]; then
+ echo "Kicking off production build..."
+ stl builds create --branch main --wait=false
+else
+ echo "Skipping production build (--dev flag detected)"
+fi
echo "Done!"
+