Skip to content

Commit ca03763

Browse files
committed
fix: build:deps command
1 parent caa3ec4 commit ca03763

File tree

3 files changed

+2905
-3608
lines changed

3 files changed

+2905
-3608
lines changed

bin/post-graphql-gen.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import fs from "fs";
2+
3+
const indexerPath = "src/utils/api/indexer/generated.ts";
4+
5+
fs.readFile(indexerPath, "utf8", (err: Error, data: string) => {
6+
if (err) {
7+
return console.log(err);
8+
}
9+
// Suppress unused variable error from tsc in generated file
10+
const res = data.replace(/, QueryFunctionContext /g, "");
11+
12+
fs.writeFile(indexerPath, res, "utf8", (err: Error) => {
13+
if (err) return console.log(err);
14+
});
15+
});

0 commit comments

Comments
 (0)