Skip to content

fix(docs): pin typedoc and TypeScript so the Pages deploy builds again - #44

Merged
cdbartholomew merged 1 commit into
mainfrom
fix/docs-typedoc-pin
Sep 23, 2026
Merged

cdbartholomew merged 1 commit into
mainfrom
fix/docs-typedoc-pin

Conversation

@cdbartholomew

Copy link
Copy Markdown
Contributor

The docs deploy (CI → deploy, GitHub Pages) has failed on every push to main since at least 2026-08-20, including today's merges of #40 and #43.

Cause: scripts/generate-docs.sh runs npx typedoc unpinned, so it fetches the latest typedoc (0.28.20). That pulls in TypeScript 6 as its peer, and TypeScript 6 turns src/ts/tsconfig.json's target: es5 and moduleResolution: node into hard errors:

TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0
TS5107: Option 'target=ES5' is deprecated ...

Fix: pin typescript@5.7.3, which is what the library itself builds with, plus typedoc@0.28.20. Changing the tsconfig instead would change the JavaScript the published client emits.

Verified locally: unpinned exits 3 with the same two errors as CI. Pinned exits 0 and generates the docs. The remaining @export tag warnings are cosmetic and pre-existing.

https://claude.ai/code/session_014J7s5yzoVEqoZ8LmnD8bQd

npx typedoc was unpinned, so it fetched the latest typedoc (0.28.20), which
pulls TypeScript 6 as its peer. TS 6 rejects src/ts/tsconfig.json's
target=ES5 and moduleResolution=node10 (TS5107), failing the docs deploy on
every push to main since at least 2026-08-20.

Pin typescript@5.7.3, the version the library already builds with, and
typedoc@0.28.20. Changing the tsconfig instead would change the JavaScript
the published client emits. Verified locally: unpinned exits 3 with the same
two errors as CI; pinned exits 0 and generates the docs.

Claude-Session: https://claude.ai/code/session_014J7s5yzoVEqoZ8LmnD8bQd
@cdbartholomew cdbartholomew self-assigned this Sep 23, 2026
@cdbartholomew
cdbartholomew merged commit 97952b6 into main Sep 23, 2026
1 of 3 checks passed
@cdbartholomew
cdbartholomew deleted the fix/docs-typedoc-pin branch September 23, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants