File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ async function main() {
3434 const diffFile = path . join ( docsDiffDir , sourceFile + ".md" ) ;
3535
3636 const originalLib = await readFile ( path . join ( tsLibDir , sourceFile ) , "utf8" ) ;
37- const formattedOriginalLib = prettier . format ( originalLib , {
37+ const formattedOriginalLib = await prettier . format ( originalLib , {
3838 parser : "typescript" ,
3939 } ) ;
40- const formattedBetterLib = prettier . format ( betterLib , {
40+ const formattedBetterLib = await prettier . format ( betterLib , {
4141 parser : "typescript" ,
4242 } ) ;
4343 if ( formattedOriginalLib === formattedBetterLib ) {
@@ -47,7 +47,7 @@ async function main() {
4747 const diffPatch = createPatch (
4848 sourceFile ,
4949 formattedOriginalLib ,
50- formattedBetterLib
50+ formattedBetterLib ,
5151 ) ;
5252
5353 const md = `# ${ sourceFile } Diffs
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ async function main() {
2828 if ( result === undefined ) {
2929 continue ;
3030 }
31- result = prettier . format ( result , {
31+ result = await prettier . format ( result , {
3232 parser : "typescript" ,
3333 } ) ;
3434
You can’t perform that action at this time.
0 commit comments