trails/apps/mobile/package.json
Ullrich Schäfer 8e576ac578
Consolidate Sentry config into shared package; fix inconsistencies
Introduces @trails-cool/sentry-config with three helpers that encode
the common Sentry.init options:
- nodeSentryConfig(appContext) for the two HTTP servers
- browserSentryConfig(appContext, env) for the Journal client
- mobileSentryConfig(__DEV__) for the React Native app
- drop404s beforeSend for servers

Also fixes three inconsistencies found in the audit:
- Planner server was missing sendDefaultPii: false (IPs could leak)
- Planner entry.server.tsx didn't call Sentry.captureException on SSR
  render errors; Journal's SSR did
- Sentry.init location now matches across apps (both in server.ts;
  Journal previously had it in app/entry.server.tsx, which meant init
  ran lazily on first request rather than at server startup)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 00:30:09 +02:00

79 lines
2.4 KiB
JSON

{
"name": "@trails-cool/mobile",
"version": "0.0.1",
"private": true,
"main": "index.ts",
"expo": {
"install": {
"exclude": [
"react"
]
}
},
"scripts": {
"start": "expo start --dev-client",
"prebuild": "expo prebuild",
"prebuild:clean": "expo prebuild --clean",
"ios": "expo run:ios",
"android": "expo run:android",
"typecheck": "tsc --noEmit",
"test": "jest",
"lint": "eslint .",
"eas:dev": "npx eas-cli build:dev --platform ios",
"eas:preview": "npx eas-cli build --profile preview --platform all"
},
"jest": {
"preset": "jest-expo",
"transformIgnorePatterns": [
"node_modules/(?!(.pnpm/)?((jest-)?react-native|@react-native(-community)?|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@trails-cool/.*))"
]
},
"dependencies": {
"@expo/metro-runtime": "^55.0.9",
"@gorhom/bottom-sheet": "^5.2.9",
"@maplibre/maplibre-react-native": "^10.4.2",
"@sentry/cli": "^3.3.5",
"@sentry/react-native": "~7.11.0",
"@trails-cool/api": "workspace:*",
"@trails-cool/gpx": "workspace:*",
"@trails-cool/i18n": "workspace:*",
"@trails-cool/map-core": "workspace:*",
"@trails-cool/sentry-config": "workspace:*",
"@trails-cool/types": "workspace:*",
"expo": "~55.0.15",
"expo-constants": "~55.0.14",
"expo-crypto": "~55.0.14",
"expo-dev-client": "~55.0.27",
"expo-dev-menu": "^55.0.23",
"expo-device": "~55.0.15",
"expo-file-system": "~55.0.16",
"expo-linking": "~55.0.13",
"expo-localization": "~55.0.13",
"expo-location": "~55.1.8",
"expo-navigation-bar": "~55.0.12",
"expo-notifications": "~55.0.19",
"expo-router": "~55.0.12",
"expo-secure-store": "~55.0.13",
"expo-splash-screen": "~55.0.18",
"expo-sqlite": "~55.0.15",
"expo-status-bar": "~55.0.5",
"expo-system-ui": "^55.0.15",
"expo-web-browser": "~55.0.14",
"react": "catalog:",
"react-native": "0.83.4",
"react-native-gesture-handler": "^2.31.1",
"react-native-reanimated": "^4.3.0",
"react-native-safe-area-context": "~5.6.2",
"react-native-screens": "~4.23.0",
"use-latest-callback": "^0.3.3",
"zod": "^3.25.76"
},
"devDependencies": {
"@testing-library/react-native": "^13.3.3",
"@types/jest": "^29.5.14",
"@types/react": "~19.2.14",
"jest-expo": "^55.0.15",
"react-test-renderer": "^19.2.5",
"typescript": "~5.9.2"
}
}