Skip to content

chore(website): prepare for TypeScript 7 and tune Renovate - #1829

Merged
danbarr merged 1 commit into
mainfrom
chore/website-ts7-renovate
Sep 23, 2026
Merged

danbarr merged 1 commit into
mainfrom
chore/website-ts7-renovate

Conversation

@danbarr

@danbarr danbarr commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Unblocks the TypeScript 7 bump in #1825 and tunes Renovate for website/ based on what that PR surfaced.

  • TS 7 compatibility. TS 7 removes baseUrl, which both our tsconfig.json and @docusaurus/tsconfig set. The site config now unsets the inherited value and redeclares @site/* relative to website/. It also drops ignoreDeprecations: "6.0", which was only hiding the baseUrl deprecation. The config typechecks on both TS 6.0.3 and TS 7.0.2, so this can land ahead of chore(deps): update website #1825.
  • Typecheck in CI. The User docs (Docusaurus build) job now runs npm run typecheck before the build. Docusaurus never runs tsc, so until now only Vercel's advisory check caught this kind of break.
  • Node engine. Changes engines.node from >=24.0 to 24.x, matching CI's Node 24 and silencing Vercel's warning about auto-upgrading on a new Node major.
  • Pin Docusaurus. The eight @docusaurus/* packages are now exact (3.10.2) instead of ^3.10.2. They are meant to run in lockstep, and caret ranges let a lockfile regeneration drift them apart. With rangeStrategy: "bump", Renovate keeps them exact and moves them together in the website group.
  • Renovate, website scope only:
    • rangeStrategy: "bump", so every update shows up in package.json. In chore(deps): update website #1825, five of the six listed bumps changed only the lockfile, because the npm default leaves in-range caret specs alone.
    • rangeStrategy: "replace" for engines, so the 24.x pin moves to the next major instead of being bumped within it.
    • Drops separateMajorMinor: false, so majors get their own PR and a major needing config work no longer holds up routine updates.

Test plan

  • renovate-config-validator --strict renovate.json
  • npm ci && npm run typecheck && npm run build in website/ on this branch (TS 6.0.3)
  • npm run typecheck with this tsconfig on the chore(deps): update website #1825 branch (TS 7.0.2): zero errors, down from TS5102
  • actionlint .github/workflows/ci.yml

🤖 Generated with Claude Code

TypeScript 7 removes the baseUrl option. @docusaurus/tsconfig still
sets it, so unset the inherited value and redeclare the @site/* path
relative to the site. Drop ignoreDeprecations, which only hid the
baseUrl deprecation. The config typechecks on both TS 6 and TS 7.

Typecheck the site in the user-docs CI job. The Docusaurus build never
runs tsc, so until now only Vercel's advisory check caught this class
of break.

Pin the Node engine to 24.x to match CI and silence Vercel's warning
about auto-upgrading on a new Node major.

Pin the @docusaurus/* packages to an exact version. They are meant to
run in lockstep, and caret ranges let a lockfile regeneration drift
them apart.

For website dependencies, bump package.json ranges so every update
shows in the diff instead of only in the lockfile, replace (not bump)
the engines range, and let majors land in their own PR rather than
holding up routine updates.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@danbarr
danbarr merged commit 33bee74 into main Sep 23, 2026
36 checks passed
@danbarr
danbarr deleted the chore/website-ts7-renovate branch September 23, 2026 21:34
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 25, 2026
2 tasks

This branch was successfully deployed

1 active deployment
Preview — 10b6bd9b Deployed Sep 23, 2026 by vercel[bot]
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