From fe5f91621fa773bd601975c0f211f08b7e046239 Mon Sep 17 00:00:00 2001 From: Krystof Woldrich Date: Mon, 2 Dec 2024 14:22:40 +0100 Subject: [PATCH] chore(samples): Update Expo Sample export scripts --- samples/expo/app/_layout.tsx | 2 +- samples/expo/package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/expo/app/_layout.tsx b/samples/expo/app/_layout.tsx index 9430d8f22..31a6a42bb 100644 --- a/samples/expo/app/_layout.tsx +++ b/samples/expo/app/_layout.tsx @@ -25,7 +25,7 @@ const navigationIntegration = Sentry.reactNavigationIntegration({ enableTimeToInitialDisplay: !isExpoGo(), // This is not supported in Expo Go. }); -process.env.EXPO_SKIP_DURING_EXPORT !== 'true' && Sentry.init({ +Sentry.init({ // Replace the example DSN below with your own DSN: dsn: SENTRY_INTERNAL_DSN, debug: true, diff --git a/samples/expo/package.json b/samples/expo/package.json index 62fe333c7..a25ec3bf3 100644 --- a/samples/expo/package.json +++ b/samples/expo/package.json @@ -10,7 +10,8 @@ "android": "expo run:android", "ios": "expo run:ios", "ts:check": "tsc", - "export": "EXPO_SKIP_DURING_EXPORT='true' expo export --dump-sourcemap --clear", + "export": "expo export --dump-sourcemap --clear --platform all", + "export:web": "expo export --dump-sourcemap --clear --platform web", "prebuild": "expo prebuild --clean --no-install", "set-version": "npx react-native-version --skip-tag --never-amend" },