Skip to content

Commit 6c1718d

Browse files
committed
-
1 parent 3b35959 commit 6c1718d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/build/mdn-comments.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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);
33

44
interface MetaDataEntry {
55
mdn_url: string;
@@ -66,7 +66,7 @@ export async function generateDescriptions(): Promise<{
6666
interfaces: { interface: Record<string, any> };
6767
}> {
6868
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");
7070
const metadata: MetaData = JSON.parse(content);
7171
// metadata is an array of objects, each with at least: slug, page-type, summary
7272
for (const entry of metadata.data) {

0 commit comments

Comments
 (0)