File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ jobs:
170170 with :
171171 name : audit-reports
172172 - name : Render servers table
173- run : yarn tsx scripts/render-servers-table.ts
173+ run : node scripts/render-servers-table.mjs
174174 - name : Diff
175175 run : git diff --minimal
176176 - name : Commit
Original file line number Diff line number Diff line change @@ -23,12 +23,14 @@ main().catch((err) => {
2323 process . exit ( 1 ) ;
2424} ) ;
2525
26- async function renderTable ( implsDir : string ) {
26+ /** @param {string } implsDir */
27+ async function renderTable ( implsDir ) {
2728 let out = `<!-- prettier-ignore-start -->
2829| Name | Audit |
2930|------|-------|` ;
3031 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 (
3234 (
3335 await fs . readFile ( path . join ( implsDir , implDir , 'report.json' ) )
3436 ) . toString ( ) ,
@@ -37,7 +39,8 @@ async function renderTable(implsDir: string) {
3739 continue ;
3840 }
3941
40- const pkg : Record < string , unknown > = JSON . parse (
42+ /** @type {Record<string, unknown> } */
43+ const pkg = JSON . parse (
4144 (
4245 await fs . readFile ( path . join ( implsDir , implDir , 'package.json' ) )
4346 ) . toString ( ) ,
You can’t perform that action at this time.
0 commit comments