Skip to content

Commit 136b07f

Browse files
Trivo25dannywillems
authored andcommitted
(florian) await prettier.format (new in 3.x)
1 parent 4a35f29 commit 136b07f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/build/js-layout-to-types-v2.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ for (const typeName of depOrderTypeNames) {
341341
out += `\
342342
\ const Types: {[key: string]: BindingsType<any>} = {${Object.keys(jsTypes).join(', ')}};\n`;
343343

344-
const prettyOut = prettier.format(out, {
344+
const prettyOut = await prettier.format(out, {
345345
parser: 'typescript',
346346
...prettierRc,
347347
});

src/build/js-layout-to-types.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ ${output}`;
216216

217217
async function writeTsFile(content, relPath) {
218218
let absPath = path.resolve(selfPath, relPath);
219-
content = prettier.format(content, {
219+
content = await prettier.format(content, {
220220
filepath: absPath,
221221
...prettierRc,
222222
});

0 commit comments

Comments
 (0)