Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
### Fixes

- Fixed Sentry CLI executable path resolution that was causing iOS build script failures ([#5003](https://github.com/getsentry/sentry-react-native/pull/5003))
- Fix for `sentry-cli` path discovery not working on Android ([#5009](https://github.com/getsentry/sentry-react-native/pull/5009))

### Features

Expand Down
3 changes: 1 addition & 2 deletions packages/core/sentry.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,7 @@ def resolveSentryReactNativeSDKPath(reactRoot) {
def resolveSentryCliPackagePath(reactRoot) {
def resolvedCliPath = null
try {
def file = new File(["node", "--print", "require.resolve('@sentry/cli/package.json')"].execute(null, rootDir))
resolvedCliPath = file.text.trim().getParentFile();
resolvedCliPath = new File(["node", "--print", "require.resolve('@sentry/cli/package.json')"].execute(null, rootDir).text.trim()).getParentFile();
} catch (Throwable ignored) { // Check if it's located in .pnpm
try {
def pnpmRefPath = reactRoot.toString() + "/node_modules/@sentry/react-native/node_modules/.bin/sentry-cli"
Expand Down
Loading