diff --git a/.changeset/silver-mails-fold.md b/.changeset/silver-mails-fold.md new file mode 100644 index 0000000000..0960e6854b --- /dev/null +++ b/.changeset/silver-mails-fold.md @@ -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 diff --git a/packages/graphql-typescript-definitions/src/cli.ts b/packages/graphql-typescript-definitions/src/cli.ts index 7563f196a2..285c71aee2 100644 --- a/packages/graphql-typescript-definitions/src/cli.ts +++ b/packages/graphql-typescript-definitions/src/cli.ts @@ -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) {