Skip to content

Commit

Permalink
Merge pull request #1677 from itsjamie/add-typedocMain
Browse files Browse the repository at this point in the history
Add support for a `typedocMain` field in package.json.
  • Loading branch information
Gerrit0 committed Sep 10, 2021
2 parents 68d0028 + fe235fd commit e8e6244
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/utils/package-manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ export function getTsEntryPointForPackage(
let packageMain = "index.js"; // The default, per the npm docs.
let packageTypes = null;
if (
hasOwnProperty(packageJson, "typedocMain") &&
typeof packageJson.typedocMain == "string"
) {
packageMain = packageJson.typedocMain
} else if (
hasOwnProperty(packageJson, "main") &&
typeof packageJson.main == "string"
) {
Expand Down

0 comments on commit e8e6244

Please sign in to comment.