Skip to content

Commit 92aa676

Browse files
fix(react-native): Fix RN 0.75 node binary build fail (#2131)
1 parent 335f9bc commit 92aa676

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
!package.json
66
!README.md
77
!LICENSE
8-
!bin
8+
!bin/sentry-cli
99
!js
1010
!scripts/install.js
1111
!checksums.txt

bin/sentry-cli-dev

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env node
2+
3+
'use strict';
4+
5+
const childProcess = require('child_process');
6+
const path = require('path');
7+
8+
const child = childProcess
9+
.spawn(path.join(__dirname, '../target/debug/sentry-cli'), process.argv.slice(2), {
10+
stdio: 'inherit',
11+
})
12+
.on('error', (err) => {
13+
console.error(err); // eslint-disable-line no-console
14+
process.exit(1);
15+
})
16+
.on('exit', (code) => process.exit(code));
17+
18+
process.on('SIGTERM', () => child.kill('SIGTERM'));
19+
process.on('SIGINT', () => child.kill('SIGINT'));

src/commands/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ fn preexecute_hooks() -> Result<bool> {
9595
#[cfg(target_os = "macos")]
9696
fn sentry_react_native_xcode_wrap() -> Result<bool> {
9797
if let Ok(val) = env::var("__SENTRY_RN_WRAP_XCODE_CALL") {
98-
env::remove_var("__SENTRY_RN_WRAP_XCODE_CALL");
9998
if &val == "1" {
10099
crate::commands::react_native::xcode::wrap_call()?;
101100
return Ok(true);

0 commit comments

Comments
 (0)