-
-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(react-native): Fix RN 0.75 node binary build fail (#2131)
- Loading branch information
1 parent
335f9bc
commit 92aa676
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
!package.json | ||
!README.md | ||
!LICENSE | ||
!bin | ||
!bin/sentry-cli | ||
!js | ||
!scripts/install.js | ||
!checksums.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env node | ||
|
||
'use strict'; | ||
|
||
const childProcess = require('child_process'); | ||
const path = require('path'); | ||
|
||
const child = childProcess | ||
.spawn(path.join(__dirname, '../target/debug/sentry-cli'), process.argv.slice(2), { | ||
stdio: 'inherit', | ||
}) | ||
.on('error', (err) => { | ||
console.error(err); // eslint-disable-line no-console | ||
process.exit(1); | ||
}) | ||
.on('exit', (code) => process.exit(code)); | ||
|
||
process.on('SIGTERM', () => child.kill('SIGTERM')); | ||
process.on('SIGINT', () => child.kill('SIGINT')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters