Skip to content

Commit

Permalink
feat(badges): included the logo in the generated npm badge
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Dec 16, 2021
1 parent fd00399 commit 572a8a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/scaffolder/project-type/package/badges-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import defineBadges from './badges';
suite('badges for package project-type', () => {
const packageName = any.word();
const npmBadgeDetails = {
img: `https://img.shields.io/npm/v/${packageName}.svg`,
img: `https://img.shields.io/npm/v/${packageName}?logo=npm`,
text: 'npm',
link: `https://www.npmjs.com/package/${packageName}`
};
Expand Down
2 changes: 1 addition & 1 deletion src/scaffolder/project-type/package/badges.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default function (packageName, visibility) {
consumer: {
...'Public' === visibility && {
npm: {
img: `https://img.shields.io/npm/v/${packageName}.svg`,
img: `https://img.shields.io/npm/v/${packageName}?logo=npm`,
text: 'npm',
link: `https://www.npmjs.com/package/${packageName}`
}
Expand Down

0 comments on commit 572a8a4

Please sign in to comment.