Skip to content

Commit 01e49f4

Browse files
committed
fix(badges): respect npmVersion and npmDownloads
1 parent 79cb700 commit 01e49f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/generators/badges.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ export const badges = defineGenerator({
8787

8888
const badges = {
8989
npmVersion: {
90-
enabled: ctx.name,
90+
enabled: ctx.name && args.npmVersion !== false,
9191
...badgeTypes.npmVersion,
9292
},
9393
npmDownloads: {
94-
enabled: ctx.name,
94+
enabled: ctx.name && args.npmDownloads !== false,
9595
...badgeTypes.npmDownloads,
9696
},
9797
bundlephobia: {

0 commit comments

Comments
 (0)