We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96c12a6 commit 5731ca6Copy full SHA for 5731ca6
1 file changed
src/github/codegen.ts
@@ -1,4 +1,5 @@
1
import fs from "node:fs";
2
+import path from "node:path";
3
import type { CodegenConfig } from "@graphql-codegen/cli";
4
5
const schemaPath = "node_modules/.cache/github-graphql-schema.graphql";
@@ -12,6 +13,7 @@ if (process.env.CI || !fs.existsSync(schemaPath)) {
12
13
`Failed to fetch GitHub GraphQL schema: ${result.status} ${result.statusText}`,
14
);
15
}
16
+ fs.mkdirSync(path.dirname(schemaPath), { recursive: true });
17
fs.writeFileSync(schemaPath, await result.text());
18
19
0 commit comments