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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
@fast-check/vitest cannot be imported in TS node16/nodenext resolution #3718
Labels
Comments
Oups good catch, sorry for the inconvenience. I'll try to send a fix later today. |
dubzzz
added a commit
that referenced
this issue
Apr 3, 2023
Make sure our packages will be properly published by checking them against publint. Related to #3718
dubzzz
added a commit
that referenced
this issue
Apr 3, 2023
Properly define typings of vitest package. Fixes #3718
dubzzz
added a commit
that referenced
this issue
Apr 3, 2023
* 馃悰(vitest) Proper type declaration Properly define typings of vitest package. Fixes #3718 * versions
Version should be released pretty soon on npm. Just waiting GitHub actions to go back to normal. Job started: https://github.com/dubzzz/fast-check/actions/runs/4600172058 |
Version published 馃殌 |
Thanks! |
dubzzz
added a commit
that referenced
this issue
Apr 4, 2023
* 馃敤 Ensure proper package definition Make sure our packages will be properly published by checking them against publint. Related to #3718 * Update package.json * add back error * attemp to detect issues * Update package.json * Update packages/vitest/package.json * Update packages/vitest/package.json
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
馃悰 Bug Report
Clear and concise description of the bug.
The lack of types mappings for the ESM exports prevents TS from resolving the package, giving:
To Reproduce
Steps to reproduce:
Create a TS project and set module=node16 in tsconfig. Try to import
@fast-check/vitest
.See also: https://arethetypeswrong.github.io/?p=%40fast-check%2Fvitest%400.0.3 and https://publint.dev/@fast-check/vitest@0.0.3
These tools can help to determine if a package is properly typed / configured.
Expected behavior
No error.
Likely, you need types entries for the export maps, as well as d.ts emit for the ESM code (right now it's js emit only?)
Your environment
*Only for TypeScript's users
The text was updated successfully, but these errors were encountered: