Skip to content

Commit

Permalink
fix(formatPkg): cleaned main can be an array (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel authored Aug 10, 2019
1 parent d706694 commit 7ef7f2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/formatPkg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7ef7f2f

Please sign in to comment.