mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-05-11 13:14:56 +00:00
17 lines
418 B
Bash
17 lines
418 B
Bash
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
export SQLX_OFFLINE=1
|
|
BASE_DIR="$(dirname "$0")/.."
|
|
CONFIG_SCHEMA="${BASE_DIR}/docs/config.schema.json"
|
|
GRAPHQL_SCHEMA="${BASE_DIR}/frontend/schema.graphql"
|
|
|
|
set -x
|
|
# XXX: we shouldn't have to specify this feature
|
|
cargo run -p mas-config --features webpki-roots > "${CONFIG_SCHEMA}"
|
|
cargo run -p mas-graphql --features webpki-roots > "${GRAPHQL_SCHEMA}"
|
|
|
|
cd "${BASE_DIR}/frontend"
|
|
npm run generate
|