Fix the viewer build command

This commit is contained in:
Jonathan Singer
2026-07-20 09:51:56 -04:00
parent 1e4db0098b
commit 8bbcafcf1a
3 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ JS build. If you change anything under `strix/viewer_src/`, rebuild and commit
the output:
```bash
make viewer # or: npm --prefix strix/viewer_src ci && npm --prefix strix/viewer_src run build
make viewer # or: cd strix/viewer_src && npm ci && npm run build
```
Commit both the source change and the regenerated `strix/viewer/viewer_dist/`.
+1 -2
View File
@@ -69,8 +69,7 @@ clean:
viewer:
@echo "🖥️ Building the local-viewer SPA..."
npm --prefix strix/viewer_src ci
npm --prefix strix/viewer_src run build
cd strix/viewer_src && npm ci && npm run build
@echo "✅ Viewer built to strix/viewer/viewer_dist/ (commit the changes)."
dev: format lint type-check
+1 -2
View File
@@ -58,8 +58,7 @@ def run_view(argv: list[str]) -> None:
if not bundle_is_built():
console.print(
"[bold red]Viewer UI is not built.[/]\n"
"Build it with: [cyan]npm --prefix strix/viewer_src ci && "
"npm --prefix strix/viewer_src run build[/]"
"Build it with: [cyan]cd strix/viewer_src && npm ci && npm run build[/]"
)
raise SystemExit(1)