|
|
@@ -1,3 +1,4 @@ |
|
|
|
const path = require('path') |
|
|
|
const RESOLVE = require('./resolve.json') |
|
|
|
const loadBrands = require('./loadBrands') |
|
|
|
const getLibraryColor = require('./getLibraryColor') |
|
|
@@ -27,6 +28,7 @@ module.exports = async ({ |
|
|
|
label: repo, |
|
|
|
style, |
|
|
|
labelColor, |
|
|
|
url: new URL(path.join(repo, 'raw', 'branch', process.env.MAIN_BRANCH, 'package.json'), process.env.REPO_BASE_URL), |
|
|
|
}).toString() |
|
|
|
return badgeUrl |
|
|
|
case 'dependency': |
|
|
@@ -42,7 +44,8 @@ module.exports = async ({ |
|
|
|
logo: libraryInfo.name, |
|
|
|
logoColor, |
|
|
|
style, |
|
|
|
}) |
|
|
|
url: new URL(path.join(repo, 'raw', 'branch', process.env.MAIN_BRANCH, 'package.json'), process.env.REPO_BASE_URL), |
|
|
|
}).toString() |
|
|
|
return badgeUrl |
|
|
|
default: |
|
|
|
break |
|
|
|