Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Pass export-format cli option to Builder config
Browse files Browse the repository at this point in the history
  • Loading branch information
calirvine committed Oct 27, 2023
1 parent a29643a commit 7aca49b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-mails-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'graphql-typescript-definitions': patch
---

Pass export-format CLI option to builder Config allowing cli users to change the type of generated Documents
1 change: 1 addition & 0 deletions packages/graphql-typescript-definitions/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const builder = new Builder({
addTypename: argv['add-typename'],
enumFormat: argv['enum-format'],
customScalars: normalizeCustomScalars(argv['custom-scalars']),
exportFormat: argv['export-format'],
});

function normalizeCustomScalars(customScalarOption: string) {
Expand Down

0 comments on commit 7aca49b

Please sign in to comment.