Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
20 lines
487 B
JavaScript
Executable File
20 lines
487 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
'use strict';
|
|
|
|
const childProcess = require('child_process');
|
|
const SentryCli = require('../js');
|
|
|
|
const child = childProcess
|
|
.spawn(SentryCli.getPath(), 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'));
|