about summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2025-03-14 10:27:45 -0500
committerGitHub <noreply@github.com>2025-03-14 10:27:45 -0500
commitdcc8b351464727e2780b279338dd46589424784e (patch)
tree796ffe935996bad5de6107225b3dec37c996ff0a /Dockerfile
parentcb54c9833e9a6982cd9bcc6de730df751d63064b (diff)
downloadvoidsky-dcc8b351464727e2780b279338dd46589424784e.tar.zst
Add checks for invalid syntax post-i18n builds (#7935)
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 4a9a7e87f..c5613e289 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -38,7 +38,8 @@ RUN \. "$NVM_DIR/nvm.sh" && \
   echo "EXPO_PUBLIC_BUNDLE_DATE=$(date -u +"%y%m%d%H")" >> .env && \
   npm install --global yarn && \
   yarn && \
-  yarn intl:build && \
+  yarn intl:build 2>&1 | tee i18n.log && \
+  if grep -q "invalid syntax" "i18n.log"; then echo "\n\nFound compilation errors!\n\n" && exit 1; else echo "\n\nNo compile errors!\n\n"; fi && \
   EXPO_PUBLIC_BUNDLE_IDENTIFIER=$EXPO_PUBLIC_BUNDLE_IDENTIFIER EXPO_PUBLIC_BUNDLE_DATE=$() yarn build-web
 
 # DEBUG