Skip to content

build(site): pin typescript to 6.x for astro check - #92

Merged
lsimons merged 1 commit into
mainfrom
build/pin-site-typescript-6
Aug 16, 2026
Merged

build(site): pin typescript to 6.x for astro check#92
lsimons merged 1 commit into
mainfrom
build/pin-site-typescript-6

Conversation

@lsimons

@lsimons lsimons commented Aug 16, 2026

Copy link
Copy Markdown
Member

astro check runs through @astrojs/language-server, which needs TypeScript's
programmatic API. The native compiler (7.0+) does not ship that API yet, so
#86's bump to 7.0.2 fails docs-astro-check outright:

The TypeScript module loaded (found 7.0.2) does not expose the programmatic API
that `astro check` relies on.

Two changes:

  • site/package.json states the real constraint, >=6.0.3 <7, instead of ^6.0.3.
  • .github/dependabot.yml ignores version-update:semver-major for typescript
    in the /site ecosystem, so dependabot stops re-proposing it.

Upstream tracking issue: withastro/roadmap#1321
drop the ignore once the language server supports TS 7.

site/bun.lock also picks up the metadata drift from earlier dependabot PRs that
only touched package.json; no resolved versions change.

mise run docs-astro-check passes locally (0 errors, 0 warnings, 0 hints).

Supersedes #86.

Co-Authored-By: lsimons-bot bot@leosimons.com

`astro check` goes through @astrojs/language-server, which needs the
programmatic TypeScript API. TypeScript's native compiler (7.0+) does not
ship that API yet, so 7.x fails the docs gate outright.

Make the constraint explicit (`>=6.0.3 <7`) and tell dependabot to skip
typescript major bumps for the site until upstream support lands.

Assisted-by: Claude:claude-opus-5
@lsimons
lsimons merged commit 2d9f5ae into main Aug 16, 2026
7 checks passed
@lsimons
lsimons deleted the build/pin-site-typescript-6 branch August 16, 2026 09:16
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.

1 participant