.
This commit is contained in:
parent
0c42c23669
commit
352c71af65
1 changed files with 20165 additions and 0 deletions
15
scripts/update-api-types.sh
Executable file
15
scripts/update-api-types.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf sync-server/bindings
|
||||
|
||||
cd sync-server
|
||||
cargo test export_bindings
|
||||
cd -
|
||||
|
||||
cp -r sync-server/bindings/* frontend/sync-client/src/services/types/
|
||||
|
||||
cd frontend
|
||||
npm run lint || npx prettier --write sync-client/src/services/types/*.ts
|
||||
cd -
|
||||
Loading…
Reference in a new issue