Skip to content

Commit 7ef7f2f

Browse files
authored
fix(formatPkg): cleaned main can be an array (#395)
1 parent d706694 commit 7ef7f2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/formatPkg.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ export default function formatPkg(pkg) {
1515
if (!cleaned.name) {
1616
return undefined;
1717
}
18+
if (Array.isArray(cleaned.main)) {
19+
// https://github.com/angular-ui/bootstrap-bower/issues/52
20+
cleaned.main = cleaned.main[0];
21+
}
1822

1923
const lastPublisher = cleaned.lastPublisher
2024
? formatUser(cleaned.lastPublisher)

0 commit comments

Comments
 (0)