Skip to content

Commit

Permalink
fix(validate/webidl): upgrade reffy (#155)
Browse files Browse the repository at this point in the history
Co-authored-by: Francois Daoust <fd@tidoust.net>
  • Loading branch information
dontcallmedom and tidoust authored Apr 11, 2024
1 parent f3998bb commit c6d5322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validate-webidl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (module === require.main) {

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

const fileurl = new URL(file, `file://${dest}/`).href;
Expand All @@ -24,7 +24,7 @@ export default async function main({ dest, file }: Input) {
);
await rm(".cache", { recursive: true, force: true });

const idl = results[0]?.idl?.idl;
const idl = results[0]?.idl;
if (!idl) {
exit("No Web IDL found in spec, skipped validation", 0);
}
Expand Down

0 comments on commit c6d5322

Please sign in to comment.