about summary refs log tree commit diff
path: root/package.json
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-08-14 00:58:42 +0300
committerGitHub <noreply@github.com>2025-08-13 16:58:42 -0500
commit36b2a87a063af8d265fa787b408ba38761bc4276 (patch)
tree3dadfed7f6a256d5e78a080ba8f6952817bb232a /package.json
parentf001af2fe3ca977beb22fefefb2f98ba2c076d49 (diff)
downloadvoidsky-36b2a87a063af8d265fa787b408ba38761bc4276.tar.zst
Skip `intl:compile` if not needed (#8837)
* skip intl compile if not needed

* add intl:compile to pull request ci

* compile -> build just to match others
Diffstat (limited to 'package.json')
-rw-r--r--package.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/package.json b/package.json
index b0c0b3682..202656a60 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,7 @@
   },
   "scripts": {
     "prepare": "is-ci || husky install",
-    "postinstall": "patch-package && yarn intl:compile",
+    "postinstall": "patch-package && yarn intl:compile-if-needed",
     "prebuild": "expo prebuild --clean",
     "android": "expo run:android",
     "android:prod": "expo run:android --variant release",
@@ -58,6 +58,7 @@
     "intl:extract": "lingui extract --clean --locale en",
     "intl:extract:all": "lingui extract --clean",
     "intl:compile": "lingui compile",
+    "intl:compile-if-needed": "is-ci || [ -f src/locale/locales/en/messages.js ] || yarn intl:compile",
     "intl:pull": "crowdin download translations --verbose -b main",
     "intl:push": "crowdin push translations --verbose -b main",
     "nuke": "rm -rf ./node_modules && rm -rf ./ios && rm -rf ./android",