Skip to content

Commit

Permalink
fix(badges): respect npmVersion and npmDownloads
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 20, 2024
1 parent 79cb700 commit 01e49f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generators/badges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ export const badges = defineGenerator({

const badges = {
npmVersion: {
enabled: ctx.name,
enabled: ctx.name && args.npmVersion !== false,
...badgeTypes.npmVersion,
},
npmDownloads: {
enabled: ctx.name,
enabled: ctx.name && args.npmDownloads !== false,
...badgeTypes.npmDownloads,
},
bundlephobia: {
Expand Down

0 comments on commit 01e49f4

Please sign in to comment.