File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ if [ -z "$SENTRY_CLI_EXECUTABLE" ]; then
4343 PNPM_BIN_PATH=" $PWD /../node_modules/@sentry/react-native/node_modules/.bin/sentry-cli"
4444
4545 if [ -f " $PNPM_BIN_PATH " ]; then
46- SENTRY_CLI_PACKAGE_PATH=" $PNPM_BIN_PATH "
46+ FIRST_NODE_PATH=$( grep -oE ' NODE_PATH="[^"]+"' " $PNPM_BIN_PATH " | head -n1 | sed -E ' s/^NODE_PATH="([^":]+).*/\1/' )
47+ if [ -n " $FIRST_NODE_PATH " ]; then
48+ SENTRY_CLI_PACKAGE_PATH=" ${FIRST_NODE_PATH%/ node_modules} /bin/sentry-cli"
49+ fi
4750 fi
4851 fi
4952fi
Original file line number Diff line number Diff line change @@ -38,7 +38,10 @@ if [ -z "$SENTRY_CLI_EXECUTABLE" ]; then
3838 PNPM_BIN_PATH=" $PWD /../node_modules/@sentry/react-native/node_modules/.bin/sentry-cli"
3939
4040 if [ -f " $PNPM_BIN_PATH " ]; then
41- SENTRY_CLI_PACKAGE_PATH=" $PNPM_BIN_PATH "
41+ FIRST_NODE_PATH=$( grep -oE ' NODE_PATH="[^"]+"' " $PNPM_BIN_PATH " | head -n1 | sed -E ' s/^NODE_PATH="([^":]+).*/\1/' )
42+ if [ -n " $FIRST_NODE_PATH " ]; then
43+ SENTRY_CLI_PACKAGE_PATH=" ${FIRST_NODE_PATH%/ node_modules} /bin/sentry-cli"
44+ fi
4245 fi
4346 fi
4447fi
You can’t perform that action at this time.
0 commit comments