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() {
34
34
const diffFile = path . join ( docsDiffDir , sourceFile + ".md" ) ;
35
35
36
36
const originalLib = await readFile ( path . join ( tsLibDir , sourceFile ) , "utf8" ) ;
37
- const formattedOriginalLib = prettier . format ( originalLib , {
37
+ const formattedOriginalLib = await prettier . format ( originalLib , {
38
38
parser : "typescript" ,
39
39
} ) ;
40
- const formattedBetterLib = prettier . format ( betterLib , {
40
+ const formattedBetterLib = await prettier . format ( betterLib , {
41
41
parser : "typescript" ,
42
42
} ) ;
43
43
if ( formattedOriginalLib === formattedBetterLib ) {
@@ -47,7 +47,7 @@ async function main() {
47
47
const diffPatch = createPatch (
48
48
sourceFile ,
49
49
formattedOriginalLib ,
50
- formattedBetterLib
50
+ formattedBetterLib ,
51
51
) ;
52
52
53
53
const md = `# ${ sourceFile } Diffs
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ async function main() {
28
28
if ( result === undefined ) {
29
29
continue ;
30
30
}
31
- result = prettier . format ( result , {
31
+ result = await prettier . format ( result , {
32
32
parser : "typescript" ,
33
33
} ) ;
34
34
You can’t perform that action at this time.
0 commit comments