@wocker/ws
Version:
Docker workspace for web projects
21 lines (20 loc) • 618 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProtoService = void 0;
const protobufjs_1 = require("protobufjs");
const env_1 = require("../../../env");
class ProtoService {
get root() {
if (!this._root) {
this._root = (0, protobufjs_1.loadSync)([
`${env_1.ROOT_DIR}/fixtures/proto/solver/pb/ops.proto`,
`${env_1.ROOT_DIR}/fixtures/proto/buildkit.proto`
]);
}
return this._root;
}
lookupType(path) {
return this.root.lookupType(path);
}
}
exports.ProtoService = ProtoService;