#/usr/bin/env bash
MAIN="$(dirname $(realpath "${0}"))/main.typ"

if [ "${1}" = "watch" ]; then
   typst watch --features bundle,html --format bundle "${MAIN}"
else
   typst compile --features bundle,html --format bundle "${MAIN}"
fi
