Skip to content

Use vue-tsc to generate types for libraries #2159

@JammingBen

Description

@JammingBen

We currently use vite-plugin-dts to generate types for packages we publish as library (design-system, client, pkg, test-helpers). This has a few drawbacks:

  • It uses @vue/language-core v2, whereas vue-tsc uses v3. This results in different type reports when running pnpm check:types vs pnpm vite build.
  • It uses rollup. With vite 8 around the corner, we want to get rid this dependency.
  • One dependency more we need to care about.

We should switch to vue-tsc for generating types. It would solve all these issues and we're already using it for checking types.

Metadata

Metadata

Assignees

Labels

Type:MaintenanceE.g. technical debt, packaging, etc.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions