File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -335,8 +335,12 @@ async function compileHermesByteCode(
335
335
336
336
async function copyDebugidForSentry ( bundleName , outputFolder , sourcemapOutput ) {
337
337
if ( sourcemapOutput ) {
338
- const copyDebugidPath =
339
- 'node_modules/@sentry/react-native/scripts/copy-debugid.js' ;
338
+ const copyDebugidPath = require . resolve (
339
+ '@sentry/react-native/scripts/copy-debugid.js' ,
340
+ {
341
+ paths : [ process . cwd ( ) ] ,
342
+ } ,
343
+ ) ;
340
344
if ( ! fs . existsSync ( copyDebugidPath ) ) {
341
345
return ;
342
346
}
@@ -362,8 +366,12 @@ async function uploadSourcemapForSentry(
362
366
sourcemapOutput ,
363
367
) {
364
368
if ( sourcemapOutput ) {
365
- const uploadSourcemapPath =
366
- 'node_modules/@sentry/cli/bin/sentry-cli' ;
369
+ const uploadSourcemapPath = require . resolve (
370
+ '@sentry/cli/bin/sentry-cli' ,
371
+ {
372
+ paths : [ process . cwd ( ) ] ,
373
+ } ,
374
+ ) ;
367
375
if ( ! fs . existsSync ( uploadSourcemapPath ) ) {
368
376
return ;
369
377
}
You can’t perform that action at this time.
0 commit comments