diff options
| author | adamdotdevin <[email protected]> | 2025-07-18 14:01:42 -0500 |
|---|---|---|
| committer | adamdotdevin <[email protected]> | 2025-07-20 05:39:18 -0500 |
| commit | 4e3c73c4f508b914e4a6d42bb32525dd08772efe (patch) | |
| tree | 50dedb534b3898caeff733d9bcee54a421cd20b7 /scripts | |
| parent | 8bf2eeccd08bdd937a1171e3e98b34352d1ab6b5 (diff) | |
| download | opencode-4e3c73c4f508b914e4a6d42bb32525dd08772efe.tar.gz opencode-4e3c73c4f508b914e4a6d42bb32525dd08772efe.zip | |
chore: updated stainless script
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/stainless | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/scripts/stainless b/scripts/stainless index 4b417a002..3c868c9b8 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!" + |
