diff --git a/src/formatPkg.js b/src/formatPkg.js index 5a16ffe66..5e2ddfb3b 100644 --- a/src/formatPkg.js +++ b/src/formatPkg.js @@ -15,6 +15,10 @@ export default function formatPkg(pkg) { if (!cleaned.name) { return undefined; } + if (Array.isArray(cleaned.main)) { + // https://github.com/angular-ui/bootstrap-bower/issues/52 + cleaned.main = cleaned.main[0]; + } const lastPublisher = cleaned.lastPublisher ? formatUser(cleaned.lastPublisher)