Skip to content

Commit

Permalink
Await Prettier call in generateProps
Browse files Browse the repository at this point in the history
  • Loading branch information
cutiful committed Dec 26, 2023
1 parent ddcc5e4 commit cd2f68e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generateProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ const source = `// THIS FILE WAS GENERATED AUTOMATICALLY, DO NOT EDIT BY HAND
const nodes = ${JSON.stringify(result, null, 2)};
export default nodes;`;
const formatted = prettier.format(source, { parser: "babel" });
const formatted = await prettier.format(source, { parser: "babel" });

fs.writeFile(outputPath, formatted);

0 comments on commit cd2f68e

Please sign in to comment.