Skip to content

chore: migrate to vite-plus and TypeScript 7 - #48

Open
jxom wants to merge 1 commit into
mainfrom
claude/zile-ts7-vite-migration-7azmsl
Open

jxom wants to merge 1 commit into
mainfrom
claude/zile-ts7-vite-migration-7azmsl

Conversation

@jxom

@jxom jxom commented Jul 18, 2026

Copy link
Copy Markdown
Member

Aligns the repository with the tooling the template (#44) already uses:

  • Replace Biome + Vitest with vite-plus: vp check --fix (Oxlint +
    Oxfmt, type-aware) and vp test (Vitest 4), configured in
    vite.config.ts. biome.json and vitest.config.ts are removed, and
    stale biome-ignore suppressions are dropped.
  • Bump typescript to ^7.0.2 (native compiler). tsc — used by
    check:types, zile's own build, and test fixture builds — is now
    TypeScript 7.
  • Rewrite Examples comment extraction and import partitioning on the
    TypeScript 7 scanner (typescript/unstable/ast), since TS7 no longer
    ships the TS5 JS API. The module is loaded lazily via createRequire so
    the CLI and library entrypoints keep working without TypeScript
    installed (it is an optional peer dependency); JSDoc example checking
    itself now requires typescript >= 7.
  • Fix lint findings surfaced by type-aware Oxlint: don't spread array
    exports into the exports object, drop a redundant declarationDir
    passthrough (snapshots no longer carry an explicit undefined key), and
    make CLI command registrars synchronous.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01NAy3RkoeSapDUppyp6fVLM

Aligns the repository with the tooling the template (#44) already uses:

- Replace Biome + Vitest with vite-plus: `vp check --fix` (Oxlint +
  Oxfmt, type-aware) and `vp test` (Vitest 4), configured in
  vite.config.ts. biome.json and vitest.config.ts are removed, and
  stale biome-ignore suppressions are dropped.
- Bump typescript to ^7.0.2 (native compiler). `tsc` — used by
  `check:types`, zile's own build, and test fixture builds — is now
  TypeScript 7.
- Rewrite Examples comment extraction and import partitioning on the
  TypeScript 7 scanner (`typescript/unstable/ast`), since TS7 no longer
  ships the TS5 JS API. The module is loaded lazily via createRequire so
  the CLI and library entrypoints keep working without TypeScript
  installed (it is an optional peer dependency); JSDoc example checking
  itself now requires typescript >= 7.
- Fix lint findings surfaced by type-aware Oxlint: don't spread array
  `exports` into the exports object, drop a redundant declarationDir
  passthrough (snapshots no longer carry an explicit undefined key), and
  make CLI command registrars synchronous.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NAy3RkoeSapDUppyp6fVLM
@pkg-pr-new

pkg-pr-new Bot commented Jul 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/zile@48

commit: fb2c5a5

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedvitest@​3.2.4 ⏵ 4.1.1098 +1100 +757998100
Addedvite-plus@​0.2.579100100100100
Updatedtypescript@​5.9.3 ⏵ 7.0.294 -610089 -1100100 +10

View full report

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