Skip to content

Commit

Permalink
fix: resolve type any
Browse files Browse the repository at this point in the history
  • Loading branch information
devjiwonchoi committed Nov 18, 2023
1 parent 80cf0ae commit fe0e2b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/build-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,11 @@ async function buildConfig(
})
// CLI output option is always prioritized
if (file) {
const fallbackFormat = (outputExports[0] as any)?.format
const firstOutput = outputExports[0] as {
format: 'cjs' | 'esm'
file: string
}
const fallbackFormat = firstOutput?.format
outputConfigs = [
buildOutputConfigs(
pkg,
Expand Down

0 comments on commit fe0e2b2

Please sign in to comment.