Skip to content

Commit cc52c69

Browse files
Mark streams IDL as local
1 parent 8176a9d commit cc52c69

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

inputfiles/idlSources.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@
212212
},
213213
{
214214
"url": "https://streams.spec.whatwg.org/",
215-
"title": "Streams"
215+
"title": "Streams",
216+
"local": true
216217
},
217218
{
218219
"url": "https://svgwg.org/svg2-draft/types.html",

src/fetcher.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ interface IDLSource {
99
url: string;
1010
title: string;
1111
deprecated?: boolean;
12+
local?: boolean;
1213
}
1314

1415
const idlSelector = [
@@ -23,6 +24,9 @@ async function fetchIDLs(filter: string[]) {
2324
const idlSources = (require("../inputfiles/idlSources.json") as IDLSource[])
2425
.filter(source => !filter.length || filter.includes(source.title));
2526
await Promise.all(idlSources.map(async source => {
27+
if (source.local) {
28+
return;
29+
}
2630
const { idl, comments } = await fetchIDL(source);
2731
fs.writeFileSync(path.join(__dirname, `../inputfiles/idl/${source.title}.widl`), idl + '\n');
2832
if (comments) {

0 commit comments

Comments
 (0)