Skip to content

Commit

Permalink
fix(tsdocs): use unscoped package name as the key to locate the url
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondfeng committed Jan 24, 2020
1 parent d69a068 commit 9de1133
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/tsdocs/src/update-api-md-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
DEFAULT_APIDOCS_EXTRACTION_PATH,
DEFAULT_APIDOCS_GENERATION_PATH,
getPackagesWithTsDocs,
getUnscopedPackageName,
LernaPackage,
} from './helper';

Expand Down Expand Up @@ -40,7 +41,7 @@ export async function updateApiDocs(options: ApiDocsOptions = {}) {
const packagesByName: Record<string, LernaPackage> = {};

for (const pkg of packages) {
packagesByName[pkg.name] = pkg;
packagesByName[getUnscopedPackageName(pkg.name)] = pkg;
}

options.lernaPackages = packagesByName;
Expand Down

0 comments on commit 9de1133

Please sign in to comment.