build(site): pin typescript to 6.x for astro check - #92
Merged
Conversation
`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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
astro checkruns through@astrojs/language-server, which needs TypeScript'sprogrammatic API. The native compiler (7.0+) does not ship that API yet, so
#86's bump to 7.0.2 fails
docs-astro-checkoutright:Two changes:
site/package.jsonstates the real constraint,>=6.0.3 <7, instead of^6.0.3..github/dependabot.ymlignoresversion-update:semver-majorfortypescriptin the
/siteecosystem, so dependabot stops re-proposing it.Upstream tracking issue: withastro/roadmap#1321 —
drop the ignore once the language server supports TS 7.
site/bun.lockalso picks up the metadata drift from earlier dependabot PRs thatonly touched
package.json; no resolved versions change.mise run docs-astro-checkpasses locally (0 errors, 0 warnings, 0 hints).Supersedes #86.
Co-Authored-By: lsimons-bot bot@leosimons.com