Bluesky app fork with some witchin' additions 💫

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

authored by samuel.fm and committed by

GitHub 36b2a87a f001af2f

+4 -2
+2 -1
.github/workflows/pull-request-commit.yml
··· 50 50 git config --global user.name "github-actions[bot]" 51 51 git merge --no-edit ${{ github.head_ref }} 52 52 yarn install 53 + yarn intl:build 53 54 54 55 - name: 🔦 Generate stats file for PR 55 56 run: | ··· 73 74 if: ${{ !steps.get-base-stats.outputs.cache-hit }} 74 75 run: | 75 76 yarn install 77 + yarn intl:build 76 78 yarn generate-webpack-stats-file 77 79 mv stats.json stats-base.json 78 80 ··· 143 145 with: 144 146 header: fingerprint-diff 145 147 delete: true 146 -
+2 -1
package.json
··· 20 20 }, 21 21 "scripts": { 22 22 "prepare": "is-ci || husky install", 23 - "postinstall": "patch-package && yarn intl:compile", 23 + "postinstall": "patch-package && yarn intl:compile-if-needed", 24 24 "prebuild": "expo prebuild --clean", 25 25 "android": "expo run:android", 26 26 "android:prod": "expo run:android --variant release", ··· 58 58 "intl:extract": "lingui extract --clean --locale en", 59 59 "intl:extract:all": "lingui extract --clean", 60 60 "intl:compile": "lingui compile", 61 + "intl:compile-if-needed": "is-ci || [ -f src/locale/locales/en/messages.js ] || yarn intl:compile", 61 62 "intl:pull": "crowdin download translations --verbose -b main", 62 63 "intl:push": "crowdin push translations --verbose -b main", 63 64 "nuke": "rm -rf ./node_modules && rm -rf ./ios && rm -rf ./android",