updates
This commit is contained in:
+10
-3
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -euo pipefail
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
if [ -z "${1:-}" ]; then
|
||||
msg="Updates"
|
||||
else
|
||||
msg="$1"
|
||||
@@ -11,7 +11,14 @@ fi
|
||||
tsc --noEmit
|
||||
rm -rf dist
|
||||
tsc
|
||||
|
||||
# Ensure CLI shebang survived compile
|
||||
if ! head -1 dist/commands/index.js | grep -q '#!/usr/bin/env bun'; then
|
||||
echo "ERROR: dist/commands/index.js is missing the bun shebang"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git add .
|
||||
git commit -m "$msg"
|
||||
git commit -m "$msg" || true
|
||||
git push
|
||||
bun publish
|
||||
|
||||
Reference in New Issue
Block a user