Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
Fix startup of gdb adapter
Browse files Browse the repository at this point in the history
Summary: After moving things around, the gdb adapter no longer starts because the node path is wrong in the release version. Patch the path.

Reviewed By: drmathochist

Differential Revision: D7910737

fbshipit-source-id: fdf508ade40aa83e44e1f9d6b5441e943580e64b
  • Loading branch information
velocityboy committed May 9, 2018
1 parent 516c0fb commit 792b774
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
rulesdir/no-commonjs: 0,
*/

const path = require('path');
const modules = path.join(
path.dirname(require.main.filename || ''),
'..',
'..',
);
require.main.paths.push(modules);

// eslint-disable-next-line rulesdir/modules-dependencies
const {__DEV__} = require('nuclide-node-transpiler/lib/env');
if (__DEV__) {
Expand Down

0 comments on commit 792b774

Please sign in to comment.