fixed bazel pathing
'use strict';
+const path = require('path')
const cmd = require('./command');
const error = require('./error');
const logging = require('./logging');
@@ -53,7 +54,8 @@ function requireAtom(module, bazelTarget) {
} catch (ex) {
try {
const file = bazelTarget.slice(2).replace(':', '/');
- return require(`../../../../bazel-genfiles/${file}`);
+ console.log(`../../../bazel-bin/${file}`)
+ return require(path.resolve(`../../../bazel-bin/${file}`));
} catch (ex2) {
console.log(ex2);
throw Error(
