Skip to content

Commit

Permalink
Fix README generator
Browse files Browse the repository at this point in the history
  • Loading branch information
kairusds committed Oct 6, 2023
1 parent 480cc7d commit 7c2ec05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gen-readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function generatePackage(package_name, data, versions){
data.description,
data.excluded,
options.length ? options.join(", ") : null,
versions,
data.dependencies.length ? data.dependencies.map(e => `\`${e}\``).join(", ") : "`none`"
versions// ,
// data.dependencies.length ? data.dependencies.map(e => `\`${e}\``).join(", ") : "`none`"
]);
}

Expand All @@ -40,7 +40,7 @@ function generatePackages(){
if(patch.compatiblePackages?.length){
patch.compatiblePackages.forEach(pkg => {
if(packages[pkg.name] === undefined) packages[pkg.name] = [];
generatePackage(pkg.name, patch, pkg.versions.length ? pkg.versions.map(e => `\`${e}\``).join(", ") : "`all`");
generatePackage(pkg.name, patch, pkg.versions?.map(e => `\`${e}\``).join(", ") ?? "`all`");
});
}else{
generatePackage("all", patch, "`all`");
Expand All @@ -64,7 +64,7 @@ The custom icons are located in the \`branding\` directory.
for(let patch of packages[pkg]){
output.push(`\`${patch[0]}\`: ${patch[1]}\n\n`);
output.push(`Target version: ${patch[4]}\n\n`);
output.push(`Dependencies: ${patch[5]}\n\n`);
// output.push(`Dependencies: ${patch[5]}\n\n`);
output.push(`Excluded by default: \`${patch[2] ? "yes" : "no"}\`\n\n`);

if(patch[3] != null){
Expand Down

0 comments on commit 7c2ec05

Please sign in to comment.