Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Sep 13, 2024
1 parent 5cd63d1 commit 060ba38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/get-prereqs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,17 @@ export const getPrereqs = async ({
throw new Error(`Don't know how to parse ${source}`);
}

const reqs = await parser(content);

const filteredPrereqs = filterPrereqs({
prereqs: await parser(content),
prereqs: reqs,
phases: new Set(phases),
relationships: new Set(relationships),
features: new Set(features),
}).toSorted(sortByPrereq);

console.log({reqs, filteredPrereqs});

const prereqs = {};
for (const {prereq, version} of filteredPrereqs) {
if (prereqs[prereq]) {
Expand Down

0 comments on commit 060ba38

Please sign in to comment.