diff --git a/scripts/build-studio.sh b/scripts/build-studio.sh index cd1fa48..19f4866 100644 --- a/scripts/build-studio.sh +++ b/scripts/build-studio.sh @@ -9,6 +9,9 @@ here="$(cd "$(dirname "$0")/.." && pwd)" out="${1:-$here/dist/studio}" cd "$here" +# Type-check the SPA — vite/esbuild don't, so undefined-var bugs in the client +# would otherwise ship silently (blank pages at runtime). +npx tsc --noEmit -p src/ui/client/tsconfig.json npm run build # tsc + vite -> dist/ui/web-server.js + dist/ui/public rm -rf "$out" diff --git a/src/ui/client/ClipDetail.tsx b/src/ui/client/ClipDetail.tsx index b4ed041..62ac309 100644 --- a/src/ui/client/ClipDetail.tsx +++ b/src/ui/client/ClipDetail.tsx @@ -176,7 +176,7 @@ export default function ClipDetail() {