yeonjuan / parse-git-diff

parse git diff
MIT License
28 stars 3 forks source link

Issue: Types not found. #25

Closed terkelg closed 11 months ago

terkelg commented 11 months ago

When importing the library in TypeScript, the type declaration isn't found. I think this issue is caused by package.json not linking to the correct file. It's pointing to a types file in the root of the build folder, but the NPM modules doesn't come bundled with that file.

It's also worth noting that the types for ESM and CJS are identical. You can remove the types from the export fields and point to a shared types file in types. VSCode cannot read the types inside export anyway.

CleanShot 2023-09-30 at 21 58 05@2x

yeonjuan commented 11 months ago

@terkelg Thanks for the report! The fixed version 0.0.14 published!