# katalyst-plugin-bard: the Circuit's recipes, run from the package directory (plugins/bard/).
import '../../../scripts/package.just'

# Bard's web client and server are npm projects of the package (plugins/bard/web), with their own
# lockfile. Its browser suite is the xspec layer's (plugins/bard/xspec), not these.
[doc("Run Bard's web unit tests (vitest)")]
repo-bard-web-test:
    cd "{{LAYER_DIR}}" && { [ -d node_modules ] || npm ci --no-audit --no-fund; } && npm test

[doc("Type-check Bard's web client and server (tsc)")]
repo-bard-web-typecheck:
    cd "{{LAYER_DIR}}" && { [ -d node_modules ] || npm ci --no-audit --no-fund; } && npm run typecheck
