Skip to content

Commit

Permalink
refactor(typegen): removed console log if banner is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
pas-mike committed Feb 15, 2024
1 parent 7425620 commit 9834f68
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/typegen/src/typegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ export async function main() {
opts.disableOptionalPathParameters = argv.disableOptionalPathParameters ?? true;

const [imports, schemaTypes, operationTypings, banner] = await generateTypesForDocument(argv._[0] as string, opts);
console.log(banner, '\n');

if (banner?.length) {
console.log(banner, '\n');
}

console.log(imports, '\n');
console.log(schemaTypes);
console.log(operationTypings);
Expand Down

0 comments on commit 9834f68

Please sign in to comment.