Skip to content

Commit 0d87adb

Browse files
feat(expo): Add npx sentry-expo-upload-sourcemaps command (#3510)
1 parent 4fb79c3 commit 0d87adb

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
!scripts/sentry-xcode.sh
1919
!scripts/sentry-xcode-debug-files.sh
2020
!scripts/sentry_utils.rb
21+
!scripts/expo-upload-sourcemaps.js
2122

2223
# Metro
2324
!/metro.js

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ This release is compatible with `[email protected]` and newer.
1515
const config = getSentryExpoConfig(config);
1616
```
1717

18-
- Add `scripts/expo-upload-sourcemaps.js` for simple EAS Update (expo export) source maps upload to Sentry ([#3491](https://github.com/getsentry/sentry-react-native/pull/3491))
18+
- Add `npx sentry-expo-upload-sourcemaps` for simple EAS Update (expo export) source maps upload to Sentry ([#3491](https://github.com/getsentry/sentry-react-native/pull/3491), [#3510](https://github.com/getsentry/sentry-react-native/pull/3510))
1919

2020
```bash
2121
SENTRY_PROJECT=project-slug \
2222
SENTRY_ORG=org-slug \
2323
SENTRY_AUTH_TOKEN=super-secret-token \
24-
node node_modules/@sentry/react-native/scripts/expo-upload-sourcemaps.js dist
24+
npx sentry-expo-upload-sourcemaps dist
2525
```
2626

2727
- Sentry CLI binary path in `scripts/expo-upload-sourcemaps.js` is resolved dynamically ([#3507](https://github.com/getsentry/sentry-react-native/pull/3507))

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
"run-android": "cd samples/react-native && yarn react-native run-android",
4343
"yalc:add:sentry-javascript": "yalc add @sentry/browser @sentry/core @sentry/hub @sentry/integrations @sentry/react @sentry/types @sentry/utils"
4444
},
45+
"bin": {
46+
"sentry-expo-upload-sourcemaps": "scripts/expo-upload-sourcemaps.js"
47+
},
4548
"keywords": [
4649
"react-native",
4750
"sentry",

scripts/expo-upload-sourcemaps.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env node
12
const { execSync } = require('child_process');
23
const fs = require('fs');
34
const path = require('path');

0 commit comments

Comments
 (0)