Skip to content

Commit

Permalink
Use the proper output filename when invoking prettier (#2071)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvestergaard authored and dotansimha committed Jul 3, 2019
1 parent 25944af commit 0422e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphql-codegen-cli/src/codegen.ts
Expand Up @@ -242,7 +242,7 @@ export async function executeCodegen(config: Types.Config): Promise<Types.FileOu
const output = await codegen(outputArgs);
result.push({
filename: outputArgs.filename,
content: await prettify(filename, output),
content: await prettify(outputArgs.filename, output),
});
}
}, filename),
Expand Down

0 comments on commit 0422e5c

Please sign in to comment.