Skip to content

Hold TypeScript at 6.x so lint keeps working - #42

Closed
vpetersson-bot wants to merge 1 commit into
mainfrom
chore/hold-typescript-at-6
Closed

vpetersson-bot wants to merge 1 commit into
mainfrom
chore/hold-typescript-at-6

Conversation

@vpetersson-bot

Copy link
Copy Markdown

bun run lint dies on the monthly dependency bump with:

TypeError: undefined is not an object (evaluating 'ts.Extension.Cjs')
    at node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js

typescript-eslint (pulled in via @screenly/edge-apps) declares a peer range of
typescript >=4.8.4 <6.1.0, and its latest release still does. TypeScript 7 removed
ts.Extension.Cjs, so @typescript-eslint/typescript-estree throws while loading,
before a single file is parsed. Nothing in this repo can work around that.

This takes the rest of the bump but leaves typescript on ^6.0.3, and adds a
dependabot ignore entry so TypeScript 7 is not proposed again until
typescript-eslint supports it. Drop the ignore entry at that point.

Verified locally: bun run lint, bun run type-check, bun run build and
bun test src/ all pass.

🤖 Generated with Claude Code

typescript-eslint declares a peer range of typescript >=4.8.4 <6.1.0.
TypeScript 7 removed ts.Extension.Cjs, so @typescript-eslint/typescript-estree
throws on load and bun run lint fails outright.

Take the rest of the dependency bump, keep typescript on the existing range,
and tell dependabot to skip TypeScript 7 until typescript-eslint supports it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 4, 2026 09:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The exclusion starts at TypeScript 7 despite the declared compatibility limit being below 6.1.0.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Updates dependencies while retaining TypeScript 6 to preserve lint compatibility.

Changes:

  • Upgrades application and development dependencies.
  • Regenerates the Bun lockfile.
  • Adds a Dependabot TypeScript exclusion.
File Description
package.json Updates dependency ranges.
bun.lock Locks updated dependency graph.
.github/​dependabot.yml Excludes incompatible TypeScript updates.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/dependabot.yml
Comment on lines +14 to +15
- dependency-name: 'typescript'
versions: ['>=7']
@vpetersson-bot

Copy link
Copy Markdown
Author

Closing this as a duplicate — an equivalent change (same TypeScript holdback plus the
dependabot ignore entry) was already opened on 2026-09-29 and is green. Review that
one instead.

@vpetersson-bot
vpetersson-bot deleted the chore/hold-typescript-at-6 branch October 4, 2026 09:10
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