395 lines
14 KiB
JSON
395 lines
14 KiB
JSON
{
|
|
"name": "bsky.app",
|
|
"version": "1.120.0",
|
|
"private": true,
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"packageManager": "yarn@1.22.22",
|
|
"expo": {
|
|
"autolinking": {
|
|
"android": {
|
|
"buildFromSource": [
|
|
"expo-notifications",
|
|
"expo-haptics",
|
|
"expo-media-library",
|
|
"expo-image-picker"
|
|
]
|
|
}
|
|
},
|
|
"install": {
|
|
"exclude": [
|
|
"react-native-reanimated",
|
|
"@sentry/react-native",
|
|
"react-native-pager-view"
|
|
]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"prepare": "is-ci || husky install",
|
|
"postinstall": "patch-package && yarn intl:compile-if-needed",
|
|
"prebuild": "EXPO_NO_GIT_STATUS=1 expo prebuild --clean",
|
|
"android": "expo run:android",
|
|
"android:prod": "expo run:android --variant release",
|
|
"android:profile": "BSKY_PROFILE=1 expo run:android --variant release",
|
|
"ios": "expo run:ios",
|
|
"web": "expo start --web",
|
|
"use-build-number": "./scripts/useBuildNumberEnv.sh",
|
|
"use-build-number-with-bump": "./scripts/useBuildNumberEnvWithBump.sh",
|
|
"build-web": "expo export:web && node ./scripts/post-web-build.js",
|
|
"build-all": "yarn intl:build && yarn use-build-number-with-bump eas build --platform all",
|
|
"build-ios": "yarn use-build-number-with-bump eas build -p ios",
|
|
"build-android": "yarn use-build-number-with-bump eas build -p android",
|
|
"build": "yarn use-build-number-with-bump eas build",
|
|
"build-embed": "cd bskyembed && yarn build && yarn build-snippet && cd .. && node ./scripts/post-embed-build.js",
|
|
"start": "expo start --dev-client",
|
|
"start:prod": "expo start --dev-client --no-dev --minify",
|
|
"test": "NODE_ENV=test jest --forceExit --testTimeout=20000 --bail",
|
|
"test-watch": "NODE_ENV=test jest --watchAll",
|
|
"test-ci": "NODE_ENV=test jest --ci --forceExit --reporters=default --reporters=jest-junit",
|
|
"test-coverage": "NODE_ENV=test jest --coverage",
|
|
"lint": "eslint --cache --quiet src",
|
|
"lint-native": "swiftlint ./modules && ktlint ./modules",
|
|
"lint-native:fix": "swiftlint --fix ./modules && ktlint --format ./modules",
|
|
"typecheck": "tsc --project ./tsconfig.check.json",
|
|
"e2e:mock-server": "cd dev-env && yarn start",
|
|
"e2e:build": "EXPO_PUBLIC_ENV=e2e NODE_ENV=test RN_SRC_EXT=e2e.ts,e2e.tsx expo run:ios",
|
|
"e2e:build-android": "EXPO_PUBLIC_ENV=e2e NODE_ENV=test RN_SRC_EXT=e2e.ts,e2e.tsx expo run:android",
|
|
"e2e:start": "EXPO_PUBLIC_ENV=e2e NODE_ENV=test RN_SRC_EXT=e2e.ts,e2e.tsx expo start -c",
|
|
"e2e:run": "maestro test",
|
|
"perf:test": "NODE_ENV=test maestro test",
|
|
"perf:test:run": "NODE_ENV=test maestro test __e2e__/perf-test.yml",
|
|
"perf:test:measure": "NODE_ENV=test flashlight test --bundleId xyz.blueskyweb.app --testCommand \"yarn perf:test\" --duration 150000 --resultsFilePath .perf/results.json",
|
|
"perf:test:results": "NODE_ENV=test flashlight report .perf/results.json",
|
|
"perf:measure": "NODE_ENV=test flashlight measure",
|
|
"intl:build": "yarn intl:extract:all && yarn intl:compile",
|
|
"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.ts ] || yarn intl:compile",
|
|
"intl:pull": "crowdin download translations --verbose -b main",
|
|
"intl:push": "crowdin push translations --verbose -b main",
|
|
"intl:push-sources": "crowdin push sources --verbose -b main",
|
|
"intl:release": "yarn intl:pull && yarn intl:extract:all",
|
|
"nuke": "rm -rf ./node_modules && rm -rf ./ios && rm -rf ./android",
|
|
"update-extensions": "bash scripts/updateExtensions.sh",
|
|
"export": "npx expo export --dump-sourcemap && yarn upload-native-sourcemaps",
|
|
"upload-native-sourcemaps": "npx sentry-expo-upload-sourcemaps dist",
|
|
"make-deploy-bundle": "bash scripts/bundleUpdate.sh",
|
|
"generate-webpack-stats-file": "EXPO_PUBLIC_GENERATE_STATS=1 yarn build-web",
|
|
"open-analyzer": "EXPO_PUBLIC_OPEN_ANALYZER=1 yarn build-web",
|
|
"icons:optimize": "svgo -f ./assets/icons"
|
|
},
|
|
"dependencies": {
|
|
"@atproto/api": "^0.19.6",
|
|
"@bitdrift/react-native": "^0.6.8",
|
|
"@braintree/sanitize-url": "^6.0.2",
|
|
"@bsky.app/alf": "^0.1.7",
|
|
"@bsky.app/expo-image-crop-tool": "^0.5.0",
|
|
"@bsky.app/expo-translate-text": "^0.2.9",
|
|
"@bsky.app/react-native-mmkv": "2.12.5",
|
|
"@bsky.app/sift": "^0.3.1",
|
|
"@bsky.app/tapper": "^0.5.0",
|
|
"@discord/bottom-sheet": "bluesky-social/react-native-bottom-sheet",
|
|
"@emoji-mart/data": "^1.2.1",
|
|
"@emoji-mart/react": "^1.1.1",
|
|
"@expo/html-elements": "^0.12.5",
|
|
"@expo/webpack-config": "^19.0.1",
|
|
"@floating-ui/dom": "^1.6.3",
|
|
"@floating-ui/react-dom": "^2.0.8",
|
|
"@formatjs/intl-displaynames": "^6.8.13",
|
|
"@formatjs/intl-locale": "^4.2.13",
|
|
"@formatjs/intl-numberformat": "^8.15.6",
|
|
"@formatjs/intl-pluralrules": "^5.4.6",
|
|
"@fortawesome/fontawesome-svg-core": "^6.1.1",
|
|
"@fortawesome/free-regular-svg-icons": "^6.1.1",
|
|
"@fortawesome/free-solid-svg-icons": "^6.1.1",
|
|
"@fortawesome/react-native-fontawesome": "^0.3.2",
|
|
"@growthbook/growthbook": "^1.6.5",
|
|
"@growthbook/growthbook-react": "^1.6.5",
|
|
"@haileyok/bluesky-video": "0.3.2",
|
|
"@ipld/dag-cbor": "^9.2.0",
|
|
"@lingui/core": "^5.9.2",
|
|
"@lingui/react": "^5.9.2",
|
|
"@miblanchard/react-native-slider": "^2.6.0",
|
|
"@mozzius/expo-dynamic-app-icon": "^1.8.0",
|
|
"@react-native-async-storage/async-storage": "2.2.0",
|
|
"@react-navigation/bottom-tabs": "^7.15.5",
|
|
"@react-navigation/native": "^7.1.33",
|
|
"@react-navigation/native-stack": "^7.14.4",
|
|
"@sentry/react-native": "~6.20.0",
|
|
"@tanstack/query-async-storage-persister": "^5.96.2",
|
|
"@tanstack/react-query": "^5.96.2",
|
|
"@tanstack/react-query-persist-client": "^5.96.2",
|
|
"@tiptap/core": "^2.9.1",
|
|
"@tiptap/extension-document": "^2.9.1",
|
|
"@tiptap/extension-hard-break": "^2.9.1",
|
|
"@tiptap/extension-history": "^2.9.1",
|
|
"@tiptap/extension-mention": "^2.9.1",
|
|
"@tiptap/extension-paragraph": "^2.9.1",
|
|
"@tiptap/extension-placeholder": "^2.9.1",
|
|
"@tiptap/extension-text": "^2.9.1",
|
|
"@tiptap/html": "^2.9.1",
|
|
"@tiptap/pm": "^2.9.1",
|
|
"@tiptap/react": "^2.9.1",
|
|
"@tiptap/suggestion": "^2.9.1",
|
|
"@types/invariant": "^2.2.37",
|
|
"@types/lodash.throttle": "^4.1.9",
|
|
"@types/node": "^20.14.3",
|
|
"array.prototype.findlast": "^1.2.3",
|
|
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
"bcp-47": "^2.1.0",
|
|
"bcp-47-match": "^2.0.3",
|
|
"date-fns": "^2.30.0",
|
|
"email-validator": "^2.0.4",
|
|
"embla-carousel-react": "^8.6.0",
|
|
"emoji-mart": "^5.6.0",
|
|
"emoji-regex": "^10.4.0",
|
|
"eventemitter3": "^5.0.1",
|
|
"expo": "^54.0.33",
|
|
"expo-application": "~7.0.8",
|
|
"expo-blur": "~15.0.8",
|
|
"expo-build-properties": "~1.0.10",
|
|
"expo-camera": "~17.0.10",
|
|
"expo-clipboard": "~8.0.8",
|
|
"expo-contacts": "^15.0.10",
|
|
"expo-dev-client": "~6.0.20",
|
|
"expo-device": "~8.0.10",
|
|
"expo-file-system": "~19.0.21",
|
|
"expo-font": "~14.0.11",
|
|
"expo-haptics": "~15.0.8",
|
|
"expo-image": "~3.0.11",
|
|
"expo-image-manipulator": "~14.0.8",
|
|
"expo-image-picker": "~17.0.10",
|
|
"expo-intent-launcher": "~13.0.8",
|
|
"expo-keep-awake": "~15.0.8",
|
|
"expo-linear-gradient": "~15.0.8",
|
|
"expo-linking": "~8.0.11",
|
|
"expo-localization": "~17.0.8",
|
|
"expo-location": "~19.0.8",
|
|
"expo-media-library": "~18.2.1",
|
|
"expo-notifications": "~0.32.16",
|
|
"expo-paste-input": "^0.1.12",
|
|
"expo-privacy-sensitive": "^0.1.0",
|
|
"expo-screen-orientation": "~9.0.8",
|
|
"expo-sharing": "~14.0.8",
|
|
"expo-sms": "^14.0.7",
|
|
"expo-splash-screen": "~31.0.13",
|
|
"expo-system-ui": "~6.0.9",
|
|
"expo-updates": "~29.0.16",
|
|
"expo-video": "~3.0.16",
|
|
"expo-video-thumbnails": "^10.0.8",
|
|
"expo-web-browser": "~15.0.10",
|
|
"fast-deep-equal": "^3.1.3",
|
|
"fast-text-encoding": "^1.0.6",
|
|
"fuse.js": "^7.1.0",
|
|
"hls.js": "^1.6.2",
|
|
"idb-keyval": "^6.2.2",
|
|
"js-sha256": "^0.9.0",
|
|
"jwt-decode": "^4.0.0",
|
|
"lande": "^1.0.10",
|
|
"libphonenumber-js": "^1.12.31",
|
|
"lodash.chunk": "^4.2.0",
|
|
"lodash.debounce": "^4.0.8",
|
|
"lodash.shuffle": "^4.2.0",
|
|
"lodash.throttle": "^4.1.1",
|
|
"multiformats": "9.9.0",
|
|
"nanoid": "^5.0.5",
|
|
"normalize-url": "^8.0.0",
|
|
"patch-package": "^8.0.1",
|
|
"postinstall-postinstall": "^2.1.0",
|
|
"psl": "^1.9.0",
|
|
"radix-ui": "^1.4.3",
|
|
"react": "19.1.0",
|
|
"react-compiler-runtime": "^19.1.0-rc.1",
|
|
"react-dom": "19.1.0",
|
|
"react-hotkeys-hook": "5.2.4",
|
|
"react-image-crop": "^11.0.7",
|
|
"react-is": "19",
|
|
"react-keyed-flatten-children": "^5.0.0",
|
|
"react-native": "0.81.5",
|
|
"react-native-compressor": "^1.13.0",
|
|
"react-native-date-picker": "^5.0.13",
|
|
"react-native-device-attest": "^0.1.6",
|
|
"react-native-drawer-layout": "^4.2.2",
|
|
"react-native-edge-to-edge": "^1.6.0",
|
|
"react-native-gesture-handler": "~2.28.0",
|
|
"react-native-keyboard-controller": "^1.21.0",
|
|
"react-native-pager-view": "6.8.0",
|
|
"react-native-progress": "bluesky-social/react-native-progress",
|
|
"react-native-qrcode-styled": "^0.3.3",
|
|
"react-native-reanimated": "^3.19.1",
|
|
"react-native-safe-area-context": "~5.6.0",
|
|
"react-native-screens": "^4.24.0",
|
|
"react-native-svg": "15.12.1",
|
|
"react-native-uitextview": "^1.4.0",
|
|
"react-native-uuid": "^2.0.3",
|
|
"react-native-view-shot": "^4.0.3",
|
|
"react-native-web": "^0.21.0",
|
|
"react-native-web-webview": "^1.0.2",
|
|
"react-native-webview": "^13.13.5",
|
|
"react-remove-scroll-bar": "^2.3.8",
|
|
"react-responsive": "^10.0.1",
|
|
"react-textarea-autosize": "^8.5.3",
|
|
"setimmediate": "^1.0.5",
|
|
"sonner": "^2.0.7",
|
|
"sonner-native": "^0.21.0",
|
|
"tippy.js": "^6.3.7",
|
|
"tlds": "^1.234.0",
|
|
"tldts": "^6.1.46",
|
|
"unicode-segmenter": "^0.14.5",
|
|
"zod": "^3.20.2"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.26.0",
|
|
"@babel/preset-env": "^7.26.0",
|
|
"@babel/runtime": "^7.26.0",
|
|
"@crowdin/cli": "^4.14.1",
|
|
"@eslint/js": "^9.39.2",
|
|
"@expo/config-plugins": "~54.0.4",
|
|
"@lingui/babel-plugin-lingui-macro": "^5.9.2",
|
|
"@lingui/cli": "^5.9.2",
|
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
|
|
"@react-native/babel-preset": "0.81.5",
|
|
"@react-native/typescript-config": "^0.81.5",
|
|
"@sentry/webpack-plugin": "^3.2.2",
|
|
"@testing-library/react-native": "^13.2.0",
|
|
"@types/jest": "29.5.14",
|
|
"@types/lodash.chunk": "^4.2.7",
|
|
"@types/lodash.debounce": "^4.0.7",
|
|
"@types/lodash.shuffle": "^4.2.7",
|
|
"@types/psl": "^1.1.1",
|
|
"@types/react": "^19.1.12",
|
|
"@types/react-dom": "^19.1.9",
|
|
"babel-jest": "^29.7.0",
|
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
"babel-plugin-react-compiler": "^19.1.0-rc.3",
|
|
"babel-preset-expo": "~54.0.10",
|
|
"eslint": "^9.39.2",
|
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
"eslint-plugin-bsky-internal": "link:./eslint",
|
|
"eslint-plugin-import-x": "^4.16.2",
|
|
"eslint-plugin-lingui": "^0.12.0",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"eslint-plugin-react-native": "^5.0.0",
|
|
"eslint-plugin-react-native-a11y": "^3.5.1",
|
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
"file-loader": "6.2.0",
|
|
"globals": "^17.0.0",
|
|
"husky": "^8.0.3",
|
|
"is-ci": "^3.0.1",
|
|
"jest": "^29.7.0",
|
|
"jest-expo": "~54.0.17",
|
|
"jest-junit": "^16.0.0",
|
|
"lint-staged": "^13.2.3",
|
|
"lockfile-lint": "^4.14.0",
|
|
"prettier": "^3.6.0",
|
|
"react-native-dotenv": "^3.4.11",
|
|
"react-refresh": "^0.14.0",
|
|
"svgo": "^3.3.2",
|
|
"ts-plugin-sort-import-suggestions": "^1.0.4",
|
|
"typescript": "^6.0.2",
|
|
"typescript-eslint": "^8.58.0",
|
|
"webpack-bundle-analyzer": "^4.10.1"
|
|
},
|
|
"resolutions": {
|
|
"@react-native/babel-preset": "0.81.5",
|
|
"@react-native/normalize-colors": "0.81.5",
|
|
"**/@expo/image-utils": "0.8.12",
|
|
"**/multiformats": "9.9.0",
|
|
"unicode-segmenter": "0.14.5",
|
|
"@types/estree": "1.0.6",
|
|
"metro": "0.83.3",
|
|
"metro-core": "0.83.3",
|
|
"metro-config": "0.83.3",
|
|
"metro-runtime": "0.83.3",
|
|
"metro-source-map": "0.83.3"
|
|
},
|
|
"jest": {
|
|
"preset": "jest-expo/ios",
|
|
"setupFilesAfterEnv": [
|
|
"./jest/jestSetup.js"
|
|
],
|
|
"moduleFileExtensions": [
|
|
"ts",
|
|
"tsx",
|
|
"js",
|
|
"jsx",
|
|
"json",
|
|
"node"
|
|
],
|
|
"transform": {
|
|
"\\.[jt]sx?$": "babel-jest"
|
|
},
|
|
"transformIgnorePatterns": [
|
|
"node_modules/(?!((jest-)?react-native|@react-native(-community)?)|@discord|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|nanoid|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|normalize-url|react-native-svg|@sentry/.*|sentry-expo|bcp-47-match)"
|
|
],
|
|
"modulePathIgnorePatterns": [
|
|
"__tests__/.*/__mocks__",
|
|
"__e2e__/.*",
|
|
"bskylink/.*"
|
|
],
|
|
"coveragePathIgnorePatterns": [
|
|
"<rootDir>/node_modules/",
|
|
"<rootDir>/src/platform",
|
|
"<rootDir>/src/third-party",
|
|
"<rootDir>/src/view/com/util",
|
|
"<rootDir>/src/state/lib",
|
|
"<rootDir>/__tests__/test-utils.js"
|
|
],
|
|
"reporters": [
|
|
"default",
|
|
"jest-junit"
|
|
]
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"lint-staged": {
|
|
"*{.js,.jsx,.ts,.tsx}": [
|
|
"eslint --cache --fix"
|
|
],
|
|
"*{.js,.jsx,.ts,.tsx,.css}": [
|
|
"prettier --cache --write --ignore-unknown"
|
|
],
|
|
"assets/icons/*.svg": [
|
|
"svgo"
|
|
]
|
|
},
|
|
"lockfile-lint": {
|
|
"path": "yarn.lock",
|
|
"allowedHosts": [
|
|
"npm",
|
|
"yarn"
|
|
],
|
|
"allowedSchemes": [
|
|
"https:"
|
|
],
|
|
"allowedPackageNameAliases": [
|
|
"@babel/traverse--for-generate-function-map:@babel/traverse",
|
|
"string-width-cjs:string-width",
|
|
"strip-ansi-cjs:strip-ansi",
|
|
"wrap-ansi-cjs:wrap-ansi"
|
|
],
|
|
"allowedUrls": [
|
|
"https://codeload.github.com/bluesky-social/react-native-bottom-sheet/tar.gz/28a87d1bb55e10fc355fa1455545a30734995908",
|
|
"https://codeload.github.com/bluesky-social/react-native-progress/tar.gz/5a372f4f2ce5feb26f4f47b6a4d187ab9b923ab4",
|
|
"https://codeload.github.com/mattermost/react-native-paste-input/tar.gz/f260447edc645a817ab1ba7b46d8341d84dba8e9"
|
|
],
|
|
"emptyHostname": false,
|
|
"validatePackageNames": true,
|
|
"validateIntegrity": true
|
|
}
|
|
}
|