Skip to content

Commit

Permalink
fix: only produce type if defined in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 15, 2021
1 parent 241f8b7 commit c186038
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/build/rollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ export function getRollupConfig(
]
}

const typeEntrypoint = pkg.resolveEntrypoint(
pkgConfig.types || pkgConfig.typings
)
const typeEntrypoint =
(pkgConfig.types || pkgConfig.typings) &&
pkg.resolveEntrypoint(pkgConfig.types || pkgConfig.typings)
const entries = exports.map(ex => pkg.resolveEntrypoint(ex))

return [
Expand Down

0 comments on commit c186038

Please sign in to comment.