Skip to content

Commit 584becc

Browse files
committed
Patch scraped GraphQL schema to mark some fields as non-null
1 parent 5924349 commit 584becc

25 files changed

+12210
-138
lines changed

workspaces/eslint-config/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"dependencies": {
2424
"@stylistic/eslint-plugin-js": "2.9.0",
2525
"@stylistic/eslint-plugin-ts": "2.9.0",
26-
"@typescript-eslint/eslint-plugin": "8.5.0",
27-
"@typescript-eslint/parser": "8.5.0",
26+
"@typescript-eslint/eslint-plugin": "8.8.0",
27+
"@typescript-eslint/parser": "8.8.0",
2828
"eslint-import-resolver-typescript": "3.6.3",
2929
"eslint-plugin-import": "2.31.0",
3030
"eslint-plugin-import-x": "4.3.1",

workspaces/generate-health-report/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const COMMANDS = [
1414
"yarn workspace @code-chronicles/adventure-pack build-chrome-extension",
1515
"yarn workspace @code-chronicles/fetch-leetcode-problem-list build",
1616
"yarn workspace @code-chronicles/fetch-recent-accepted-leetcode-submissions build",
17+
"yarn workspace @code-chronicles/leetcode-api codegen",
1718
"yarn workspace @code-chronicles/leetcode-zen-mode build",
1819
"yarn workspace @code-chronicles/post-leetcode-potd-to-discord build",
1920
];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
schema.graphql linguist-generated
1+
schema-*.graphql linguist-generated
22
*.generated.ts linguist-generated

workspaces/leetcode-api/graphql-codegen.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import type { CodegenConfig } from "@graphql-codegen/cli";
22
import type { Types as GraphQLCodegen } from "@graphql-codegen/plugin-helpers";
33
import immutableUpdate from "immutability-helper";
44

5+
import { SCHEMA_PATCHED_FILE } from "./src/scripts/scrape-graphql-schema/constants.ts";
6+
57
const commonTypeScriptPluginConfig: GraphQLCodegen.PluginConfig = {
68
arrayInputCoercion: false,
79
enumsAsTypes: true,
@@ -45,7 +47,7 @@ const nearOperationFilePreset: GraphQLCodegen.ConfiguredOutput = {
4547
};
4648

4749
const config: CodegenConfig = {
48-
schema: "schema.graphql",
50+
schema: SCHEMA_PATCHED_FILE,
4951
documents: ["src/api/**/query.graphql"],
5052
overwrite: true,
5153
emitLegacyCommonJSImports: false,

0 commit comments

Comments
 (0)