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

fix: add types to exports #25

Closed
wants to merge 1 commit into from
Closed

fix: add types to exports #25

wants to merge 1 commit into from

Conversation

estyrke
Copy link
Contributor

@estyrke estyrke commented Apr 20, 2023

Using the new resolvePackageJsonExports option in TypeScript 5 requires the exports directive to include types, otherwise tsc complains:

TS7016: Could not find a declaration file for module 'check-disk-space'. '<path>/node_modules/check-disk-space/dist/check-disk-space.mjs' implicitly has an 'any' type.   There are types at '<path>/node_modules/check-disk-space/dist/check-disk-space.d.ts', but this result could not be resolved when respecting package.json "exports". The 'check-disk-space' library may need to update its package.json or typings.

Using the new `resolvePackageJsonExports` option in TypeScript 5 requires the exports directive to include types, otherwise `tsc` complains.
@estyrke
Copy link
Contributor Author

estyrke commented May 8, 2023

@Alex-D Any chance to get this merged?

@Alex-D Alex-D closed this in 2a95bf8 May 20, 2023
@Alex-D
Copy link
Owner

Alex-D commented May 20, 2023

I've cherry-picked your commit to fix indent
Thank you :)

@Alex-D
Copy link
Owner

Alex-D commented May 21, 2023

Now fixed in 3.4.0

@estyrke estyrke deleted the patch-1 branch May 21, 2023 18:32
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.

3 participants