Skip to content

Commit c02e495

Browse files
committed
Make site build stricter
1 parent bc54be8 commit c02e495

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

scripts/build_site.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ fi
1414
if [[ -n "$CI" || ! -d example/docs ]]; then
1515
cd example
1616
pnpm i
17+
# Ignoring warnings here because we inherit from Array, which results in
18+
# a few warnings because the docs in the .d.ts have bad @param comments
19+
# We might want to change TypeDoc's validation logic to make this not a
20+
# warning at some point if the relevant comments show up on both signatures.
1721
pnpm run typedoc --logLevel Error
1822
cd ..
1923
fi
@@ -22,7 +26,7 @@ fi
2226
git show $(git describe --tags --abbrev=0):CHANGELOG.md | sed 's/#* Unreleased//' > site/generated/CHANGELOG.md
2327

2428
# Build the actual site, references the API docs
25-
node bin/typedoc --options site/typedoc.config.jsonc
29+
node bin/typedoc --options site/typedoc.config.jsonc --treatWarningsAsErrors
2630

2731
# Create/copy static files
2832
node scripts/generate_options_schema.js docs-site/schema.json

site/typedoc.config.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "https://typedoc.org/schema.json",
33
"logLevel": "Verbose",
4+
"treatWarningsAsErrors": true,
45

56
"entryPointStrategy": "merge",
67
"entryPoints": [],

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ export {
139139
MinimalSourceFile,
140140
type NormalizedPath,
141141
type NormalizedPathOrModule,
142+
type NormalizedPathOrModuleOrFunction,
142143
type SymbolReference,
143144
type TranslatedString,
144145
translateTagName,

0 commit comments

Comments
 (0)