Skip to content

Commit

Permalink
fix: remove main ./index too
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed May 28, 2019
1 parent e1ec34f commit 73fb180
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cleanup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ export async function cleanup(context, stagingDir) {

switch (pkg.main) {
case "index":
case "./index":
case "index.js":
case "./index.js":
case "":
delete pkg.main;
}
Expand Down

0 comments on commit 73fb180

Please sign in to comment.