Skip to content

Commit 9556eec

Browse files
authored
chore: Generate docs with correct version. (#103)
1 parent 2eb18d6 commit 9556eec

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/typedoc.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
let version = process.env.VERSION;
2+
if (!version) {
3+
const package = require('../package.json');
4+
version = package.version;
5+
}
6+
17
module.exports = {
28
out: '/tmp/project-releaser/project/docs/build/html',
39
exclude: [
410
'**/node_modules/**',
511
'test-types.ts'
612
],
7-
name: "LaunchDarkly React SDK (2.25.0)",
13+
name: `LaunchDarkly React SDK (${version})`,
814
readme: 'none', // don't add a home page with a copy of README.md
915
entryPoints: "/tmp/project-releaser/project/src/index.ts",
1016
entryPointStrategy: "expand"

0 commit comments

Comments
 (0)