From cd2f68e243be3d0a6e3d1895f37a214191fe6a12 Mon Sep 17 00:00:00 2001 From: Spring Raindrop Date: Tue, 26 Dec 2023 00:26:00 +0000 Subject: [PATCH] Await Prettier call in `generateProps` --- scripts/generateProps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generateProps.js b/scripts/generateProps.js index f21235c..079a37c 100644 --- a/scripts/generateProps.js +++ b/scripts/generateProps.js @@ -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);