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

Expose type definition on exports #48

Merged
merged 1 commit into from
Jul 10, 2023
Merged

Expose type definition on exports #48

merged 1 commit into from
Jul 10, 2023

Conversation

cs09g
Copy link
Contributor

@cs09g cs09g commented Jul 10, 2023

Fixes below issue when import vavite/vite-dev-server or vavite/http-dev-server in typescript file.

  There are types at '{some path}/node_modules/vavite/vite-dev-server.d.ts', but this result could not be resolved when respecting package.json "exports". The 'vavite' library may need to update its package.json or typings.ts(7016)

reference:
https://www.typescriptlang.org/docs/handbook/esm-node.html#packagejson-exports-imports-and-self-referencing

Fixes below issue when import `vavite/vite-dev-server` or `vavite/http-dev-server` in typescript file.

```
  There are types at '{some path}/node_modules/vavite/vite-dev-server.d.ts', but this result could not be resolved when respecting package.json "exports". The 'vavite' library may need to update its package.json or typings.ts(7016)
```

reference:
https://www.typescriptlang.org/docs/handbook/esm-node.html#packagejson-exports-imports-and-self-referencing
@cyco130 cyco130 merged commit c049c34 into cyco130:main Jul 10, 2023
5 of 6 checks passed
@cyco130
Copy link
Owner

cyco130 commented Jul 10, 2023

Thank you for this, I'll publish it later today.

@cs09g cs09g deleted the patch-1 branch July 10, 2023 08:58
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