Skip to content

Commit 6ab1123

Browse files
committed
Fix missed edge case for #2212
1 parent 02bbf2f commit 6ab1123

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/lib/utils/entry-point.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,10 @@ function getEntryPointsForLegacyPackages(
445445
results.push({
446446
displayName: typedocPackageConfig?.displayName ?? packageName,
447447
version: includeVersion
448-
? (packageJson["version"] as string | undefined)
448+
? (packageJson["version"] as string | undefined)?.replace(
449+
/^v/,
450+
""
451+
)
449452
: void 0,
450453
readmeFile: discoverReadmeFile(
451454
logger,

src/lib/utils/options/options.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@ export class Options {
438438
/**
439439
* Binds an option to the given property. Does not register the option.
440440
*
441+
* Note: This is a legacy experimental decorator, and will not work with TS 5.0 decorators
442+
*
441443
* @since v0.16.3
442444
*/
443445
export function BindOption<K extends keyof TypeDocOptionMap>(
@@ -451,6 +453,9 @@ export function BindOption<K extends keyof TypeDocOptionMap>(
451453

452454
/**
453455
* Binds an option to the given property. Does not register the option.
456+
*
457+
* Note: This is a legacy experimental decorator, and will not work with TS 5.0 decorators
458+
*
454459
* @since v0.16.3
455460
*
456461
* @privateRemarks

0 commit comments

Comments
 (0)