From f417a344a63a8f50c7dd8a8f6932348885818beb Mon Sep 17 00:00:00 2001 From: Ralf Anton Beier Date: Wed, 22 Jul 2026 06:28:00 +0200 Subject: [PATCH] fix(docs): cap typescript at ^6 for @astrojs/check compat (fixes main CI) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #561 bumped docs-site typescript 6.0.3 -> 7.0.2, but @astrojs/check (latest 0.9.9) still peer-requires `typescript@^5.0.0 || ^6.0.0` — no TS 7 support yet. The docs-site build (//docs-site:docs_site) has failed on main since 2026-07-20 with npm ERESOLVE, which every open PR inherits as red "Test on {ubuntu,macos}". This is the third recurrence (previously reverted in 2b151fe, re-bumped by #448 then #561). Revert typescript to ^6.0.3 AND add a dependabot ignore for typescript major bumps in /docs-site so it stops recurring until @astrojs/check ships TS 7 support. Verified: `npm install --dry-run` in docs-site resolves cleanly (734 packages, no ERESOLVE) with typescript ^6. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/dependabot.yml | 7 +++++++ docs-site/package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d9d42647..43bf50f9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -180,6 +180,13 @@ updates: - "dependencies" - "documentation" - "automated" + ignore: + # typescript is capped by @astrojs/check, whose peer range is + # `^5.0.0 || ^6.0.0` (latest 0.9.9 — no TS 7 support yet). Major bumps + # here repeatedly break the docs-site build (ERESOLVE). Hold at 6.x until + # @astrojs/check ships TS 7 support, then lift this ignore. + - dependency-name: "typescript" + update-types: ["version-update:semver-major"] - package-ecosystem: "npm" directory: "/examples/js_component" diff --git a/docs-site/package.json b/docs-site/package.json index aa6273f7..8903cdf1 100644 --- a/docs-site/package.json +++ b/docs-site/package.json @@ -36,7 +36,7 @@ "eslint-plugin-astro": "^3.0.0", "prettier": "^3.0.0", "prettier-plugin-astro": "^0.14.0", - "typescript": "^7.0.2" + "typescript": "^6.0.3" }, "engines": { "node": ">=18.0.0"