octet-stream / form-data

Spec-compliant FormData implementation for Node.js
https://www.npmjs.com/package/formdata-node
MIT License
142 stars 17 forks source link

chore: update package.json for bundler module resolution #63

Closed louisgv closed 1 year ago

louisgv commented 1 year ago

When setting moduleResolution: bundler, in TS5, the current exports will not work. Error:

There are types at '/node_modules/formdata-node/@type/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'formdata-node' library may need to update its package.json or typings.ts(7016)

octet-stream commented 1 year ago

LGTM, but the change is supposed to be made in 5.x branch, because main is for upcoming major release. I will backport and update 5.x version myself, no worries.

octet-stream commented 1 year ago

Your fix is available in https://github.com/octet-stream/form-data/releases/tag/v5.0.1

Thank you!