Skip to content

Commit

Permalink
fix: main should default to existing field when preesnt
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleytodd committed Jan 10, 2024
1 parent 6e1df67 commit 6fd766d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ async function readPackageJson (options, { log } = {}) {
version: pkg.version,
name: pkg.name,
type: pkg.type,
main: pkg.main,
author,
description: pkg.description,
repository: repo,
Expand Down

0 comments on commit 6fd766d

Please sign in to comment.