Skip to content

Commit

Permalink
fix(validate/webidl): use crawlSpecs API (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
tidoust authored Oct 12, 2021
1 parent 0f52c65 commit b1133d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/validate-webidl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ if (module === require.main) {

export default async function main({ dest, file }: Input) {
console.log(`Validating Web IDL defined in ${file}...`);
await install("reffy");
const { crawlList } = require("reffy/src/cli/crawl-specs");
await install("reffy@4");
const { crawlSpecs } = require("reffy");

const fileurl = new URL(file, `file://${dest}/`).href;
const results = await crawlList(
const results = await crawlSpecs(
[{ url: fileurl, nightly: { url: fileurl } }],
{ modules: ["idl"] },
);
Expand Down

0 comments on commit b1133d1

Please sign in to comment.