Skip to content

build: use vue-tsc to generate d.ts files for libraries#2194

Open
JammingBen wants to merge 4 commits intomainfrom
chore/vue-tsc-lib-type-generation
Open

build: use vue-tsc to generate d.ts files for libraries#2194
JammingBen wants to merge 4 commits intomainfrom
chore/vue-tsc-lib-type-generation

Conversation

@JammingBen
Copy link
Member

@JammingBen JammingBen commented Mar 20, 2026

Removes the vite-plugin-dts dependency and uses vue-tsc to generate d.ts files for our library builds (pkg, client, test-helpers, design-system). This means one dependency less and ensures that we use the same type checking mechanism like Web.

Also adds type checks for libraries we build so we can see if emitting d.ts files on build would succeed.

closes #2159

waiting for #2184 to get merged first.

@JammingBen JammingBen self-assigned this Mar 20, 2026
@JammingBen JammingBen added the Type:Maintenance E.g. technical debt, packaging, etc. label Mar 20, 2026
@JammingBen JammingBen force-pushed the chore/vue-tsc-lib-type-generation branch from 6b0d164 to 4dd2f15 Compare March 20, 2026 12:51
@JammingBen JammingBen changed the title chore: use vue-tsc to generate type files for libraries build: use vue-tsc to generate type files for libraries Mar 23, 2026
Removes the `vite-plugin-dts` dependency and uses `vue-tsc` to generate type for our library builds (pkg, client, test-helpers, design-system).

This means one dependency less and ensures that we use the same type checking mechanism like Web.
@JammingBen JammingBen force-pushed the chore/vue-tsc-lib-type-generation branch 2 times, most recently from 9581348 to 58bae57 Compare March 24, 2026 14:23
Adds type checks for libraries we build so we can see if emitting `d.ts` files on build would succeed.

Also adds them to CI.
@JammingBen JammingBen force-pushed the chore/vue-tsc-lib-type-generation branch from 58bae57 to 8e31d7e Compare March 24, 2026 14:24
@JammingBen JammingBen marked this pull request as ready for review March 24, 2026 14:41
@JammingBen
Copy link
Member Author

@kulmann I included the new library type check in the pnpm check:types command. This type check is a bit stricter that our regular one because it also checks if d.ts files can be generated based on our types.

I'm a bit unsure whether to include it in pnpm check:types though. We could also add a separate command (e.g. pnpm check:types:lib). What do you think?

@JammingBen JammingBen requested a review from kulmann March 24, 2026 14:42
@JammingBen JammingBen changed the title build: use vue-tsc to generate type files for libraries build: use vue-tsc to generate d.ts files for libraries Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type:Maintenance E.g. technical debt, packaging, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use vue-tsc to generate types for libraries

1 participant