Skip to content

Commit

Permalink
fix: update to not change tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
JackieJoo committed Nov 6, 2024
1 parent 7210cf6 commit 37b53d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/dex/bebop/validators.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import joi from 'joi';
import protobuf from 'protobufjs';
import JSONDescriptor from './bebop.json';

const levelValidator = joi.array().items(joi.number()).length(2);

Expand Down Expand Up @@ -31,8 +32,8 @@ export const blacklistResponseValidator = joi.object({

// Original .proto def
// const root = protobuf.loadSync(__dirname + '/bebop.proto');
// Use .json to not include .proto files
// Use .json to not change build step to include .proto files
// console.log(JSON.stringify(root.toJSON(), null, 4));

const root = protobuf.loadSync(__dirname + '/bebop.json');
const root = protobuf.Root.fromJSON(JSONDescriptor);
export const BebopPricingUpdate = root.lookupType('bebop.BebopPricingUpdate');
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"typeRoots": ["node_modules/@types"],
"esModuleInterop": true
},
"include": ["src/**/*", "src/dex/bebop/bebop.json"],
"include": ["src/**/*"],
"exclude": ["**/*.test.ts"]
}

0 comments on commit 37b53d4

Please sign in to comment.