vault-link/scripts/update-api-types.sh
2026-05-09 15:16:16 +01:00

20 lines
442 B
Bash
Executable file

#!/bin/bash
set -e
rm -rf sync-server/bindings
cd sync-server
cargo test export_bindings
cd -
# Wipe and copy generated bindings into the consuming workspace
rm -f frontend/sync-client/src/services/types/*.ts
cp -r sync-server/bindings/* frontend/sync-client/src/services/types/
cd frontend
npm run lint
cd ..
# Format all files across the project (frontend and backend)
npx -C frontend prettier --write "**/*.{ts,js,json,md,yml,yaml}"