Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@php-wasm/util: Publish TypeScript types #1711

Merged
merged 1 commit into from
Aug 28, 2024
Merged

@php-wasm/util: Publish TypeScript types #1711

merged 1 commit into from
Aug 28, 2024

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented Aug 28, 2024

#1593 caused the @php-wasm/util package to be published without the index.d.ts type declarations file which causes the following TypeScript error:

Could not find a declaration file for module '@php-wasm/node'.

This PR adds the missing dts() plugin to vite.config.ts and enables publishing the declarations file.

I verified all the other packages (aside of cli, which is fine) use the dts() plugin. However, before we can say #1662 is fixed, we'll need to merge this PR, release new packages, and confirm they import cleanly without any TypeScript errors.

Ideally we'd have a smoke test for that right in the CI.

#1593 caused the `@php-wasm/util` package to be published without the `index.d.ts` type declarations file which causes the following TypeScript error:

```
Could not find a declaration file for module '@php-wasm/node'.
```

This PR adds the missing `dts()` plugin to vite.config.ts and enables publishing the declarations file.

Before we can say #1662 is fixed, we'll need to merge this PR, release new packages, and confirm they import cleanly without any TypeScript errors.

Ideally we'd have a smoke test for that right in the CI.
@adamziel adamziel added [Type] Bug An existing feature does not function as intended [Type] Repo / Project Management [Package][@php-wasm] Util labels Aug 28, 2024
@adamziel adamziel merged commit 62a5176 into trunk Aug 28, 2024
5 checks passed
@adamziel adamziel deleted the adamziel-patch-1 branch August 28, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant