UI: fix build (#10862)

Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
This commit is contained in:
Augustin Husson 2022-06-13 16:40:08 +02:00 committed by GitHub
parent 5184f49a2a
commit 3dad28fcbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,13 +25,13 @@ buildOrder=(lezer-promql codemirror-promql)
function buildModule() {
for module in "${buildOrder[@]}"; do
echo "build ${module}"
npm run build -w "${module}"
npm run build -w "@prometheus-io/${module}"
done
}
function buildReactApp() {
echo "build react-app"
npm run build -w react-app
npm run build -w @prometheus-io/app
rm -rf ./static/react
mv ./react-app/build ./static/react
}