File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ jobs:
170
170
with :
171
171
name : audit-reports
172
172
- name : Render servers table
173
- run : yarn tsx scripts/render-servers-table.ts
173
+ run : node scripts/render-servers-table.mjs
174
174
- name : Diff
175
175
run : git diff --minimal
176
176
- name : Commit
Original file line number Diff line number Diff line change @@ -23,12 +23,14 @@ main().catch((err) => {
23
23
process . exit ( 1 ) ;
24
24
} ) ;
25
25
26
- async function renderTable ( implsDir : string ) {
26
+ /** @param {string } implsDir */
27
+ async function renderTable ( implsDir ) {
27
28
let out = `<!-- prettier-ignore-start -->
28
29
| Name | Audit |
29
30
|------|-------|` ;
30
31
for ( const implDir of ( await fs . readdir ( implsDir ) ) . sort ( ) ) {
31
- const report : { error : number } = JSON . parse (
32
+ /** @type {{ error: number } } */
33
+ const report = JSON . parse (
32
34
(
33
35
await fs . readFile ( path . join ( implsDir , implDir , 'report.json' ) )
34
36
) . toString ( ) ,
@@ -37,7 +39,8 @@ async function renderTable(implsDir: string) {
37
39
continue ;
38
40
}
39
41
40
- const pkg : Record < string , unknown > = JSON . parse (
42
+ /** @type {Record<string, unknown> } */
43
+ const pkg = JSON . parse (
41
44
(
42
45
await fs . readFile ( path . join ( implsDir , implDir , 'package.json' ) )
43
46
) . toString ( ) ,
You can’t perform that action at this time.
0 commit comments