Skip to content

Commit

Permalink
fix(web): recent packages shall respect excludedFromList property
Browse files Browse the repository at this point in the history
  • Loading branch information
favoyang committed Mar 10, 2020
1 parent 6031f42 commit 48856d9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/.vuepress/plugins/openupm-packages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,9 @@ module.exports = function(options, context) {
);
const backers = yaml.safeLoad(await readFile(backerPath, "utf8"));
// Recent packages
const recentPackages = _.orderBy(
packages,
["createdAt"],
["desc"]
).slice(0, 10);
const recentPackages = _.orderBy(packages, ["createdAt"], ["desc"])
.filter(x => !x.excludedFromList)
.slice(0, 10);
// eslint-disable-next-line require-atomic-updates
pluginData.data = {
backers,
Expand Down

0 comments on commit 48856d9

Please sign in to comment.