Skip to content

Commit

Permalink
Only set version if includeVersion is specified
Browse files Browse the repository at this point in the history
Resolves #2010
  • Loading branch information
Gerrit0 committed Jul 23, 2022
1 parent d4d3b8f commit ba9c5be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,7 @@
If using `"entryPointStrategy": "expand"`, this change may result in new pages being added to your documentation.
If this is not desired, you can use the `exclude` option to filter them out.
- Fixed missing comments on callable variable-functions constructed indirectly, #2008.
- Packages mode will now respect the `--includeVersion` flag, #2010.
- Fixed multiple reflections mapping to the same file name on case insensitive file systems, #2012.

## v0.23.8 (2022-07-17)
Expand Down
4 changes: 3 additions & 1 deletion src/lib/utils/entry-point.ts
Expand Up @@ -407,7 +407,9 @@ function getEntryPointsForPackages(
displayName:
typedocPackageConfig?.displayName ??
(packageJson["name"] as string),
version: packageJson["version"] as string | undefined,
version: includeVersion
? (packageJson["version"] as string | undefined)
: void 0,
readmeFile: typedocPackageConfig?.readmeFile
? Path.resolve(
Path.join(
Expand Down
1 change: 1 addition & 0 deletions src/test/slow/entry-point.test.ts
Expand Up @@ -84,5 +84,6 @@ describe("Entry Points", () => {
const entryPoints = app.getEntryPoints();
ok(entryPoints);
equal(entryPoints.length, 1);
equal(entryPoints[0].version, void 0);
});
});

0 comments on commit ba9c5be

Please sign in to comment.