File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { readFile } from "fs/promises" ;
2
- const inputFolder = new URL ( "../../inputfiles/" , import . meta. url ) ;
2
+ const inputFile = new URL ( "../../inputfiles/mdn/mdnData.json " , import . meta. url ) ;
3
3
4
4
interface MetaDataEntry {
5
5
mdn_url : string ;
@@ -66,7 +66,7 @@ export async function generateDescriptions(): Promise<{
66
66
interfaces : { interface : Record < string , any > } ;
67
67
} > {
68
68
const results : Record < string , any > = { } ;
69
- const content = await readFile ( new URL ( "mdn/mdnData.json" , inputFolder ) , "utf8" ) ;
69
+ const content = await readFile ( new URL ( inputFile ) , "utf8" ) ;
70
70
const metadata : MetaData = JSON . parse ( content ) ;
71
71
// metadata is an array of objects, each with at least: slug, page-type, summary
72
72
for ( const entry of metadata . data ) {
You can’t perform that action at this time.
0 commit comments