Skip to content

Commit

Permalink
Reduce schema size (#9)
Browse files Browse the repository at this point in the history
Here reduced schema size from by enablinng codegen options
to not include unused data in types.
Though it still generates every enum.

dist/__generated__/index.d.ts: 1,155,205b -> 260,449b
dist/__generated__/index.js: 174,603b -> 6,209b
  • Loading branch information
TrySound committed Jun 5, 2023
1 parent dcc638e commit b3739ec
Show file tree
Hide file tree
Showing 3 changed files with 4,339 additions and 18,993 deletions.
4 changes: 4 additions & 0 deletions codegen.yml
Expand Up @@ -5,6 +5,10 @@ schema:
Authorization: Bearer ${GITHUB_INTROSPECTION_TOKEN}
generates:
./src/__generated__/index.ts:
config:
preResolveTypes: true
onlyOperationTypes: true
enumsAsTypes: true
plugins:
- typescript
- typescript-operations
Expand Down
1 change: 1 addition & 0 deletions package.json
@@ -1,4 +1,5 @@
{
"packageManager": "yarn@1.22.19",
"name": "@rena.to/github-blog",
"version": "0.4.2",
"description": "Turn your github issues in CMS for your blog",
Expand Down

0 comments on commit b3739ec

Please sign in to comment.