Skip to content

Commit

Permalink
feat: use types/typings/module first to use .d.ts whenever possible
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jun 30, 2019
1 parent b11ede3 commit 74de3d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ function resolveFile(source, file, config) {
};
}
function packageFilter(pkg) {
if (pkg['jsnext:main']) {
pkg['main'] = pkg['jsnext:main'];
}
pkg.main =
pkg.types || pkg.typings || pkg.module || pkg['jsnext:main'] || pkg.main;
return pkg;
}

Expand Down

0 comments on commit 74de3d9

Please sign in to comment.