Skip to content

feat: support TypeScript 7 #2148

Description

@rorychatt

Describe the feature request

With the release of TypeScript 7, projects utilizing vite-plus and scaffolded by vp create want to upgrade their TypeScript version to 7. Currently, vite-plus specifies "typescript": "^5.0.0 || ^6.0.0" in its core packages peer dependencies, causing dependency resolution errors/warnings during installation.

Proposed Solution

  1. Update the typescript peer dependency in @voidzero-dev/vite-plus-core (built dynamically under packages/core/build.ts) to "^5.0.0 || ^6.0.0 || ^7.0.0".
  2. Update CLI scaffolding monorepo templates under packages/cli/templates/monorepo/ (pnpm-workspace.yaml and _yarnrc.yml) to support ^5 || ^6 || ^7.
  3. Keep the development devDependencies of the vite-plus workspace itself pinned to TypeScript 6 for now, as programmatic compiler APIs in upstream libraries (like rolldown and tsdown) are not yet compatible with the TypeScript 7 API structure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions