Skip to content

build: upgrade TypeScript to 7 - #7

Merged
7a6163 merged 1 commit into
ci/github-actions-codecovfrom
build/typescript-7
Oct 21, 2026
Merged

7a6163 merged 1 commit into
ci/github-actions-codecovfrom
build/typescript-7

Conversation

@7a6163

@7a6163 7a6163 commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Stacked on #6, which adds the lockfile this PR updates. Merge #6 first; GitHub then retargets this PR to main.

What changed

  • typescript ^5.9.2 → ^7.0.2. This is the native compiler, and tsc is still the command.
  • tsconfig.json: added "types": ["node"]. TypeScript 7's types defaults to [], so @types/* packages are no longer picked up automatically. Without this, the tests' node:test, node:assert and import.meta.dirname fail to typecheck.
  • Vitest isn't upgraded because the project doesn't use it. Tests run on the built-in node:test.

Testing

  • npm run typecheck passes with TS 7. A deliberately broken line was caught, so checking is really running.
  • npm run test:coverage: 24 passed
  • npm audit: 0 vulnerabilities
  • wrangler deploy --dry-run bundles normally
  • CI on this PR

🤖 Generated with Claude Code

TypeScript 7 (native compiler) no longer auto-includes every @types
package: "types" now defaults to [], so list "node" explicitly for
node:test, node:assert and import.meta.dirname in the tests.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@7a6163
7a6163 merged commit d0edbf6 into ci/github-actions-codecov Oct 21, 2026
1 check passed
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