Skip to content

Commit 49f2d40

Browse files
committed
fix(generator): await for prettier format
1 parent 38be9f2 commit 49f2d40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/generator/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ program
201201
})
202202
),
203203
});
204-
fs.writeFileSync(`${output}/index.ts`, prettier.format(typescriptContent, { parser: "babel-ts" }));
204+
const formatted = await prettier.format(typescriptContent, { parser: "babel-ts" });
205+
fs.writeFileSync(`${output}/index.ts`, formatted);
205206
}
206207
});
207208

0 commit comments

Comments
 (0)