Skip to content

Commit 34b5626

Browse files
authored
LeetCode GraphQL: merge scrape and generate scripts (#372)
They were previously separate because scraping was rather slow, and I also thought it might fail somewhere in the middle and we'd need to resume from partial results. But it seems to be working pretty well and it's fast enough that I think it's ok to combine them.
1 parent 57fd54f commit 34b5626

17 files changed

+4423
-1371
lines changed

workspaces/leetcode-api/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
"main": "src/main.ts",
1616
"scripts": {
1717
"format": "prettier --color --write .",
18-
"generate-graphql-schema": "ts-node src/scripts/generateGraphQLSchema.ts",
1918
"lint": "eslint --color --max-warnings=0 .",
20-
"scrape-graphql-types": "ts-node src/scripts/scrapeGraphQLTypes.ts",
19+
"scrape-graphql-schema": "ts-node src/scripts/scrapeGraphQLSchema.ts",
2120
"typecheck": "tsc --pretty --project .",
2221
"validate-graphql-schema": "ts-node src/scripts/validateGraphQLSchema.ts"
2322
},

0 commit comments

Comments
 (0)