Skip to content

Commit ba9c5be

Browse files
committed
Only set version if includeVersion is specified
Resolves #2010
1 parent d4d3b8f commit ba9c5be

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
If using `"entryPointStrategy": "expand"`, this change may result in new pages being added to your documentation.
77
If this is not desired, you can use the `exclude` option to filter them out.
88
- Fixed missing comments on callable variable-functions constructed indirectly, #2008.
9+
- Packages mode will now respect the `--includeVersion` flag, #2010.
910
- Fixed multiple reflections mapping to the same file name on case insensitive file systems, #2012.
1011

1112
## v0.23.8 (2022-07-17)

src/lib/utils/entry-point.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,9 @@ function getEntryPointsForPackages(
407407
displayName:
408408
typedocPackageConfig?.displayName ??
409409
(packageJson["name"] as string),
410-
version: packageJson["version"] as string | undefined,
410+
version: includeVersion
411+
? (packageJson["version"] as string | undefined)
412+
: void 0,
411413
readmeFile: typedocPackageConfig?.readmeFile
412414
? Path.resolve(
413415
Path.join(

src/test/slow/entry-point.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,6 @@ describe("Entry Points", () => {
8484
const entryPoints = app.getEntryPoints();
8585
ok(entryPoints);
8686
equal(entryPoints.length, 1);
87+
equal(entryPoints[0].version, void 0);
8788
});
8889
});

0 commit comments

Comments
 (0)