Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions packages/debugger-shell/src/node/index.flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
* @format
*/

import {
prepareDebuggerShellFromDotSlashFile,
spawnAndGetStderr,
} from './private/LaunchUtils';
import {prepareDebuggerShellFromDotSlashFile} from './private/LaunchUtils';

const {spawn} = require('cross-spawn');
const debug = require('debug')('Metro:DebuggerShell');
Expand Down Expand Up @@ -174,20 +171,6 @@ async function unstable_prepareDebuggerShell({
throw new Error(`Unknown flavor: ${flavor}`);
}

const [binaryPath, baseArgs] = getShellBinaryAndArgs(
flavor,
prebuiltBinaryPath,
);
const {code, stderr} = await spawnAndGetStderr(binaryPath, [
...baseArgs,
'--version',
]);
if (code !== 0) {
return {
code: 'unexpected_error',
verboseInfo: stderr,
};
}
return {code: 'success'};
} catch (e) {
return {
Expand Down
2 changes: 1 addition & 1 deletion packages/debugger-shell/src/node/private/LaunchUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ async function prepareDebuggerShellFromDotSlashFile(
};
}

export {spawnAndGetStderr, prepareDebuggerShellFromDotSlashFile};
export {prepareDebuggerShellFromDotSlashFile};
Loading