add lexicon codegen: vendored lexicons, lex cli and generation scripts

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-08-03 12:06:59 +03:00
parent a2129885c6
commit a3243820c9
311 changed files with 23342 additions and 14 deletions
+6 -3
View File
@@ -38,7 +38,7 @@
},
"scripts": {
"prepare": "is-ci || husky",
"postinstall": "pnpm intl:compile-if-needed",
"postinstall": "lex install --ci && pnpm lexicons:generate && pnpm intl:compile-if-needed",
"prebuild": "EXPO_NO_GIT_STATUS=1 expo prebuild --clean",
"android": "expo run:android --variant debugOptimized",
"android:prod": "expo run:android --variant release",
@@ -62,6 +62,8 @@
"lint": "oxlint --quiet src modules",
"lint-native": "swiftlint ./modules && ktlint ./modules",
"lint-native:fix": "swiftlint --fix ./modules && ktlint --format ./modules",
"lexicons:generate": "lex build --clear --index-file --import-ext ''",
"lexicons:update": "lex install --update",
"typecheck": "pnpm run typecheck:ios && pnpm run typecheck:android && pnpm run typecheck:web",
"typecheck:ios": "tsc --project ./tsconfig.check.ios.json",
"typecheck:android": "tsc --project ./tsconfig.check.android.json",
@@ -98,8 +100,9 @@
"dependencies": {
"@atproto/api": "0.20.39",
"@atproto/common-web": "0.5.7",
"@atproto/lex-client": "0.3.0",
"@atproto/lex-password-session": "0.1.8",
"@atproto/lex": "0.3.2",
"@atproto/lex-client": "0.3.1",
"@atproto/lex-password-session": "0.1.9",
"@atproto/syntax": "0.7.2",
"@bitdrift/react-native": "^0.6.8",
"@braintree/sanitize-url": "^6.0.2",