Skip to content

Commit 6fd766d

Browse files
committed
fix: main should default to existing field when preesnt
1 parent 6e1df67 commit 6fd766d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ async function readPackageJson (options, { log } = {}) {
271271
version: pkg.version,
272272
name: pkg.name,
273273
type: pkg.type,
274+
main: pkg.main,
274275
author,
275276
description: pkg.description,
276277
repository: repo,

0 commit comments

Comments
 (0)