EthanRutherford / fast-fuzzy

Fast fuzzy search utility
ISC License
370 stars 8 forks source link

Add package.json to 'exports' in package.json #14

Closed whyer closed 3 years ago

whyer commented 3 years ago

When using node 15+ with this package you get warning: warn Package fast-fuzzy has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /dev/app/node_modules/fast-fuzzy/package.json and package is ignored.

This is a simular issue in UUIDjs package and how they solved it. https://github.com/uuidjs/uuid/issues/444

EthanRutherford commented 3 years ago

Thanks for bringing this to my attention, I was not aware of this issue. I have made the fix for this, and published it at 1.10.10.