Skip to content

fix(website): resolve type errors and enforce checks in CI - #124

Merged
leonidaz merged 1 commit into
mainfrom
fix/website-typecheck
Sep 16, 2026
Merged

leonidaz merged 1 commit into
mainfrom
fix/website-typecheck

Conversation

@leonidaz

@leonidaz leonidaz commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

The standalone website typecheck reported 270 diagnostics from conflicting compiler declarations, mismatched Vue/Vapor and Vite peers, an ES2022 library target, and missing website annotations. It now passes with declaration checking enabled and runs through the root pnpm typecheck command.

  • Resolve compiler core type imports to the workspace's shared AST declarations. Vite explicitly leaves these type mappings out of runtime resolution, preserving each compiler's runtime dependencies.
  • Align the website and Vue compiler development environment with the Vue 3.6 version already used by the Vue playground, and pin the website's Node typings to the catalog so its Vite peer instance matches the workspace.
  • Use ES2023 library declarations, Shiki's custom-language-capable HighlighterCore interface, and a contextual Plugin type for Vite hooks.
  • Include website-only changes in CI triggers and document the website checks.
  • Add coverage for custom TSRX/bundled-language highlighting in CodeMirror and compilation of the default example through all eight playground targets.

Validation:

  • pnpm typecheck passed, including the new website check.
  • Website tests: 47 passed.
  • Vue compiler/integration/runtime tests: 526 passed, 12 skipped.
  • Website production build, repository formatting, changeset checks, and diff checks passed.

No changeset is needed: the package dependency change is development-only, and the remaining changes are private website or internal validation work.


Note

Low Risk
Changes are limited to the private website, dev-only Vue pinning in @tsrx/vue, and CI/typecheck wiring with no production package API changes.

Overview
Makes the tsrx-website package pass strict TypeScript with declaration checking and folds that into monorepo CI and pnpm typecheck.

Type resolution and tooling: website-tsrx/tsconfig.json now targets ES2023, adds @tsrx/core path aliases so playground compilers share one AST declaration set, and pins Node types. Vite disables tsconfigPaths so those aliases affect typechecking only, not runtime bundling. Shiki integration drops any in favor of HighlighterCore / LanguageRegistration.

Dependencies: The site and @tsrx/vue dev both use Vue 3.6.0-beta.12 (Vapor APIs); the website adds catalog @types/node for consistent Vite peer resolution.

Automation and docs: CI path filters include website-tsrx/**. A new typecheck script on tsrx-website is chained from the root typecheck job. README documents local and CI checks.

Tests: Vitest coverage for CodeMirror + Shiki (TSRX, TSX, JS, CSS) and for /api/compile succeeding for every playground target with the default demo source.

Reviewed by Cursor Bugbot for commit 3bed19a. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tsrx-website Ready Ready Preview Sep 16, 2026 8:33pm UTC
tsrx-website-mcp Ready Ready Preview Sep 16, 2026 8:33pm UTC

Request Review

This branch was successfully deployed

2 active deployments
Preview – tsrx-website — 3bed19a7 Deployed Sep 16, 2026 by vercel[bot]
Preview – tsrx-website-mcp — 3bed19a7 Deployed Sep 16, 2026 by vercel[bot]
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.

1 participant