fix: pin typescript ^5 and disable its major updates #11

Merged
matt merged 1 commit from fix-typescript-drift into main 2026-09-19 21:59:37 -04:00
Owner

The astro 7 upgrade needs typescript ^5: @astrojs/check's language server cannot run on TS 7 and dies with Cannot read properties of undefined (reading 'fileExists').

Renovate then proposed the TS 7 major, it was merged (#10), and main has failed to deploy ever since — the build_and_deploy job dies about 17 seconds in, with npm ci rejecting the tree:

declared locked
typescript ^7.0.0 5.9.3

That is the same lockfile drift that blocked the astro 7 upgrade in the first place, re-created by a dependency PR — the pattern the drift sweep was written to catch.

Fix: revert the declaration to ^5.9.3, regenerate the lock, and add a packageRules entry disabling typescript majors so the same PR does not come straight back. The existing renovate.json keys are preserved (merged, not replaced).

Verified on a clean clone: npm ci exit 0, npm run build exit 0, 27 pages.

The astro 7 upgrade needs `typescript` **^5**: `@astrojs/check`'s language server cannot run on TS 7 and dies with `Cannot read properties of undefined (reading 'fileExists')`. Renovate then proposed the TS 7 major, it was merged (#10), and **main has failed to deploy ever since** — the `build_and_deploy` job dies about 17 seconds in, with `npm ci` rejecting the tree: | | declared | locked | |---|---|---| | typescript | `^7.0.0` | `5.9.3` | That is the same lockfile drift that blocked the astro 7 upgrade in the first place, re-created by a dependency PR — the pattern the drift sweep was written to catch. **Fix:** revert the declaration to `^5.9.3`, regenerate the lock, and add a `packageRules` entry disabling typescript majors so the same PR does not come straight back. The existing renovate.json keys are preserved (merged, not replaced). **Verified on a clean clone:** `npm ci` exit 0, `npm run build` exit 0, 27 pages.
fix: pin typescript back to ^5 and stop Renovate re-proposing v7
All checks were successful
build-and-deploy / build_and_deploy (pull_request) Has been skipped
build-and-deploy / testbuild (push) Has been skipped
build-and-deploy / build_and_deploy (push) Successful in 1s
build-and-deploy / testbuild (pull_request) Successful in 31s
0601a3ae57
The astro 7 upgrade needs typescript ^5: @astrojs/check's language server cannot run on TS 7 and
dies with "Cannot read properties of undefined (reading 'fileExists')". Renovate then proposed the
TS 7 major, it was merged, and main has failed to deploy ever since - the build_and_deploy job dies
about 17 seconds in, with npm ci rejecting the lock.

package.json declared ^7.0.0 while the lock pinned 5.9.3, so npm ci (what CI runs) refused the tree.
Reverting the declaration and regenerating the lock fixes the deploy; adding a packageRules entry that
disables typescript majors stops the same PR coming straight back.

Verified on a clean clone: npm ci exit 0, npm run build exit 0, 27 pages.
matt merged commit 216002e2f7 into main 2026-09-19 21:59:37 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
goobercloud/website!11
No description provided.