Something went wrong. Try again.
Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol.
Something went wrong. Try again.
593 B · 22 lines
Shell
1234567891011121314151617181920212223#!/bin/bashset -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"ROOT_DIR="$(dirname "$SCRIPT_DIR")"
# Parse argumentsAUTO_ACCEPT=""if [[ "$1" == "-y" || "$1" == "--yes" ]]; then AUTO_ACCEPT="yes |"fi
echo "=== Generating TypeScript lexicons ==="cd "$ROOT_DIR/packages/@wispplace/lexicons"eval "$AUTO_ACCEPT bun run codegen"
if [[ ! -f "$ROOT_DIR/packages/@wispplace/lexicons/src/atcute/lexicons/index.ts" ]]; then echo "ERROR: missing generated atcute lexicons index at packages/@wispplace/lexicons/src/atcute/lexicons/index.ts" >&2 exit 1fi
echo "=== Done ==="